diff options
Diffstat (limited to 'src/testcurl/test_digestauth_sha256.c')
-rw-r--r-- | src/testcurl/test_digestauth_sha256.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c index bfab4a7e..90e5ad5f 100644 --- a/src/testcurl/test_digestauth_sha256.c +++ b/src/testcurl/test_digestauth_sha256.c | |||
@@ -111,9 +111,8 @@ ahc_echo (void *cls, | |||
111 | if ( (username == NULL) || | 111 | if ( (username == NULL) || |
112 | (0 != strcmp (username, "testuser")) ) | 112 | (0 != strcmp (username, "testuser")) ) |
113 | { | 113 | { |
114 | response = MHD_create_response_from_buffer (strlen (DENIED), | 114 | response = MHD_create_response_from_buffer_static (strlen (DENIED), |
115 | DENIED, | 115 | DENIED); |
116 | MHD_RESPMEM_PERSISTENT); | ||
117 | ret = MHD_queue_auth_fail_response2 (connection, | 116 | ret = MHD_queue_auth_fail_response2 (connection, |
118 | realm, | 117 | realm, |
119 | MY_OPAQUE, | 118 | MY_OPAQUE, |
@@ -132,9 +131,8 @@ ahc_echo (void *cls, | |||
132 | MHD_free (username); | 131 | MHD_free (username); |
133 | if (ret_e != MHD_DAUTH_OK) | 132 | if (ret_e != MHD_DAUTH_OK) |
134 | { | 133 | { |
135 | response = MHD_create_response_from_buffer (strlen (DENIED), | 134 | response = MHD_create_response_from_buffer_static (strlen (DENIED), |
136 | DENIED, | 135 | DENIED); |
137 | MHD_RESPMEM_PERSISTENT); | ||
138 | if (NULL == response) | 136 | if (NULL == response) |
139 | return MHD_NO; | 137 | return MHD_NO; |
140 | ret = MHD_queue_auth_fail_response2 (connection, | 138 | ret = MHD_queue_auth_fail_response2 (connection, |
@@ -147,9 +145,8 @@ ahc_echo (void *cls, | |||
147 | MHD_destroy_response (response); | 145 | MHD_destroy_response (response); |
148 | return ret; | 146 | return ret; |
149 | } | 147 | } |
150 | response = MHD_create_response_from_buffer (strlen (PAGE), | 148 | response = MHD_create_response_from_buffer_static (strlen (PAGE), |
151 | PAGE, | 149 | PAGE); |
152 | MHD_RESPMEM_PERSISTENT); | ||
153 | ret = MHD_queue_response (connection, | 150 | ret = MHD_queue_response (connection, |
154 | MHD_HTTP_OK, | 151 | MHD_HTTP_OK, |
155 | response); | 152 | response); |