summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/genrsa.c
diff options
context:
space:
mode:
authorjsing <>2014-06-02 16:23:18 +0000
committerjsing <>2014-06-02 16:23:18 +0000
commit3d75775dc328040cdd18c18790f2aa07d0bb1acf (patch)
treea6b3ced689315ac9ed257dceff022da124c81f44 /src/lib/libssl/src/apps/genrsa.c
parent63bcac43aa0d6361864d2102a9cbe8ec910b763e (diff)
downloadopenbsd-3d75775dc328040cdd18c18790f2aa07d0bb1acf.tar.gz
openbsd-3d75775dc328040cdd18c18790f2aa07d0bb1acf.tar.bz2
openbsd-3d75775dc328040cdd18c18790f2aa07d0bb1acf.zip
Stop pretending that openssl(1) applications support the -rand option.
The underlying code has long been removed, making this a no-op. If your random subsystem actually requires that you seed it from a file, then you really should go and buy a new random subsystem that was built after 1990. Diff from Brent Cook. ok deraadt@
Diffstat (limited to 'src/lib/libssl/src/apps/genrsa.c')
-rw-r--r--src/lib/libssl/src/apps/genrsa.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/libssl/src/apps/genrsa.c b/src/lib/libssl/src/apps/genrsa.c
index 300b4b0da2..9481dc4218 100644
--- a/src/lib/libssl/src/apps/genrsa.c
+++ b/src/lib/libssl/src/apps/genrsa.c
@@ -106,7 +106,6 @@ genrsa_main(int argc, char **argv)
106#ifndef OPENSSL_NO_ENGINE 106#ifndef OPENSSL_NO_ENGINE
107 char *engine = NULL; 107 char *engine = NULL;
108#endif 108#endif
109 char *inrand = NULL;
110 BIO *out = NULL; 109 BIO *out = NULL;
111 BIGNUM *bn = BN_new(); 110 BIGNUM *bn = BN_new();
112 RSA *rsa = NULL; 111 RSA *rsa = NULL;
@@ -143,11 +142,6 @@ genrsa_main(int argc, char **argv)
143 engine = *(++argv); 142 engine = *(++argv);
144 } 143 }
145#endif 144#endif
146 else if (strcmp(*argv, "-rand") == 0) {
147 if (--argc < 1)
148 goto bad;
149 inrand = *(++argv);
150 }
151#ifndef OPENSSL_NO_DES 145#ifndef OPENSSL_NO_DES
152 else if (strcmp(*argv, "-des") == 0) 146 else if (strcmp(*argv, "-des") == 0)
153 enc = EVP_des_cbc(); 147 enc = EVP_des_cbc();
@@ -206,9 +200,6 @@ bad:
206#ifndef OPENSSL_NO_ENGINE 200#ifndef OPENSSL_NO_ENGINE
207 BIO_printf(bio_err, " -engine e use engine e, possibly a hardware device.\n"); 201 BIO_printf(bio_err, " -engine e use engine e, possibly a hardware device.\n");
208#endif 202#endif
209 BIO_printf(bio_err, " -rand file:file:...\n");
210 BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
211 BIO_printf(bio_err, " the random number generator\n");
212 goto err; 203 goto err;
213 } 204 }
214 ERR_load_crypto_strings(); 205 ERR_load_crypto_strings();