OpenSSLContext

SSLContext implementation.

Constructors

this
this(Kind kind)
Undocumented in source.

Members

Functions

enableDH
void enableDH(int bits)
Undocumented in source. Be warned that the author may not have intended to support it.
enableECDH
void enableECDH()
Undocumented in source. Be warned that the author may not have intended to support it.
setCertificate
void setCertificate(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
setCipherList
void setCipherList(string[] ciphers)
Undocumented in source. Be warned that the author may not have intended to support it.
setFlags
void setFlags(int flags)
Undocumented in source. Be warned that the author may not have intended to support it.
setMaximumVersion
void setMaximumVersion(SSLVersion v)
Undocumented in source. Be warned that the author may not have intended to support it.
setMinimumVersion
void setMinimumVersion(SSLVersion v)
Undocumented in source. Be warned that the author may not have intended to support it.
setPeerRootCertificate
void setPeerRootCertificate(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
setPeerVerify
void setPeerVerify(Verify verify)
Undocumented in source. Be warned that the author may not have intended to support it.
setPreSharedKey
void setPreSharedKey(string id, const(ubyte)[] key)
Undocumented in source. Be warned that the author may not have intended to support it.
setPrivateKey
void setPrivateKey(string path)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

cipherListTLS13Delimiter
auto cipherListTLS13Delimiter;

OpenSSL uses different APIs to specify the cipher list for TLSv1.2 and below and to specify the ciphersuites for TLSv1.3. When calling setCipherList, use this value to delimit them: values before cipherListTLS13Delimiter will be specified via SSL_CTX_set_cipher_list (for TLSv1.2 and older), and those after cipherListTLS13Delimiter will be specified via SSL_CTX_set_ciphersuites (for TLSv1.3).

Variables

kind
Kind kind;

Client or server.

psk
const(ubyte)[] psk;
pskID
string pskID;

PSK (Pre-Shared Key) configuration.

sslCtx
SSL_CTX* sslCtx;

The C OpenSSL context object.

verify
Verify verify;

Inherited Members

From SSLContext

Kind
enum Kind

Context kind.

Verify
enum Verify

Whether to verify the peer certificate.

setCipherList
void setCipherList(string[] ciphers)
Undocumented in source.
enableDH
void enableDH(int bits)
Undocumented in source.
enableECDH
void enableECDH()
Undocumented in source.
setCertificate
void setCertificate(string path)
Undocumented in source.
setPrivateKey
void setPrivateKey(string path)
Undocumented in source.
setPreSharedKey
void setPreSharedKey(string id, const(ubyte)[] key)
Undocumented in source.
setPeerVerify
void setPeerVerify(Verify verify)
Undocumented in source.
setPeerRootCertificate
void setPeerRootCertificate(string path)
Undocumented in source.
setFlags
void setFlags(int )
Undocumented in source.
setMinimumVersion
void setMinimumVersion(SSLVersion )
Undocumented in source.
setMaximumVersion
void setMaximumVersion(SSLVersion )
Undocumented in source.

Meta