mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
16 lines
542 B
Plaintext
16 lines
542 B
Plaintext
Index: https.c
|
|
--- https.c.orig
|
|
+++ https.c
|
|
@@ -264,6 +264,11 @@ links_ssl *getSSL(void)
|
|
RAND_write_file(cast_const_char f_randfile);
|
|
}
|
|
}
|
|
+#elif defined(HAVE_RAND_FILE_NAME) && defined(HAVE_RAND_LOAD_FILE) && defined(HAVE_RAND_WRITE_FILE)
|
|
+ unsigned char f_randfile[PATH_MAX];
|
|
+ const unsigned char *f = (const unsigned char *)RAND_file_name(cast_char f_randfile, sizeof(f_randfile));
|
|
+ if (RAND_load_file(cast_const_char f_randfile, -1))
|
|
+ RAND_write_file(cast_const_char f_randfile);
|
|
#endif
|
|
|
|
#if defined(HAVE_RAND_ADD)
|