From: beck Date: Mon, 8 Jul 2024 17:11:05 +0000 (+0000) Subject: Hide global _it symbols in dsa.h X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=019a55e8f98ec3ac544d2ddf9e0b1a4ff8310a61;p=openbsd Hide global _it symbols in dsa.h ok tb@ --- diff --git a/lib/libcrypto/Symbols.namespace b/lib/libcrypto/Symbols.namespace index d704fd7cf8e..32c1729904a 100644 --- a/lib/libcrypto/Symbols.namespace +++ b/lib/libcrypto/Symbols.namespace @@ -3331,6 +3331,9 @@ _libre_RSAPublicKey_it _libre_RSAPrivateKey_it _libre_RSA_PSS_PARAMS_it _libre_RSA_OAEP_PARAMS_it +_libre_DSAPublicKey_it +_libre_DSAPrivateKey_it +_libre_DSAparams_it _libre_RSAPublicKey_it _libre_RSAPrivateKey_it _libre_RSA_PSS_PARAMS_it diff --git a/lib/libcrypto/dsa/dsa_asn1.c b/lib/libcrypto/dsa/dsa_asn1.c index cdd113a0b32..de6ec461956 100644 --- a/lib/libcrypto/dsa/dsa_asn1.c +++ b/lib/libcrypto/dsa/dsa_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_asn1.c,v 1.32 2024/04/15 15:49:37 tb Exp $ */ +/* $OpenBSD: dsa_asn1.c,v 1.33 2024/07/08 17:11:05 beck Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -239,6 +239,7 @@ const ASN1_ITEM DSAPrivateKey_it = { .size = sizeof(DSA), .sname = "DSA", }; +LCRYPTO_ALIAS(DSAPrivateKey_it); DSA * @@ -297,6 +298,7 @@ const ASN1_ITEM DSAparams_it = { .size = sizeof(DSA), .sname = "DSA", }; +LCRYPTO_ALIAS(DSAparams_it); DSA * @@ -390,6 +392,7 @@ const ASN1_ITEM DSAPublicKey_it = { .size = sizeof(DSA), .sname = "DSA", }; +LCRYPTO_ALIAS(DSAPublicKey_it); DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **in, long len) diff --git a/lib/libcrypto/hidden/openssl/dsa.h b/lib/libcrypto/hidden/openssl/dsa.h index 40597abb639..c00c0af6df5 100644 --- a/lib/libcrypto/hidden/openssl/dsa.h +++ b/lib/libcrypto/hidden/openssl/dsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa.h,v 1.2 2024/03/02 09:33:14 tb Exp $ */ +/* $OpenBSD: dsa.h,v 1.3 2024/07/08 17:11:05 beck Exp $ */ /* * Copyright (c) 2023 Bob Beck * @@ -89,5 +89,10 @@ LCRYPTO_USED(DSA_meth_set1_name); LCRYPTO_USED(DSA_meth_set_sign); LCRYPTO_USED(DSA_meth_set_finish); LCRYPTO_USED(ERR_load_DSA_strings); +#if defined(LIBRESSL_NAMESPACE) +extern LCRYPTO_USED(DSAPublicKey_it); +extern LCRYPTO_USED(DSAPrivateKey_it); +extern LCRYPTO_USED(DSAparams_it); +#endif #endif /* _LIBCRYPTO_DSA_H */