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/vauth.h | |
parent | ec5b8dc64797789d34023ab6f843eb0cfa3953b9 (diff) | |
download | curl-51358a3f403c90bd77b9836860c095098feac53a.tar.gz |
vauth: Moved the DIGEST authentication code to the new vauth directory
Diffstat (limited to 'lib/vauth/vauth.h')
-rw-r--r-- | lib/vauth/vauth.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/vauth/vauth.h b/lib/vauth/vauth.h index 7469ccd8b..71afc40b9 100644 --- a/lib/vauth/vauth.h +++ b/lib/vauth/vauth.h @@ -26,6 +26,10 @@ struct SessionHandle; +#if !defined(CURL_DISABLE_CRYPTO_AUTH) +struct digestdata; +#endif + /* This is used to build a SPN string */ #if !defined(USE_WINDOWS_SSPI) char *Curl_sasl_build_spn(const char *service, const char *instance); @@ -64,6 +68,30 @@ CURLcode sasl_create_cram_md5_message(struct SessionHandle *data, const char *userp, const char *passwdp, char **outptr, size_t *outlen); + +/* This is used to generate a base64 encoded DIGEST-MD5 response message */ +CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data, + const char *chlg64, + const char *userp, + const char *passwdp, + const char *service, + char **outptr, size_t *outlen); + +/* This is used to decode a HTTP DIGEST challenge message */ +CURLcode Curl_sasl_decode_digest_http_message(const char *chlg, + struct digestdata *digest); + +/* This is used to generate a HTTP DIGEST response message */ +CURLcode Curl_sasl_create_digest_http_message(struct SessionHandle *data, + const char *userp, + const char *passwdp, + const unsigned char *request, + const unsigned char *uri, + struct digestdata *digest, + char **outptr, size_t *outlen); + +/* This is used to clean up the digest specific data */ +void Curl_sasl_digest_cleanup(struct digestdata *digest); #endif /* !CURL_DISABLE_CRYPTO_AUTH */ #endif /* HEADER_CURL_VAUTH_H */ |