diff options
author | Pierre Pronchery <pierre@freebsdfoundation.org> | 2023-06-30 17:20:31 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-07-05 20:00:54 +0000 |
commit | 4a3cc17e317212d46a70ff88fd67889f06468ed5 (patch) | |
tree | 587efde39d6148590b7fbb156511684cb8e3d787 /secure | |
parent | 7a991ecd1a260c2e2a4e37317f1f478723d60926 (diff) | |
download | src-4a3cc17e317212d46a70ff88fd67889f06468ed5.tar.gz src-4a3cc17e317212d46a70ff88fd67889f06468ed5.zip |
libcrypto: expand the common Makefile for providers
OpenSSL 3 supports a modular architecture, allowing different providers
to bring specific implementations of cryptographical algorithms. This
change adds mandatory source files to every provider.
Sponsored by: The FreeBSD Foundation
Pull Request: https://github.com/freebsd/freebsd-src/pull/787
Diffstat (limited to 'secure')
-rw-r--r-- | secure/lib/libcrypto/modules/Makefile.inc | 4 | ||||
-rw-r--r-- | secure/lib/libcrypto/modules/fips/Makefile | 3 | ||||
-rw-r--r-- | secure/lib/libcrypto/modules/legacy/Makefile | 6 |
3 files changed, 5 insertions, 8 deletions
diff --git a/secure/lib/libcrypto/modules/Makefile.inc b/secure/lib/libcrypto/modules/Makefile.inc index 9047c938ef1d..6e74ff36a9cf 100644 --- a/secure/lib/libcrypto/modules/Makefile.inc +++ b/secure/lib/libcrypto/modules/Makefile.inc @@ -9,7 +9,9 @@ CFLAGS+= -I${LCRYPTO_SRC}/include CFLAGS+= -I${LCRYPTO_SRC}/providers/common/include CFLAGS+= -I${LCRYPTO_SRC}/providers/implementations/include -.include <bsd.endian.mk> +# common +SRCS+= provider_err.c provider_ctx.c +SRCS+= provider_util.c .PATH: ${LCRYPTO_SRC}/providers \ ${LCRYPTO_SRC}/providers/common diff --git a/secure/lib/libcrypto/modules/fips/Makefile b/secure/lib/libcrypto/modules/fips/Makefile index 84123381bb1d..510d017d27ab 100644 --- a/secure/lib/libcrypto/modules/fips/Makefile +++ b/secure/lib/libcrypto/modules/fips/Makefile @@ -238,8 +238,7 @@ SRCS+= keccak1600.c .endif # common -SRCS+= provider_err.c provider_ctx.c -SRCS+= provider_util.c capabilities.c bio_prov.c digest_to_nid.c \ +SRCS+= capabilities.c bio_prov.c digest_to_nid.c \ securitycheck.c provider_seeding.c SRCS+= securitycheck_fips.c diff --git a/secure/lib/libcrypto/modules/legacy/Makefile b/secure/lib/libcrypto/modules/legacy/Makefile index 3eef2549d44f..c98ca9553e20 100644 --- a/secure/lib/libcrypto/modules/legacy/Makefile +++ b/secure/lib/libcrypto/modules/legacy/Makefile @@ -2,11 +2,7 @@ SHLIB_NAME?= legacy.so -SRCS= legacyprov.c prov_running.c - -# common -SRCS+= provider_err.c provider_ctx.c -SRCS+= provider_util.c +SRCS+= legacyprov.c prov_running.c # ciphers SRCS+= ciphercommon.c ciphercommon_hw.c ciphercommon_block.c \ |