diff options
author | Steve Holme <steve_holme@hotmail.com> | 2012-06-02 11:07:58 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2012-06-02 11:07:58 +0100 |
commit | d9ca9e9869e8dd5559b36ffec608c847f154e40a (patch) | |
tree | 7c7e9e8405ce2c5e549dbedfdaf183d2ad7c36ed /lib/curl_sasl.h | |
parent | 2df6e6d9f8cb84c6010ac1c0471cfaa5d66f8d7d (diff) |
sasl: Moved ntlm authentication message handling from smtp.c
Moved the ntlm message creation and decoding 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.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h index dfe69ceda..43f853d77 100644 --- a/lib/curl_sasl.h +++ b/lib/curl_sasl.h @@ -45,4 +45,27 @@ CURLcode Curl_sasl_create_login_message(struct SessionHandle *data, const char* valuep, char **outptr, size_t *outlen); +#ifdef USE_NTLM +/* This is used to generate a base64 encoded NTLM type-1 message */ +CURLcode Curl_sasl_create_ntlm_type1_message(const char *userp, + const char *passwdp, + struct ntlmdata *ntlm, + char **outptr, + size_t *outlen); + +/* This is used to decode an incoming NTLM type-2 message and generate a + base64 encoded type-3 response */ +CURLcode Curl_sasl_decode_ntlm_type2_message(struct SessionHandle *data, + const char *type2msg, + const char *userp, + const char *passwdp, + struct ntlmdata *ntlm, + char **outptr, size_t *outlen); + +#endif /* USE_NTLM */ + +/* This is used to cleanup any libraries or curl modules used by the sasl + functions */ +void Curl_sasl_cleanup(struct connectdata *conn, unsigned int authused); + #endif /* HEADER_CURL_SASL_H */ |