summaryrefslogtreecommitdiff
path: root/other/fun/cracker.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-16 22:46:02 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-21 20:44:26 +0000
commit7245ac11ef9be2420c8356c12acc79f93ea211bb (patch)
treee971c5c6e10c2310afe4b2cd80212feac9839f2a /other/fun/cracker.c
parent7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (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.c11
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
22void print_key(uint8_t *client_id) 23void print_key(uint8_t *client_id)
23{ 24{