summaryrefslogtreecommitdiffhomepage
path: root/patches/libressl-3.9.0.local.patch
blob: 8235cc0cafb991b7e5877a12896b66673c69443e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -ru libressl-3.7.1.orig/crypto/compat/arc4random_linux.h libressl-3.7.1/crypto/compat/arc4random_linux.h
--- libressl-3.7.1.orig/crypto/compat/arc4random_linux.h	2023-05-14 00:44:53.716886970 +0200
+++ libressl-3.7.1/crypto/compat/arc4random_linux.h	2023-05-14 00:44:32.052886839 +0200
@@ -27,6 +27,7 @@
 
 #include <pthread.h>
 #include <signal.h>
+#include <stdio.h>
 
 static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER;
 #define _ARC4_LOCK()   pthread_mutex_lock(&arc4random_mtx)
@@ -43,6 +44,7 @@
 static inline void
 _getentropy_fail(void)
 {
+	fprintf(stderr, "Couldn't obtain randomness from getentropy\n");
 	raise(SIGKILL);
 }