diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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(); |