components/openssl: SSL load verify data from itself structure when "new"

This commit is contained in:
dongheng
2016-09-22 16:41:51 +08:00
parent fa6f03f77f
commit f796b4e58e
5 changed files with 28 additions and 6 deletions

View File

@@ -282,6 +282,9 @@ SSL *SSL_new(SSL_CTX *ctx)
ssl->version = ctx->version;
ssl->options = ctx->options;
ssl->cert = ctx->cert;
ssl->client_CA = ctx->client_CA;
ret = SSL_METHOD_CALL(new, ssl);
if (ret)
SSL_RET(failed2, "ssl_new\n");