dep/rcheevos: Use https for requests in url.c
This commit is contained in:
parent
3ccaddc7e6
commit
20fa5b74d2
|
@ -67,7 +67,7 @@ int rc_url_award_cheevo(char* buffer, size_t size, const char* user_name, const
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=awardachievement&u=%s&t=%s&a=%u&h=%d",
|
"https://retroachievements.org/dorequest.php?r=awardachievement&u=%s&t=%s&a=%u&h=%d",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_login_token,
|
urle_login_token,
|
||||||
cheevo_id,
|
cheevo_id,
|
||||||
|
@ -106,7 +106,7 @@ int rc_url_submit_lboard(char* buffer, size_t size, const char* user_name, const
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=submitlbentry&u=%s&t=%s&i=%u&s=%d&v=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
|
"https://retroachievements.org/dorequest.php?r=submitlbentry&u=%s&t=%s&i=%u&s=%d&v=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_login_token,
|
urle_login_token,
|
||||||
lboard_id,
|
lboard_id,
|
||||||
|
@ -122,7 +122,7 @@ int rc_url_get_gameid(char* buffer, size_t size, const char* hash) {
|
||||||
int written = snprintf(
|
int written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=gameid&m=%s",
|
"https://retroachievements.org/dorequest.php?r=gameid&m=%s",
|
||||||
hash
|
hash
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ int rc_url_get_patch(char* buffer, size_t size, const char* user_name, const cha
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=patch&u=%s&t=%s&g=%u",
|
"https://retroachievements.org/dorequest.php?r=patch&u=%s&t=%s&g=%u",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_login_token,
|
urle_login_token,
|
||||||
gameid
|
gameid
|
||||||
|
@ -181,7 +181,7 @@ int rc_url_login_with_password(char* buffer, size_t size, const char* user_name,
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=login&u=%s&p=%s",
|
"https://retroachievements.org/dorequest.php?r=login&u=%s&p=%s",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_password
|
urle_password
|
||||||
);
|
);
|
||||||
|
@ -205,7 +205,7 @@ int rc_url_login_with_token(char* buffer, size_t size, const char* user_name, co
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=login&u=%s&t=%s",
|
"https://retroachievements.org/dorequest.php?r=login&u=%s&t=%s",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_login_token
|
urle_login_token
|
||||||
);
|
);
|
||||||
|
@ -229,7 +229,7 @@ int rc_url_get_unlock_list(char* buffer, size_t size, const char* user_name, con
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=unlocks&u=%s&t=%s&g=%u&h=%d",
|
"https://retroachievements.org/dorequest.php?r=unlocks&u=%s&t=%s&g=%u&h=%d",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_login_token,
|
urle_login_token,
|
||||||
gameid,
|
gameid,
|
||||||
|
@ -255,7 +255,7 @@ int rc_url_post_playing(char* buffer, size_t size, const char* user_name, const
|
||||||
written = snprintf(
|
written = snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
size,
|
size,
|
||||||
"http://retroachievements.org/dorequest.php?r=postactivity&u=%s&t=%s&a=3&m=%u",
|
"https://retroachievements.org/dorequest.php?r=postactivity&u=%s&t=%s&a=3&m=%u",
|
||||||
urle_user_name,
|
urle_user_name,
|
||||||
urle_login_token,
|
urle_login_token,
|
||||||
gameid
|
gameid
|
||||||
|
@ -333,7 +333,7 @@ static int rc_url_append_str(char* buffer, size_t buffer_size, size_t* buffer_of
|
||||||
static int rc_url_build_dorequest(char* url_buffer, size_t url_buffer_size, size_t* buffer_offset,
|
static int rc_url_build_dorequest(char* url_buffer, size_t url_buffer_size, size_t* buffer_offset,
|
||||||
const char* api, const char* user_name)
|
const char* api, const char* user_name)
|
||||||
{
|
{
|
||||||
const char* base_url = "http://retroachievements.org/dorequest.php";
|
const char* base_url = "https://retroachievements.org/dorequest.php";
|
||||||
size_t written = strlen(base_url);
|
size_t written = strlen(base_url);
|
||||||
int failure = 0;
|
int failure = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue