1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 19:20:36 -04:00
ports/www/links-hacked/files/patch-https.c
Bernard Spil 6bbaf0576e www/links-hacked: Fix build without RAND_egd
- Add patch for building without EGD (OpenSSL 1.1/LibreSSL)
  - Move from USE_OPENSSL to USES=ssl

PR:		198766
2016-07-02 10:29:47 +00:00

14 lines
437 B
C

--- https.c.orig 2008-06-07 07:41:41 UTC
+++ https.c
@@ -15,7 +15,10 @@ SSL *getSSL(void)
char f_randfile[PATH_MAX];
if (!context) {
- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile)))<0){
+#ifndef OPENSSL_NO_EGD
+ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile)))<0)
+#endif
+ {
/* Not an EGD, so read and write to it */
if (RAND_load_file(f_randfile, -1))
RAND_write_file(f_randfile);