diff options
author | aunsane <aunsane@gmail.com> | 2018-04-13 22:54:05 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-04-13 22:54:27 +0300 |
commit | 430f999f00224a68a967e7122894b469d5ee60bf (patch) | |
tree | b552ff57e5c8a0f1de49208eb511f4edb38f2032 /protocols/Tox/src/tox_profile.cpp | |
parent | 81dd07b3ae0c7f31da0c6766b8b325e2601e4195 (diff) |
Tox: added logging from toxcore
- toxcore updated to 0.2.1
- toxcore now bootstraped with random two nodes
- version bump
Diffstat (limited to 'protocols/Tox/src/tox_profile.cpp')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index a5ced0c8f9..76f59202d8 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -111,13 +111,11 @@ void CToxProto::SaveToxProfile(Tox *tox) tox_get_savedata(tox, data);
pass_ptrA password(mir_utf8encodeW(pass_ptrW(getWStringA(TOX_SETTINGS_PASSWORD))));
- if (password && mir_strlen(password))
- {
+ if (password && mir_strlen(password)) {
TOX_ERR_ENCRYPTION coreEncryptError;
size_t encryptedSize = size + TOX_PASS_ENCRYPTION_EXTRA_LENGTH;
uint8_t *encryptedData = (uint8_t*)mir_calloc(encryptedSize);
- if (!tox_pass_encrypt(data, size, (uint8_t*)(char*)password, mir_strlen(password), encryptedData, &coreEncryptError))
- {
+ if (!tox_pass_encrypt(data, size, (uint8_t*)(char*)password, mir_strlen(password), encryptedData, &coreEncryptError)) {
debugLogA(__FUNCTION__": failed to encrypt tox profile");
mir_free(data);
mir_free(encryptedData);
|