mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
OpenSSL's legacy provider module and engines need to link to libcrypto.so, as it provides some of the actual implementations of legacy routines. This is a little tricky due to build order issues. Introduce a small hack (LIBCRYPTO_WITHOUT_SUBDIRS) that builds libcrypto.so in its usual early phase without any OpenSSL provider modules or engines. This is intended to restore the test suite; a future change should remove the hack and replace it with a better approach. PR: 254853, 273528 Discussed with: Folks at EuroBSDCon in Coimbra Sponsored by: The FreeBSD Foundation (cherry picked from commit 1a18383a52bc373e316d224cef1298debf6f7e25)
35 lines
914 B
Makefile
35 lines
914 B
Makefile
|
|
SHLIB_NAME?= legacy.so
|
|
LIBADD= crypto
|
|
|
|
SRCS+= legacyprov.c prov_running.c
|
|
|
|
# ciphers
|
|
SRCS+= ciphercommon.c ciphercommon_hw.c ciphercommon_block.c \
|
|
ciphercommon_gcm.c ciphercommon_gcm_hw.c \
|
|
ciphercommon_ccm.c ciphercommon_ccm_hw.c
|
|
SRCS+= cipher_desx.c cipher_desx_hw.c cipher_des.c cipher_des_hw.c
|
|
SRCS+= cipher_tdes_common.c
|
|
SRCS+= cipher_blowfish.c cipher_blowfish_hw.c
|
|
SRCS+= cipher_cast5.c cipher_cast5_hw.c
|
|
SRCS+= cipher_rc2.c cipher_rc2_hw.c
|
|
SRCS+= cipher_rc4.c cipher_rc4_hw.c
|
|
SRCS+= cipher_rc4_hmac_md5.c cipher_rc4_hmac_md5_hw.c
|
|
SRCS+= cipher_seed.c cipher_seed_hw.c
|
|
|
|
# digests
|
|
SRCS+= digestcommon.c
|
|
SRCS+= md4_prov.c wp_prov.c ripemd_prov.c
|
|
|
|
# kdfs
|
|
SRCS+= pbkdf1.c
|
|
|
|
# ssl
|
|
SRCS+= record/tls_pad.c
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.PATH: ${LCRYPTO_SRC}/providers/implementations/ciphers \
|
|
${LCRYPTO_SRC}/providers/implementations/digests \
|
|
${LCRYPTO_SRC}/providers/implementations/kdfs \
|
|
${LCRYPTO_SRC}/ssl
|