1CURLOPT_SSH_HOST_PUBLIC_KEY_cMuDr5l(_3e)asy_setopt oCpUtRiLoOnPsT_SSH_HOST_PUBLIC_KEY_MD5(3)
2
3
4

NAME

6       CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 - checksum of SSH server public key
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5,
12                                 char *md5);
13

DESCRIPTION

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       md5sums match.
19
20       The application does not have to keep the string around  after  setting
21       this option.
22

DEFAULT

24       NULL
25

PROTOCOLS

27       SCP and SFTP
28

EXAMPLE

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

AVAILABILITY

40       Added in 7.17.1
41

RETURN VALUE

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

SEE ALSO

47       CURLOPT_SSH_PUBLIC_KEYFILE(3), CURLOPT_SSH_AUTH_TYPES(3),
48
49
50
51libcurl 7.79.1                 November 04, 2C0U2R0LOPT_SSH_HOST_PUBLIC_KEY_MD5(3)
Impressum