summaryrefslogtreecommitdiff
path: root/lib/curl_sasl.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-10-27 16:27:38 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-10-27 16:27:38 +0000
commitb87ba2c94217c0b5da8758b22972ee2d5381f169 (patch)
treed3f5ad23b1e405d65d3ef822126fce44a603533b /lib/curl_sasl.h
parente7a2ba41e33b29c61637275721981adc1c544e7f (diff)
downloadcurl-b87ba2c94217c0b5da8758b22972ee2d5381f169.tar.gz
email: Added support for cancelling DIGEST-MD5 authentication
Diffstat (limited to 'lib/curl_sasl.h')
-rw-r--r--lib/curl_sasl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index b1b4f8bde..06b9ea271 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -77,9 +77,16 @@ CURLcode Curl_sasl_create_cram_md5_message(struct SessionHandle *data,
const char *passwdp,
char **outptr, size_t *outlen);
+/* This is used to decode a base64 encoded DIGEST-MD5 challange message */
+CURLcode Curl_sasl_decode_digest_md5_message(const char *chlg64,
+ char *nonce, size_t nlen,
+ char *realm, size_t rlen,
+ char *alg, size_t alen);
+
/* 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 *nonce,
+ const char *realm,
const char *user,
const char *passwdp,
const char *service,