{"author":"Samuel Dionne-Riel","author_email":"samuel@dionne-riel.com","author_time":1740165888,"commit_time":1741096072,"committer":"Daniel Stenberg","committer_email":"daniel@haxx.se","hash":"0cd2670afb47efd654664f34b794209f5371734d","message":"libssh2: print user with verbose flag\n\nThis change:\n\n - Breaks out the existing print out of the LIBSSH2_DEBUG compile-time\n   flag\n - Adds (single) quotation marks around the string to better expose the\n   actual value\n - Adds a NULL print if not set, mirroring other verbose prints in\n   libssh2\n\nWhy was this done?\n\nI was trying out the `sftp` option in `curl`, and found myself hitting\nan issue where I was not able to get curl to tell me which username it\nwas using to connect to a host.\n\nWith this change, the `User: ` line is printed with `-v`, just like\nother SSH verbose prints.\n\nInstead of using the pattern used with *SSH MD5 public key*, where a\nternary is used to print `NULL` on NULL values, it is using a different\nbranch to add quotes around the string value.\n\nThe quotes around the string value are used to better expose to the user\nan empty string value, compared to \"no-value\".\n\nCloses #16430\n","parents":["18c6d5512f8eaf683b2b1c7028e657058b341075"],"tree_hash":"45a7f90570e344bd4d19cb6b634429469692d044"}