From 430f999f00224a68a967e7122894b469d5ee60bf Mon Sep 17 00:00:00 2001 From: aunsane Date: Fri, 13 Apr 2018 22:54:05 +0300 Subject: Tox: added logging from toxcore - toxcore updated to 0.2.1 - toxcore now bootstraped with random two nodes - version bump --- protocols/Tox/src/tox_profile.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/Tox/src/tox_profile.cpp') 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); -- cgit v1.2.3