EventSslContext
final class EventSslContext (View source)
EventSslContext.
Represents SSL_CTX structure. Provides methods and properties to configure the SSL context.
Constants
| SSLv2_CLIENT_METHOD |
|
| SSLv3_CLIENT_METHOD |
|
| SSLv23_CLIENT_METHOD |
|
| TLS_CLIENT_METHOD |
|
| SSLv2_SERVER_METHOD |
|
| SSLv3_SERVER_METHOD |
|
| SSLv23_SERVER_METHOD |
|
| TLS_SERVER_METHOD |
|
| TLSv11_CLIENT_METHOD |
|
| TLSv11_SERVER_METHOD |
|
| TLSv12_CLIENT_METHOD |
|
| TLSv12_SERVER_METHOD |
|
| OPT_LOCAL_CERT |
|
| OPT_LOCAL_PK |
|
| OPT_PASSPHRASE |
|
| OPT_CA_FILE |
|
| OPT_CA_PATH |
|
| OPT_ALLOW_SELF_SIGNED |
|
| OPT_VERIFY_PEER |
|
| OPT_VERIFY_DEPTH |
|
| OPT_CIPHERS |
|
| OPT_NO_SSLv2 |
|
| OPT_NO_SSLv3 |
|
| OPT_NO_TLSv1 |
|
| OPT_NO_TLSv1_1 |
|
| OPT_NO_TLSv1_2 |
|
| OPT_CIPHER_SERVER_PREFERENCE |
|
| OPT_REQUIRE_CLIENT_CERT |
|
| OPT_VERIFY_CLIENT_ONCE |
|
Properties
| string | $local_cert | ||
| string | $local_pk |
Methods
__construct(int $method, array $options)
__construct.
bool
setMinProtoVersion(int $proto)
Sets minimum supported protocol version for the SSL context
bool
setMaxProtoVersion(int $proto)
Sets max supported protocol version for the SSL context.
Details
__construct(int $method, array $options)
__construct.
Constructs an OpenSSL context for use with Event classes.
bool
setMinProtoVersion(int $proto)
Sets minimum supported protocol version for the SSL context
bool
setMaxProtoVersion(int $proto)
Sets max supported protocol version for the SSL context.