diff options
Diffstat (limited to 'src/testcurl/test_digestauth_with_arguments.c')
-rw-r--r-- | src/testcurl/test_digestauth_with_arguments.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c index 91f2dd67..ac1aed56 100644 --- a/src/testcurl/test_digestauth_with_arguments.c +++ b/src/testcurl/test_digestauth_with_arguments.c | |||
@@ -107,10 +107,11 @@ ahc_echo (void *cls, | |||
107 | response = MHD_create_response_from_buffer (strlen (DENIED), | 107 | response = MHD_create_response_from_buffer (strlen (DENIED), |
108 | DENIED, | 108 | DENIED, |
109 | MHD_RESPMEM_PERSISTENT); | 109 | MHD_RESPMEM_PERSISTENT); |
110 | ret = MHD_queue_auth_fail_response (connection, realm, | 110 | ret = MHD_queue_auth_fail_response2 (connection, realm, |
111 | MY_OPAQUE, | 111 | MY_OPAQUE, |
112 | response, | 112 | response, |
113 | MHD_NO); | 113 | MHD_NO, |
114 | MHD_DIGEST_ALG_MD5); | ||
114 | MHD_destroy_response (response); | 115 | MHD_destroy_response (response); |
115 | return ret; | 116 | return ret; |
116 | } | 117 | } |
@@ -118,7 +119,7 @@ ahc_echo (void *cls, | |||
118 | username, | 119 | username, |
119 | password, | 120 | password, |
120 | 300); | 121 | 300); |
121 | free (username); | 122 | MHD_free (username); |
122 | if ( (ret_i == MHD_INVALID_NONCE) || | 123 | if ( (ret_i == MHD_INVALID_NONCE) || |
123 | (ret_i == MHD_NO) ) | 124 | (ret_i == MHD_NO) ) |
124 | { | 125 | { |
@@ -127,11 +128,12 @@ ahc_echo (void *cls, | |||
127 | MHD_RESPMEM_PERSISTENT); | 128 | MHD_RESPMEM_PERSISTENT); |
128 | if (NULL == response) | 129 | if (NULL == response) |
129 | return MHD_NO; | 130 | return MHD_NO; |
130 | ret = MHD_queue_auth_fail_response (connection, realm, | 131 | ret = MHD_queue_auth_fail_response2 (connection, realm, |
131 | MY_OPAQUE, | 132 | MY_OPAQUE, |
132 | response, | 133 | response, |
133 | (ret_i == MHD_INVALID_NONCE) ? | 134 | (ret_i == MHD_INVALID_NONCE) ? |
134 | MHD_YES : MHD_NO); | 135 | MHD_YES : MHD_NO, |
136 | MHD_DIGEST_ALG_MD5); | ||
135 | MHD_destroy_response (response); | 137 | MHD_destroy_response (response); |
136 | return ret; | 138 | return ret; |
137 | } | 139 | } |