diff options
Diffstat (limited to 'lib/curl_ntlm.h')
-rw-r--r-- | lib/curl_ntlm.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/curl_ntlm.h b/lib/curl_ntlm.h index 8c5793d50..24021033a 100644 --- a/lib/curl_ntlm.h +++ b/lib/curl_ntlm.h @@ -24,6 +24,31 @@ #ifdef USE_NTLM +/* This is to generate a ntlm type-1 message */ +CURLcode Curl_ntlm_create_type1_message(const char *userp, + const char *passwdp, + struct ntlmdata *ntlm, + unsigned char *ntlmbuf, + size_t *size); + +/* This is to generate a ntlm type-3 message */ +CURLcode Curl_ntlm_create_type3_message(struct SessionHandle *data, + const char *userp, + const char *passwdp, + struct ntlmdata *ntlm, + unsigned char *ntlmbuf, + size_t *size); + +/* This is to decode a ntlm type-2 message */ +CURLcode Curl_ntlm_decode_type2_message(struct SessionHandle *data, + const char* header, + struct ntlmdata* ntlm); + +/* This is to clean up the ntlm data structure */ +#ifdef USE_WINDOWS_SSPI +void Curl_ntlm_sspi_cleanup(struct ntlmdata *ntlm); +#endif + /* NTLM buffer fixed size, large enough for long user + host + domain */ #define NTLM_BUFSIZE 1024 |