summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Hunt <oliver.huntuk@gmail.com>2013-07-14 02:57:16 +0100
committerOliver Hunt <oliver.huntuk@gmail.com>2013-07-14 02:57:16 +0100
commitb69fbb15e277effe0dc620c9d26d1741848b5ce6 (patch)
tree01b32bd2f2b38f8d65ba70f45fe159e5cb1adaf8
parent9f38ab582c7d37548faf421136c58e128dd824d1 (diff)
parent65bda2a6c9c4bf3a207271c01aaf4b030db0415a (diff)
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into ncursesclient
-rw-r--r--CMakeLists.txt11
-rw-r--r--core/network.c4
-rw-r--r--core/network.h1
-rw-r--r--docs/FAQ.txt83
4 files changed, 95 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 23bfdcdb..552359c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,9 +9,14 @@ set(core_sources
9 core/Lossless_UDP.c 9 core/Lossless_UDP.c
10 core/net_crypto.c 10 core/net_crypto.c
11 core/Messenger.c) 11 core/Messenger.c)
12 12if(WIN32)
13set(test_sources 13 set(test_sources
14 testing/nTox.c) 14 testing/Messenger_test.c)
15else()
16 set(test_sources
17 #testing/nTox.c)
18 testing/Messenger_test.c)
19endif()
15 20
16add_executable(${exe_name} 21add_executable(${exe_name}
17 ${core_sources} 22 ${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()
48 48
49} 49}
50 50
51//return a random number
52//NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary
51uint32_t random_int() 53uint32_t random_int()
52{ 54{
53 #ifdef WIN32 55 #ifndef VANILLA_NACL
54 //NOTE: this function comes from libsodium 56 //NOTE: this function comes from libsodium
55 return randombytes_random(); 57 return randombytes_random();
56 #else 58 #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
97uint64_t current_time(); 97uint64_t current_time();
98 98
99//return a random number 99//return a random number
100//NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary
100uint32_t random_int(); 101uint32_t random_int();
101 102
102//Basic network functions: 103//Basic network functions:
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 @@
1TOX FAQ
2=======
3
4Contents
5========
6
7(1). What is Tox?
8(2). Where can I get Tox?
9(3). Tox
10(3.1) Which encryption algorithms does Tox employ?
11(3.2) Does Tox have plugin support?
12(3.3) I want to contribute to the Tox project.
13(3.3.1) I want to be a developer.
14(3.3.2) I want to contribute in UI design/sound.
15(3.3.3) Are there any other ways I can contribute?
16(4). Source
17(4.1) Where do I get the Tox source code?
18(4.2) How do I compile Tox?
19
20(5). Community
21(5.1) Where can I find the latest Tox thread?
22(5.2) Are there any other Tox threads/forums?
23===============================================================================
24
25(1). What is Tox?
26=================
27Tox is a free (as in freedom) peer to peer messaging application that aims to
28replace skype.
29
30(2). Where can I get Tox?
31========================
32It's not done yet.
33
34(3). Tox
35=======
36(3.1). Which encryption algorithms does Tox employ?
37--------------------------------------------------
38Tox uses the encryption algorithms present in the NaCl crypto library.
39
40(3.2). Does Tox have plugin support?
41-----------------------------------
42Maybe.
43
44(3.3). I want to contribute to the Tox project.
45==============================================
46(3.3.1). I want to be a developer.
47---------------------------------
48Join the IRC.
49
50(3.3.2). I want to contribute in UI design/sound.
51------------------------------------------------
52Join the IRC.
53
54(3.3.3). Are there any other ways I can contribute?
55--------------------------------------------------
56Testing the application, reporting bugs and requesting features. Don't be
57scared to criticize something if you think it is done wrong.
58
59(4). Source
60===========
61(4.1). Where do I get the Tox source code?
62-----------------------------------------
63The core library: https://github.com/irungentoo/ProjectTox-Core
64Some front ends:
65(None are in a usable state yet.)
66
67(4.2). How do I compile Tox?
68---------------------------
69You need to build and install libsodium.
70Then just cd in the repo and:
71mkdir build
72cd build
73cmake ..
74make
75
76(5). Community
77==============
78(5.1). Where can I find the latest Tox thread?
79---------------------------------------------
80
81
82(5.2). Are there any other Tox threads/forums?
83---------------------------------------------