diff options
| author | beck <> | 2024-07-08 16:24:22 +0000 |
|---|---|---|
| committer | beck <> | 2024-07-08 16:24:22 +0000 |
| commit | 1a028405d9273f34c544f9f13321c6313cc407bd (patch) | |
| tree | eab340e43f1cb73482e9362c8bdf2bba9de8e1d5 /src/lib/libcrypto | |
| parent | 4b24fdbbea79c7bdfd9dbbdf4bf6884bdd5158d1 (diff) | |
| download | openbsd-1a028405d9273f34c544f9f13321c6313cc407bd.tar.gz openbsd-1a028405d9273f34c544f9f13321c6313cc407bd.tar.bz2 openbsd-1a028405d9273f34c544f9f13321c6313cc407bd.zip | |
Hide global _it symbols in asn1t.h
ok tb@
Diffstat (limited to 'src/lib/libcrypto')
| -rw-r--r-- | src/lib/libcrypto/Symbols.namespace | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1t.h | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_typ.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_bignum.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/hidden/openssl/asn1t.h | 7 |
6 files changed, 20 insertions, 8 deletions
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace index 36d9a25725..0b8e1f91f2 100644 --- a/src/lib/libcrypto/Symbols.namespace +++ b/src/lib/libcrypto/Symbols.namespace | |||
| @@ -3322,3 +3322,8 @@ _libre_PKCS7_ENCRYPT_it | |||
| 3322 | _libre_PKCS7_it | 3322 | _libre_PKCS7_it |
| 3323 | _libre_PKCS7_ATTR_SIGN_it | 3323 | _libre_PKCS7_ATTR_SIGN_it |
| 3324 | _libre_PKCS7_ATTR_VERIFY_it | 3324 | _libre_PKCS7_ATTR_VERIFY_it |
| 3325 | _libre_ASN1_SEQUENCE_it | ||
| 3326 | _libre_CBIGNUM_it | ||
| 3327 | _libre_BIGNUM_it | ||
| 3328 | _libre_LONG_it | ||
| 3329 | _libre_ZLONG_it | ||
diff --git a/src/lib/libcrypto/asn1/asn1t.h b/src/lib/libcrypto/asn1/asn1t.h index 4d79f82ec7..22cde48669 100644 --- a/src/lib/libcrypto/asn1/asn1t.h +++ b/src/lib/libcrypto/asn1/asn1t.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1t.h,v 1.23 2023/07/28 10:00:10 tb Exp $ */ | 1 | /* $OpenBSD: asn1t.h,v 1.24 2024/07/08 16:24:22 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -885,10 +885,7 @@ extern const ASN1_ITEM ASN1_SEQUENCE_it; | |||
| 885 | extern const ASN1_ITEM BIGNUM_it; | 885 | extern const ASN1_ITEM BIGNUM_it; |
| 886 | extern const ASN1_ITEM LONG_it; | 886 | extern const ASN1_ITEM LONG_it; |
| 887 | extern const ASN1_ITEM ZLONG_it; | 887 | extern const ASN1_ITEM ZLONG_it; |
| 888 | |||
| 889 | #ifndef LIBRESSL_INTERNAL | ||
| 890 | extern const ASN1_ITEM CBIGNUM_it; | 888 | extern const ASN1_ITEM CBIGNUM_it; |
| 891 | #endif | ||
| 892 | 889 | ||
| 893 | DECLARE_STACK_OF(ASN1_VALUE) | 890 | DECLARE_STACK_OF(ASN1_VALUE) |
| 894 | 891 | ||
diff --git a/src/lib/libcrypto/asn1/tasn_typ.c b/src/lib/libcrypto/asn1/tasn_typ.c index 488d8ff44d..0f7fcb0e03 100644 --- a/src/lib/libcrypto/asn1/tasn_typ.c +++ b/src/lib/libcrypto/asn1/tasn_typ.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_typ.c,v 1.19 2024/07/08 14:52:31 beck Exp $ */ | 1 | /* $OpenBSD: tasn_typ.c,v 1.20 2024/07/08 16:24:22 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -487,6 +487,7 @@ const ASN1_ITEM ASN1_SEQUENCE_it = { | |||
| 487 | .utype = V_ASN1_SEQUENCE, | 487 | .utype = V_ASN1_SEQUENCE, |
| 488 | .sname = "ASN1_SEQUENCE", | 488 | .sname = "ASN1_SEQUENCE", |
| 489 | }; | 489 | }; |
| 490 | LCRYPTO_ALIAS(ASN1_SEQUENCE_it); | ||
| 490 | 491 | ||
| 491 | 492 | ||
| 492 | /* Multistring types */ | 493 | /* Multistring types */ |
diff --git a/src/lib/libcrypto/asn1/x_bignum.c b/src/lib/libcrypto/asn1/x_bignum.c index 35b30da5b6..3e265b9cbc 100644 --- a/src/lib/libcrypto/asn1/x_bignum.c +++ b/src/lib/libcrypto/asn1/x_bignum.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_bignum.c,v 1.14 2024/05/17 02:47:21 tb Exp $ */ | 1 | /* $OpenBSD: x_bignum.c,v 1.15 2024/07/08 16:24:22 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -99,6 +99,7 @@ const ASN1_ITEM BIGNUM_it = { | |||
| 99 | .size = 0, | 99 | .size = 0, |
| 100 | .sname = "BIGNUM", | 100 | .sname = "BIGNUM", |
| 101 | }; | 101 | }; |
| 102 | LCRYPTO_ALIAS(BIGNUM_it); | ||
| 102 | 103 | ||
| 103 | const ASN1_ITEM CBIGNUM_it = { | 104 | const ASN1_ITEM CBIGNUM_it = { |
| 104 | .itype = ASN1_ITYPE_PRIMITIVE, | 105 | .itype = ASN1_ITYPE_PRIMITIVE, |
| @@ -109,6 +110,7 @@ const ASN1_ITEM CBIGNUM_it = { | |||
| 109 | .size = 0, | 110 | .size = 0, |
| 110 | .sname = "BIGNUM", | 111 | .sname = "BIGNUM", |
| 111 | }; | 112 | }; |
| 113 | LCRYPTO_ALIAS(CBIGNUM_it); | ||
| 112 | 114 | ||
| 113 | static int | 115 | static int |
| 114 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 116 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |
diff --git a/src/lib/libcrypto/asn1/x_long.c b/src/lib/libcrypto/asn1/x_long.c index 01a0811e7e..5e673f4521 100644 --- a/src/lib/libcrypto/asn1/x_long.c +++ b/src/lib/libcrypto/asn1/x_long.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_long.c,v 1.20 2024/05/17 02:49:21 tb Exp $ */ | 1 | /* $OpenBSD: x_long.c,v 1.21 2024/07/08 16:24:22 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -101,6 +101,7 @@ const ASN1_ITEM LONG_it = { | |||
| 101 | .size = ASN1_LONG_UNDEF, | 101 | .size = ASN1_LONG_UNDEF, |
| 102 | .sname = "LONG", | 102 | .sname = "LONG", |
| 103 | }; | 103 | }; |
| 104 | LCRYPTO_ALIAS(LONG_it); | ||
| 104 | 105 | ||
| 105 | const ASN1_ITEM ZLONG_it = { | 106 | const ASN1_ITEM ZLONG_it = { |
| 106 | .itype = ASN1_ITYPE_PRIMITIVE, | 107 | .itype = ASN1_ITYPE_PRIMITIVE, |
| @@ -111,6 +112,7 @@ const ASN1_ITEM ZLONG_it = { | |||
| 111 | .size = 0, | 112 | .size = 0, |
| 112 | .sname = "ZLONG", | 113 | .sname = "ZLONG", |
| 113 | }; | 114 | }; |
| 115 | LCRYPTO_ALIAS(ZLONG_it); | ||
| 114 | 116 | ||
| 115 | static void | 117 | static void |
| 116 | long_get(ASN1_VALUE **pval, long *out_val) | 118 | long_get(ASN1_VALUE **pval, long *out_val) |
diff --git a/src/lib/libcrypto/hidden/openssl/asn1t.h b/src/lib/libcrypto/hidden/openssl/asn1t.h index 666dea564c..59f99baf75 100644 --- a/src/lib/libcrypto/hidden/openssl/asn1t.h +++ b/src/lib/libcrypto/hidden/openssl/asn1t.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1t.h,v 1.3 2023/07/28 10:00:10 tb Exp $ */ | 1 | /* $OpenBSD: asn1t.h,v 1.4 2024/07/08 16:24:22 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -29,5 +29,10 @@ LCRYPTO_USED(ASN1_item_ex_new); | |||
| 29 | LCRYPTO_USED(ASN1_item_ex_free); | 29 | LCRYPTO_USED(ASN1_item_ex_free); |
| 30 | LCRYPTO_USED(ASN1_item_ex_d2i); | 30 | LCRYPTO_USED(ASN1_item_ex_d2i); |
| 31 | LCRYPTO_USED(ASN1_item_ex_i2d); | 31 | LCRYPTO_USED(ASN1_item_ex_i2d); |
| 32 | extern LCRYPTO_USED(ASN1_SEQUENCE_it); | ||
| 33 | extern LCRYPTO_USED(BIGNUM_it); | ||
| 34 | extern LCRYPTO_USED(LONG_it); | ||
| 35 | extern LCRYPTO_USED(ZLONG_it); | ||
| 36 | extern LCRYPTO_UNUSED(CBIGNUM_it); | ||
| 32 | 37 | ||
| 33 | #endif /* _LIBCRYPTO_ASN1T_H */ | 38 | #endif /* _LIBCRYPTO_ASN1T_H */ |
