]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl.h: fix mention of wrong error code in comment
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Sep 2022 12:53:08 +0000 (14:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Sep 2022 07:43:39 +0000 (09:43 +0200)
The same error and comment were also used and is now corrected in
CURLOPT_SSH_KEYFUNCTION.3

docs/libcurl/opts/CURLOPT_SSH_KEYFUNCTION.3
include/curl/curl.h

index f8aedf2337a5863d12c4e045756d6e700100400e..6cc677d7e8be792ebd85b13603aabff79cc15be8 100644 (file)
@@ -34,9 +34,8 @@ enum curl_khstat {
   CURLKHSTAT_FINE,
   CURLKHSTAT_REJECT, /* reject the connection, return an error */
   CURLKHSTAT_DEFER,  /* do not accept it, but we cannot answer right
-                        now so this causes a CURLE_DEFER error but
-                        otherwise the connection will be left intact
-                        etc */
+                        now. Causes a CURLE_PEER_FAILED_VERIFICATION error but
+                        the connection will be left intact */
   CURLKHSTAT_FINE_REPLACE
 };
 
index 45d7978ab573a956401b6287fad5fef22379b84b..e28dd0b5a0c1ffb7ba0c891373392d4eae2a44a2 100644 (file)
@@ -840,8 +840,8 @@ enum curl_khstat {
   CURLKHSTAT_FINE_ADD_TO_FILE,
   CURLKHSTAT_FINE,
   CURLKHSTAT_REJECT, /* reject the connection, return an error */
-  CURLKHSTAT_DEFER,  /* do not accept it, but we can't answer right now so
-                        this causes a CURLE_DEFER error but otherwise the
+  CURLKHSTAT_DEFER,  /* do not accept it, but we can't answer right now.
+                        Causes a CURLE_PEER_FAILED_VERIFICATION error but the
                         connection will be left intact etc */
   CURLKHSTAT_FINE_REPLACE, /* accept and replace the wrong key*/
   CURLKHSTAT_LAST    /* not for use, only a marker for last-in-list */