curl-curl/lib/vssh
Samuel Dionne-Riel 0cd2670afb
libssh2: print user with verbose flag
This change:

 - Breaks out the existing print out of the LIBSSH2_DEBUG compile-time
   flag
 - Adds (single) quotation marks around the string to better expose the
   actual value
 - Adds a NULL print if not set, mirroring other verbose prints in
   libssh2

Why was this done?

I was trying out the `sftp` option in `curl`, and found myself hitting
an issue where I was not able to get curl to tell me which username it
was using to connect to a host.

With this change, the `User: ` line is printed with `-v`, just like
other SSH verbose prints.

Instead of using the pattern used with *SSH MD5 public key*, where a
ternary is used to print `NULL` on NULL values, it is using a different
branch to add quotes around the string value.

The quotes around the string value are used to better expose to the user
an empty string value, compared to "no-value".

Closes #16430
2025-03-04 14:47:52 +01:00
..
.checksrc checksrc: use 'banfunc' proper in more places 2025-01-13 09:10:58 +01:00
curl_path.c libssh2: put the readdir buffers into struct 2024-10-16 11:55:47 +02:00
curl_path.h libssh2: put the readdir buffers into struct 2024-10-16 11:55:47 +02:00
libssh2.c libssh2: print user with verbose flag 2025-03-04 14:47:52 +01:00
libssh.c ssh: consider sftp quote commands case sensitive 2025-02-19 07:52:11 +01:00
ssh.h libssh2: drop obsolete macros and version checks 2025-02-12 09:04:13 +01:00
wolfssh.c tidy-up: use CURL_ARRAYSIZE() 2025-02-19 00:59:45 +01:00