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.
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.

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.

Meta