diff options
author | Mats Lindestam <matslm@axis.com> | 2021-09-26 23:20:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-09-26 23:20:53 +0200 |
commit | d1e7d9197b7fe417fb4d62aad5ea8f15a06d906c (patch) | |
tree | 549f3d1e4f04ecc8c499aafa4d21bd968b32a461 /lib/easyoptions.c | |
parent | 1ca62bb5ce3f37174d4bf3f9f70674c4af4396df (diff) | |
download | curl-d1e7d9197b7fe417fb4d62aad5ea8f15a06d906c.tar.gz |
libssh2: add SHA256 fingerprint support
Added support for SHA256 fingerprint in command line curl and in
libcurl.
Closes #7646
Diffstat (limited to 'lib/easyoptions.c')
-rw-r--r-- | lib/easyoptions.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |