summaryrefslogtreecommitdiff
path: root/www/links+/patches/patch-https_c
diff options
context:
space:
mode:
Diffstat (limited to 'www/links+/patches/patch-https_c')
-rw-r--r--www/links+/patches/patch-https_c16
1 files changed, 0 insertions, 16 deletions
diff --git a/www/links+/patches/patch-https_c b/www/links+/patches/patch-https_c
deleted file mode 100644
index 14579d4..0000000
--- a/www/links+/patches/patch-https_c
+++ /dev/null
@@ -1,16 +0,0 @@
1$OpenBSD: patch-https_c,v 1.7 2018/09/23 20:12:32 sthen Exp $
2Index: https.c
3--- https.c.orig
4+++ https.c
5@@ -264,6 +264,11 @@ links_ssl *getSSL(void)
6 RAND_write_file(cast_const_char f_randfile);
7 }
8 }
9+#elif defined(HAVE_RAND_FILE_NAME) && defined(HAVE_RAND_LOAD_FILE) && defined(HAVE_RAND_WRITE_FILE)
10+ unsigned char f_randfile[PATH_MAX];
11+ const unsigned char *f = (const unsigned char *)RAND_file_name(cast_char f_randfile, sizeof(f_randfile));
12+ if (RAND_load_file(cast_const_char f_randfile, -1))
13+ RAND_write_file(cast_const_char f_randfile);
14 #endif
15
16 #if defined(HAVE_RAND_ADD)