diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-13 23:17:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-13 23:17:27 +0300 |
commit | e6d2a1d82d71f93ed0377ebf030419afae91f9e4 (patch) | |
tree | c332f214a94e52e605621ce6a98ed80c8258b4fb /protocols/JabberG/src | |
parent | 20a9f536e44c3928ad8c3cf7a2959bce557dab8e (diff) |
woah, now really no netlib services anymore
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_secur.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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);
}
/////////////////////////////////////////////////////////////////////////////////////////
|