From fe1f9475409f252b6ca2dccc71187868e168c74b Mon Sep 17 00:00:00 2001 From: John Thacker Date: Thu, 26 Nov 2020 01:10:34 -0500 Subject: macOS: Enable PKCS #11 support when building with macos-setup.sh Enable PKCS #11 support in macOS builds with macos-setup.sh (already supported on macOS via Homebrew and on all other OSes with GnuTLS 3.4 or greater) by installing p11-kit (and its dependency libtasn1) and building nettle and GnuTLS against it. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5893baa28b..89d50309da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1236,11 +1236,11 @@ add_custom_target(dist ) if(GNUTLS_FOUND AND NOT GNUTLS_VERSION VERSION_LESS "3.4.0") - # While all Linux and Windows builds have PKCS #11 support enabled, - # macos-setup.sh explicitly disables it using --without-p11-kit. + # Calculating public keys from PKCS #11 private keys requires GnuTLS + # 3.4.0 or greater. # - # Require at least GnuTLS 3.4.0 such that public keys can be calculated - # from PKCS #11 private keys. + # Check that the support is present in case GnuTLS was compiled + # --without-p11-kit as macos-setup.sh did until recently. include(CheckSymbolExists) cmake_push_check_state() if(WIN32) -- cgit v1.2.3