mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 00:12:19 +01:00
adding WOLFSSL_NO_DH_GEN_PUB in the unlikely event it needs to be disabled; configure.ac: in --enable-linuxkm-lkcapi-register section, remove special-case handling for -DWOLFSSL_DH_GEN_PUB, and add support for --enable-linuxkm-lkcapi-register=all-kconfig, which disables registration of any algs that are disabled in the target kernel, and #errors if any algs or registrations are disabled or incompatible in libwolfssl but enabled in the target kernel (note, it does not #error for algorithms we don't currently shim/implement); linuxkm/lkcapi_glue.c: change default WOLFSSL_LINUXKM_LKCAPI_PRIORITY from 10000 to INT_MAX to make masking impossible; linuxkm/lkcapi*glue.c: move all remaining algorithm-specific gate setup into the respective algorithm family files, and in each family file, add LINUXKM_LKCAPI_REGISTER_ALL_KCONFIG logic to activate shims only if the corresponding algorithm is activated in the target kernel. linuxkm/lkcapi_sha_glue.c: fix -Wunuseds in wc_linuxkm_drbg_default_instance_registered() and wc_linuxkm_drbg_cleanup() when !LINUXKM_LKCAPI_REGISTER_HASH_DRBG_DEFAULT.