setopt: make CURLOPT_KEYPASSWD work for SSH-only builds

This option is used for both TLS and SSH so it needs to be handled
even in TLS-disabled builds

Mention this in the man page as well.

Follow-up to 52fa8d9
Pointed out by Codex Security
Closes #22121
This commit is contained in:
Daniel Stenberg 2026-06-21 23:18:13 +02:00
parent 372401f969
commit 0d6e5944bc
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 13 additions and 7 deletions

View file

@ -9,6 +9,8 @@ See-also:
- CURLOPT_SSLKEY (3)
Protocol:
- TLS
- SFTP
- SCP
TLS-backend:
- OpenSSL
- mbedTLS