Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. curl_easy_setopt(eh, CURLOPT_USERNAME, userNameP_);
  2.  
  3. curl_easy_setopt(eh, CURLOPT_HEADER, 0L);
  4.  
  5. curl_easy_setopt(eh, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_PUBLICKEY);
  6.  
  7. if (fileExists(sshPublicKeyPath_)) {
  8.  
  9. curl_easy_setopt(eh, CURLOPT_SSH_PUBLIC_KEYFILE, sshPublicKeyPath_);
  10.  
  11. }
  12.  
  13. if (MtxUtil::fileExists(sshPrivateKeyPath_)) {
  14.  
  15. curl_easy_setopt(eh, CURLOPT_SSH_PRIVATE_KEYFILE, sshPrivateKeyPath_);
  16.  
  17. }
  18.  
  19. curl_easy_setopt(eh, CURLOPT_SSH_KNOWNHOSTS, sshKnownHost_);
  20.  
  21. curl_easy_setopt(eh, CURLOPT_SSL_VERIFYPEER, 0L);
  22.  
  23. curl_easy_setopt(eh, CURLOPT_SSL_VERIFYHOST, 0L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement