summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lib.c')
-rw-r--r--src/lib/libcrypto/x509/x509_lib.c12
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}
88LCRYPTO_ALIAS(X509V3_EXT_add)
88 89
89static int 90static int
90ext_cmp(const X509V3_EXT_METHOD * const *a, const X509V3_EXT_METHOD * const *b) 91ext_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}
136LCRYPTO_ALIAS(X509V3_EXT_get_nid)
135 137
136const X509V3_EXT_METHOD * 138const X509V3_EXT_METHOD *
137X509V3_EXT_get(X509_EXTENSION *ext) 139X509V3_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}
147LCRYPTO_ALIAS(X509V3_EXT_get)
145 148
146int 149int
147X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist) 150X509V3_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}
157LCRYPTO_ALIAS(X509V3_EXT_add_list)
154 158
155int 159int
156X509V3_EXT_add_alias(int nid_to, int nid_from) 160X509V3_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}
182LCRYPTO_ALIAS(X509V3_EXT_add_alias)
178 183
179void 184void
180X509V3_EXT_cleanup(void) 185X509V3_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}
190LCRYPTO_ALIAS(X509V3_EXT_cleanup)
185 191
186static void 192static void
187ext_list_free(X509V3_EXT_METHOD *ext) 193ext_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}
208LCRYPTO_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}
226LCRYPTO_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}
292LCRYPTO_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}
374LCRYPTO_ALIAS(X509V3_add1_i2d)