Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl_easy_setopt(eh, CURLOPT_USERNAME, userNameP_);
- curl_easy_setopt(eh, CURLOPT_HEADER, 0L);
- curl_easy_setopt(eh, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_PUBLICKEY);
- if (fileExists(sshPublicKeyPath_)) {
- curl_easy_setopt(eh, CURLOPT_SSH_PUBLIC_KEYFILE, sshPublicKeyPath_);
- }
- if (MtxUtil::fileExists(sshPrivateKeyPath_)) {
- curl_easy_setopt(eh, CURLOPT_SSH_PRIVATE_KEYFILE, sshPrivateKeyPath_);
- }
- curl_easy_setopt(eh, CURLOPT_SSH_KNOWNHOSTS, sshKnownHost_);
- curl_easy_setopt(eh, CURLOPT_SSL_VERIFYPEER, 0L);
- curl_easy_setopt(eh, CURLOPT_SSL_VERIFYHOST, 0L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement