diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-09-12 13:30:58 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2016-03-25 12:05:23 +0000 |
commit | 51358a3f403c90bd77b9836860c095098feac53a (patch) | |
tree | 2ff0fe80682cbac2e1e3b94f9b14c30fcc917f10 /lib/vauth/digest.h | |
parent | ec5b8dc64797789d34023ab6f843eb0cfa3953b9 (diff) |
vauth: Moved the DIGEST authentication code to the new vauth directory
Diffstat (limited to 'lib/vauth/digest.h')
-rw-r--r-- | lib/vauth/digest.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/vauth/digest.h b/lib/vauth/digest.h new file mode 100644 index 000000000..4c58f002c --- /dev/null +++ b/lib/vauth/digest.h @@ -0,0 +1,43 @@ +#ifndef HEADER_CURL_DIGEST_H +#define HEADER_CURL_DIGEST_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +#include <curl/curl.h> + +#if !defined(CURL_DISABLE_CRYPTO_AUTH) + +#define DIGEST_MAX_VALUE_LENGTH 256 +#define DIGEST_MAX_CONTENT_LENGTH 1024 + +enum { + CURLDIGESTALGO_MD5, + CURLDIGESTALGO_MD5SESS +}; + +/* This is used to extract the realm from a challenge message */ +bool Curl_sasl_digest_get_pair(const char *str, char *value, char *content, + const char **endptr); + +#endif + +#endif /* HEADER_CURL_DIGEST_H */ |