Skip to content

Commit

Permalink
libcrypto: expand the common Makefile for providers
Browse files Browse the repository at this point in the history
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:	freebsd/freebsd-src#787
  • Loading branch information
khorben authored and bsdjhb committed Sep 2, 2023
2 parents ec16ead + 0b27be5 commit 08aa1be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 3 additions & 1 deletion secure/lib/libcrypto/modules/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions secure/lib/libcrypto/modules/fips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 1 addition & 5 deletions secure/lib/libcrypto/modules/legacy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 08aa1be

Please sign in to comment.