Skip to content

Commit

Permalink
configure: Test ASN1_STRING_get0_data only for OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaell committed Feb 25, 2022
1 parent d32161b commit a52c9c0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ AS_IF([test "x$with_ssl" != xno], [
PKG_CHECK_MODULES([SSL], [$with_ssl])
AC_DEFINE([HAVE_SSL], [1], [SSL])
AS_CASE(["$with_ssl"],
[openssl], [
save_LIBS="$LIBS"
LIBS="$LIBS $SSL_LIBS"
AC_REPLACE_FUNCS([ \
ASN1_STRING_get0_data \
])
LIBS="$save_LIBS"
],
[wolfssl], [
AC_CHECK_DECLS([
X509_NAME_get_entry,
Expand All @@ -216,12 +224,6 @@ AS_IF([test "x$with_ssl" != xno], [
AC_DEFINE([HAVE_WOLFSSL], [1], [wolfSSL])
])
PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH"
save_LIBS="$LIBS"
LIBS="$LIBS $SSL_LIBS"
AC_REPLACE_FUNCS([ \
ASN1_STRING_get0_data \
])
LIBS="$save_LIBS"
], AC_MSG_NOTICE([TLS/SSL support disabled]))

# Add Gettext
Expand Down

0 comments on commit a52c9c0

Please sign in to comment.