]> git.meshlink.io Git - meshlink/blobdiff - src/crypto.h
Don't use assert() to check the results of pthread_*() calls.
[meshlink] / src / crypto.h
index 9e640e3d896ae7d38e5d8161a129d83372d8bed6..9e8a19bcb9ac32b1e60110d8a8202e4e974ef311 100644 (file)
@@ -1,6 +1,9 @@
+#ifndef MESHLINK_CRYPTO_H
+#define MESHLINK_CRYPTO_H
+
 /*
     crypto.h -- header for crypto.c
-    Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
+    Copyright (C) 2014-2020 Guus Sliepen <guus@meshlink.io>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef __TINC_CRYPTO_H__
-#define __TINC_CRYPTO_H__
-
-extern void crypto_init();
-extern void crypto_exit();
-extern void randomize(void *, size_t);
+void crypto_init(void);
+void crypto_exit(void);
+void randomize(void *buf, size_t len);
 
 #endif