projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae26848
)
Fix from HEAD.
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 9 Jul 2006 12:05:10 +0000
(12:05 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 9 Jul 2006 12:05:10 +0000
(12:05 +0000)
crypto/pkcs7/pk7_smime.c
patch
|
blob
|
history
diff --git
a/crypto/pkcs7/pk7_smime.c
b/crypto/pkcs7/pk7_smime.c
index 99a0d63f38f54b154c25d49be28bab1d7abf8d32..dd3966b07494c80427ac4028a80fa5e942587f54 100644
(file)
--- a/
crypto/pkcs7/pk7_smime.c
+++ b/
crypto/pkcs7/pk7_smime.c
@@
-97,6
+97,8
@@
PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
PKCS7_add_certificate(p7, sk_X509_value(certs, i));
}
+ if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1);
+
if(!(p7bio = PKCS7_dataInit(p7, NULL))) {
PKCS7err(PKCS7_F_PKCS7_SIGN,ERR_R_MALLOC_FAILURE);
return NULL;
@@
-133,7
+135,6
@@
PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
}
}
- if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1);
if (!PKCS7_dataFinal(p7,p7bio)) {
PKCS7err(PKCS7_F_PKCS7_SIGN,PKCS7_R_PKCS7_DATASIGN);