php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "php.h"
#include "ext/standard/file.h"
#include "ext/standard/url.h"
#include "streams/php_streams_int.h"
#include "zend_smart_str.h"
#include "php_openssl.h"
#include "php_network.h"
#include <openssl/ssl.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/dh.h>
Go to the source code of this file.
Data Structures | |
struct | _php_openssl_sni_cert_t |
struct | _php_openssl_handshake_bucket_t |
struct | _php_openssl_alpn_ctx_t |
struct | _php_openssl_netstream_data_t |
Macros | |
#define | MSG_DONTWAIT 0 |
#define | STREAM_CRYPTO_IS_CLIENT (1<<0) |
#define | STREAM_CRYPTO_METHOD_SSLv2 (1<<1) |
#define | STREAM_CRYPTO_METHOD_SSLv3 (1<<2) |
#define | STREAM_CRYPTO_METHOD_TLSv1_0 (1<<3) |
#define | STREAM_CRYPTO_METHOD_TLSv1_1 (1<<4) |
#define | STREAM_CRYPTO_METHOD_TLSv1_2 (1<<5) |
#define | STREAM_CRYPTO_METHOD_TLSv1_3 (1<<6) |
#define | HAVE_TLS1 1 |
#define | HAVE_TLS11 1 |
#define | HAVE_TLS12 1 |
#define | HAVE_TLS13 1 |
#define | HAVE_ECDH 1 |
#define | HAVE_TLS_SNI 1 |
#define | HAVE_TLS_ALPN 1 |
#define | HAVE_SEC_LEVEL 1 |
#define | HAVE_SSL3 1 |
#define | PHP_OPENSSL_MIN_PROTO_VERSION STREAM_CRYPTO_METHOD_SSLv3 |
#define | PHP_OPENSSL_MAX_PROTO_VERSION STREAM_CRYPTO_METHOD_TLSv1_3 |
#define | GET_VER_OPT(_name) |
#define | GET_VER_OPT_STRING(_name, _str) |
#define | GET_VER_OPT_STRINGL(_name, _str, _len) |
#define | GET_VER_OPT_LONG(_name, _num) |
#define | PHP_X509_NAME_ENTRY_TO_UTF8(ne, i, out) |
#define | SERVER_MICROSOFT_IIS "Server: Microsoft-IIS" |
#define | SERVER_GOOGLE "Server: GFE/" |
Typedefs | |
typedef struct _php_openssl_sni_cert_t | php_openssl_sni_cert_t |
typedef struct _php_openssl_handshake_bucket_t | php_openssl_handshake_bucket_t |
typedef struct _php_openssl_alpn_ctx_t | php_openssl_alpn_ctx |
typedef struct _php_openssl_netstream_data_t | php_openssl_netstream_data_t |
Functions | |
php_stream * | php_openssl_get_stream_from_ssl_handle (const SSL *ssl) |
zend_string * | php_openssl_x509_fingerprint (X509 *peer, const char *method, bool raw) |
int | php_openssl_get_ssl_stream_data_index (void) |
php_stream * | php_openssl_ssl_socket_factory (const char *proto, size_t protolen, const char *resourcename, size_t resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC) |
#define GET_VER_OPT | ( | _name | ) |
#define GET_VER_OPT_LONG | ( | _name, | |
_num ) |
#define GET_VER_OPT_STRING | ( | _name, | |
_str ) |
#define GET_VER_OPT_STRINGL | ( | _name, | |
_str, | |||
_len ) |
#define PHP_OPENSSL_MAX_PROTO_VERSION STREAM_CRYPTO_METHOD_TLSv1_3 |
#define PHP_OPENSSL_MIN_PROTO_VERSION STREAM_CRYPTO_METHOD_SSLv3 |
#define SERVER_GOOGLE "Server: GFE/" |
#define SERVER_MICROSOFT_IIS "Server: Microsoft-IIS" |
typedef struct _php_openssl_alpn_ctx_t php_openssl_alpn_ctx |
typedef struct _php_openssl_handshake_bucket_t php_openssl_handshake_bucket_t |
typedef struct _php_openssl_netstream_data_t php_openssl_netstream_data_t |
typedef struct _php_openssl_sni_cert_t php_openssl_sni_cert_t |
|
extern |
php_stream * php_openssl_ssl_socket_factory | ( | const char * | proto, |
size_t | protolen, | ||
const char * | resourcename, | ||
size_t | resourcenamelen, | ||
const char * | persistent_id, | ||
int | options, | ||
int | flags, | ||
struct timeval * | timeout, | ||
php_stream_context *context | STREAMS_DC ) |
|
extern |