aboutsummaryrefslogtreecommitdiff
path: root/lib/vauth/vauth.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-09-12 13:02:27 +0100
committerSteve Holme <steve_holme@hotmail.com>2016-03-25 12:05:23 +0000
commitec5b8dc64797789d34023ab6f843eb0cfa3953b9 (patch)
tree349e8a6a5795ce537ed0514148d9addb76cff97e /lib/vauth/vauth.h
parent6101e358197309648aeb78ca6f2d2699c89033f2 (diff)
vauth: Moved the CRAM-MD5 authentication code to the new vauth directory
Diffstat (limited to 'lib/vauth/vauth.h')
-rw-r--r--lib/vauth/vauth.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/vauth/vauth.h b/lib/vauth/vauth.h
index 4e02a27c9..7469ccd8b 100644
--- a/lib/vauth/vauth.h
+++ b/lib/vauth/vauth.h
@@ -53,4 +53,17 @@ CURLcode sasl_create_external_message(struct SessionHandle *data,
const char *user, char **outptr,
size_t *outlen);
+#if !defined(CURL_DISABLE_CRYPTO_AUTH)
+/* This is used to decode a CRAM-MD5 challenge message */
+CURLcode sasl_decode_cram_md5_message(const char *chlg64, char **outptr,
+ size_t *outlen);
+
+/* This is used to generate a CRAM-MD5 response message */
+CURLcode sasl_create_cram_md5_message(struct SessionHandle *data,
+ const char *chlg,
+ const char *userp,
+ const char *passwdp,
+ char **outptr, size_t *outlen);
+#endif /* !CURL_DISABLE_CRYPTO_AUTH */
+
#endif /* HEADER_CURL_VAUTH_H */