diff options
author | michael musset <mickamusset@gmail.com> | 2021-11-04 15:55:47 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-06-02 08:34:31 +0200 |
commit | 1544513958d9691f6ed576dfb3ff9f8c2a0de372 (patch) | |
tree | 2c8d0566bb542fab564d4ce8eb9f74595508c387 /lib/easyoptions.c | |
parent | 267d560b5ae4e73ea99f8211a2e8d0fa1305d9ea (diff) | |
download | curl-1544513958d9691f6ed576dfb3ff9f8c2a0de372.tar.gz |
libssh2: add CURLOPT_SSH_HOSTKEYFUNCTION
The callback set by CURLOPT_SSH_HOSTKEYFUNCTION is called to check
wether or not the connection should continue.
The host key is passed in argument with a custom handle for the
application.
It overrides CURLOPT_SSH_KNOWNHOSTS
Closes #7959
Diffstat (limited to 'lib/easyoptions.c')
-rw-r--r-- | lib/easyoptions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/easyoptions.c b/lib/easyoptions.c index 04871ad1e..9ae6c6845 100644 --- a/lib/easyoptions.c +++ b/lib/easyoptions.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * ___|___/|_| ______| * - * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel.se>, et al. + * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -279,6 +279,8 @@ struct curl_easyoption Curl_easyopts[] = { CURLOT_STRING, 0}, {"SSH_KEYDATA", CURLOPT_SSH_KEYDATA, CURLOT_CBPTR, 0}, {"SSH_KEYFUNCTION", CURLOPT_SSH_KEYFUNCTION, CURLOT_FUNCTION, 0}, + {"SSH_HOSTKEYDATA", CURLOPT_SSH_HOSTKEYDATA, CURLOT_CBPTR, 0}, + {"SSH_HOSTKEYFUNCTION", CURLOPT_SSH_HOSTKEYFUNCTION, CURLOT_FUNCTION, 0}, {"SSH_KNOWNHOSTS", CURLOPT_SSH_KNOWNHOSTS, CURLOT_STRING, 0}, {"SSH_PRIVATE_KEYFILE", CURLOPT_SSH_PRIVATE_KEYFILE, CURLOT_STRING, 0}, {"SSH_PUBLIC_KEYFILE", CURLOPT_SSH_PUBLIC_KEYFILE, CURLOT_STRING, 0}, @@ -360,6 +362,6 @@ struct curl_easyoption Curl_easyopts[] = { */ int Curl_easyopts_check(void) { - return ((CURLOPT_LASTENTRY%10000) != (315 + 1)); + return ((CURLOPT_LASTENTRY%10000) != (317 + 1)); } #endif |