diff options
-rw-r--r-- | CMakeLists.txt | 11 | ||||
-rw-r--r-- | core/network.c | 4 | ||||
-rw-r--r-- | core/network.h | 1 | ||||
-rw-r--r-- | docs/FAQ.txt | 83 |
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 | 12 | if(WIN32) | |
13 | set(test_sources | 13 | set(test_sources |
14 | testing/nTox.c) | 14 | testing/Messenger_test.c) |
15 | else() | ||
16 | set(test_sources | ||
17 | #testing/nTox.c) | ||
18 | testing/Messenger_test.c) | ||
19 | endif() | ||
15 | 20 | ||
16 | add_executable(${exe_name} | 21 | add_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 | ||
51 | uint32_t random_int() | 53 | uint32_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 | |||
97 | uint64_t current_time(); | 97 | uint64_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 | ||
100 | uint32_t random_int(); | 101 | uint32_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 @@ | |||
1 | TOX FAQ | ||
2 | ======= | ||
3 | |||
4 | Contents | ||
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 | ================= | ||
27 | Tox is a free (as in freedom) peer to peer messaging application that aims to | ||
28 | replace skype. | ||
29 | |||
30 | (2). Where can I get Tox? | ||
31 | ======================== | ||
32 | It's not done yet. | ||
33 | |||
34 | (3). Tox | ||
35 | ======= | ||
36 | (3.1). Which encryption algorithms does Tox employ? | ||
37 | -------------------------------------------------- | ||
38 | Tox uses the encryption algorithms present in the NaCl crypto library. | ||
39 | |||
40 | (3.2). Does Tox have plugin support? | ||
41 | ----------------------------------- | ||
42 | Maybe. | ||
43 | |||
44 | (3.3). I want to contribute to the Tox project. | ||
45 | ============================================== | ||
46 | (3.3.1). I want to be a developer. | ||
47 | --------------------------------- | ||
48 | Join the IRC. | ||
49 | |||
50 | (3.3.2). I want to contribute in UI design/sound. | ||
51 | ------------------------------------------------ | ||
52 | Join the IRC. | ||
53 | |||
54 | (3.3.3). Are there any other ways I can contribute? | ||
55 | -------------------------------------------------- | ||
56 | Testing the application, reporting bugs and requesting features. Don't be | ||
57 | scared 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 | ----------------------------------------- | ||
63 | The core library: https://github.com/irungentoo/ProjectTox-Core | ||
64 | Some front ends: | ||
65 | (None are in a usable state yet.) | ||
66 | |||
67 | (4.2). How do I compile Tox? | ||
68 | --------------------------- | ||
69 | You need to build and install libsodium. | ||
70 | Then just cd in the repo and: | ||
71 | mkdir build | ||
72 | cd build | ||
73 | cmake .. | ||
74 | make | ||
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 | --------------------------------------------- | ||