aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index bcc432a..e0116c8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,12 +17,13 @@ static int __init mod_init(void)
int ret = 0;
#ifdef DEBUG
- routing_table_selftest();
- packet_counter_selftest();
- curve25519_selftest();
- chacha20poly1305_selftest();
- blake2s_selftest();
- siphash24_selftest();
+ if (!routing_table_selftest() ||
+ !packet_counter_selftest() ||
+ !curve25519_selftest() ||
+ !chacha20poly1305_selftest() ||
+ !blake2s_selftest() ||
+ !siphash24_selftest())
+ return -ENOTRECOVERABLE;
#endif
chacha20poly1305_init();
noise_init();