2000-11-13 19:47:20 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
2000-11-13 19:47:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| Copyright (c) 1997-2006 The PHP Group |
|
2000-11-13 19:47:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2000-11-13 19:47:20 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 12:51:34 +00:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2000-11-13 19:47:20 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Stig Venaas <venaas@php.net> |
|
2001-09-11 00:03:58 +00:00
|
|
|
| Wez Furlong <wez@thebrainroom.com |
|
2000-11-13 19:47:20 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
#ifndef PHP_OPENSSL_H
|
|
|
|
#define PHP_OPENSSL_H
|
|
|
|
/* HAVE_OPENSSL would include SSL MySQL stuff */
|
2003-06-27 16:41:41 +00:00
|
|
|
#ifdef HAVE_OPENSSL_EXT
|
2000-11-13 19:47:20 +00:00
|
|
|
extern zend_module_entry openssl_module_entry;
|
|
|
|
#define phpext_openssl_ptr &openssl_module_entry
|
|
|
|
|
2003-02-27 17:43:38 +00:00
|
|
|
php_stream_transport_factory_func php_openssl_ssl_socket_factory;
|
|
|
|
|
2000-11-13 19:47:20 +00:00
|
|
|
PHP_MINIT_FUNCTION(openssl);
|
2000-11-17 19:17:07 +00:00
|
|
|
PHP_MSHUTDOWN_FUNCTION(openssl);
|
2000-11-13 19:47:20 +00:00
|
|
|
PHP_MINFO_FUNCTION(openssl);
|
2001-09-11 00:03:58 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(openssl_pkey_get_private);
|
|
|
|
PHP_FUNCTION(openssl_pkey_get_public);
|
|
|
|
PHP_FUNCTION(openssl_pkey_free);
|
|
|
|
PHP_FUNCTION(openssl_pkey_new);
|
|
|
|
PHP_FUNCTION(openssl_pkey_export);
|
2001-09-11 00:33:25 +00:00
|
|
|
PHP_FUNCTION(openssl_pkey_export_to_file);
|
2006-08-15 00:38:05 +00:00
|
|
|
PHP_FUNCTION(openssl_pkey_get_details);
|
2001-09-11 00:03:58 +00:00
|
|
|
|
2000-11-13 19:47:20 +00:00
|
|
|
PHP_FUNCTION(openssl_sign);
|
|
|
|
PHP_FUNCTION(openssl_verify);
|
|
|
|
PHP_FUNCTION(openssl_seal);
|
|
|
|
PHP_FUNCTION(openssl_open);
|
2001-05-04 23:42:11 +00:00
|
|
|
PHP_FUNCTION(openssl_private_encrypt);
|
|
|
|
PHP_FUNCTION(openssl_private_decrypt);
|
|
|
|
PHP_FUNCTION(openssl_public_encrypt);
|
|
|
|
PHP_FUNCTION(openssl_public_decrypt);
|
2000-11-13 19:47:20 +00:00
|
|
|
|
2001-04-01 23:06:15 +00:00
|
|
|
PHP_FUNCTION(openssl_pkcs7_verify);
|
|
|
|
PHP_FUNCTION(openssl_pkcs7_decrypt);
|
|
|
|
PHP_FUNCTION(openssl_pkcs7_sign);
|
|
|
|
PHP_FUNCTION(openssl_pkcs7_encrypt);
|
|
|
|
|
|
|
|
PHP_FUNCTION(openssl_error_string);
|
2001-09-11 00:03:58 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(openssl_x509_read);
|
|
|
|
PHP_FUNCTION(openssl_x509_free);
|
2001-04-01 23:06:15 +00:00
|
|
|
PHP_FUNCTION(openssl_x509_parse);
|
|
|
|
PHP_FUNCTION(openssl_x509_checkpurpose);
|
2001-09-11 00:03:58 +00:00
|
|
|
PHP_FUNCTION(openssl_x509_export);
|
2001-09-11 00:33:25 +00:00
|
|
|
PHP_FUNCTION(openssl_x509_export_to_file);
|
2001-09-11 00:03:58 +00:00
|
|
|
PHP_FUNCTION(openssl_x509_check_private_key);
|
|
|
|
PHP_FUNCTION(openssl_csr_new);
|
|
|
|
PHP_FUNCTION(openssl_csr_export);
|
2001-09-11 00:33:25 +00:00
|
|
|
PHP_FUNCTION(openssl_csr_export_to_file);
|
2001-09-11 00:03:58 +00:00
|
|
|
PHP_FUNCTION(openssl_csr_sign);
|
2006-08-15 20:27:22 +00:00
|
|
|
PHP_FUNCTION(openssl_csr_get_subject);
|
|
|
|
PHP_FUNCTION(openssl_csr_get_public_key);
|
2000-11-13 19:47:20 +00:00
|
|
|
#else
|
|
|
|
|
2000-11-16 11:16:25 +00:00
|
|
|
#define phpext_openssl_ptr NULL
|
2000-11-13 19:47:20 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|