diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-23 15:58:24 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-23 16:07:59 +0000 |
commit | 33be9e29be3d7903a61d27d8b2d45b92879e0b51 (patch) | |
tree | b569deb15ae1b76c90154dd19d96509dba93f137 /lib/curl_ntlm_msgs.c | |
parent | 8ed2420dbb302f92ba9058684b2d4af3793715c9 (diff) |
ntlm: Moved NSS initialisation to base decode function
Diffstat (limited to 'lib/curl_ntlm_msgs.c')
-rw-r--r-- | lib/curl_ntlm_msgs.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index d0672af36..263231930 100644 --- a/lib/curl_ntlm_msgs.c +++ b/lib/curl_ntlm_msgs.c @@ -45,6 +45,10 @@ #include "vtls/vtls.h" +#ifdef USE_NSS +#include "vtls/nssg.h" /* for Curl_nss_force_init() */ +#endif + #define BUILDING_CURL_NTLM_MSGS_C #include "curl_ntlm_msgs.h" #include "curl_sasl.h" @@ -271,7 +275,12 @@ CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data, unsigned char *type2 = NULL; size_t type2_len = 0; -#if defined(CURL_DISABLE_VERBOSE_STRINGS) +#if defined(USE_NSS) + /* Make sure the crypto backend is initialized */ + result = Curl_nss_force_init(data); + if(result) + return result; +#elif defined(CURL_DISABLE_VERBOSE_STRINGS) (void)data; #endif |