summaryrefslogtreecommitdiff
path: root/dev-libs/libressl/files/libressl-3.7.2-genrsa-rand.patch
blob: 66fe21abc923c466a8f3b510845897a7cd649fe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Gentoo's ssl-cert.eclass uses 'openssl genrsa -rand'.

Upstream Issue: https://github.com/libressl/portable/issues/839

--- a/apps/openssl/genrsa.c.orig
+++ b/apps/openssl/genrsa.c
@@ -90,6 +90,7 @@ static struct {
 	unsigned long f4;
 	char *outfile;
 	char *passargout;
+	char *rand_dummy;
 } cfg;
 
 static int
@@ -251,6 +252,11 @@ static const struct option genrsa_option
 		.desc = "Output file passphrase source",
 		.type = OPTION_ARG,
 		.opt.arg = &cfg.passargout,
+	},
+	{
+		.name = "rand",
+		.type = OPTION_ARG,
+		.opt.arg = &cfg.rand_dummy,
 	},
 	{ NULL },
 };