summaryrefslogtreecommitdiff
path: root/lib/curl_sasl.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-05-31 23:11:54 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-05-31 23:11:54 +0100
commit54d484e136d43b50934cc906804662e780adc3fa (patch)
tree2d895f748df6a9fcfe47c9a2b7f5597f3f87300f /lib/curl_sasl.h
parentcb3d0ce2cb5097d906c9e7b9d5bb1de2eb4bbb93 (diff)
downloadcurl-54d484e136d43b50934cc906804662e780adc3fa.tar.gz
sasl: Moved login authentication message creation from smtp.c
Moved the login 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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index 236645657..dfe69ceda 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -33,10 +33,16 @@
#define SASL_AUTH_EXTERNAL 0x0020
#define SASL_AUTH_NTLM 0x0040
-/* This is to generate a base64 encoded plain authentication message */
+/* This is used 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);
+/* This is used to generate a base64 encoded login authentication message
+ containing either the user name or password details */
+CURLcode Curl_sasl_create_login_message(struct SessionHandle *data,
+ const char* valuep, char **outptr,
+ size_t *outlen);
+
#endif /* HEADER_CURL_SASL_H */