123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef PHP_OPENSSL_H
- #define PHP_OPENSSL_H
- #ifdef HAVE_OPENSSL_EXT
- extern zend_module_entry openssl_module_entry;
- #define phpext_openssl_ptr &openssl_module_entry
- #define OPENSSL_RAW_DATA 1
- #define OPENSSL_ZERO_PADDING 2
- #define OPENSSL_ERROR_X509_PRIVATE_KEY_VALUES_MISMATCH 0x0B080074
- #define OPENSSL_DEFAULT_RENEG_LIMIT 2
- #define OPENSSL_DEFAULT_RENEG_WINDOW 300
- #define OPENSSL_DEFAULT_STREAM_VERIFY_DEPTH 9
- #define OPENSSL_DEFAULT_STREAM_CIPHERS "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:" \
- "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:" \
- "DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:" \
- "ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:" \
- "ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:" \
- "DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:" \
- "AES256-GCM-SHA384:AES128:AES256:HIGH:!SSLv2:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!RC4:!ADH"
- php_stream_transport_factory_func php_openssl_ssl_socket_factory;
- PHP_MINIT_FUNCTION(openssl);
- PHP_MSHUTDOWN_FUNCTION(openssl);
- PHP_MINFO_FUNCTION(openssl);
- 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);
- PHP_FUNCTION(openssl_pkey_export_to_file);
- PHP_FUNCTION(openssl_pkey_get_details);
- PHP_FUNCTION(openssl_sign);
- PHP_FUNCTION(openssl_verify);
- PHP_FUNCTION(openssl_seal);
- PHP_FUNCTION(openssl_open);
- PHP_FUNCTION(openssl_private_encrypt);
- PHP_FUNCTION(openssl_private_decrypt);
- PHP_FUNCTION(openssl_public_encrypt);
- PHP_FUNCTION(openssl_public_decrypt);
- PHP_FUNCTION(openssl_pbkdf2);
- 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);
- PHP_FUNCTION(openssl_x509_read);
- PHP_FUNCTION(openssl_x509_free);
- PHP_FUNCTION(openssl_x509_parse);
- PHP_FUNCTION(openssl_x509_checkpurpose);
- PHP_FUNCTION(openssl_x509_export);
- PHP_FUNCTION(openssl_x509_fingerprint);
- PHP_FUNCTION(openssl_x509_export_to_file);
- PHP_FUNCTION(openssl_x509_check_private_key);
- PHP_FUNCTION(openssl_pkcs12_export);
- PHP_FUNCTION(openssl_pkcs12_export_to_file);
- PHP_FUNCTION(openssl_pkcs12_read);
- PHP_FUNCTION(openssl_csr_new);
- PHP_FUNCTION(openssl_csr_export);
- PHP_FUNCTION(openssl_csr_export_to_file);
- PHP_FUNCTION(openssl_csr_sign);
- PHP_FUNCTION(openssl_csr_get_subject);
- PHP_FUNCTION(openssl_csr_get_public_key);
- PHP_FUNCTION(openssl_spki_new);
- PHP_FUNCTION(openssl_spki_verify);
- PHP_FUNCTION(openssl_spki_export);
- PHP_FUNCTION(openssl_spki_export_challenge);
- PHP_FUNCTION(openssl_get_cert_locations);
- #else
- #define phpext_openssl_ptr NULL
- #endif
- #endif
|