return true;
}
+__attribute__((constructor)) static void meshlink_init(void) {
+ /* Slllluuuuuuurrrrp! */
+
+ gettimeofday(&now, NULL);
+ srand(now.tv_sec + now.tv_usec);
+ crypto_init();
+}
+
+__attribute__((destructor)) static void meshlink_exit(void) {
+ crypto_exit();
+}
+
+
bool tinc_main_thread(void * in) {
static bool status = false;
init_configuration(&config_tree);
- /* Slllluuuuuuurrrrp! */
-
- gettimeofday(&now, NULL);
- srand(now.tv_sec + now.tv_usec);
- crypto_init();
-
if(!read_server_config())
return false;
//free(priority);
- crypto_exit();
-
exit_configuration(&config_tree);
return status;