From 11a39bb49a1b23aa09379dab21f34975b674fac2 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 13 Jul 2013 19:24:14 -0400 Subject: [PATCH 1/3] Cmake changed, small change in random_int() Cmake builds now builds the new ncurses test only on non windows. --- CMakeLists.txt | 10 +++++++--- core/network.c | 4 +++- core/network.h | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23bfdcdb..5eb00b90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,13 @@ set(core_sources core/Lossless_UDP.c core/net_crypto.c core/Messenger.c) - -set(test_sources - testing/nTox.c) +if(WIN32) + set(test_sources + testing/Messenger_test.c) +else() + set(test_sources + testing/nTox.c) +endif() add_executable(${exe_name} ${core_sources} diff --git a/core/network.c b/core/network.c index 9693df1c..c08b3512 100644 --- a/core/network.c +++ b/core/network.c @@ -48,9 +48,11 @@ uint64_t current_time() } +//return a random number +//NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary uint32_t random_int() { - #ifdef WIN32 + #ifndef VANILLA_NACL //NOTE: this function comes from libsodium return randombytes_random(); #else diff --git a/core/network.h b/core/network.h index 4fa30905..33f11239 100644 --- a/core/network.h +++ b/core/network.h @@ -97,6 +97,7 @@ typedef struct uint64_t current_time(); //return a random number +//NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary uint32_t random_int(); //Basic network functions: From 5b761ba9caea06954d31b6057d35cd47dee79a61 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 13 Jul 2013 19:49:27 -0400 Subject: [PATCH 2/3] Added FAQ --- docs/FAQ.txt | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 docs/FAQ.txt diff --git a/docs/FAQ.txt b/docs/FAQ.txt new file mode 100644 index 00000000..7ecf1471 --- /dev/null +++ b/docs/FAQ.txt @@ -0,0 +1,83 @@ +TOX FAQ +======= + +Contents +======== + +(1). What is Tox? +(2). Where can I get Tox? +(3). Tox +(3.1) Which encryption algorithms does Tox employ? +(3.2) Does Tox have plugin support? +(3.3) I want to contribute to the Tox project. +(3.3.1) I want to be a developer. +(3.3.2) I want to contribute in UI design/sound. +(3.3.3) Are there any other ways I can contribute? +(4). Source +(4.1) Where do I get the Tox source code? +(4.2) How do I compile Tox? + +(5). Community +(5.1) Where can I find the latest Tox thread? +(5.2) Are there any other Tox threads/forums? +=============================================================================== + +(1). What is Tox? +================= +Tox is a free (as in freedom) peer to peer messaging application that aims to +replace skype. + +(2). Where can I get Tox? +======================== +It's not done yet. + +(3). Tox +======= +(3.1). Which encryption algorithms does Tox employ? +-------------------------------------------------- +Tox uses the encryption algorithms present in the NaCl crypto library. + +(3.2). Does Tox have plugin support? +----------------------------------- +Maybe. + +(3.3). I want to contribute to the Tox project. +============================================== +(3.3.1). I want to be a developer. +--------------------------------- +Join the IRC. + +(3.3.2). I want to contribute in UI design/sound. +------------------------------------------------ +Join the IRC. + +(3.3.3). Are there any other ways I can contribute? +-------------------------------------------------- +Testing the application, reporting bugs and requesting features. Don't be +scared to criticize something if you think it is done wrong. + +(4). Source +=========== +(4.1). Where do I get the Tox source code? +----------------------------------------- +The core library: https://github.com/irungentoo/ProjectTox-Core +Some front ends: +(None are in a usable state yet.) + +(4.2). How do I compile Tox? +--------------------------- +You need to build and install libsodium. +Then just cd in the repo and: +mkdir build +cd build +cmake .. +make + +(5). Community +============== +(5.1). Where can I find the latest Tox thread? +--------------------------------------------- + + +(5.2). Are there any other Tox threads/forums? +--------------------------------------------- From 65bda2a6c9c4bf3a207271c01aaf4b030db0415a Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 13 Jul 2013 21:07:30 -0400 Subject: [PATCH 3/3] ncurses test doesn't work very well. Putting back the old test. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5eb00b90..552359c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,8 @@ if(WIN32) testing/Messenger_test.c) else() set(test_sources - testing/nTox.c) + #testing/nTox.c) + testing/Messenger_test.c) endif() add_executable(${exe_name}