mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
apple sectrust: add to features
It should be visible in the feature list that libcurl is build with Apple SecTrust enabled. Closes #19057
This commit is contained in:
parent
79553fb7c6
commit
c37ed9a11e
8 changed files with 30 additions and 9 deletions
|
|
@ -41,7 +41,10 @@ if test "x$OPT_APPLE_SECTRUST" = xyes; then
|
|||
],[
|
||||
build_for_apple="no"
|
||||
])
|
||||
if test "x$build_for_apple" != "xno"; then
|
||||
if test "x$build_for_apple" == "xno"; then
|
||||
AC_MSG_ERROR([Apple SecTrust can only be enabled for Apple OS targets])
|
||||
fi
|
||||
if test "x$OPENSSL_ENABLED" == "x1" -o "x$GNUTLS_ENABLED" == "x1"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(USE_APPLE_SECTRUST, 1, [enable Apple OS certificate validation])
|
||||
APPLE_SECTRUST_ENABLED=1
|
||||
|
|
@ -49,7 +52,7 @@ if test "x$OPT_APPLE_SECTRUST" = xyes; then
|
|||
LDFLAGS="$LDFLAGS $APPLE_SECTRUST_LDFLAGS"
|
||||
LDFLAGSPC="$LDFLAGSPC $APPLE_SECTRUST_LDFLAGS"
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Apple SecTrust is only supported for OpenSSL/GnuTLS builds])
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue