Skip to content

Commit

Permalink
fixed brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
pasotee committed Nov 13, 2023
1 parent 791c751 commit 76313dd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/configfetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ int ConfigFetcher::ProgressFunction(curl_off_t dltotal, curl_off_t dlnow, curl_o
return closed ? 1 : 0; // Return 0 to continue, or 1 to abort
}

std::string getCertificateName(X509* const Certificate)
{
std::string getCertificateName(X509* const Certificate) {
char StaticBuffer[2048];
X509_NAME_oneline(X509_get_subject_name(Certificate), StaticBuffer, sizeof(StaticBuffer));
return std::string(StaticBuffer);
}

CURLcode SslContextCallback(CURL* curl, void* sslctx, void* raw_data)
{
CURLcode SslContextCallback(CURL* curl, void* sslctx, void* raw_data) {
return static_cast<ConfigFetcher*>(raw_data)->SslContextSetup(curl, sslctx);
}

Expand Down Expand Up @@ -160,7 +158,7 @@ ConfigFetcher::ConfigFetcher(const string& sdkKey, shared_ptr<ConfigCatLogger> l

if(!shouldVerify)
{
LOG_WARN(0) << "Peer verification will be disabled. We highly suggest using HTTPS for production grade apps.";
LOG_WARN(0) << "Peer verification will be disabled. We highly suggest using HTTPS for production grade apps.";
}

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, shouldVerify ? 1L : 0L);
Expand Down

0 comments on commit 76313dd

Please sign in to comment.