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