提交 c209a358 编写于 作者: N Nils Larsch

remove dead code

上级 dd2b6750
......@@ -163,7 +163,6 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert,
int flags)
{
PKCS7_SIGNER_INFO *si = NULL;
int si_free = 1;
STACK_OF(X509_ALGOR) *smcap = NULL;
if(!X509_check_private_key(signcert, pkey))
{
......@@ -179,10 +178,6 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert,
return NULL;
}
/* si is now part of p7 so don't free it on error */
si_free = 0;
if(!(flags & PKCS7_NOCERTS))
{
if (!PKCS7_add_certificate(p7, signcert))
......@@ -229,8 +224,6 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert,
err:
if (smcap)
sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free);
if (si && si_free)
PKCS7_SIGNER_INFO_free(si);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册