summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r--src/lib/libcrypto/x509/x509_vpm.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c
index c92e65936f..2b06718aec 100644
--- a/src/lib/libcrypto/x509/x509_vpm.c
+++ b/src/lib/libcrypto/x509/x509_vpm.c
@@ -74,7 +74,7 @@ static void x509_verify_param_zero(X509_VERIFY_PARAM *param)
74 param->name = NULL; 74 param->name = NULL;
75 param->purpose = 0; 75 param->purpose = 0;
76 param->trust = 0; 76 param->trust = 0;
77 param->inh_flags = X509_VP_FLAG_DEFAULT; 77 param->inh_flags = 0;
78 param->flags = 0; 78 param->flags = 0;
79 param->depth = -1; 79 param->depth = -1;
80 if (param->policies) 80 if (param->policies)
@@ -320,11 +320,21 @@ static const X509_VERIFY_PARAM default_table[] = {
320 0, /* flags */ 320 0, /* flags */
321 0, /* purpose */ 321 0, /* purpose */
322 0, /* trust */ 322 0, /* trust */
323 9, /* depth */ 323 100, /* depth */
324 NULL /* policies */ 324 NULL /* policies */
325 }, 325 },
326 { 326 {
327 "pkcs7", /* SSL/TLS client parameters */ 327 "pkcs7", /* S/MIME signing parameters */
328 0, /* Check time */
329 0, /* internal flags */
330 0, /* flags */
331 X509_PURPOSE_SMIME_SIGN, /* purpose */
332 X509_TRUST_EMAIL, /* trust */
333 -1, /* depth */
334 NULL /* policies */
335 },
336 {
337 "smime_sign", /* S/MIME signing parameters */
328 0, /* Check time */ 338 0, /* Check time */
329 0, /* internal flags */ 339 0, /* internal flags */
330 0, /* flags */ 340 0, /* flags */