diff options
Diffstat (limited to 'protocols/Steam/src/api')
-rw-r--r-- | protocols/Steam/src/api/authorization.h | 6 | ||||
-rw-r--r-- | protocols/Steam/src/api/rsa_key.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/protocols/Steam/src/api/authorization.h b/protocols/Steam/src/api/authorization.h index d3ebc8246c..1b9e389685 100644 --- a/protocols/Steam/src/api/authorization.h +++ b/protocols/Steam/src/api/authorization.h @@ -12,8 +12,8 @@ public: AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
AddHeader("Referer", STEAM_WEB_URL "/mobilelogin/dologin?oauth_client_id=3638BFB1&oauth_scope=read_profile%20write_profile%20read_client%20write_client");
- CMStringA data(CMStringDataFormat::FORMAT,
- "password=%s&username=%s&twofactorcode=%s&emailauth=%s&loginfriendlyname=%s&oauth_client_id=3638BFB1&captchagid=%s&captcha_text=%s&emailsteamid=%s&rsatimestamp=%s&rememberlogin=false&donotcache=%lld",
+ CMStringA data;
+ data.AppendFormat("password=%s&username=%s&twofactorcode=%s&emailauth=%s&loginfriendlyname=%s&oauth_client_id=3638BFB1&captchagid=%s&captcha_text=%s&emailsteamid=%s&rsatimestamp=%s&rememberlogin=false&donotcache=%lld",
ptrA(mir_urlEncode(password)),
ptrA(mir_urlEncode(username)),
twofactorcode,
@@ -24,7 +24,7 @@ public: guardId,
timestamp,
time(NULL));
- SetData(data.GetBuffer(), data.GetLength());
+ SetData(data, data.GetLength());
}
};
diff --git a/protocols/Steam/src/api/rsa_key.h b/protocols/Steam/src/api/rsa_key.h index 1cf33d15ab..5efdec2839 100644 --- a/protocols/Steam/src/api/rsa_key.h +++ b/protocols/Steam/src/api/rsa_key.h @@ -11,8 +11,9 @@ public: AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
- CMStringA data(CMStringDataFormat::FORMAT, "username=%s&donotcache=%lld", ptrA(mir_urlEncode(username)), time(NULL));
- SetData(data.GetBuffer(), data.GetLength());
+ CMStringA data;
+ data.AppendFormat("username=%s&donotcache=%lld", ptrA(mir_urlEncode(username)), time(NULL));
+ SetData(data, data.GetLength());
}
};
|