diff options
| author | jsing <> | 2015-09-30 18:21:50 +0000 |
|---|---|---|
| committer | jsing <> | 2015-09-30 18:21:50 +0000 |
| commit | 555bb33dc9c76e32d2066b5520aa5eabf3b1b761 (patch) | |
| tree | ae08bf833033a42f43abaceb2ab28ac0be502fb3 /src | |
| parent | 19f8db457572080e997c229267930d64b582b2ce (diff) | |
| download | openbsd-555bb33dc9c76e32d2066b5520aa5eabf3b1b761.tar.gz openbsd-555bb33dc9c76e32d2066b5520aa5eabf3b1b761.tar.bz2 openbsd-555bb33dc9c76e32d2066b5520aa5eabf3b1b761.zip | |
Replace M_ASN1_IA5STRING_(new|free) with ASN1_IA5STRING_(new|free). Same
with one s/M_ASN1_VISIBLESTRING_new/ASN1_VISIBLESTRING_new/.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_alt.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_cpols.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_ia5.c | 6 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/x509v3/v3_alt.c | 6 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/x509v3/v3_cpols.c | 6 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/x509v3/v3_ia5.c | 6 |
6 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_alt.c b/src/lib/libcrypto/x509v3/v3_alt.c index 4b3755e4e7..75c68d3cdb 100644 --- a/src/lib/libcrypto/x509v3/v3_alt.c +++ b/src/lib/libcrypto/x509v3/v3_alt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_alt.c,v 1.24 2015/07/29 16:13:48 jsing Exp $ */ | 1 | /* $OpenBSD: v3_alt.c,v 1.25 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. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -439,7 +439,7 @@ copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p) | |||
| 439 | 439 | ||
| 440 | err: | 440 | err: |
| 441 | GENERAL_NAME_free(gen); | 441 | GENERAL_NAME_free(gen); |
| 442 | M_ASN1_IA5STRING_free(email); | 442 | ASN1_IA5STRING_free(email); |
| 443 | return 0; | 443 | return 0; |
| 444 | } | 444 | } |
| 445 | 445 | ||
| @@ -557,7 +557,7 @@ a2i_GENERAL_NAME(GENERAL_NAME *out, const X509V3_EXT_METHOD *method, | |||
| 557 | } | 557 | } |
| 558 | 558 | ||
| 559 | if (is_string) { | 559 | if (is_string) { |
| 560 | if (!(gen->d.ia5 = M_ASN1_IA5STRING_new()) || | 560 | if (!(gen->d.ia5 = ASN1_IA5STRING_new()) || |
| 561 | !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value, | 561 | !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value, |
| 562 | strlen(value))) { | 562 | strlen(value))) { |
| 563 | X509V3err(X509V3_F_A2I_GENERAL_NAME, | 563 | X509V3err(X509V3_F_A2I_GENERAL_NAME, |
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 | } |
diff --git a/src/lib/libcrypto/x509v3/v3_ia5.c b/src/lib/libcrypto/x509v3/v3_ia5.c index 62f40aaff9..20e44ec2b1 100644 --- a/src/lib/libcrypto/x509v3/v3_ia5.c +++ b/src/lib/libcrypto/x509v3/v3_ia5.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_ia5.c,v 1.14 2015/07/29 16:13:48 jsing Exp $ */ | 1 | /* $OpenBSD: v3_ia5.c,v 1.15 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 | */ |
| @@ -224,11 +224,11 @@ s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str) | |||
| 224 | X509V3_R_INVALID_NULL_ARGUMENT); | 224 | X509V3_R_INVALID_NULL_ARGUMENT); |
| 225 | return NULL; | 225 | return NULL; |
| 226 | } | 226 | } |
| 227 | if (!(ia5 = M_ASN1_IA5STRING_new())) | 227 | if (!(ia5 = ASN1_IA5STRING_new())) |
| 228 | goto err; | 228 | goto err; |
| 229 | if (!ASN1_STRING_set((ASN1_STRING *)ia5, (unsigned char*)str, | 229 | if (!ASN1_STRING_set((ASN1_STRING *)ia5, (unsigned char*)str, |
| 230 | strlen(str))) { | 230 | strlen(str))) { |
| 231 | M_ASN1_IA5STRING_free(ia5); | 231 | ASN1_IA5STRING_free(ia5); |
| 232 | goto err; | 232 | goto err; |
| 233 | } | 233 | } |
| 234 | return ia5; | 234 | return ia5; |
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_alt.c b/src/lib/libssl/src/crypto/x509v3/v3_alt.c index 4b3755e4e7..75c68d3cdb 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_alt.c +++ b/src/lib/libssl/src/crypto/x509v3/v3_alt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_alt.c,v 1.24 2015/07/29 16:13:48 jsing Exp $ */ | 1 | /* $OpenBSD: v3_alt.c,v 1.25 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. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -439,7 +439,7 @@ copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p) | |||
| 439 | 439 | ||
| 440 | err: | 440 | err: |
| 441 | GENERAL_NAME_free(gen); | 441 | GENERAL_NAME_free(gen); |
| 442 | M_ASN1_IA5STRING_free(email); | 442 | ASN1_IA5STRING_free(email); |
| 443 | return 0; | 443 | return 0; |
| 444 | } | 444 | } |
| 445 | 445 | ||
| @@ -557,7 +557,7 @@ a2i_GENERAL_NAME(GENERAL_NAME *out, const X509V3_EXT_METHOD *method, | |||
| 557 | } | 557 | } |
| 558 | 558 | ||
| 559 | if (is_string) { | 559 | if (is_string) { |
| 560 | if (!(gen->d.ia5 = M_ASN1_IA5STRING_new()) || | 560 | if (!(gen->d.ia5 = ASN1_IA5STRING_new()) || |
| 561 | !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value, | 561 | !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value, |
| 562 | strlen(value))) { | 562 | strlen(value))) { |
| 563 | X509V3err(X509V3_F_A2I_GENERAL_NAME, | 563 | X509V3err(X509V3_F_A2I_GENERAL_NAME, |
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_cpols.c b/src/lib/libssl/src/crypto/x509v3/v3_cpols.c index cea82afde9..5ca001ad55 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_cpols.c +++ b/src/lib/libssl/src/crypto/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 | } |
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_ia5.c b/src/lib/libssl/src/crypto/x509v3/v3_ia5.c index 62f40aaff9..20e44ec2b1 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_ia5.c +++ b/src/lib/libssl/src/crypto/x509v3/v3_ia5.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_ia5.c,v 1.14 2015/07/29 16:13:48 jsing Exp $ */ | 1 | /* $OpenBSD: v3_ia5.c,v 1.15 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 | */ |
| @@ -224,11 +224,11 @@ s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str) | |||
| 224 | X509V3_R_INVALID_NULL_ARGUMENT); | 224 | X509V3_R_INVALID_NULL_ARGUMENT); |
| 225 | return NULL; | 225 | return NULL; |
| 226 | } | 226 | } |
| 227 | if (!(ia5 = M_ASN1_IA5STRING_new())) | 227 | if (!(ia5 = ASN1_IA5STRING_new())) |
| 228 | goto err; | 228 | goto err; |
| 229 | if (!ASN1_STRING_set((ASN1_STRING *)ia5, (unsigned char*)str, | 229 | if (!ASN1_STRING_set((ASN1_STRING *)ia5, (unsigned char*)str, |
| 230 | strlen(str))) { | 230 | strlen(str))) { |
| 231 | M_ASN1_IA5STRING_free(ia5); | 231 | ASN1_IA5STRING_free(ia5); |
| 232 | goto err; | 232 | goto err; |
| 233 | } | 233 | } |
| 234 | return ia5; | 234 | return ia5; |
