summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/Symbols.namespace5
-rw-r--r--src/lib/libcrypto/asn1/asn1t.h5
-rw-r--r--src/lib/libcrypto/asn1/tasn_typ.c3
-rw-r--r--src/lib/libcrypto/asn1/x_bignum.c4
-rw-r--r--src/lib/libcrypto/asn1/x_long.c4
-rw-r--r--src/lib/libcrypto/hidden/openssl/asn1t.h7
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;
885extern const ASN1_ITEM BIGNUM_it; 885extern const ASN1_ITEM BIGNUM_it;
886extern const ASN1_ITEM LONG_it; 886extern const ASN1_ITEM LONG_it;
887extern const ASN1_ITEM ZLONG_it; 887extern const ASN1_ITEM ZLONG_it;
888
889#ifndef LIBRESSL_INTERNAL
890extern const ASN1_ITEM CBIGNUM_it; 888extern const ASN1_ITEM CBIGNUM_it;
891#endif
892 889
893DECLARE_STACK_OF(ASN1_VALUE) 890DECLARE_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};
490LCRYPTO_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};
102LCRYPTO_ALIAS(BIGNUM_it);
102 103
103const ASN1_ITEM CBIGNUM_it = { 104const 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};
113LCRYPTO_ALIAS(CBIGNUM_it);
112 114
113static int 115static int
114bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) 116bn_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};
104LCRYPTO_ALIAS(LONG_it);
104 105
105const ASN1_ITEM ZLONG_it = { 106const 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};
115LCRYPTO_ALIAS(ZLONG_it);
114 116
115static void 117static void
116long_get(ASN1_VALUE **pval, long *out_val) 118long_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);
29LCRYPTO_USED(ASN1_item_ex_free); 29LCRYPTO_USED(ASN1_item_ex_free);
30LCRYPTO_USED(ASN1_item_ex_d2i); 30LCRYPTO_USED(ASN1_item_ex_d2i);
31LCRYPTO_USED(ASN1_item_ex_i2d); 31LCRYPTO_USED(ASN1_item_ex_i2d);
32extern LCRYPTO_USED(ASN1_SEQUENCE_it);
33extern LCRYPTO_USED(BIGNUM_it);
34extern LCRYPTO_USED(LONG_it);
35extern LCRYPTO_USED(ZLONG_it);
36extern LCRYPTO_UNUSED(CBIGNUM_it);
32 37
33#endif /* _LIBCRYPTO_ASN1T_H */ 38#endif /* _LIBCRYPTO_ASN1T_H */