diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
commit | 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 (patch) | |
tree | 035f7a89aeeb3cf07c9d45e495a5ec9fbf3b1d41 /protocols/AimOscar/src/connection.cpp | |
parent | b6330f119c9f253d470dac46b20335811a8e0676 (diff) |
warning fix
Diffstat (limited to 'protocols/AimOscar/src/connection.cpp')
-rwxr-xr-x | protocols/AimOscar/src/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/AimOscar/src/connection.cpp b/protocols/AimOscar/src/connection.cpp index 3ac25b5256..0d4f47f31b 100755 --- a/protocols/AimOscar/src/connection.cpp +++ b/protocols/AimOscar/src/connection.cpp @@ -197,7 +197,7 @@ void fill_session_url(CMStringA &buf, CMStringA &token, CMStringA &secret, time_ */
CMStringA query_string;
- query_string.Format("a=%s&distId=%s&f=xml&k=%s&ts=%llu&useTLS=%d", token, AIM_DEFAULT_DISTID, AIM_DEFAULT_CLIENT_KEY, hosttime, (int)encryption);
+ query_string.Format("a=%s&distId=%s&f=xml&k=%s&ts=%llu&useTLS=%d", token.c_str(), AIM_DEFAULT_DISTID, AIM_DEFAULT_CLIENT_KEY, hosttime, (int)encryption);
BYTE session_key[MIR_SHA256_HASH_SIZE], signature[MIR_SHA256_HASH_SIZE];
mir_hmac_sha256(session_key, (BYTE*)password, mir_strlen(password), (BYTE*)secret.GetString(), secret.GetLength());
@@ -207,7 +207,7 @@ void fill_session_url(CMStringA &buf, CMStringA &token, CMStringA &secret, time_ generate_signature(signature, "GET", AIM_SESSION_URL, query_string, szKey);
ptrA szEncoded(mir_base64_encode(signature, sizeof(signature)));
- buf.Format("%s?%s&sig_sha256=%s", AIM_SESSION_URL, query_string, (char*)szEncoded);
+ buf.Format("%s?%s&sig_sha256=%s", AIM_SESSION_URL, query_string.c_str(), (char*)szEncoded);
}
bool parse_start_socar_session_response(const char *response, CMStringA &bos_host, unsigned short &bos_port, CMStringA &cookie, CMStringA &tls_cert_name, bool encryption = true)
|