xref: /PHP-5.5/ext/openssl/php_openssl.h (revision 73c1be26)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2015 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_pbkdf2);
56 
57 PHP_FUNCTION(openssl_pkcs7_verify);
58 PHP_FUNCTION(openssl_pkcs7_decrypt);
59 PHP_FUNCTION(openssl_pkcs7_sign);
60 PHP_FUNCTION(openssl_pkcs7_encrypt);
61 
62 PHP_FUNCTION(openssl_error_string);
63 
64 PHP_FUNCTION(openssl_x509_read);
65 PHP_FUNCTION(openssl_x509_free);
66 PHP_FUNCTION(openssl_x509_parse);
67 PHP_FUNCTION(openssl_x509_checkpurpose);
68 PHP_FUNCTION(openssl_x509_export);
69 PHP_FUNCTION(openssl_x509_export_to_file);
70 PHP_FUNCTION(openssl_x509_check_private_key);
71 
72 PHP_FUNCTION(openssl_pkcs12_export);
73 PHP_FUNCTION(openssl_pkcs12_export_to_file);
74 PHP_FUNCTION(openssl_pkcs12_read);
75 
76 PHP_FUNCTION(openssl_csr_new);
77 PHP_FUNCTION(openssl_csr_export);
78 PHP_FUNCTION(openssl_csr_export_to_file);
79 PHP_FUNCTION(openssl_csr_sign);
80 PHP_FUNCTION(openssl_csr_get_subject);
81 PHP_FUNCTION(openssl_csr_get_public_key);
82 #else
83 
84 #define phpext_openssl_ptr NULL
85 
86 #endif
87 
88 #endif
89 
90 /*
91  * Local variables:
92  * tab-width: 4
93  * c-basic-offset: 4
94  * End:
95  */
96