summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_x509a.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/x_x509a.c')
-rw-r--r--src/lib/libcrypto/asn1/x_x509a.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_x509a.c b/src/lib/libcrypto/asn1/x_x509a.c
index 2b6fe7fcec..aaa22d1351 100644
--- a/src/lib/libcrypto/asn1/x_x509a.c
+++ b/src/lib/libcrypto/asn1/x_x509a.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_x509a.c,v 1.21 2023/07/07 19:37:53 beck Exp $ */ 1/* $OpenBSD: x_x509a.c,v 1.22 2024/04/09 13:55:02 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 */
@@ -172,6 +172,7 @@ X509_alias_set1(X509 *x, const unsigned char *name, int len)
172 return 0; 172 return 0;
173 return ASN1_STRING_set(aux->alias, name, len); 173 return ASN1_STRING_set(aux->alias, name, len);
174} 174}
175LCRYPTO_ALIAS(X509_alias_set1);
175 176
176int 177int
177X509_keyid_set1(X509 *x, const unsigned char *id, int len) 178X509_keyid_set1(X509 *x, const unsigned char *id, int len)
@@ -190,6 +191,7 @@ X509_keyid_set1(X509 *x, const unsigned char *id, int len)
190 return 0; 191 return 0;
191 return ASN1_STRING_set(aux->keyid, id, len); 192 return ASN1_STRING_set(aux->keyid, id, len);
192} 193}
194LCRYPTO_ALIAS(X509_keyid_set1);
193 195
194unsigned char * 196unsigned char *
195X509_alias_get0(X509 *x, int *len) 197X509_alias_get0(X509 *x, int *len)
@@ -200,6 +202,7 @@ X509_alias_get0(X509 *x, int *len)
200 *len = x->aux->alias->length; 202 *len = x->aux->alias->length;
201 return x->aux->alias->data; 203 return x->aux->alias->data;
202} 204}
205LCRYPTO_ALIAS(X509_alias_get0);
203 206
204unsigned char * 207unsigned char *
205X509_keyid_get0(X509 *x, int *len) 208X509_keyid_get0(X509 *x, int *len)
@@ -210,6 +213,7 @@ X509_keyid_get0(X509 *x, int *len)
210 *len = x->aux->keyid->length; 213 *len = x->aux->keyid->length;
211 return x->aux->keyid->data; 214 return x->aux->keyid->data;
212} 215}
216LCRYPTO_ALIAS(X509_keyid_get0);
213 217
214int 218int
215X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj) 219X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj)
@@ -232,6 +236,7 @@ X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj)
232 ASN1_OBJECT_free(objtmp); 236 ASN1_OBJECT_free(objtmp);
233 return 0; 237 return 0;
234} 238}
239LCRYPTO_ALIAS(X509_add1_trust_object);
235 240
236int 241int
237X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj) 242X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj)
@@ -254,6 +259,7 @@ X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj)
254 ASN1_OBJECT_free(objtmp); 259 ASN1_OBJECT_free(objtmp);
255 return 0; 260 return 0;
256} 261}
262LCRYPTO_ALIAS(X509_add1_reject_object);
257 263
258void 264void
259X509_trust_clear(X509 *x) 265X509_trust_clear(X509 *x)
@@ -263,6 +269,7 @@ X509_trust_clear(X509 *x)
263 x->aux->trust = NULL; 269 x->aux->trust = NULL;
264 } 270 }
265} 271}
272LCRYPTO_ALIAS(X509_trust_clear);
266 273
267void 274void
268X509_reject_clear(X509 *x) 275X509_reject_clear(X509 *x)
@@ -272,3 +279,4 @@ X509_reject_clear(X509 *x)
272 x->aux->reject = NULL; 279 x->aux->reject = NULL;
273 } 280 }
274} 281}
282LCRYPTO_ALIAS(X509_reject_clear);