diff options
author | jsing <> | 2015-07-29 14:58:34 +0000 |
---|---|---|
committer | jsing <> | 2015-07-29 14:58:34 +0000 |
commit | 4b2596fb0f28cb59c8918b16cdae591454312175 (patch) | |
tree | ffda12d1155f37910342cc3f090b8425ad4cf03a /src/lib/libcrypto/x509v3 | |
parent | ef1330e743f37f67eea11df4f4993267e06531dd (diff) | |
download | openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.tar.gz openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.tar.bz2 openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.zip |
Expand obsolete M_ASN1.*(cmp|dup|print|set) macros - no change in generated
assembly.
ok bcook@
Diffstat (limited to 'src/lib/libcrypto/x509v3')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_akey.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_alt.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_prn.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_skey.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_sxnet.c | 8 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_akey.c b/src/lib/libcrypto/x509v3/v3_akey.c index d5b5f685af..2bf515cfdd 100644 --- a/src/lib/libcrypto/x509v3/v3_akey.c +++ b/src/lib/libcrypto/x509v3/v3_akey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_akey.c,v 1.13 2014/10/05 18:26:22 miod Exp $ */ | 1 | /* $OpenBSD: v3_akey.c,v 1.14 2015/07/29 14:58:34 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 | */ |
@@ -169,7 +169,7 @@ v2i_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | |||
169 | 169 | ||
170 | if ((issuer && !ikeyid) || (issuer == 2)) { | 170 | if ((issuer && !ikeyid) || (issuer == 2)) { |
171 | isname = X509_NAME_dup(X509_get_issuer_name(cert)); | 171 | isname = X509_NAME_dup(X509_get_issuer_name(cert)); |
172 | serial = M_ASN1_INTEGER_dup(X509_get_serialNumber(cert)); | 172 | serial = ASN1_STRING_dup(X509_get_serialNumber(cert)); |
173 | if (!isname || !serial) { | 173 | if (!isname || !serial) { |
174 | X509V3err(X509V3_F_V2I_AUTHORITY_KEYID, | 174 | X509V3err(X509V3_F_V2I_AUTHORITY_KEYID, |
175 | X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS); | 175 | X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS); |
diff --git a/src/lib/libcrypto/x509v3/v3_alt.c b/src/lib/libcrypto/x509v3/v3_alt.c index 2592288bdb..5b0dae2af6 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.22 2014/10/28 05:46:56 miod Exp $ */ | 1 | /* $OpenBSD: v3_alt.c,v 1.23 2015/07/29 14:58:34 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 | */ |
@@ -390,7 +390,7 @@ copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p) | |||
390 | while ((i = X509_NAME_get_index_by_NID(nm, | 390 | while ((i = X509_NAME_get_index_by_NID(nm, |
391 | NID_pkcs9_emailAddress, i)) >= 0) { | 391 | NID_pkcs9_emailAddress, i)) >= 0) { |
392 | ne = X509_NAME_get_entry(nm, i); | 392 | ne = X509_NAME_get_entry(nm, i); |
393 | email = M_ASN1_IA5STRING_dup(X509_NAME_ENTRY_get_data(ne)); | 393 | email = ASN1_STRING_dup(X509_NAME_ENTRY_get_data(ne)); |
394 | if (move_p) { | 394 | if (move_p) { |
395 | X509_NAME_delete_entry(nm, i); | 395 | X509_NAME_delete_entry(nm, i); |
396 | X509_NAME_ENTRY_free(ne); | 396 | X509_NAME_ENTRY_free(ne); |
diff --git a/src/lib/libcrypto/x509v3/v3_prn.c b/src/lib/libcrypto/x509v3/v3_prn.c index 037d129c87..e2d8dd8c87 100644 --- a/src/lib/libcrypto/x509v3/v3_prn.c +++ b/src/lib/libcrypto/x509v3/v3_prn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_prn.c,v 1.17 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_prn.c,v 1.18 2015/07/29 14:58:34 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 | */ |
@@ -178,7 +178,7 @@ X509V3_extensions_print(BIO *bp, char *title, STACK_OF(X509_EXTENSION) *exts, | |||
178 | return 0; | 178 | return 0; |
179 | if (!X509V3_EXT_print(bp, ex, flag, indent + 4)) { | 179 | if (!X509V3_EXT_print(bp, ex, flag, indent + 4)) { |
180 | BIO_printf(bp, "%*s", indent + 4, ""); | 180 | BIO_printf(bp, "%*s", indent + 4, ""); |
181 | M_ASN1_OCTET_STRING_print(bp, ex->value); | 181 | ASN1_STRING_print(bp, ex->value); |
182 | } | 182 | } |
183 | if (BIO_write(bp, "\n",1) <= 0) | 183 | if (BIO_write(bp, "\n",1) <= 0) |
184 | return 0; | 184 | return 0; |
diff --git a/src/lib/libcrypto/x509v3/v3_skey.c b/src/lib/libcrypto/x509v3/v3_skey.c index ab2521f21a..1bcf8dacfb 100644 --- a/src/lib/libcrypto/x509v3/v3_skey.c +++ b/src/lib/libcrypto/x509v3/v3_skey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_skey.c,v 1.10 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_skey.c,v 1.11 2015/07/29 14:58:34 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 | */ |
@@ -138,7 +138,7 @@ s2i_skey_id(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str) | |||
138 | EVP_sha1(), NULL)) | 138 | EVP_sha1(), NULL)) |
139 | goto err; | 139 | goto err; |
140 | 140 | ||
141 | if (!M_ASN1_OCTET_STRING_set(oct, pkey_dig, diglen)) { | 141 | if (!ASN1_STRING_set(oct, pkey_dig, diglen)) { |
142 | X509V3err(X509V3_F_S2I_SKEY_ID, ERR_R_MALLOC_FAILURE); | 142 | X509V3err(X509V3_F_S2I_SKEY_ID, ERR_R_MALLOC_FAILURE); |
143 | goto err; | 143 | goto err; |
144 | } | 144 | } |
diff --git a/src/lib/libcrypto/x509v3/v3_sxnet.c b/src/lib/libcrypto/x509v3/v3_sxnet.c index d87dd34339..546b790782 100644 --- a/src/lib/libcrypto/x509v3/v3_sxnet.c +++ b/src/lib/libcrypto/x509v3/v3_sxnet.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_sxnet.c,v 1.14 2015/07/25 16:00:14 jsing Exp $ */ | 1 | /* $OpenBSD: v3_sxnet.c,v 1.15 2015/07/29 14:58:34 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 | */ |
@@ -211,7 +211,7 @@ sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, int indent) | |||
211 | tmp = i2s_ASN1_INTEGER(NULL, id->zone); | 211 | tmp = i2s_ASN1_INTEGER(NULL, id->zone); |
212 | BIO_printf(out, "\n%*sZone: %s, User: ", indent, "", tmp); | 212 | BIO_printf(out, "\n%*sZone: %s, User: ", indent, "", tmp); |
213 | free(tmp); | 213 | free(tmp); |
214 | M_ASN1_OCTET_STRING_print(out, id->user); | 214 | ASN1_STRING_print(out, id->user); |
215 | } | 215 | } |
216 | return 1; | 216 | return 1; |
217 | } | 217 | } |
@@ -316,7 +316,7 @@ SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *zone, char *user, int userlen) | |||
316 | if (userlen == -1) | 316 | if (userlen == -1) |
317 | userlen = strlen(user); | 317 | userlen = strlen(user); |
318 | 318 | ||
319 | if (!M_ASN1_OCTET_STRING_set(id->user, user, userlen)) | 319 | if (!ASN1_STRING_set(id->user, user, userlen)) |
320 | goto err; | 320 | goto err; |
321 | if (!sk_SXNETID_push(sx->ids, id)) | 321 | if (!sk_SXNETID_push(sx->ids, id)) |
322 | goto err; | 322 | goto err; |
@@ -372,7 +372,7 @@ SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone) | |||
372 | 372 | ||
373 | for (i = 0; i < sk_SXNETID_num(sx->ids); i++) { | 373 | for (i = 0; i < sk_SXNETID_num(sx->ids); i++) { |
374 | id = sk_SXNETID_value(sx->ids, i); | 374 | id = sk_SXNETID_value(sx->ids, i); |
375 | if (!M_ASN1_INTEGER_cmp(id->zone, zone)) | 375 | if (!ASN1_STRING_cmp(id->zone, zone)) |
376 | return id->user; | 376 | return id->user; |
377 | } | 377 | } |
378 | return NULL; | 378 | return NULL; |