diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-10-18 20:31:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 20:31:38 +0300 |
commit | 2a74bac2d2d3bccb4e10120f1ead805640ec9dd0 (patch) | |
tree | 047e4818ced5aaf73f58517629e5260b5291f9f0 /contrib/libs/curl/lib/vauth/cleartext.c | |
parent | 2d9656823e9521d8c29ea4c9a1d0eab78391abfc (diff) | |
parent | 3d834a1923bbf9403cd4a448e7f32b670aa4124f (diff) | |
download | ydb-2a74bac2d2d3bccb4e10120f1ead805640ec9dd0.tar.gz |
Merge pull request #10502 from ydb-platform/mergelibs-241016-1210
Library import 241016-1210
Diffstat (limited to 'contrib/libs/curl/lib/vauth/cleartext.c')
-rw-r--r-- | contrib/libs/curl/lib/vauth/cleartext.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/contrib/libs/curl/lib/vauth/cleartext.c b/contrib/libs/curl/lib/vauth/cleartext.c index cf8108ac5b..972a874480 100644 --- a/contrib/libs/curl/lib/vauth/cleartext.c +++ b/contrib/libs/curl/lib/vauth/cleartext.c @@ -100,38 +100,39 @@ CURLcode Curl_auth_create_plain_message(const char *authzid, * Curl_auth_create_login_message() * * This is used to generate an already encoded LOGIN message containing the - * username or password ready for sending to the recipient. + * user name or password ready for sending to the recipient. * * Parameters: * - * valuep [in] - The username or user's password. + * valuep [in] - The user name or user's password. * out [out] - The result storage. * - * Returns void. + * Returns CURLE_OK on success. */ -void Curl_auth_create_login_message(const char *valuep, struct bufref *out) +CURLcode Curl_auth_create_login_message(const char *valuep, struct bufref *out) { Curl_bufref_set(out, valuep, strlen(valuep), NULL); + return CURLE_OK; } /* * Curl_auth_create_external_message() * * This is used to generate an already encoded EXTERNAL message containing - * the username ready for sending to the recipient. + * the user name ready for sending to the recipient. * * Parameters: * - * user [in] - The username. + * user [in] - The user name. * out [out] - The result storage. * - * Returns void. + * Returns CURLE_OK on success. */ -void Curl_auth_create_external_message(const char *user, +CURLcode Curl_auth_create_external_message(const char *user, struct bufref *out) { /* This is the same formatting as the login message */ - Curl_auth_create_login_message(user, out); + return Curl_auth_create_login_message(user, out); } #endif /* if no users */ |