summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/o_fips.c
diff options
context:
space:
mode:
authorbeck <>2024-04-10 14:51:02 +0000
committerbeck <>2024-04-10 14:51:02 +0000
commit28391ee6892093e7875a30c2bc0924a7bbcb17ea (patch)
tree1de2e3788fdb529f8ab9454147625167504e92c8 /src/lib/libcrypto/o_fips.c
parentdd303cf95a55e7ed2d56234a22f99bc1f0e08dfe (diff)
downloadopenbsd-28391ee6892093e7875a30c2bc0924a7bbcb17ea.tar.gz
openbsd-28391ee6892093e7875a30c2bc0924a7bbcb17ea.tar.bz2
openbsd-28391ee6892093e7875a30c2bc0924a7bbcb17ea.zip
Finish Hiding symbols in crypto.h
crypto.h already had the symbols not hidden behind LIBRESSL_INTERNAL hidden - This now picks up the reset of them marking them as LCRYPTO_UNUSED, and removes the LIBRESSL_INTERNAL guard. These symbols will now be hidden, but if we use them inside the library in a namespaced build we will get a deprecation warning. use outside the library will be as with any other hidden symbol, so fine. ok tb@
Diffstat (limited to 'src/lib/libcrypto/o_fips.c')
-rw-r--r--src/lib/libcrypto/o_fips.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/o_fips.c b/src/lib/libcrypto/o_fips.c
index b1487e3be3..b0190b18e6 100644
--- a/src/lib/libcrypto/o_fips.c
+++ b/src/lib/libcrypto/o_fips.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: o_fips.c,v 1.6 2021/10/23 13:57:00 schwarze Exp $ */ 1/* $OpenBSD: o_fips.c,v 1.7 2024/04/10 14:51:02 beck Exp $ */
2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL 2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
3 * project 2011. 3 * project 2011.
4 */ 4 */
@@ -65,6 +65,7 @@ FIPS_mode(void)
65{ 65{
66 return 0; 66 return 0;
67} 67}
68LCRYPTO_ALIAS(FIPS_mode);
68 69
69int 70int
70FIPS_mode_set(int r) 71FIPS_mode_set(int r)
@@ -74,3 +75,4 @@ FIPS_mode_set(int r)
74 CRYPTOerror(CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); 75 CRYPTOerror(CRYPTO_R_FIPS_MODE_NOT_SUPPORTED);
75 return 0; 76 return 0;
76} 77}
78LCRYPTO_ALIAS(FIPS_mode_set);