mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-10-31 02:27:56 +00:00 
			
		
		
		
	fixes for macOS/Linux
This commit is contained in:
		| @@ -33,7 +33,7 @@ objects = \ | |||||||
| 	WebSocket WebSocketImpl \ | 	WebSocket WebSocketImpl \ | ||||||
| 	OAuth10Credentials OAuth20Credentials \ | 	OAuth10Credentials OAuth20Credentials \ | ||||||
| 	PollSet UDPClient UDPServerParams \ | 	PollSet UDPClient UDPServerParams \ | ||||||
| 	NTLMCredentials HTTPNTLMCredentials | 	NTLMCredentials SSPINTLMCredentials HTTPNTLMCredentials | ||||||
|  |  | ||||||
| target         = PocoNet | target         = PocoNet | ||||||
| target_version = $(LIBVERSION) | target_version = $(LIBVERSION) | ||||||
|   | |||||||
| @@ -30,10 +30,6 @@ namespace Poco { | |||||||
| namespace Net { | namespace Net { | ||||||
|  |  | ||||||
|  |  | ||||||
| const std::string SSPINTLMCredentials::SERVICE_HTTP("HTTP"); |  | ||||||
| const std::string SSPINTLMCredentials::SERVICE_SMTP("SMTP"); |  | ||||||
|  |  | ||||||
|  |  | ||||||
| struct NTLMContextImpl | struct NTLMContextImpl | ||||||
| { | { | ||||||
| 	NTLMContextImpl(): | 	NTLMContextImpl(): | ||||||
| @@ -241,6 +237,20 @@ SSPINTLMProvider& SSPINTLMProvider::instance() | |||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | } } // namespace Poco::Net | ||||||
|  |  | ||||||
|  |  | ||||||
|  | #endif // POCO_OS == POCO_OS_WINDOWS_NT | ||||||
|  |  | ||||||
|  |  | ||||||
|  | namespace Poco { | ||||||
|  | namespace Net { | ||||||
|  |  | ||||||
|  |  | ||||||
|  | const std::string SSPINTLMCredentials::SERVICE_HTTP("HTTP"); | ||||||
|  | const std::string SSPINTLMCredentials::SERVICE_SMTP("SMTP"); | ||||||
|  |  | ||||||
|  |  | ||||||
| NTLMContext::NTLMContext(NTLMContextImpl* pImpl): | NTLMContext::NTLMContext(NTLMContextImpl* pImpl): | ||||||
| 	_pImpl(pImpl) | 	_pImpl(pImpl) | ||||||
| { | { | ||||||
| @@ -249,14 +259,13 @@ NTLMContext::NTLMContext(NTLMContextImpl* pImpl): | |||||||
|  |  | ||||||
| NTLMContext::~NTLMContext() | NTLMContext::~NTLMContext() | ||||||
| { | { | ||||||
|  | #if POCO_OS == POCO_OS_WINDOWS_NT | ||||||
| 	SSPINTLMProvider::instance().clearNTLMContext(*this); | 	SSPINTLMProvider::instance().clearNTLMContext(*this); | ||||||
| 	delete _pImpl; | 	delete _pImpl; | ||||||
|  | #endif | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| #endif // POCO_OS == POCO_OS_WINDOWS_NT |  | ||||||
|  |  | ||||||
|  |  | ||||||
| bool SSPINTLMCredentials::available() | bool SSPINTLMCredentials::available() | ||||||
| { | { | ||||||
| #if POCO_OS == POCO_OS_WINDOWS_NT | #if POCO_OS == POCO_OS_WINDOWS_NT | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Günter Obiltschnig
					Günter Obiltschnig