blob: fd225c7c1b3694e51a764adf40f3fe58fdfaf8d6 [file] [log] [blame]
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07001#ifndef HEADER_CURL_HTTP_DIGEST_H
2#define HEADER_CURL_HTTP_DIGEST_H
Kristian Monsen5ab50182010-05-14 18:53:44 +01003/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070010 * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
Kristian Monsen5ab50182010-05-14 18:53:44 +010011 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
Alex Deymod15eaac2016-06-28 14:49:26 -070014 * are also available at https://curl.haxx.se/docs/copyright.html.
Kristian Monsen5ab50182010-05-14 18:53:44 +010015 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ***************************************************************************/
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070024#include "curl_setup.h"
Kristian Monsen5ab50182010-05-14 18:53:44 +010025
26/* this is for digest header input */
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070027CURLcode Curl_input_digest(struct connectdata *conn,
28 bool proxy, const char *header);
Kristian Monsen5ab50182010-05-14 18:53:44 +010029
30/* this is for creating digest header output */
31CURLcode Curl_output_digest(struct connectdata *conn,
32 bool proxy,
33 const unsigned char *request,
34 const unsigned char *uripath);
Kristian Monsen5ab50182010-05-14 18:53:44 +010035
36#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
Alex Deymoe3149cc2016-10-05 11:18:42 -070037void Curl_digest_cleanup(struct Curl_easy *data);
Kristian Monsen5ab50182010-05-14 18:53:44 +010038#else
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070039#define Curl_digest_cleanup(x) Curl_nop_stmt
Kristian Monsen5ab50182010-05-14 18:53:44 +010040#endif
41
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070042#endif /* HEADER_CURL_HTTP_DIGEST_H */