mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
components/openssl: add SSL and SSL context verify mode selection
This commit is contained in:
@@ -138,9 +138,6 @@ int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x)
|
||||
*/
|
||||
int SSL_add_client_CA(SSL *ssl, X509 *x)
|
||||
{
|
||||
int ret;
|
||||
int ssl_ret;
|
||||
|
||||
SSL_ASSERT(ssl);
|
||||
SSL_ASSERT(x);
|
||||
|
||||
@@ -151,13 +148,7 @@ int SSL_add_client_CA(SSL *ssl, X509 *x)
|
||||
|
||||
ssl->client_CA = x;
|
||||
|
||||
ssl_ret = SSL_METHOD_CALL(reload_crt, ssl);
|
||||
if (ssl_ret)
|
||||
ret = 0;
|
||||
else
|
||||
ret = 1;
|
||||
|
||||
return ret;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user