TLSCredentialsManagerTest

Undocumented in source.

Constructors

this
this(X509Certificate server_cert, X509Certificate ca_cert, PrivateKey server_key)
Undocumented in source.

Members

Functions

attemptSrp
bool attemptSrp(string type, string context)
Undocumented in source. Be warned that the author may not have intended to support it.
certChain
Vector!X509Certificate certChain(Vector!string cert_key_types, string type, string )
Undocumented in source. Be warned that the author may not have intended to support it.
certChainSingleType
Vector!X509Certificate certChainSingleType(string cert_key_type, string type, string context)
Undocumented in source. Be warned that the author may not have intended to support it.
hasPsk
bool hasPsk()
Undocumented in source. Be warned that the author may not have intended to support it.
privateKeyFor
PrivateKey privateKeyFor(X509Certificate , string , string )
Undocumented in source. Be warned that the author may not have intended to support it.
psk
SymmetricKey psk(string type, string context, string identity)
Undocumented in source. Be warned that the author may not have intended to support it.
pskIdentity
string pskIdentity(string type, string context, string identity_hint)
Undocumented in source. Be warned that the author may not have intended to support it.
pskIdentityHint
string pskIdentityHint(string type, string context)
Undocumented in source. Be warned that the author may not have intended to support it.
srpIdentifier
string srpIdentifier(string type, string context)
Undocumented in source. Be warned that the author may not have intended to support it.
srpPassword
string srpPassword(string type, string context, string identifier)
Undocumented in source. Be warned that the author may not have intended to support it.
srpVerifier
bool srpVerifier(string type, string context, string identifier, string group_name, BigInt verifier, Vector!ubyte salt, bool generate_fake_on_unknown)
Undocumented in source. Be warned that the author may not have intended to support it.
trustedCertificateAuthorities
Vector!CertificateStore trustedCertificateAuthorities(string , string )
Undocumented in source. Be warned that the author may not have intended to support it.
verifyCertificateChain
void verifyCertificateChain(string type, string purported_hostname, Vector!X509Certificate cert_chain)
m_ca_cert
X509Certificate m_ca_cert;
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_key
Unique!PrivateKey m_key;
Undocumented in source.
m_server_cert
X509Certificate m_server_cert;
Undocumented in source.
m_stores
Vector!CertificateStore m_stores;
Undocumented in source.

Inherited Members

From TLSCredentialsManager

trustedCertificateAuthorities
Vector!CertificateStore trustedCertificateAuthorities(string type, string context)

Return a list of the certificates of CAs that we trust in this type/context.

verifyCertificateChain
void verifyCertificateChain(string type, string purported_hostname, Vector!X509Certificate cert_chain)

Check the certificate chain is valid up to a trusted root, and optionally (if hostname != "") that the hostname given is consistent with the leaf certificate.

certChain
Vector!X509Certificate certChain(Vector!string cert_key_types, string type, string context)
Vector!X509Certificate certChain(T cert_key_types, string type, string context)

Return a cert chain we can use, ordered from leaf to root, or else an empty vector.

certChainSingleType
Vector!X509Certificate certChainSingleType(string cert_key_type, string type, string context)

Return a cert chain we can use, ordered from leaf to root, or else an empty vector.

privateKeyFor
PrivateKey privateKeyFor(X509Certificate cert, string type, string context)
attemptSrp
bool attemptSrp(string type, string context)
srpIdentifier
string srpIdentifier(string type, string context)
srpPassword
string srpPassword(string type, string context, string identifier)
srpVerifier
bool srpVerifier(string type, string context, string identifier, string group_name, BigInt verifier, Vector!ubyte salt, bool generate_fake_on_unknown)

Retrieve SRP verifier parameters

pskIdentityHint
string pskIdentityHint(string type, string context)
pskIdentity
string pskIdentity(string type, string context, string identity_hint)
hasPsk
bool hasPsk()

Override and return true to signal PSK usage

channelPrivateKey
PrivateKey channelPrivateKey(string hostname)

In TLSClient, identifies this machine with the server

psk
SymmetricKey psk(string type, string context, string identity)

Meta