diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-09-23 10:58:09 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2020-09-23 10:58:09 +0300 |
commit | 7059c019a242e4f48eb12360608c36825b242fd5 (patch) | |
tree | b46ab46660400df5a1d8fe5efebde4a22f1c082e | |
parent | 4f6348b99b78f2c143b057ba41d1da04c286d435 (diff) | |
download | libmicrohttpd-7059c019a242e4f48eb12360608c36825b242fd5.tar.gz libmicrohttpd-7059c019a242e4f48eb12360608c36825b242fd5.zip |
test_digestauth_sha256: do not test without sha256 support on libcurl
-rw-r--r-- | src/testcurl/test_digestauth_sha256.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c index d3cc81ca..3bf3ce85 100644 --- a/src/testcurl/test_digestauth_sha256.c +++ b/src/testcurl/test_digestauth_sha256.c | |||
@@ -296,6 +296,11 @@ main (int argc, char *const *argv) | |||
296 | curl_version_info_data *d = curl_version_info (CURLVERSION_NOW); | 296 | curl_version_info_data *d = curl_version_info (CURLVERSION_NOW); |
297 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ | 297 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ |
298 | 298 | ||
299 | #ifdef CURL_VERSION_SSPI | ||
300 | if (0 != (d->features | CURL_VERSION_SSPI)) | ||
301 | return 77; /* Skip test, W32 SSPI doesn't support sha256 digest */ | ||
302 | #endif /* CURL_VERSION_SSPI */ | ||
303 | |||
299 | /* curl added SHA256 support in 7.57 = 7.0x39 */ | 304 | /* curl added SHA256 support in 7.57 = 7.0x39 */ |
300 | if (d->version_num < 0x073900) | 305 | if (d->version_num < 0x073900) |
301 | return 77; /* skip test, curl is too old */ | 306 | return 77; /* skip test, curl is too old */ |