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.
This commit is contained in:
Steve Holme
2012-05-31 23:11:54 +01:00
parent cb3d0ce2cb
commit 54d484e136
3 changed files with 49 additions and 23 deletions

View File

@@ -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 */