1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:43:02 +01:00

Migrate to Camel_Case enum types.

UPPER_CASE enum types are deprecated and will be removed in 0.3.0.
This commit is contained in:
iphydf 2020-03-07 17:59:02 +00:00
parent 437dd8baeb
commit 45ff6d8bac
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -559,7 +559,7 @@ int store_data(Tox *m, const char *path)
return -1;
}
TOX_ERR_ENCRYPTION err;
Tox_Err_Encryption err;
tox_pass_encrypt((uint8_t *) data, data_len, (uint8_t *) user_password.pass, user_password.len,
(uint8_t *) enc_data, &err);
@ -736,7 +736,7 @@ static Tox *load_tox(char *data_path, struct Tox_Options *tox_opts, Tox_Err_New
continue;
}
TOX_ERR_DECRYPTION pwerr;
Tox_Err_Decryption pwerr;
tox_pass_decrypt((uint8_t *) data, len, (uint8_t *) user_password.pass, pwlen,
(uint8_t *) plain, &pwerr);