2
0

md4.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. /***************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. *
  10. * This software is licensed as described in the file COPYING, which
  11. * you should have received as part of this distribution. The terms
  12. * are also available at https://curl.se/docs/copyright.html.
  13. *
  14. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. * copies of the Software, and permit persons to whom the Software is
  16. * furnished to do so, under the terms of the COPYING file.
  17. *
  18. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. * KIND, either express or implied.
  20. *
  21. * SPDX-License-Identifier: curl
  22. *
  23. ***************************************************************************/
  24. #include "curl_setup.h"
  25. #if defined(USE_CURL_NTLM_CORE)
  26. #include <string.h>
  27. #include "strdup.h"
  28. #include "curl_md4.h"
  29. #include "warnless.h"
  30. #ifdef USE_OPENSSL
  31. #include <openssl/opensslv.h>
  32. #if (OPENSSL_VERSION_NUMBER >= 0x30000000L) && !defined(USE_AMISSL)
  33. /* OpenSSL 3.0.0 marks the MD4 functions as deprecated */
  34. #define OPENSSL_NO_MD4
  35. #endif
  36. #endif /* USE_OPENSSL */
  37. #ifdef USE_WOLFSSL
  38. #include <wolfssl/options.h>
  39. #define VOID_MD4_INIT
  40. #ifdef NO_MD4
  41. #define WOLFSSL_NO_MD4
  42. #endif
  43. #endif
  44. #ifdef USE_MBEDTLS
  45. #include <mbedtls/version.h>
  46. #if MBEDTLS_VERSION_NUMBER >= 0x03000000
  47. #include <mbedtls/mbedtls_config.h>
  48. #else
  49. #include <mbedtls/config.h>
  50. #endif
  51. #if(MBEDTLS_VERSION_NUMBER >= 0x02070000) && \
  52. (MBEDTLS_VERSION_NUMBER < 0x03000000)
  53. #define HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS
  54. #endif
  55. #endif /* USE_MBEDTLS */
  56. #if defined(USE_GNUTLS)
  57. #include <nettle/md4.h>
  58. /* When OpenSSL or wolfSSL is available, we use their MD4 functions. */
  59. #elif defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4)
  60. #include <wolfssl/openssl/md4.h>
  61. #elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4)
  62. #include <openssl/md4.h>
  63. #elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && \
  64. (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1040) && \
  65. defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && \
  66. (__MAC_OS_X_VERSION_MIN_REQUIRED < 101500)) || \
  67. (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
  68. (__IPHONE_OS_VERSION_MAX_ALLOWED >= 20000) && \
  69. defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && \
  70. (__IPHONE_OS_VERSION_MIN_REQUIRED < 130000))
  71. #define AN_APPLE_OS
  72. #include <CommonCrypto/CommonDigest.h>
  73. #elif defined(USE_WIN32_CRYPTO)
  74. #include <wincrypt.h>
  75. #elif(defined(USE_MBEDTLS) && defined(MBEDTLS_MD4_C))
  76. #include <mbedtls/md4.h>
  77. #endif
  78. /* The last 3 #include files should be in this order */
  79. #include "curl_printf.h"
  80. #include "curl_memory.h"
  81. #include "memdebug.h"
  82. #if defined(USE_GNUTLS)
  83. typedef struct md4_ctx MD4_CTX;
  84. static int MD4_Init(MD4_CTX *ctx)
  85. {
  86. md4_init(ctx);
  87. return 1;
  88. }
  89. static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size)
  90. {
  91. md4_update(ctx, size, data);
  92. }
  93. static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
  94. {
  95. md4_digest(ctx, MD4_DIGEST_SIZE, result);
  96. }
  97. #elif defined(USE_WOLFSSL) && !defined(WOLFSSL_NO_MD4)
  98. #elif defined(USE_OPENSSL) && !defined(OPENSSL_NO_MD4)
  99. #elif defined(AN_APPLE_OS)
  100. typedef CC_MD4_CTX MD4_CTX;
  101. static int MD4_Init(MD4_CTX *ctx)
  102. {
  103. return CC_MD4_Init(ctx);
  104. }
  105. static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size)
  106. {
  107. (void)CC_MD4_Update(ctx, data, (CC_LONG)size);
  108. }
  109. static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
  110. {
  111. (void)CC_MD4_Final(result, ctx);
  112. }
  113. #elif defined(USE_WIN32_CRYPTO)
  114. struct md4_ctx {
  115. HCRYPTPROV hCryptProv;
  116. HCRYPTHASH hHash;
  117. };
  118. typedef struct md4_ctx MD4_CTX;
  119. static int MD4_Init(MD4_CTX *ctx)
  120. {
  121. ctx->hCryptProv = 0;
  122. ctx->hHash = 0;
  123. if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL,
  124. CRYPT_VERIFYCONTEXT | CRYPT_SILENT))
  125. return 0;
  126. if(!CryptCreateHash(ctx->hCryptProv, CALG_MD4, 0, 0, &ctx->hHash)) {
  127. CryptReleaseContext(ctx->hCryptProv, 0);
  128. ctx->hCryptProv = 0;
  129. return 0;
  130. }
  131. return 1;
  132. }
  133. static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size)
  134. {
  135. CryptHashData(ctx->hHash, (BYTE *)data, (unsigned int) size, 0);
  136. }
  137. static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
  138. {
  139. unsigned long length = 0;
  140. CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0);
  141. if(length == MD4_DIGEST_LENGTH)
  142. CryptGetHashParam(ctx->hHash, HP_HASHVAL, result, &length, 0);
  143. if(ctx->hHash)
  144. CryptDestroyHash(ctx->hHash);
  145. if(ctx->hCryptProv)
  146. CryptReleaseContext(ctx->hCryptProv, 0);
  147. }
  148. #elif(defined(USE_MBEDTLS) && defined(MBEDTLS_MD4_C))
  149. struct md4_ctx {
  150. void *data;
  151. unsigned long size;
  152. };
  153. typedef struct md4_ctx MD4_CTX;
  154. static int MD4_Init(MD4_CTX *ctx)
  155. {
  156. ctx->data = NULL;
  157. ctx->size = 0;
  158. return 1;
  159. }
  160. static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size)
  161. {
  162. if(!ctx->data) {
  163. ctx->data = Curl_memdup(data, size);
  164. if(ctx->data)
  165. ctx->size = size;
  166. }
  167. }
  168. static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
  169. {
  170. if(ctx->data) {
  171. #if !defined(HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS)
  172. mbedtls_md4(ctx->data, ctx->size, result);
  173. #else
  174. (void) mbedtls_md4_ret(ctx->data, ctx->size, result);
  175. #endif
  176. Curl_safefree(ctx->data);
  177. ctx->size = 0;
  178. }
  179. }
  180. #else
  181. /* When no other crypto library is available, or the crypto library doesn't
  182. * support MD4, we use this code segment this implementation of it
  183. *
  184. * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
  185. * MD4 Message-Digest Algorithm (RFC 1320).
  186. *
  187. * Homepage:
  188. https://openwall.info/wiki/people/solar/software/public-domain-source-code/md4
  189. *
  190. * Author:
  191. * Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
  192. *
  193. * This software was written by Alexander Peslyak in 2001. No copyright is
  194. * claimed, and the software is hereby placed in the public domain. In case
  195. * this attempt to disclaim copyright and place the software in the public
  196. * domain is deemed null and void, then the software is Copyright (c) 2001
  197. * Alexander Peslyak and it is hereby released to the general public under the
  198. * following terms:
  199. *
  200. * Redistribution and use in source and binary forms, with or without
  201. * modification, are permitted.
  202. *
  203. * There's ABSOLUTELY NO WARRANTY, express or implied.
  204. *
  205. * (This is a heavily cut-down "BSD license".)
  206. *
  207. * This differs from Colin Plumb's older public domain implementation in that
  208. * no exactly 32-bit integer data type is required (any 32-bit or wider
  209. * unsigned integer data type will do), there's no compile-time endianness
  210. * configuration, and the function prototypes match OpenSSL's. No code from
  211. * Colin Plumb's implementation has been reused; this comment merely compares
  212. * the properties of the two independent implementations.
  213. *
  214. * The primary goals of this implementation are portability and ease of use.
  215. * It is meant to be fast, but not as fast as possible. Some known
  216. * optimizations are not included to reduce source code size and avoid
  217. * compile-time configuration.
  218. */
  219. /* Any 32-bit or wider unsigned integer data type will do */
  220. typedef unsigned int MD4_u32plus;
  221. struct md4_ctx {
  222. MD4_u32plus lo, hi;
  223. MD4_u32plus a, b, c, d;
  224. unsigned char buffer[64];
  225. MD4_u32plus block[16];
  226. };
  227. typedef struct md4_ctx MD4_CTX;
  228. static int MD4_Init(MD4_CTX *ctx);
  229. static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size);
  230. static void MD4_Final(unsigned char *result, MD4_CTX *ctx);
  231. /*
  232. * The basic MD4 functions.
  233. *
  234. * F and G are optimized compared to their RFC 1320 definitions, with the
  235. * optimization for F borrowed from Colin Plumb's MD5 implementation.
  236. */
  237. #define MD4_F(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))
  238. #define MD4_G(x, y, z) (((x) & ((y) | (z))) | ((y) & (z)))
  239. #define MD4_H(x, y, z) ((x) ^ (y) ^ (z))
  240. /*
  241. * The MD4 transformation for all three rounds.
  242. */
  243. #define MD4_STEP(f, a, b, c, d, x, s) \
  244. (a) += f((b), (c), (d)) + (x); \
  245. (a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s))));
  246. /*
  247. * SET reads 4 input bytes in little-endian byte order and stores them
  248. * in a properly aligned word in host byte order.
  249. *
  250. * The check for little-endian architectures that tolerate unaligned
  251. * memory accesses is just an optimization. Nothing will break if it
  252. * doesn't work.
  253. */
  254. #if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
  255. #define MD4_SET(n) \
  256. (*(MD4_u32plus *)(void *)&ptr[(n) * 4])
  257. #define MD4_GET(n) \
  258. MD4_SET(n)
  259. #else
  260. #define MD4_SET(n) \
  261. (ctx->block[(n)] = \
  262. (MD4_u32plus)ptr[(n) * 4] | \
  263. ((MD4_u32plus)ptr[(n) * 4 + 1] << 8) | \
  264. ((MD4_u32plus)ptr[(n) * 4 + 2] << 16) | \
  265. ((MD4_u32plus)ptr[(n) * 4 + 3] << 24))
  266. #define MD4_GET(n) \
  267. (ctx->block[(n)])
  268. #endif
  269. /*
  270. * This processes one or more 64-byte data blocks, but does NOT update
  271. * the bit counters. There are no alignment requirements.
  272. */
  273. static const void *my_md4_body(MD4_CTX *ctx,
  274. const void *data, unsigned long size)
  275. {
  276. const unsigned char *ptr;
  277. MD4_u32plus a, b, c, d;
  278. ptr = (const unsigned char *)data;
  279. a = ctx->a;
  280. b = ctx->b;
  281. c = ctx->c;
  282. d = ctx->d;
  283. do {
  284. MD4_u32plus saved_a, saved_b, saved_c, saved_d;
  285. saved_a = a;
  286. saved_b = b;
  287. saved_c = c;
  288. saved_d = d;
  289. /* Round 1 */
  290. MD4_STEP(MD4_F, a, b, c, d, MD4_SET(0), 3)
  291. MD4_STEP(MD4_F, d, a, b, c, MD4_SET(1), 7)
  292. MD4_STEP(MD4_F, c, d, a, b, MD4_SET(2), 11)
  293. MD4_STEP(MD4_F, b, c, d, a, MD4_SET(3), 19)
  294. MD4_STEP(MD4_F, a, b, c, d, MD4_SET(4), 3)
  295. MD4_STEP(MD4_F, d, a, b, c, MD4_SET(5), 7)
  296. MD4_STEP(MD4_F, c, d, a, b, MD4_SET(6), 11)
  297. MD4_STEP(MD4_F, b, c, d, a, MD4_SET(7), 19)
  298. MD4_STEP(MD4_F, a, b, c, d, MD4_SET(8), 3)
  299. MD4_STEP(MD4_F, d, a, b, c, MD4_SET(9), 7)
  300. MD4_STEP(MD4_F, c, d, a, b, MD4_SET(10), 11)
  301. MD4_STEP(MD4_F, b, c, d, a, MD4_SET(11), 19)
  302. MD4_STEP(MD4_F, a, b, c, d, MD4_SET(12), 3)
  303. MD4_STEP(MD4_F, d, a, b, c, MD4_SET(13), 7)
  304. MD4_STEP(MD4_F, c, d, a, b, MD4_SET(14), 11)
  305. MD4_STEP(MD4_F, b, c, d, a, MD4_SET(15), 19)
  306. /* Round 2 */
  307. MD4_STEP(MD4_G, a, b, c, d, MD4_GET(0) + 0x5a827999, 3)
  308. MD4_STEP(MD4_G, d, a, b, c, MD4_GET(4) + 0x5a827999, 5)
  309. MD4_STEP(MD4_G, c, d, a, b, MD4_GET(8) + 0x5a827999, 9)
  310. MD4_STEP(MD4_G, b, c, d, a, MD4_GET(12) + 0x5a827999, 13)
  311. MD4_STEP(MD4_G, a, b, c, d, MD4_GET(1) + 0x5a827999, 3)
  312. MD4_STEP(MD4_G, d, a, b, c, MD4_GET(5) + 0x5a827999, 5)
  313. MD4_STEP(MD4_G, c, d, a, b, MD4_GET(9) + 0x5a827999, 9)
  314. MD4_STEP(MD4_G, b, c, d, a, MD4_GET(13) + 0x5a827999, 13)
  315. MD4_STEP(MD4_G, a, b, c, d, MD4_GET(2) + 0x5a827999, 3)
  316. MD4_STEP(MD4_G, d, a, b, c, MD4_GET(6) + 0x5a827999, 5)
  317. MD4_STEP(MD4_G, c, d, a, b, MD4_GET(10) + 0x5a827999, 9)
  318. MD4_STEP(MD4_G, b, c, d, a, MD4_GET(14) + 0x5a827999, 13)
  319. MD4_STEP(MD4_G, a, b, c, d, MD4_GET(3) + 0x5a827999, 3)
  320. MD4_STEP(MD4_G, d, a, b, c, MD4_GET(7) + 0x5a827999, 5)
  321. MD4_STEP(MD4_G, c, d, a, b, MD4_GET(11) + 0x5a827999, 9)
  322. MD4_STEP(MD4_G, b, c, d, a, MD4_GET(15) + 0x5a827999, 13)
  323. /* Round 3 */
  324. MD4_STEP(MD4_H, a, b, c, d, MD4_GET(0) + 0x6ed9eba1, 3)
  325. MD4_STEP(MD4_H, d, a, b, c, MD4_GET(8) + 0x6ed9eba1, 9)
  326. MD4_STEP(MD4_H, c, d, a, b, MD4_GET(4) + 0x6ed9eba1, 11)
  327. MD4_STEP(MD4_H, b, c, d, a, MD4_GET(12) + 0x6ed9eba1, 15)
  328. MD4_STEP(MD4_H, a, b, c, d, MD4_GET(2) + 0x6ed9eba1, 3)
  329. MD4_STEP(MD4_H, d, a, b, c, MD4_GET(10) + 0x6ed9eba1, 9)
  330. MD4_STEP(MD4_H, c, d, a, b, MD4_GET(6) + 0x6ed9eba1, 11)
  331. MD4_STEP(MD4_H, b, c, d, a, MD4_GET(14) + 0x6ed9eba1, 15)
  332. MD4_STEP(MD4_H, a, b, c, d, MD4_GET(1) + 0x6ed9eba1, 3)
  333. MD4_STEP(MD4_H, d, a, b, c, MD4_GET(9) + 0x6ed9eba1, 9)
  334. MD4_STEP(MD4_H, c, d, a, b, MD4_GET(5) + 0x6ed9eba1, 11)
  335. MD4_STEP(MD4_H, b, c, d, a, MD4_GET(13) + 0x6ed9eba1, 15)
  336. MD4_STEP(MD4_H, a, b, c, d, MD4_GET(3) + 0x6ed9eba1, 3)
  337. MD4_STEP(MD4_H, d, a, b, c, MD4_GET(11) + 0x6ed9eba1, 9)
  338. MD4_STEP(MD4_H, c, d, a, b, MD4_GET(7) + 0x6ed9eba1, 11)
  339. MD4_STEP(MD4_H, b, c, d, a, MD4_GET(15) + 0x6ed9eba1, 15)
  340. a += saved_a;
  341. b += saved_b;
  342. c += saved_c;
  343. d += saved_d;
  344. ptr += 64;
  345. } while(size -= 64);
  346. ctx->a = a;
  347. ctx->b = b;
  348. ctx->c = c;
  349. ctx->d = d;
  350. return ptr;
  351. }
  352. static int MD4_Init(MD4_CTX *ctx)
  353. {
  354. ctx->a = 0x67452301;
  355. ctx->b = 0xefcdab89;
  356. ctx->c = 0x98badcfe;
  357. ctx->d = 0x10325476;
  358. ctx->lo = 0;
  359. ctx->hi = 0;
  360. return 1;
  361. }
  362. static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size)
  363. {
  364. MD4_u32plus saved_lo;
  365. unsigned long used;
  366. saved_lo = ctx->lo;
  367. ctx->lo = (saved_lo + size) & 0x1fffffff;
  368. if(ctx->lo < saved_lo)
  369. ctx->hi++;
  370. ctx->hi += (MD4_u32plus)size >> 29;
  371. used = saved_lo & 0x3f;
  372. if(used) {
  373. unsigned long available = 64 - used;
  374. if(size < available) {
  375. memcpy(&ctx->buffer[used], data, size);
  376. return;
  377. }
  378. memcpy(&ctx->buffer[used], data, available);
  379. data = (const unsigned char *)data + available;
  380. size -= available;
  381. my_md4_body(ctx, ctx->buffer, 64);
  382. }
  383. if(size >= 64) {
  384. data = my_md4_body(ctx, data, size & ~(unsigned long)0x3f);
  385. size &= 0x3f;
  386. }
  387. memcpy(ctx->buffer, data, size);
  388. }
  389. static void MD4_Final(unsigned char *result, MD4_CTX *ctx)
  390. {
  391. unsigned long used, available;
  392. used = ctx->lo & 0x3f;
  393. ctx->buffer[used++] = 0x80;
  394. available = 64 - used;
  395. if(available < 8) {
  396. memset(&ctx->buffer[used], 0, available);
  397. my_md4_body(ctx, ctx->buffer, 64);
  398. used = 0;
  399. available = 64;
  400. }
  401. memset(&ctx->buffer[used], 0, available - 8);
  402. ctx->lo <<= 3;
  403. ctx->buffer[56] = curlx_ultouc((ctx->lo)&0xff);
  404. ctx->buffer[57] = curlx_ultouc((ctx->lo >> 8)&0xff);
  405. ctx->buffer[58] = curlx_ultouc((ctx->lo >> 16)&0xff);
  406. ctx->buffer[59] = curlx_ultouc((ctx->lo >> 24)&0xff);
  407. ctx->buffer[60] = curlx_ultouc((ctx->hi)&0xff);
  408. ctx->buffer[61] = curlx_ultouc((ctx->hi >> 8)&0xff);
  409. ctx->buffer[62] = curlx_ultouc((ctx->hi >> 16)&0xff);
  410. ctx->buffer[63] = curlx_ultouc(ctx->hi >> 24);
  411. my_md4_body(ctx, ctx->buffer, 64);
  412. result[0] = curlx_ultouc((ctx->a)&0xff);
  413. result[1] = curlx_ultouc((ctx->a >> 8)&0xff);
  414. result[2] = curlx_ultouc((ctx->a >> 16)&0xff);
  415. result[3] = curlx_ultouc(ctx->a >> 24);
  416. result[4] = curlx_ultouc((ctx->b)&0xff);
  417. result[5] = curlx_ultouc((ctx->b >> 8)&0xff);
  418. result[6] = curlx_ultouc((ctx->b >> 16)&0xff);
  419. result[7] = curlx_ultouc(ctx->b >> 24);
  420. result[8] = curlx_ultouc((ctx->c)&0xff);
  421. result[9] = curlx_ultouc((ctx->c >> 8)&0xff);
  422. result[10] = curlx_ultouc((ctx->c >> 16)&0xff);
  423. result[11] = curlx_ultouc(ctx->c >> 24);
  424. result[12] = curlx_ultouc((ctx->d)&0xff);
  425. result[13] = curlx_ultouc((ctx->d >> 8)&0xff);
  426. result[14] = curlx_ultouc((ctx->d >> 16)&0xff);
  427. result[15] = curlx_ultouc(ctx->d >> 24);
  428. memset(ctx, 0, sizeof(*ctx));
  429. }
  430. #endif /* CRYPTO LIBS */
  431. CURLcode Curl_md4it(unsigned char *output, const unsigned char *input,
  432. const size_t len)
  433. {
  434. MD4_CTX ctx;
  435. #ifdef VOID_MD4_INIT
  436. MD4_Init(&ctx);
  437. #else
  438. if(!MD4_Init(&ctx))
  439. return CURLE_FAILED_INIT;
  440. #endif
  441. MD4_Update(&ctx, input, curlx_uztoui(len));
  442. MD4_Final(output, &ctx);
  443. return CURLE_OK;
  444. }
  445. #endif /* USE_CURL_NTLM_CORE */