diff options
author | jsing <> | 2015-02-09 16:03:11 +0000 |
---|---|---|
committer | jsing <> | 2015-02-09 16:03:11 +0000 |
commit | c67b08b466720c73bce5f5a0ee6d8ccf43683ae6 (patch) | |
tree | 450aac9231a21230a1a136407055b6264089d1b8 /src/lib/libcrypto/x509v3/v3_bcons.c | |
parent | 16f790d01f7a6fc6c94e2a033a67b80c8ec5291c (diff) | |
download | openbsd-c67b08b466720c73bce5f5a0ee6d8ccf43683ae6.tar.gz openbsd-c67b08b466720c73bce5f5a0ee6d8ccf43683ae6.tar.bz2 openbsd-c67b08b466720c73bce5f5a0ee6d8ccf43683ae6.zip |
Expand the IMPLEMENT_ASN1_FUNCTIONS macro so that the code is visible and
functions can be readily located.
Change has been scripted and the generated assembly only differs by changes
to line numbers.
Discussed with beck@ miod@ tedu@
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_bcons.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_bcons.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_bcons.c b/src/lib/libcrypto/x509v3/v3_bcons.c index 8e2632d379..fb3f6c7619 100644 --- a/src/lib/libcrypto/x509v3/v3_bcons.c +++ b/src/lib/libcrypto/x509v3/v3_bcons.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_bcons.c,v 1.10 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_bcons.c,v 1.11 2015/02/09 16:03:11 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 | */ |
@@ -86,7 +86,31 @@ ASN1_SEQUENCE(BASIC_CONSTRAINTS) = { | |||
86 | ASN1_OPT(BASIC_CONSTRAINTS, pathlen, ASN1_INTEGER) | 86 | ASN1_OPT(BASIC_CONSTRAINTS, pathlen, ASN1_INTEGER) |
87 | } ASN1_SEQUENCE_END(BASIC_CONSTRAINTS) | 87 | } ASN1_SEQUENCE_END(BASIC_CONSTRAINTS) |
88 | 88 | ||
89 | IMPLEMENT_ASN1_FUNCTIONS(BASIC_CONSTRAINTS) | 89 | |
90 | BASIC_CONSTRAINTS * | ||
91 | d2i_BASIC_CONSTRAINTS(BASIC_CONSTRAINTS **a, const unsigned char **in, long len) | ||
92 | { | ||
93 | return (BASIC_CONSTRAINTS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
94 | &BASIC_CONSTRAINTS_it); | ||
95 | } | ||
96 | |||
97 | int | ||
98 | i2d_BASIC_CONSTRAINTS(BASIC_CONSTRAINTS *a, unsigned char **out) | ||
99 | { | ||
100 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &BASIC_CONSTRAINTS_it); | ||
101 | } | ||
102 | |||
103 | BASIC_CONSTRAINTS * | ||
104 | BASIC_CONSTRAINTS_new(void) | ||
105 | { | ||
106 | return (BASIC_CONSTRAINTS *)ASN1_item_new(&BASIC_CONSTRAINTS_it); | ||
107 | } | ||
108 | |||
109 | void | ||
110 | BASIC_CONSTRAINTS_free(BASIC_CONSTRAINTS *a) | ||
111 | { | ||
112 | ASN1_item_free((ASN1_VALUE *)a, &BASIC_CONSTRAINTS_it); | ||
113 | } | ||
90 | 114 | ||
91 | 115 | ||
92 | static STACK_OF(CONF_VALUE) * | 116 | static STACK_OF(CONF_VALUE) * |