diff options
author | John Thacker <johnthacker@gmail.com> | 2020-11-26 01:10:34 -0500 |
---|---|---|
committer | Jörg Mayer <jmghc@loplof.de> | 2020-12-02 07:55:42 +0000 |
commit | fe1f9475409f252b6ca2dccc71187868e168c74b (patch) | |
tree | ce3a25aa1da7189263aa822026df0bbfabb0809d /CMakeLists.txt | |
parent | e0403df086525f65f9912fb8e504458d15873381 (diff) |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
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) |