diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-22 10:31:04 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-07-28 07:21:35 +0300 |
commit | c03c57c9d2d95bd739ab8a149597658d1ec95478 (patch) | |
tree | d6c6c03b6bcbc1c8981db963612b8ef8914b5bc2 /src/testcurl | |
parent | 4baec145d4c68fbd8efd4052abca24d244bf3188 (diff) | |
download | libmicrohttpd-c03c57c9d2d95bd739ab8a149597658d1ec95478.tar.gz libmicrohttpd-c03c57c9d2d95bd739ab8a149597658d1ec95478.zip |
Added MHD_queue_auth_required_response3(); Refactored public Digest Auth API v3
Added brand new function with more complete support for RFC 7616
features. New function implemented from scratch. Old functions became
wrappers for the new function, so fixes are inherited.
Fixes:
* All user values are properly quoted
Features:
* Added support for optional 'domain' Digest auth parameter
* Realm now optional
* Added userhash support
* Added charset support
For other Digest Auth v3 functions:
* Added more parameters for complete control of Auth process from
application side.
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/test_digestauth_concurrent.c | 5 | ||||
-rw-r--r-- | src/testcurl/test_digestauth_emu_ext.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c index 9a2f6227..c80bf382 100644 --- a/src/testcurl/test_digestauth_concurrent.c +++ b/src/testcurl/test_digestauth_concurrent.c | |||
@@ -312,8 +312,9 @@ ahc_echo (void *cls, | |||
312 | realm, | 312 | realm, |
313 | username, | 313 | username, |
314 | password, | 314 | password, |
315 | 300, | 315 | 50 * TIMEOUTS_VAL, |
316 | MHD_DIGEST_ALG_MD5); | 316 | 0, MHD_DIGEST_AUTH_MULT_QOP_AUTH, |
317 | MHD_DIGEST_AUTH_MULT_ALGO3_MD5); | ||
317 | MHD_free (username); | 318 | MHD_free (username); |
318 | if (ret_e != MHD_DAUTH_OK) | 319 | if (ret_e != MHD_DAUTH_OK) |
319 | { | 320 | { |
diff --git a/src/testcurl/test_digestauth_emu_ext.c b/src/testcurl/test_digestauth_emu_ext.c index f4a0b9e8..468279ca 100644 --- a/src/testcurl/test_digestauth_emu_ext.c +++ b/src/testcurl/test_digestauth_emu_ext.c | |||
@@ -483,7 +483,9 @@ ahc_echo (void *cls, | |||
483 | 483 | ||
484 | check_res = MHD_digest_auth_check3 (connection, REALM, USERNAME, | 484 | check_res = MHD_digest_auth_check3 (connection, REALM, USERNAME, |
485 | PASSWORD_VALUE, | 485 | PASSWORD_VALUE, |
486 | 300, MHD_DIGEST_ALG_MD5); | 486 | 50 * TIMEOUTS_VAL, |
487 | 0, MHD_DIGEST_AUTH_MULT_QOP_AUTH, | ||
488 | MHD_DIGEST_AUTH_MULT_ALGO3_MD5); | ||
487 | 489 | ||
488 | switch (check_res) | 490 | switch (check_res) |
489 | { | 491 | { |