From d1e7d9197b7fe417fb4d62aad5ea8f15a06d906c Mon Sep 17 00:00:00 2001 From: Mats Lindestam Date: Sun, 26 Sep 2021 23:20:53 +0200 Subject: libssh2: add SHA256 fingerprint support Added support for SHA256 fingerprint in command line curl and in libcurl. Closes #7646 --- lib/easyoptions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/easyoptions.c') diff --git a/lib/easyoptions.c b/lib/easyoptions.c index 4e65e3525..b1c0704d5 100644 --- a/lib/easyoptions.c +++ b/lib/easyoptions.c @@ -271,6 +271,8 @@ struct curl_easyoption Curl_easyopts[] = { {"SSH_COMPRESSION", CURLOPT_SSH_COMPRESSION, CURLOT_LONG, 0}, {"SSH_HOST_PUBLIC_KEY_MD5", CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, CURLOT_STRING, 0}, + {"SSH_HOST_PUBLIC_KEY_SHA256", CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256, + CURLOT_STRING, 0}, {"SSH_KEYDATA", CURLOPT_SSH_KEYDATA, CURLOT_CBPTR, 0}, {"SSH_KEYFUNCTION", CURLOPT_SSH_KEYFUNCTION, CURLOT_FUNCTION, 0}, {"SSH_KNOWNHOSTS", CURLOPT_SSH_KNOWNHOSTS, CURLOT_STRING, 0}, @@ -354,6 +356,6 @@ struct curl_easyoption Curl_easyopts[] = { */ int Curl_easyopts_check(void) { - return ((CURLOPT_LASTENTRY%10000) != (310 + 1)); + return ((CURLOPT_LASTENTRY%10000) != (311 + 1)); } #endif -- cgit v1.2.1