Skip to content

Commit

Permalink
GH-31: SSL_CTX_set_options(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION)
Browse files Browse the repository at this point in the history
  • Loading branch information
negrutiu committed Aug 16, 2024
1 parent 3cd2593 commit 57f787f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nscurl/curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ void CurlTransfer( _In_ PCURL_REQUEST pReq )
curl_easy_setopt( curl, CURLOPT_SSL_VERIFYHOST, FALSE );
}

// GH-31: allow "unsafe legacy renegotiation"
// Symptomatic URL: https://publicinfobanjir.water.gov.my/hujan/data-hujan/?state=PLS&lang=en
pReq->opensslSetFlags |= SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION;

// SSL callback
curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION, CurlSSLCallback);
curl_easy_setopt(curl, CURLOPT_SSL_CTX_DATA, pReq);
Expand Down

0 comments on commit 57f787f

Please sign in to comment.