components/openssl: add empty fucntion to get peer certification and fix ref overflow

This commit is contained in:
dongheng
2016-09-22 17:20:07 +08:00
parent f796b4e58e
commit 18787fd4fc
4 changed files with 22 additions and 8 deletions
+2 -2
View File
@@ -177,7 +177,7 @@ int SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx,
if (!ret)
SSL_RET(failed2, "SSL_CTX_use_PrivateKey\n");
ctx->cert->pkey->ref++;
ctx->cert->pkey->ref = 1;
return 1;
@@ -216,7 +216,7 @@ int SSL_use_PrivateKey_ASN1(int type, SSL *ssl,
if (!ret)
SSL_RET(failed2, "SSL_CTX_use_PrivateKey\n");
ssl->cert->pkey->ref++;
ssl->cert->pkey->ref = 1;
return 1;