From e6d2a1d82d71f93ed0377ebf030419afae91f9e4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 13 Jan 2017 23:17:27 +0300 Subject: woah, now really no netlib services anymore --- protocols/JabberG/src/jabber_secur.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp index dce7c59146..ab0e53d354 100644 --- a/protocols/JabberG/src/jabber_secur.cpp +++ b/protocols/JabberG/src/jabber_secur.cpp @@ -53,14 +53,14 @@ LBL_Invalid: if (!getSpn(szSpn, _countof(szSpn)) && !mir_strcmp(mechanism, "GSSAPI")) goto LBL_Invalid; - if ((hProvider = Netlib_InitSecurityProvider2(szProvider, szSpn)) == NULL) + if ((hProvider = Netlib_InitSecurityProvider(szProvider, szSpn)) == NULL) bIsValid = false; } TNtlmAuth::~TNtlmAuth() { if (hProvider != NULL) - Netlib_DestroySecurityProvider(NULL, hProvider); + Netlib_DestroySecurityProvider(hProvider); } bool TNtlmAuth::getSpn(wchar_t* szSpn, size_t dwSpnLen) @@ -106,9 +106,9 @@ char* TNtlmAuth::getInitialRequest() // This generates login method advertisement packet if (info->conn.password[0] != 0) - return Netlib_NtlmCreateResponse2(hProvider, "", info->conn.username, info->conn.password, &complete); + return Netlib_NtlmCreateResponse(hProvider, "", info->conn.username, info->conn.password, complete); - return Netlib_NtlmCreateResponse2(hProvider, "", NULL, NULL, &complete); + return Netlib_NtlmCreateResponse(hProvider, "", NULL, NULL, complete); } char* TNtlmAuth::getChallenge(const wchar_t *challenge) @@ -118,9 +118,9 @@ char* TNtlmAuth::getChallenge(const wchar_t *challenge) ptrA text((!mir_wstrcmp(challenge, L"=")) ? mir_strdup("") : mir_u2a(challenge)); if (info->conn.password[0] != 0) - return Netlib_NtlmCreateResponse2(hProvider, text, info->conn.username, info->conn.password, &complete); + return Netlib_NtlmCreateResponse(hProvider, text, info->conn.username, info->conn.password, complete); - return Netlib_NtlmCreateResponse2(hProvider, text, NULL, NULL, &complete); + return Netlib_NtlmCreateResponse(hProvider, text, NULL, NULL, complete); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3