diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-31 22:06:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-31 22:06:08 +0300 |
commit | fd7664239bffceaef2c233f74466304a4cf85aaa (patch) | |
tree | d2c0e7cbcaa10020edd8d7fbe419f0395a1fa68c /src/mir_app | |
parent | 0e6b6b3b145c58cd881aabd0dafa8803a6ba95f7 (diff) |
fix for possible problem with cyrillic file names in NTLM auth
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/netlibsecurity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/netlibsecurity.cpp b/src/mir_app/src/netlibsecurity.cpp index 86bfb51209..b30146e7ca 100644 --- a/src/mir_app/src/netlibsecurity.cpp +++ b/src/mir_app/src/netlibsecurity.cpp @@ -342,8 +342,8 @@ char* NtlmCreateResponseFromChallenge(HANDLE hSecurity, const char *szChallenge, if (!login || !psw)
return nullptr;
- CMStringA szAuth(FORMAT, "%S:%S", login, psw);
- szOutputToken = mir_base64_encode(szAuth.c_str(), szAuth.GetLength());
+ T2Utf szAuth(CMStringW(FORMAT, L"%s:%s", login, psw));
+ szOutputToken = mir_base64_encode(szAuth.get(), mir_strlen(szAuth));
complete = true;
}
|