diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-09-12 12:27:38 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2016-03-25 12:05:23 +0000 |
commit | 6101e358197309648aeb78ca6f2d2699c89033f2 (patch) | |
tree | 273ae62d3cb96b58b02e0eedccb902e64cf9fbea /lib/vauth/vauth.h | |
parent | 685fee3828b0b22f5a3ca9c8debd92dfecec751f (diff) | |
download | curl-6101e358197309648aeb78ca6f2d2699c89033f2.tar.gz |
vauth: Moved the ClearText authentication code to the new vauth directory
Diffstat (limited to 'lib/vauth/vauth.h')
-rw-r--r-- | lib/vauth/vauth.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/vauth/vauth.h b/lib/vauth/vauth.h index d0961e5a7..4e02a27c9 100644 --- a/lib/vauth/vauth.h +++ b/lib/vauth/vauth.h @@ -24,6 +24,8 @@ #include <curl/curl.h> +struct SessionHandle; + /* This is used to build a SPN string */ #if !defined(USE_WINDOWS_SSPI) char *Curl_sasl_build_spn(const char *service, const char *instance); @@ -35,4 +37,20 @@ TCHAR *Curl_sasl_build_spn(const char *service, const char *instance); char *Curl_sasl_build_gssapi_spn(const char *service, const char *instance); #endif +/* This is used to generate a base64 encoded PLAIN cleartext message */ +CURLcode 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 cleartext message */ +CURLcode sasl_create_login_message(struct SessionHandle *data, + const char *valuep, char **outptr, + size_t *outlen); + +/* This is used to generate a base64 encoded EXTERNAL cleartext message */ +CURLcode sasl_create_external_message(struct SessionHandle *data, + const char *user, char **outptr, + size_t *outlen); + #endif /* HEADER_CURL_VAUTH_H */ |