SSLHandshakeCallbacks

A collection of callbacks from the native OpenSSL code that are related to the SSL handshake initiated by SSL_do_handshake.

Members

Functions

clientCertificateRequested
void clientCertificateRequested(byte[] keyTypes, byte[][] asn1DerEncodedX500Principals)

Called on an SSL client when the server requests (or requires a certificate). The client can respond by using SSL_use_certificate and SSL_use_PrivateKey to set a certificate if has an appropriate one available, similar to how the server provides its certificate.

clientPSKKeyRequested
int clientPSKKeyRequested(string identityHint, byte[] identity, byte[] key)

Gets the key to be used in client mode for this connection in Pre-Shared Key (PSK) key exchange.

onNewSessionEstablished
void onNewSessionEstablished(long sslSessionNativePtr)

Called when a new session has been established and may be added to the session cache. The callee is responsible for incrementing the reference count on the returned session.

onSSLStateChange
void onSSLStateChange(int type, int val)

Called when SSL state changes. This could be handshake completion.

serverPSKKeyRequested
int serverPSKKeyRequested(string identityHint, string identity, byte[] key)

Gets the key to be used in server mode for this connection in Pre-Shared Key (PSK) key exchange.

serverSessionRequested
long serverSessionRequested(byte[] id)

Called for servers where TLS < 1.3 (TLS 1.3 uses session tickets rather than application session caches).

verifyCertificateChain
void verifyCertificateChain(byte[][] certificateChain, string authMethod)

Verify that the certificate chain is trusted.

Meta