35 lines
890 B
Diff
35 lines
890 B
Diff
|
Index: gnutls-3.7.3/lib/state.c
|
||
|
===================================================================
|
||
|
--- gnutls-3.7.3.orig/lib/state.c
|
||
|
+++ gnutls-3.7.3/lib/state.c
|
||
|
@@ -794,6 +794,12 @@ void gnutls_deinit(gnutls_session_t sess
|
||
|
gnutls_mutex_deinit(&session->internals.post_negotiation_lock);
|
||
|
gnutls_mutex_deinit(&session->internals.epoch_lock);
|
||
|
|
||
|
+#if defined(__linux__)
|
||
|
+# if defined(ENABLE_FIPS140)
|
||
|
+ _rnd_system_entropy_deinit();
|
||
|
+# endif
|
||
|
+#endif
|
||
|
+
|
||
|
gnutls_free(session);
|
||
|
}
|
||
|
|
||
|
Index: gnutls-3.7.3/lib/nettle/rnd.c
|
||
|
===================================================================
|
||
|
--- gnutls-3.7.3.orig/lib/nettle/rnd.c
|
||
|
+++ gnutls-3.7.3/lib/nettle/rnd.c
|
||
|
@@ -75,6 +75,12 @@ struct generators_ctx_st {
|
||
|
|
||
|
static void wrap_nettle_rnd_deinit(void *_ctx)
|
||
|
{
|
||
|
+#if defined(__linux__)
|
||
|
+# if defined(ENABLE_FIPS140)
|
||
|
+ _rnd_system_entropy_deinit();
|
||
|
+# endif
|
||
|
+#endif
|
||
|
+
|
||
|
gnutls_free(_ctx);
|
||
|
}
|
||
|
|