diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-16 22:46:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-21 20:44:26 +0000 |
commit | 7245ac11ef9be2420c8356c12acc79f93ea211bb (patch) | |
tree | e971c5c6e10c2310afe4b2cd80212feac9839f2a /other/fun/cracker.c | |
parent | 7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (diff) |
Avoid implementations in .h files or #including .c files.
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
Diffstat (limited to 'other/fun/cracker.c')
-rw-r--r-- | other/fun/cracker.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/other/fun/cracker.c b/other/fun/cracker.c index 9cfe96d7..502a8af0 100644 --- a/other/fun/cracker.c +++ b/other/fun/cracker.c | |||
@@ -9,15 +9,16 @@ | |||
9 | * Will try to find a public key starting with: ABCDEF | 9 | * Will try to find a public key starting with: ABCDEF |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "../../testing/misc_tools.c" | 12 | #include <stdlib.h> |
13 | #include <time.h> | 13 | #include <stdio.h> |
14 | #include <string.h> | ||
14 | 15 | ||
15 | /* NaCl includes*/ | 16 | /* Sodium includes*/ |
16 | #include <sodium/crypto_scalarmult_curve25519.h> | 17 | #include <sodium/crypto_scalarmult_curve25519.h> |
17 | #include <sodium/randombytes.h> | 18 | #include <sodium/randombytes.h> |
18 | 19 | ||
19 | /* Sodium include*/ | 20 | #include "../../testing/misc_tools.h" |
20 | //#include <sodium.h> | 21 | #include "../../toxcore/ccompat.h" |
21 | 22 | ||
22 | void print_key(uint8_t *client_id) | 23 | void print_key(uint8_t *client_id) |
23 | { | 24 | { |