summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_cpols.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_cpols.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_cpols.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_cpols.c b/src/lib/libcrypto/x509v3/v3_cpols.c
index cea82afde9..5ca001ad55 100644
--- a/src/lib/libcrypto/x509v3/v3_cpols.c
+++ b/src/lib/libcrypto/x509v3/v3_cpols.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_cpols.c,v 1.22 2015/07/29 16:13:48 jsing Exp $ */ 1/* $OpenBSD: v3_cpols.c,v 1.23 2015/09/30 18:21:50 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -497,7 +497,7 @@ policy_section(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *polstrs, int ia5org)
497 if ((nqual = POLICYQUALINFO_new()) == NULL) 497 if ((nqual = POLICYQUALINFO_new()) == NULL)
498 goto merr; 498 goto merr;
499 nqual->pqualid = OBJ_nid2obj(NID_id_qt_cps); 499 nqual->pqualid = OBJ_nid2obj(NID_id_qt_cps);
500 nqual->d.cpsuri = M_ASN1_IA5STRING_new(); 500 nqual->d.cpsuri = ASN1_IA5STRING_new();
501 if (nqual->d.cpsuri == NULL) 501 if (nqual->d.cpsuri == NULL)
502 goto merr; 502 goto merr;
503 if (ASN1_STRING_set(nqual->d.cpsuri, cnf->value, 503 if (ASN1_STRING_set(nqual->d.cpsuri, cnf->value,
@@ -583,7 +583,7 @@ notice_section(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *unot, int ia5org)
583 cnf = sk_CONF_VALUE_value(unot, i); 583 cnf = sk_CONF_VALUE_value(unot, i);
584 if (!strcmp(cnf->name, "explicitText")) { 584 if (!strcmp(cnf->name, "explicitText")) {
585 if (not->exptext == NULL) { 585 if (not->exptext == NULL) {
586 not->exptext = M_ASN1_VISIBLESTRING_new(); 586 not->exptext = ASN1_VISIBLESTRING_new();
587 if (not->exptext == NULL) 587 if (not->exptext == NULL)
588 goto merr; 588 goto merr;
589 } 589 }