diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lib.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_lib.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_lib.c b/src/lib/libcrypto/x509/x509_lib.c index e265d30f89..e209c055b6 100644 --- a/src/lib/libcrypto/x509/x509_lib.c +++ b/src/lib/libcrypto/x509/x509_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_lib.c,v 1.4 2022/07/24 21:41:29 tb Exp $ */ | 1 | /* $OpenBSD: x509_lib.c,v 1.5 2022/11/14 17:48:50 beck 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 | */ |
@@ -85,6 +85,7 @@ X509V3_EXT_add(X509V3_EXT_METHOD *ext) | |||
85 | } | 85 | } |
86 | return 1; | 86 | return 1; |
87 | } | 87 | } |
88 | LCRYPTO_ALIAS(X509V3_EXT_add) | ||
88 | 89 | ||
89 | static int | 90 | static int |
90 | ext_cmp(const X509V3_EXT_METHOD * const *a, const X509V3_EXT_METHOD * const *b) | 91 | ext_cmp(const X509V3_EXT_METHOD * const *a, const X509V3_EXT_METHOD * const *b) |
@@ -132,6 +133,7 @@ X509V3_EXT_get_nid(int nid) | |||
132 | return NULL; | 133 | return NULL; |
133 | return sk_X509V3_EXT_METHOD_value(ext_list, idx); | 134 | return sk_X509V3_EXT_METHOD_value(ext_list, idx); |
134 | } | 135 | } |
136 | LCRYPTO_ALIAS(X509V3_EXT_get_nid) | ||
135 | 137 | ||
136 | const X509V3_EXT_METHOD * | 138 | const X509V3_EXT_METHOD * |
137 | X509V3_EXT_get(X509_EXTENSION *ext) | 139 | X509V3_EXT_get(X509_EXTENSION *ext) |
@@ -142,6 +144,7 @@ X509V3_EXT_get(X509_EXTENSION *ext) | |||
142 | return NULL; | 144 | return NULL; |
143 | return X509V3_EXT_get_nid(nid); | 145 | return X509V3_EXT_get_nid(nid); |
144 | } | 146 | } |
147 | LCRYPTO_ALIAS(X509V3_EXT_get) | ||
145 | 148 | ||
146 | int | 149 | int |
147 | X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist) | 150 | X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist) |
@@ -151,6 +154,7 @@ X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist) | |||
151 | return 0; | 154 | return 0; |
152 | return 1; | 155 | return 1; |
153 | } | 156 | } |
157 | LCRYPTO_ALIAS(X509V3_EXT_add_list) | ||
154 | 158 | ||
155 | int | 159 | int |
156 | X509V3_EXT_add_alias(int nid_to, int nid_from) | 160 | X509V3_EXT_add_alias(int nid_to, int nid_from) |
@@ -175,6 +179,7 @@ X509V3_EXT_add_alias(int nid_to, int nid_from) | |||
175 | } | 179 | } |
176 | return 1; | 180 | return 1; |
177 | } | 181 | } |
182 | LCRYPTO_ALIAS(X509V3_EXT_add_alias) | ||
178 | 183 | ||
179 | void | 184 | void |
180 | X509V3_EXT_cleanup(void) | 185 | X509V3_EXT_cleanup(void) |
@@ -182,6 +187,7 @@ X509V3_EXT_cleanup(void) | |||
182 | sk_X509V3_EXT_METHOD_pop_free(ext_list, ext_list_free); | 187 | sk_X509V3_EXT_METHOD_pop_free(ext_list, ext_list_free); |
183 | ext_list = NULL; | 188 | ext_list = NULL; |
184 | } | 189 | } |
190 | LCRYPTO_ALIAS(X509V3_EXT_cleanup) | ||
185 | 191 | ||
186 | static void | 192 | static void |
187 | ext_list_free(X509V3_EXT_METHOD *ext) | 193 | ext_list_free(X509V3_EXT_METHOD *ext) |
@@ -199,6 +205,7 @@ X509V3_add_standard_extensions(void) | |||
199 | { | 205 | { |
200 | return 1; | 206 | return 1; |
201 | } | 207 | } |
208 | LCRYPTO_ALIAS(X509V3_add_standard_extensions) | ||
202 | 209 | ||
203 | /* Return an extension internal structure */ | 210 | /* Return an extension internal structure */ |
204 | 211 | ||
@@ -216,6 +223,7 @@ X509V3_EXT_d2i(X509_EXTENSION *ext) | |||
216 | method->it); | 223 | method->it); |
217 | return method->d2i(NULL, &p, ext->value->length); | 224 | return method->d2i(NULL, &p, ext->value->length); |
218 | } | 225 | } |
226 | LCRYPTO_ALIAS(X509V3_EXT_d2i) | ||
219 | 227 | ||
220 | /* Get critical flag and decoded version of extension from a NID. | 228 | /* Get critical flag and decoded version of extension from a NID. |
221 | * The "idx" variable returns the last found extension and can | 229 | * The "idx" variable returns the last found extension and can |
@@ -281,6 +289,7 @@ X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit, int *idx) | |||
281 | *crit = -1; | 289 | *crit = -1; |
282 | return NULL; | 290 | return NULL; |
283 | } | 291 | } |
292 | LCRYPTO_ALIAS(X509V3_get_d2i) | ||
284 | 293 | ||
285 | /* This function is a general extension append, replace and delete utility. | 294 | /* This function is a general extension append, replace and delete utility. |
286 | * The precise operation is governed by the 'flags' value. The 'crit' and | 295 | * The precise operation is governed by the 'flags' value. The 'crit' and |
@@ -362,3 +371,4 @@ err: | |||
362 | X509V3error(errcode); | 371 | X509V3error(errcode); |
363 | return 0; | 372 | return 0; |
364 | } | 373 | } |
374 | LCRYPTO_ALIAS(X509V3_add1_i2d) | ||