提交 e815d301 编写于 作者: G Geoff Thorpe

Change DH_up() -> DH_up_ref()

上级 dc2a33d6
...@@ -252,7 +252,7 @@ int EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) ...@@ -252,7 +252,7 @@ int EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key)
{ {
int ret = EVP_PKEY_assign_DH(pkey, key); int ret = EVP_PKEY_assign_DH(pkey, key);
if(ret) if(ret)
DH_up(key); DH_up_ref(key);
return ret; return ret;
} }
...@@ -262,7 +262,7 @@ DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey) ...@@ -262,7 +262,7 @@ DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey)
EVPerr(EVP_F_EVP_PKEY_GET1_DH, EVP_R_EXPECTING_A_DH_KEY); EVPerr(EVP_F_EVP_PKEY_GET1_DH, EVP_R_EXPECTING_A_DH_KEY);
return NULL; return NULL;
} }
DH_up(pkey->pkey.dh); DH_up_ref(pkey->pkey.dh);
return pkey->pkey.dh; return pkey->pkey.dh;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册