summaryrefslogtreecommitdiff
path: root/lib/curl_sasl.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-05-30 20:52:52 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-05-30 20:52:52 +0100
commit8e860c16625d65b63042731f5c343775bcb34983 (patch)
treecd54f68d50474f4f3d3c468ceb09c3de92377781 /lib/curl_sasl.h
parentc90acaa77a14f95d292eb90ba4a3add103b64c7e (diff)
downloadcurl-8e860c16625d65b63042731f5c343775bcb34983.tar.gz
sasl: Moved plain text authentication message creation from smtp.c
Moved the plain text message creation from smtp.c into the sasl module to allow for use by other modules such as pop3.
Diffstat (limited to 'lib/curl_sasl.h')
-rw-r--r--lib/curl_sasl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index b0d4d365e..236645657 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -33,4 +33,10 @@
#define SASL_AUTH_EXTERNAL 0x0020
#define SASL_AUTH_NTLM 0x0040
+/* This is to generate a base64 encoded plain authentication message */
+CURLcode Curl_sasl_create_plain_message(struct SessionHandle *data,
+ const char* userp,
+ const char* passwdp,
+ char **outptr, size_t *outlen);
+
#endif /* HEADER_CURL_SASL_H */