← Commit list

633ec719d5

Viktor Szakats
Viktor Szakats
2026-02-18
SUCCESS Duration: 416s

Subject

curl_ntlm_core: merge two `#if` blocks

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_ntlm_core.c+10 -14
@@ -405,20 +405,6 @@ static void ascii_to_unicode_le(unsigned char *dest, const char *src,
}
}
-#ifndef USE_WINDOWS_SSPI
-
-static void ascii_uppercase_to_unicode_le(unsigned char *dest,
- const char *src, size_t srclen)
-{
- size_t i;
- for(i = 0; i < srclen; i++) {
- dest[2 * i] = (unsigned char)(Curl_raw_toupper(src[i]));
- dest[2 * i + 1] = '\0';
- }
-}
-
-#endif /* !USE_WINDOWS_SSPI */
-
/*
* Set up nt hashed passwords
* @unittest: 1600
@@ -502,6 +488,16 @@ static void time2filetime(struct ms_filetime *ft, time_t t)
#endif
}
+static void ascii_uppercase_to_unicode_le(unsigned char *dest,
+ const char *src, size_t srclen)
+{
+ size_t i;
+ for(i = 0; i < srclen; i++) {
+ dest[2 * i] = (unsigned char)(Curl_raw_toupper(src[i]));
+ dest[2 * i + 1] = '\0';
+ }
+}
+
/* This creates the NTLMv2 hash by using NTLM hash as the key and Unicode
* (uppercase UserName + Domain) as the data
*/