Remove account-wide nonce
Now that we have per-message nonces we can remove the account-wide one.
This commit is contained in:
parent
dc4e7a3c51
commit
167450a870
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ typedef struct _discord_data {
|
|||
char *id;
|
||||
char *session_id;
|
||||
char *uname;
|
||||
char *nonce;
|
||||
gw_data *gateway;
|
||||
GSList *servers;
|
||||
GSList *pchannels;
|
||||
|
|
Loading…
Reference in New Issue