Client Certificate Callback
The client certificate callback is invoked when a server requests a client certificate. It is useful when a client must choose which certificate to send back to the server. The certificate and private key to be sent are returned through the callback argument list. The callback is set with:
 
RWSecureSocketContext::setClientCertificateCallback();
The signature of the callback function is:
 
extern “C” int client_cert_cb(SSL* ssl, X509** cert, EVP_PKEY** pkey);
The ssl parameter is the ssl connection. The cert and pkey parameters are used to return certificate and private key pointers to the server.
This function should return 1 to send the certificate and private key to the server. Otherwise it should return 0.
For more information, see the description of SSL_CTX_set_client_cert_cb() in the OpenSSL reference manual.