session CHANGE init/destroy functions unified
There is one init/destroy for client
and one for server, nothing else needs
to be called.
diff --git a/src/session.c b/src/session.c
index e2194d9..7fb8a73 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1074,7 +1074,9 @@
ERR_remove_thread_state(&crypto_tid);
}
-API void
+#endif /* NC_ENABLED_SSH || NC_ENABLED_TLS */
+
+void
nc_init(void)
{
#if defined(NC_ENABLED_SSH) && defined(NC_ENABLED_TLS)
@@ -1086,7 +1088,7 @@
#endif
}
-API void
+void
nc_destroy(void)
{
#if defined(NC_ENABLED_SSH) && defined(NC_ENABLED_TLS)
@@ -1097,5 +1099,3 @@
nc_tls_destroy();
#endif
}
-
-#endif /* NC_ENABLED_SSH || NC_ENABLED_TLS */