mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +03:00
lib: add ability to disable auths individually
Both with configure and cmake Closes #11490
This commit is contained in:
parent
33dac9dfac
commit
e92edfbef6
33 changed files with 266 additions and 76 deletions
|
|
@ -43,8 +43,20 @@ static const char *disabled[]={
|
|||
#ifdef CURL_DISABLE_COOKIES
|
||||
"cookies",
|
||||
#endif
|
||||
#ifdef CURL_DISABLE_CRYPTO_AUTH
|
||||
"crypto",
|
||||
#ifdef CURL_DISABLE_BASIC_AUTH
|
||||
"basic-auth",
|
||||
#endif
|
||||
#ifdef CURL_DISABLE_BEARER_AUTH
|
||||
"bearer-auth",
|
||||
#endif
|
||||
#ifdef CURL_DISABLE_DIGEST_AUTH
|
||||
"digest-auth",
|
||||
#endif
|
||||
#ifdef CURL_DISABLE_NEGOTIATE_AUTH
|
||||
"negotiate-auth",
|
||||
#endif
|
||||
#ifdef CURL_DISABLE_AWS
|
||||
"aws",
|
||||
#endif
|
||||
#ifdef CURL_DISABLE_DOH
|
||||
"DoH",
|
||||
|
|
|
|||
|
|
@ -37,7 +37,9 @@ static void unit_stop(void)
|
|||
|
||||
UNITTEST_START
|
||||
|
||||
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
||||
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|
||||
|| !defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
|
||||
const char string1[] = "1";
|
||||
const char string2[] = "hello-you-fool";
|
||||
unsigned char output[MD5_DIGEST_LEN];
|
||||
|
|
|
|||
|
|
@ -39,7 +39,9 @@ static void unit_stop(void)
|
|||
|
||||
UNITTEST_START
|
||||
|
||||
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
||||
#if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) \
|
||||
|| defined(USE_LIBSSH2)
|
||||
|
||||
const char string1[] = "1";
|
||||
const char string2[] = "hello-you-fool";
|
||||
unsigned char output[SHA256_DIGEST_LENGTH];
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ static void unit_stop(void)
|
|||
|
||||
UNITTEST_START
|
||||
|
||||
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
||||
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|
||||
|| !defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
|
||||
const char password[] = "Pa55worD";
|
||||
const char string1[] = "1";
|
||||
const char string2[] = "hello-you-fool";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue