As of openssl 1.1.0, HMAC_CTX is an opaque structure and as such
cannot be allocated in the stack. One has to use HMAC_CTX_new()
that ultimately uses OPENSSL_zmalloc(), so the user has to free it
afterwards. Not something I want to do. What they where thinking?!
Richard Levitte, I am looking at you!
Signed-off-by: Eugene Crosser <evgenii.cherkashin@profitbricks.com>
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([pam_pcsc_cr], 0.9.4)
+AC_INIT([pam_pcsc_cr], 0.9.5)
AC_CONFIG_SRCDIR([pam_pcsc_cr.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([pam_pcsc_cr.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
CPPFLAGS="$PCSC_CFLAGS $CPPFLAGS"
LIBS="$PCSC_LIBS $LIBS"
CPPFLAGS="$PCSC_CFLAGS $CPPFLAGS"
LIBS="$PCSC_LIBS $LIBS"
-PKG_CHECK_MODULES([OPENSSL], [libcrypto], [], [:])
+AC_ARG_ENABLE(openssl,
+ [ --disable-openssl do not use openssl even when it is present],
+ [], [enable_openssl=yes]
+)
+AS_IF([test "x$enable_openssl" = "xyes"], [
+ PKG_CHECK_MODULES([OPENSSL], [libcrypto], [], [:])
+])
AS_IF([test "x$OPENSSL_CFLAGS" != "x" -o "x$OPENSSL_LIBS" != "x" ], [
use_openssl=yes
])
AS_IF([test "x$OPENSSL_CFLAGS" != "x" -o "x$OPENSSL_LIBS" != "x" ], [
use_openssl=yes
])