1CURLOPT_SSH_HOST_PUBLIC_KEY_MD5(3) libcurl CURLOPT_SSH_HOST_PUBLIC_KEY_MD5(3)
2
3
4
6 CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 - MD5 checksum of SSH server public key
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5,
12 char *md5);
13
15 Pass a char * pointing to a string containing 32 hexadecimal digits.
16 The string should be the 128 bit MD5 checksum of the remote host's pub‐
17 lic key, and libcurl will reject the connection to the host unless the
18 MD5 checksum match.
19
20 The application does not have to keep the string around after setting
21 this option.
22
24 NULL
25
27 SCP and SFTP
28
30 CURL *curl = curl_easy_init();
31 if(curl) {
32 curl_easy_setopt(curl, CURLOPT_URL, "sftp://example.com/file");
33 curl_easy_setopt(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5,
34 "afe17cd62a0f3b61f1ab9cb22ba269a7");
35 ret = curl_easy_perform(curl);
36 curl_easy_cleanup(curl);
37 }
38
40 Added in 7.17.1
41
43 Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if
44 not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
45
47 CURLOPT_SSH_PUBLIC_KEYFILE(3), CURLOPT_SSH_AUTH_TYPES(3), CUR‐
48 LOPT_SSH_HOST_PUBLIC_KEY_SHA256(3),
49
50
51
52ibcurl 8.2.1 April 26, 202C3URLOPT_SSH_HOST_PUBLIC_KEY_MD5(3)