This commit is contained in:
Dr. Stephen Henson 2006-07-09 12:07:22 +00:00
parent 65a82ef6d7
commit eb499b2854

View File

@ -127,10 +127,11 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
}
}
if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1);
if (flags & PKCS7_STREAM)
return p7;
if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1);
if (!(p7bio = PKCS7_dataInit(p7, NULL))) {
PKCS7err(PKCS7_F_PKCS7_SIGN,ERR_R_MALLOC_FAILURE);