]> granicus.if.org Git - curl/commitdiff
NTLM: recent boringssl brought DES_set_odd_parity back
authorDaniel Stenberg <daniel@haxx.se>
Sat, 22 Aug 2015 21:56:55 +0000 (23:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 22 Aug 2015 21:59:18 +0000 (23:59 +0200)
... so improve the #ifdefs for using our local implementation.

lib/curl_des.c
lib/curl_ntlm_core.c

index 42c1df9564b500f8467fa824517b27dbb7262f41..f90c2da6035f2722f918dd604b6e2219ad82c8cf 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "curl_setup.h"
 
-#if defined(USE_NTLM) && (!defined(USE_OPENSSL) || defined(HAVE_BORINGSSL))
+#if defined(USE_NTLM) && !defined(HAVE_DES_SET_ODD_PARITY)
 
 #include "curl_des.h"
 
index 2e5b573fd3a8a3756c99b6a606945023e823bc10..b72a8dc13038816291ff042db7235729ec0898e9 100644 (file)
@@ -146,7 +146,7 @@ static void setup_des_key(const unsigned char *key_56,
   extend_key_56_to_64(key_56, (char *) key);
 
   /* Set the key parity to odd */
-#if defined(HAVE_BORINGSSL)
+#ifndef HAVE_DES_SET_ODD_PARITY /* older boringssl */
   Curl_des_set_odd_parity((unsigned char *) &key, sizeof(key));
 #else
   DES_set_odd_parity(&key);