]> granicus.if.org Git - curl/commitdiff
configure: check for HMAC_Update in openssl
authorDaniel Stenberg <daniel@haxx.se>
Sun, 30 Aug 2015 21:20:31 +0000 (23:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 30 Aug 2015 21:21:30 +0000 (23:21 +0200)
Turns out HMAC_Init is now deprecated in openssl master (and I spelled
HMAC_Init_ex wrong in previous commit)

configure.ac

index d269210eca66d29918f76e55e22b1c15609f232f..843a3badf36360249e431598e58d2c8bb6d23cd5 100644 (file)
@@ -1493,13 +1493,13 @@ if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
       ;;
   esac
 
-  AC_CHECK_LIB(crypto, HMAC_Init,[
+  AC_CHECK_LIB(crypto, HMAC_Update,[
      HAVECRYPTO="yes"
      LIBS="-lcrypto $LIBS"
      ],[
      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
-     AC_CHECK_LIB(crypto, HMAC_Init_Ex,[
+     AC_CHECK_LIB(crypto, HMAC_Init_ex,[
        HAVECRYPTO="yes"
        LIBS="-lcrypto $LIBS"], [
        LDFLAGS="$CLEANLDFLAGS"