diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_cpols.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_cpols.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_cpols.c b/src/lib/libcrypto/x509v3/v3_cpols.c index b4d4883545..466713b50d 100644 --- a/src/lib/libcrypto/x509v3/v3_cpols.c +++ b/src/lib/libcrypto/x509v3/v3_cpols.c | |||
@@ -169,7 +169,7 @@ static POLICYINFO *policy_section(X509V3_CTX *ctx, | |||
169 | if(!sk_POLICYQUALINFO_push(pol->qualifiers, qual)) | 169 | if(!sk_POLICYQUALINFO_push(pol->qualifiers, qual)) |
170 | goto merr; | 170 | goto merr; |
171 | qual->pqualid = OBJ_nid2obj(NID_id_qt_cps); | 171 | qual->pqualid = OBJ_nid2obj(NID_id_qt_cps); |
172 | qual->d.cpsuri = ASN1_IA5STRING_new(); | 172 | qual->d.cpsuri = M_ASN1_IA5STRING_new(); |
173 | if(!ASN1_STRING_set(qual->d.cpsuri, cnf->value, | 173 | if(!ASN1_STRING_set(qual->d.cpsuri, cnf->value, |
174 | strlen(cnf->value))) goto merr; | 174 | strlen(cnf->value))) goto merr; |
175 | } else if(!name_cmp(cnf->name, "userNotice")) { | 175 | } else if(!name_cmp(cnf->name, "userNotice")) { |
@@ -229,7 +229,7 @@ static POLICYQUALINFO *notice_section(X509V3_CTX *ctx, | |||
229 | for(i = 0; i < sk_CONF_VALUE_num(unot); i++) { | 229 | for(i = 0; i < sk_CONF_VALUE_num(unot); i++) { |
230 | cnf = sk_CONF_VALUE_value(unot, i); | 230 | cnf = sk_CONF_VALUE_value(unot, i); |
231 | if(!strcmp(cnf->name, "explicitText")) { | 231 | if(!strcmp(cnf->name, "explicitText")) { |
232 | not->exptext = ASN1_VISIBLESTRING_new(); | 232 | not->exptext = M_ASN1_VISIBLESTRING_new(); |
233 | if(!ASN1_STRING_set(not->exptext, cnf->value, | 233 | if(!ASN1_STRING_set(not->exptext, cnf->value, |
234 | strlen(cnf->value))) goto merr; | 234 | strlen(cnf->value))) goto merr; |
235 | } else if(!strcmp(cnf->name, "organization")) { | 235 | } else if(!strcmp(cnf->name, "organization")) { |
@@ -238,8 +238,8 @@ static POLICYQUALINFO *notice_section(X509V3_CTX *ctx, | |||
238 | if(!(nref = NOTICEREF_new())) goto merr; | 238 | if(!(nref = NOTICEREF_new())) goto merr; |
239 | not->noticeref = nref; | 239 | not->noticeref = nref; |
240 | } else nref = not->noticeref; | 240 | } else nref = not->noticeref; |
241 | if(ia5org) nref->organization = ASN1_IA5STRING_new(); | 241 | if(ia5org) nref->organization = M_ASN1_IA5STRING_new(); |
242 | else nref->organization = ASN1_VISIBLESTRING_new(); | 242 | else nref->organization = M_ASN1_VISIBLESTRING_new(); |
243 | if(!ASN1_STRING_set(nref->organization, cnf->value, | 243 | if(!ASN1_STRING_set(nref->organization, cnf->value, |
244 | strlen(cnf->value))) goto merr; | 244 | strlen(cnf->value))) goto merr; |
245 | } else if(!strcmp(cnf->name, "noticeNumbers")) { | 245 | } else if(!strcmp(cnf->name, "noticeNumbers")) { |
@@ -538,7 +538,7 @@ void POLICYQUALINFO_free(POLICYQUALINFO *a) | |||
538 | if (a == NULL) return; | 538 | if (a == NULL) return; |
539 | switch(OBJ_obj2nid(a->pqualid)) { | 539 | switch(OBJ_obj2nid(a->pqualid)) { |
540 | case NID_id_qt_cps: | 540 | case NID_id_qt_cps: |
541 | ASN1_IA5STRING_free(a->d.cpsuri); | 541 | M_ASN1_IA5STRING_free(a->d.cpsuri); |
542 | break; | 542 | break; |
543 | 543 | ||
544 | case NID_id_qt_unotice: | 544 | case NID_id_qt_unotice: |
@@ -596,7 +596,7 @@ void USERNOTICE_free(USERNOTICE *a) | |||
596 | { | 596 | { |
597 | if (a == NULL) return; | 597 | if (a == NULL) return; |
598 | NOTICEREF_free(a->noticeref); | 598 | NOTICEREF_free(a->noticeref); |
599 | DISPLAYTEXT_free(a->exptext); | 599 | M_DISPLAYTEXT_free(a->exptext); |
600 | Free (a); | 600 | Free (a); |
601 | } | 601 | } |
602 | 602 | ||
@@ -646,7 +646,7 @@ NOTICEREF *d2i_NOTICEREF(NOTICEREF **a, unsigned char **pp,long length) | |||
646 | void NOTICEREF_free(NOTICEREF *a) | 646 | void NOTICEREF_free(NOTICEREF *a) |
647 | { | 647 | { |
648 | if (a == NULL) return; | 648 | if (a == NULL) return; |
649 | DISPLAYTEXT_free(a->organization); | 649 | M_DISPLAYTEXT_free(a->organization); |
650 | sk_pop_free(a->noticenos, ASN1_STRING_free); | 650 | sk_pop_free(a->noticenos, ASN1_STRING_free); |
651 | Free (a); | 651 | Free (a); |
652 | } | 652 | } |