ws curl + http client tls option handling + ca cert processing for mbedtls
This commit is contained in:
		@@ -43,6 +43,11 @@ namespace ix
 | 
			
		||||
        _thread.join();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void HttpClient::setTLSOptions(const SocketTLSOptions& tlsOptions)
 | 
			
		||||
    {
 | 
			
		||||
        _tlsOptions = tlsOptions;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    HttpRequestArgsPtr HttpClient::createRequest(const std::string& url, const std::string& verb)
 | 
			
		||||
    {
 | 
			
		||||
        auto request = std::make_shared<HttpRequestArgs>();
 | 
			
		||||
@@ -142,8 +147,7 @@ namespace ix
 | 
			
		||||
 | 
			
		||||
        bool tls = protocol == "https";
 | 
			
		||||
        std::string errorMsg;
 | 
			
		||||
        SocketTLSOptions tlsOptions;
 | 
			
		||||
        _socket = createSocket(tls, errorMsg, tlsOptions);
 | 
			
		||||
        _socket = createSocket(tls, errorMsg, _tlsOptions);
 | 
			
		||||
 | 
			
		||||
        if (!_socket)
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user