fixes for macOS/Linux

This commit is contained in:
Günter Obiltschnig
2019-05-15 15:54:10 +02:00
parent e821a2a9f1
commit a335f6da89
2 changed files with 36 additions and 27 deletions

View File

@@ -33,7 +33,7 @@ objects = \
WebSocket WebSocketImpl \
OAuth10Credentials OAuth20Credentials \
PollSet UDPClient UDPServerParams \
NTLMCredentials HTTPNTLMCredentials
NTLMCredentials SSPINTLMCredentials HTTPNTLMCredentials
target = PocoNet
target_version = $(LIBVERSION)

View File

@@ -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