Jay Satiro 80fc040e45 libssh2: fix error message on failed pubkey-from-file
- If libssh2_userauth_publickey_fromfile_ex returns -1 then show error
  message "SSH public key authentication failed: Reason unknown (-1)".

When libssh2_userauth_publickey_fromfile_ex returns -1 it does so as a
generic error and therefore doesn't set an error message. AFAICT that is
not documented behavior.

Prior to this change libcurl retrieved the last set error message which
would be from a previous function failing. That resulted in misleading
auth failed error messages in verbose mode.

Bug: https://github.com/curl/curl/issues/11837#issue-1891827355
Reported-by: consulion@users.noreply.github.com

Closes https://github.com/curl/curl/pull/11881
2023-09-21 02:59:21 -04:00
2023-09-21 08:47:07 +02:00
2023-09-18 14:38:43 -04:00
2023-09-15 09:03:34 +02:00
2023-08-31 23:02:10 +00:00
2023-08-29 10:39:31 +02:00
2023-09-13 14:00:05 -04:00
2023-08-31 23:02:10 +00:00
2023-08-31 23:02:10 +00:00
2023-07-31 08:29:16 +02:00
2023-09-13 11:26:08 -07:00
2020-11-04 23:59:47 +01:00
2023-05-14 23:22:23 +02:00
2022-09-29 10:44:12 +02:00
2023-08-31 23:02:10 +00:00
2023-09-19 08:32:38 +02:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.

Description
No description provided
Readme 195 MiB
Languages
C 74.8%
Perl 8.1%
M4 4.8%
Python 4.4%
CMake 2.7%
Other 5.2%