diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-03-15 13:36:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-03-15 13:36:01 +0000 |
commit | 37afdc953e5cfc4559d33fea49168953be4c3a6e (patch) | |
tree | 91c0c65b05847f253acc1a1dcf5ff717788f6167 /crypto/cms | |
parent | 044855e14678c7779827d2f9772a6782c673f91a (diff) |
Don't force S/MIME signing purpose: allow it to be overridden by store
settings.
Don't set default values in X509_VERIFY_PARAM_new(): it stops parameters
being inherited properly.
Diffstat (limited to 'crypto/cms')
-rw-r--r-- | crypto/cms/cms_smime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_smime.c b/crypto/cms/cms_smime.c index b9463f9abb..167daf5915 100644 --- a/crypto/cms/cms_smime.c +++ b/crypto/cms/cms_smime.c @@ -298,7 +298,7 @@ static int cms_signerinfo_verify_cert(CMS_SignerInfo *si, CMS_R_STORE_INIT_ERROR); goto err; } - X509_STORE_CTX_set_purpose(&ctx, X509_PURPOSE_SMIME_SIGN); + X509_STORE_CTX_set_default(&cert_ctx, "smime_sign"); if (crls) X509_STORE_CTX_set0_crls(&ctx, crls); |