diff options
author | maurerpe <junk4me46806@yahoo.com> | 2014-08-14 17:43:55 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-08-15 10:54:14 -0400 |
commit | a7a8e3186a21c15132cd8fb6c141afcf25a1fb74 (patch) | |
tree | 0734706c768fda1ced03c826f65af752c8c8b90e /src/configure.in | |
parent | fefd465614f11f374f5ff183e6eb6cbc1b550de5 (diff) | |
download | krb5-a7a8e3186a21c15132cd8fb6c141afcf25a1fb74.zip krb5-a7a8e3186a21c15132cd8fb6c141afcf25a1fb74.tar.gz krb5-a7a8e3186a21c15132cd8fb6c141afcf25a1fb74.tar.bz2 |
Autodetect OpenSSL CMS for LibreSSL compatibility
LibreSSL currently does not support CMS, so checking for CMS via
OPENSSL_VERSION_NUMBER isn't reliable. Detect CMS support via
autoconf instead.
[ghudson@mit.edu: clarified commit message; minor style changes]
ticket: 7993 (new)
target_version: 1.13
tags: pullup
Diffstat (limited to 'src/configure.in')
-rw-r--r-- | src/configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in index 621f105..58e6e54 100644 --- a/src/configure.in +++ b/src/configure.in @@ -242,6 +242,9 @@ case "$withval" in builtin|openssl) AC_CHECK_LIB(crypto, PKCS7_get_signer_info, PKINIT_CRYPTO_IMPL_LIBS=-lcrypto) PKINIT_CRYPTO_IMPL=openssl + AC_CHECK_LIB(crypto, CMS_get0_content, + [AC_DEFINE([HAVE_OPENSSL_CMS], 1, + [Define if OpenSSL supports cms.])]) ;; nss) if test "${PKINIT_CRYPTO_IMPL_CFLAGS+set}" != set; then |