mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-23 08:31:43 +02:00 
			
		
		
		
	fix(HTTPSClientSession): There is no way to resolve host in advance and connect to HTTPS server with SNI. #4395 (#4751)
This commit is contained in:
		 Aleksandar Fabijanic
					Aleksandar Fabijanic
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							ca63bf0db9
						
					
				
				
					commit
					c156f0b357
				
			| @@ -78,10 +78,12 @@ public: | ||||
| 	HTTPSClientSession(); | ||||
| 		/// Creates an unconnected HTTPSClientSession. | ||||
|  | ||||
| 	explicit HTTPSClientSession(const SecureStreamSocket& socket); | ||||
| 	explicit HTTPSClientSession(const SecureStreamSocket& socket, const std::string& host, Poco::UInt16 port = HTTPS_PORT); | ||||
| 		/// Creates a HTTPSClientSession using the given socket. | ||||
| 		/// The socket must not be connected. The session | ||||
| 		/// takes ownership of the socket. | ||||
| 		/// | ||||
| 		/// The given host name is used for certificate verification. | ||||
|  | ||||
| 	HTTPSClientSession(const SecureStreamSocket& socket, Session::Ptr pSession); | ||||
| 		/// Creates a HTTPSClientSession using the given socket. | ||||
|   | ||||
| @@ -108,6 +108,12 @@ public: | ||||
| 		/// | ||||
| 		/// The given host name is used for certificate verification. | ||||
|  | ||||
| 	SecureStreamSocket(const std::string& hostName); | ||||
| 		/// Creates a secure stream socket using the default | ||||
| 		/// client SSL context. The created socket is not connected. | ||||
| 		/// | ||||
| 		/// The given host name is used for certificate verification. | ||||
|  | ||||
| 	SecureStreamSocket(const SocketAddress& address, const std::string& hostName, Context::Ptr pContext); | ||||
| 		/// Creates a secure stream socket using the given | ||||
| 		/// client SSL context and connects it to | ||||
| @@ -115,6 +121,12 @@ public: | ||||
| 		/// | ||||
| 		/// The given host name is used for certificate verification. | ||||
|  | ||||
| 	SecureStreamSocket(const std::string& hostName, Context::Ptr pContext); | ||||
| 		/// Creates a secure stream socket using the given | ||||
| 		/// client SSL context. The created socket is not connected. | ||||
| 		/// | ||||
| 		/// The given host name is used for certificate verification. | ||||
|  | ||||
| 	SecureStreamSocket(const SocketAddress& address, const std::string& hostName, Context::Ptr pContext, Session::Ptr pSession); | ||||
| 		/// Creates a secure stream socket using the given | ||||
| 		/// client SSL context and connects it to | ||||
|   | ||||
		Reference in New Issue
	
	Block a user