diff --git a/crypto/openssl/providers/fips.ld b/crypto/openssl/providers/fips.ld new file mode 100644 index 00000000000..1debaaa7ff6 --- /dev/null +++ b/crypto/openssl/providers/fips.ld @@ -0,0 +1,5 @@ +{ + global: + OSSL_provider_init; + local: *; +}; diff --git a/crypto/openssl/providers/legacy.ld b/crypto/openssl/providers/legacy.ld new file mode 100644 index 00000000000..1debaaa7ff6 --- /dev/null +++ b/crypto/openssl/providers/legacy.ld @@ -0,0 +1,5 @@ +{ + global: + OSSL_provider_init; + local: *; +}; diff --git a/secure/lib/libcrypto/modules/fips/Makefile b/secure/lib/libcrypto/modules/fips/Makefile index 8843cb9717c..ceaa57ab066 100644 --- a/secure/lib/libcrypto/modules/fips/Makefile +++ b/secure/lib/libcrypto/modules/fips/Makefile @@ -1,6 +1,8 @@ SHLIB_NAME?= fips.so +VERSION_MAP= ${SRCTOP}/crypto/openssl/providers/fips.ld + CFLAGS+= -DFIPS_MODULE SRCS+= fips_entry.c fipsprov.c self_test.c self_test_kats.c diff --git a/secure/lib/libcrypto/modules/legacy/Makefile b/secure/lib/libcrypto/modules/legacy/Makefile index a285d0b1148..e435c5aa2c4 100644 --- a/secure/lib/libcrypto/modules/legacy/Makefile +++ b/secure/lib/libcrypto/modules/legacy/Makefile @@ -2,6 +2,8 @@ SHLIB_NAME?= legacy.so LIBADD= crypto +VERSION_MAP= ${SRCTOP}/crypto/openssl/providers/legacy.ld + SRCS+= legacyprov.c prov_running.c # ciphers