diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-09-05 15:27:57 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-09-05 15:27:57 +0200 |
commit | 34216c04229ffaa564adb204cea87bc6b5ed4fb1 (patch) | |
tree | 0fa6e17df83bdd9d7014c0558a8bd846f255933f /crypto/pkcs7/pk7_smime.c | |
parent | Mention fix in bio_lib.c. (diff) | |
download | openssl-34216c04229ffaa564adb204cea87bc6b5ed4fb1.tar.xz openssl-34216c04229ffaa564adb204cea87bc6b5ed4fb1.zip |
Keep a not of original encoding in certificate requests.
Add new option to PKCS7_sign to exclude S/MIME capabilities.
Diffstat (limited to 'crypto/pkcs7/pk7_smime.c')
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 225fc63da0..19e0b28a39 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -109,6 +109,8 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, V_ASN1_OBJECT, OBJ_nid2obj(NID_pkcs7_data)); /* Add SMIMECapabilities */ + if(!(flags & PKCS7_NOSMIMECAP)) + { if(!(smcap = sk_X509_ALGOR_new(NULL))) { PKCS7err(PKCS7_F_PKCS7_SIGN,ERR_R_MALLOC_FAILURE); return NULL; @@ -128,6 +130,7 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, #endif PKCS7_add_attrib_smimecap (si, smcap); sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free); + } } if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1); |