diff options
| author | jsing <> | 2016-12-30 15:54:49 +0000 |
|---|---|---|
| committer | jsing <> | 2016-12-30 15:54:49 +0000 |
| commit | 34bdec04311ee3fb8f658406df37d4da910d1630 (patch) | |
| tree | 853b9e5ebf0a8736f0e5ed0a4f77b796ee89ce19 /src/lib/libcrypto/x509v3/v3_int.c | |
| parent | 19f5bc5369a8920072dcf66ff2aa6e1b7cc62b85 (diff) | |
| download | openbsd-34bdec04311ee3fb8f658406df37d4da910d1630.tar.gz openbsd-34bdec04311ee3fb8f658406df37d4da910d1630.tar.bz2 openbsd-34bdec04311ee3fb8f658406df37d4da910d1630.zip | |
Expand ASN1_ITEM_ref and ASN1_ITEM_ptr macros - no change in generated
assembly. Of particular interest is ASN1_ITEM_ptr which does nothing
and resulted in code like:
if (method->it)
ASN1_ITEM_free(..., ASN1_ITEM_ptr(method->it));
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_int.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_int.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_int.c b/src/lib/libcrypto/x509v3/v3_int.c index bd059b7269..f8a5e7df92 100644 --- a/src/lib/libcrypto/x509v3/v3_int.c +++ b/src/lib/libcrypto/x509v3/v3_int.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_int.c,v 1.10 2015/07/29 16:13:48 jsing Exp $ */ | 1 | /* $OpenBSD: v3_int.c,v 1.11 2016/12/30 15:54:49 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 | */ |
| @@ -63,7 +63,7 @@ | |||
| 63 | const X509V3_EXT_METHOD v3_crl_num = { | 63 | const X509V3_EXT_METHOD v3_crl_num = { |
| 64 | .ext_nid = NID_crl_number, | 64 | .ext_nid = NID_crl_number, |
| 65 | .ext_flags = 0, | 65 | .ext_flags = 0, |
| 66 | .it = ASN1_ITEM_ref(ASN1_INTEGER), | 66 | .it = &ASN1_INTEGER_it, |
| 67 | .ext_new = NULL, | 67 | .ext_new = NULL, |
| 68 | .ext_free = NULL, | 68 | .ext_free = NULL, |
| 69 | .d2i = NULL, | 69 | .d2i = NULL, |
| @@ -80,7 +80,7 @@ const X509V3_EXT_METHOD v3_crl_num = { | |||
| 80 | const X509V3_EXT_METHOD v3_delta_crl = { | 80 | const X509V3_EXT_METHOD v3_delta_crl = { |
| 81 | .ext_nid = NID_delta_crl, | 81 | .ext_nid = NID_delta_crl, |
| 82 | .ext_flags = 0, | 82 | .ext_flags = 0, |
| 83 | .it = ASN1_ITEM_ref(ASN1_INTEGER), | 83 | .it = &ASN1_INTEGER_it, |
| 84 | .ext_new = NULL, | 84 | .ext_new = NULL, |
| 85 | .ext_free = NULL, | 85 | .ext_free = NULL, |
| 86 | .d2i = NULL, | 86 | .d2i = NULL, |
| @@ -101,7 +101,7 @@ s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, char *value) | |||
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | const X509V3_EXT_METHOD v3_inhibit_anyp = { | 103 | const X509V3_EXT_METHOD v3_inhibit_anyp = { |
| 104 | NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER), | 104 | NID_inhibit_any_policy, 0, &ASN1_INTEGER_it, |
| 105 | 0, 0, 0, 0, | 105 | 0, 0, 0, 0, |
| 106 | (X509V3_EXT_I2S)i2s_ASN1_INTEGER, | 106 | (X509V3_EXT_I2S)i2s_ASN1_INTEGER, |
| 107 | (X509V3_EXT_S2I)s2i_asn1_int, | 107 | (X509V3_EXT_S2I)s2i_asn1_int, |
