ssh: make CURLOPT_SSH_PUBLIC_KEYFILE treat "" as NULL
authorKamil Dudka <kdudka@redhat.com>
Fri, 15 Jan 2016 09:27:33 +0000 (10:27 +0100)
committerKamil Dudka <kdudka@redhat.com>
Fri, 15 Jan 2016 09:34:34 +0000 (10:34 +0100)
commitbe538e07667e1ba880b7201014be706851428d40
tree9b83fad08548ded78b25c146ba2408ea737de4b0
parentbe79d83b0099ee8dcad7ccf9e60ec75ab827e892
ssh: make CURLOPT_SSH_PUBLIC_KEYFILE treat "" as NULL

The CURLOPT_SSH_PUBLIC_KEYFILE option has been documented to handle
empty strings specially since curl-7_25_0-31-g05a443a but the behavior
was unintentionally removed in curl-7_38_0-47-gfa7d04f.

This commit restores the original behavior and clarifies it in the
documentation that NULL and "" have both the same meaning when passed
to CURLOPT_SSH_PUBLIC_KEYFILE.

Bug: http://curl.haxx.se/mail/lib-2016-01/0072.html
RELEASE-NOTES
docs/libcurl/opts/CURLOPT_SSH_PUBLIC_KEYFILE.3
lib/ssh.c