From 9cb64ba2151b213f5544b2e53c6668061f197b9c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Jun 2015 13:43:01 +0000 Subject: MS_UTILS_GETRANDOM -> mir_core::Utils_GetRandom git-svn-id: http://svn.miranda-ng.org/main/trunk@14299 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_secur.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp index 24c93439db..9edeb32d7e 100644 --- a/protocols/JabberG/src/jabber_secur.cpp +++ b/protocols/JabberG/src/jabber_secur.cpp @@ -154,7 +154,7 @@ char* TMD5Auth::getChallenge(const TCHAR *challenge) DWORD digest[4], hash1[4], hash2[4]; mir_md5_state_t ctx; - CallService(MS_UTILS_GETRANDOM, sizeof(digest), (LPARAM)digest); + Utils_GetRandom(digest, sizeof(digest)); mir_snprintf(cnonce, _countof(cnonce), "%08x%08x%08x%08x", htonl(digest[0]), htonl(digest[1]), htonl(digest[2]), htonl(digest[3])); T2Utf uname(info->conn.username), passw(info->conn.password); @@ -306,7 +306,7 @@ char* TScramAuth::getInitialRequest() T2Utf uname(info->conn.username); unsigned char nonce[24]; - CallService(MS_UTILS_GETRANDOM, sizeof(nonce), (LPARAM)nonce); + Utils_GetRandom(nonce, sizeof(nonce)); cnonce = mir_base64_encode((PBYTE)nonce, sizeof(nonce)); char buf[4096]; -- cgit v1.2.3