xref: /PHP-5.4/ext/openssl/php_openssl.h (revision c0d060f5)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2014 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP license,      |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Authors: Stig Venaas <venaas@php.net>                                |
16    |          Wez Furlong <wez@thebrainroom.com                           |
17    +----------------------------------------------------------------------+
18  */
19 
20 /* $Id$ */
21 
22 #ifndef PHP_OPENSSL_H
23 #define PHP_OPENSSL_H
24 /* HAVE_OPENSSL would include SSL MySQL stuff */
25 #ifdef HAVE_OPENSSL_EXT
26 extern zend_module_entry openssl_module_entry;
27 #define phpext_openssl_ptr &openssl_module_entry
28 
29 #define OPENSSL_RAW_DATA 1
30 #define OPENSSL_ZERO_PADDING 2
31 
32 php_stream_transport_factory_func php_openssl_ssl_socket_factory;
33 
34 PHP_MINIT_FUNCTION(openssl);
35 PHP_MSHUTDOWN_FUNCTION(openssl);
36 PHP_MINFO_FUNCTION(openssl);
37 
38 PHP_FUNCTION(openssl_pkey_get_private);
39 PHP_FUNCTION(openssl_pkey_get_public);
40 PHP_FUNCTION(openssl_pkey_free);
41 PHP_FUNCTION(openssl_pkey_new);
42 PHP_FUNCTION(openssl_pkey_export);
43 PHP_FUNCTION(openssl_pkey_export_to_file);
44 PHP_FUNCTION(openssl_pkey_get_details);
45 
46 PHP_FUNCTION(openssl_sign);
47 PHP_FUNCTION(openssl_verify);
48 PHP_FUNCTION(openssl_seal);
49 PHP_FUNCTION(openssl_open);
50 PHP_FUNCTION(openssl_private_encrypt);
51 PHP_FUNCTION(openssl_private_decrypt);
52 PHP_FUNCTION(openssl_public_encrypt);
53 PHP_FUNCTION(openssl_public_decrypt);
54 
55 PHP_FUNCTION(openssl_pkcs7_verify);
56 PHP_FUNCTION(openssl_pkcs7_decrypt);
57 PHP_FUNCTION(openssl_pkcs7_sign);
58 PHP_FUNCTION(openssl_pkcs7_encrypt);
59 
60 PHP_FUNCTION(openssl_error_string);
61 
62 PHP_FUNCTION(openssl_x509_read);
63 PHP_FUNCTION(openssl_x509_free);
64 PHP_FUNCTION(openssl_x509_parse);
65 PHP_FUNCTION(openssl_x509_checkpurpose);
66 PHP_FUNCTION(openssl_x509_export);
67 PHP_FUNCTION(openssl_x509_export_to_file);
68 PHP_FUNCTION(openssl_x509_check_private_key);
69 
70 PHP_FUNCTION(openssl_pkcs12_export);
71 PHP_FUNCTION(openssl_pkcs12_export_to_file);
72 PHP_FUNCTION(openssl_pkcs12_read);
73 
74 PHP_FUNCTION(openssl_csr_new);
75 PHP_FUNCTION(openssl_csr_export);
76 PHP_FUNCTION(openssl_csr_export_to_file);
77 PHP_FUNCTION(openssl_csr_sign);
78 PHP_FUNCTION(openssl_csr_get_subject);
79 PHP_FUNCTION(openssl_csr_get_public_key);
80 #else
81 
82 #define phpext_openssl_ptr NULL
83 
84 #endif
85 
86 #endif
87 
88 /*
89  * Local variables:
90  * tab-width: 4
91  * c-basic-offset: 4
92  * End:
93  */
94