diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2022-11-14 17:48:51 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2022-11-14 17:48:51 +0000 |
commit | 58b82cd1d98eb5f7e3014e2fee8b30dfee47377a (patch) | |
tree | d924db60a74b5514366879a7bed381fafb378db8 /lib/libcrypto/x509/x509_v3.c | |
parent | 145950abb055c598cc449ab172ab992639c51c58 (diff) |
Hide public symbols in libcrypto/x509 .c files
ok tb@
Diffstat (limited to 'lib/libcrypto/x509/x509_v3.c')
-rw-r--r-- | lib/libcrypto/x509/x509_v3.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509_v3.c b/lib/libcrypto/x509/x509_v3.c index 9aefb8d99df..4f66524f511 100644 --- a/lib/libcrypto/x509/x509_v3.c +++ b/lib/libcrypto/x509/x509_v3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_v3.c,v 1.18 2021/11/01 20:53:08 tb Exp $ */ +/* $OpenBSD: x509_v3.c,v 1.19 2022/11/14 17:48:50 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -75,6 +75,7 @@ X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x) return (0); return (sk_X509_EXTENSION_num(x)); } +LCRYPTO_ALIAS(X509v3_get_ext_count) int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos) @@ -86,6 +87,7 @@ X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos) return (-2); return (X509v3_get_ext_by_OBJ(x, obj, lastpos)); } +LCRYPTO_ALIAS(X509v3_get_ext_by_NID) int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, @@ -107,6 +109,7 @@ X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, } return (-1); } +LCRYPTO_ALIAS(X509v3_get_ext_by_OBJ) int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, @@ -129,6 +132,7 @@ X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, } return (-1); } +LCRYPTO_ALIAS(X509v3_get_ext_by_critical) X509_EXTENSION * X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc) @@ -138,6 +142,7 @@ X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc) else return sk_X509_EXTENSION_value(x, loc); } +LCRYPTO_ALIAS(X509v3_get_ext) X509_EXTENSION * X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc) @@ -149,6 +154,7 @@ X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc) ret = sk_X509_EXTENSION_delete(x, loc); return (ret); } +LCRYPTO_ALIAS(X509v3_delete_ext) STACK_OF(X509_EXTENSION) * X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, X509_EXTENSION *ex, int loc) @@ -191,6 +197,7 @@ err2: sk_X509_EXTENSION_free(sk); return (NULL); } +LCRYPTO_ALIAS(X509v3_add_ext) X509_EXTENSION * X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, int crit, @@ -209,6 +216,7 @@ X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, int crit, ASN1_OBJECT_free(obj); return (ret); } +LCRYPTO_ALIAS(X509_EXTENSION_create_by_NID) X509_EXTENSION * X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, const ASN1_OBJECT *obj, @@ -240,6 +248,7 @@ err: X509_EXTENSION_free(ret); return (NULL); } +LCRYPTO_ALIAS(X509_EXTENSION_create_by_OBJ) int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj) @@ -250,6 +259,7 @@ X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj) ex->object = OBJ_dup(obj); return ex->object != NULL; } +LCRYPTO_ALIAS(X509_EXTENSION_set_object) int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit) @@ -259,6 +269,7 @@ X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit) ex->critical = (crit) ? 0xFF : -1; return (1); } +LCRYPTO_ALIAS(X509_EXTENSION_set_critical) int X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data) @@ -272,6 +283,7 @@ X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data) return (0); return (1); } +LCRYPTO_ALIAS(X509_EXTENSION_set_data) ASN1_OBJECT * X509_EXTENSION_get_object(X509_EXTENSION *ex) @@ -280,6 +292,7 @@ X509_EXTENSION_get_object(X509_EXTENSION *ex) return (NULL); return (ex->object); } +LCRYPTO_ALIAS(X509_EXTENSION_get_object) ASN1_OCTET_STRING * X509_EXTENSION_get_data(X509_EXTENSION *ex) @@ -288,6 +301,7 @@ X509_EXTENSION_get_data(X509_EXTENSION *ex) return (NULL); return (ex->value); } +LCRYPTO_ALIAS(X509_EXTENSION_get_data) int X509_EXTENSION_get_critical(const X509_EXTENSION *ex) @@ -298,3 +312,4 @@ X509_EXTENSION_get_critical(const X509_EXTENSION *ex) return 1; return 0; } +LCRYPTO_ALIAS(X509_EXTENSION_get_critical) |