cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_SSH_KEYFUNCTION never gets called?

From: <mlist0987_at_gmail.com>
Date: Mon, 21 Feb 2011 00:24:43 -0800

I looked through the source for libcurl and found that if the known hosts file name is not set (CURLOPT_SSH_KNOWNHOSTS), there is no default value and so the key function never gets called. Fair enough, but it seems odd that the other filename settings fall back to a default value if not explicitly set, yet the know hosts file name does not.

If I set the known hosts file name, my key function does get called (hooray!) but even when I return CURLKHSTAT_FINE, the authentication fails. Furthermore, when I return CURLKHSTAT_FINE_ADD_TO_FILE, writing to my hosts file fails, even though I believe the permissions are adequate (-rw-r--r--).

I must still be doing something wrong...

_murat
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-21