in platform/posix/transport/src/openssl_posix.c [390:417]
static int32_t setClientCertificate( SSL_CTX * pSslContext,
const char * pClientCertPath )
{
int32_t sslStatus = -1;
assert( pSslContext != NULL );
assert( pClientCertPath != NULL );
#if ( LIBRARY_LOG_LEVEL == LOG_DEBUG )
logPath( pClientCertPath, CLIENT_CERT_LABEL );
#endif
/* Import the client certificate. */
sslStatus = SSL_CTX_use_certificate_chain_file( pSslContext, pClientCertPath );
if( sslStatus != 1 )
{
LogError( ( "SSL_CTX_use_certificate_chain_file failed to import "
"client certificate at %s.",
pClientCertPath ) );
}
else
{
LogDebug( ( "Successfully imported client certificate." ) );
}
return sslStatus;
}