Remove account-wide nonce

Now that we have per-message nonces we can remove the account-wide one.
This commit is contained in:
Artem Savkov 2018-11-30 20:35:48 +01:00
parent dc4e7a3c51
commit 167450a870
3 changed files with 0 additions and 6 deletions

View File

@ -120,7 +120,6 @@ void free_discord_data(discord_data *dd)
g_slist_free_full(dd->servers, (GDestroyNotify)free_server_info);
free_gw_data(dd->gateway);
g_free(dd->nonce);
g_free(dd->token);
g_free(dd->uname);
g_free(dd->session_id);

View File

@ -138,10 +138,6 @@ static void discord_login(account_t *acc)
dd->keepalive_interval = DEFAULT_KEEPALIVE_INTERVAL;
ic->proto_data = dd;
guchar nonce_bytes[16];
random_bytes(nonce_bytes, sizeof(nonce_bytes));
dd->nonce = g_base64_encode(nonce_bytes, sizeof(nonce_bytes));
discord_do_login(ic);
}

View File

@ -58,7 +58,6 @@ typedef struct _discord_data {
char *id;
char *session_id;
char *uname;
char *nonce;
gw_data *gateway;
GSList *servers;
GSList *pchannels;