Skip to content

void Connection::SetVerifyPeer(bool _verifyPeer) is not usefule to ignore peer verification #197

@Jiwangreal

Description

@Jiwangreal

In Connection::performCurlRequest Function, you need add the CURLOPT_SSL_VERIFYHOST curl option to avoid peer verification check.

file:connection.cc

 old: // set peer verification if (!this->verifyPeer) { curl_easy_setopt( getCurlHandle(), CURLOPT_SSL_VERIFYPEER, this->verifyPeer); } new // set peer verification if (!this->verifyPeer) { curl_easy_setopt( getCurlHandle(), CURLOPT_SSL_VERIFYHOST, this->verifyPeer); curl_easy_setopt( getCurlHandle(), CURLOPT_SSL_VERIFYPEER, this->verifyPeer); } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions