diff options
Diffstat (limited to 'src/lib/libssl/src/apps/rand.c')
-rw-r--r-- | src/lib/libssl/src/apps/rand.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libssl/src/apps/rand.c b/src/lib/libssl/src/apps/rand.c index 8606e0a40b..422dcef744 100644 --- a/src/lib/libssl/src/apps/rand.c +++ b/src/lib/libssl/src/apps/rand.c | |||
@@ -64,7 +64,6 @@ | |||
64 | #include <openssl/rand.h> | 64 | #include <openssl/rand.h> |
65 | 65 | ||
66 | /* -out file - write to file | 66 | /* -out file - write to file |
67 | * -rand file:file - PRNG seed files | ||
68 | * -base64 - base64 encode output | 67 | * -base64 - base64 encode output |
69 | * -hex - hex encode output | 68 | * -hex - hex encode output |
70 | * num - write 'num' bytes | 69 | * num - write 'num' bytes |
@@ -78,7 +77,6 @@ rand_main(int argc, char **argv) | |||
78 | int i, r, ret = 1; | 77 | int i, r, ret = 1; |
79 | int badopt; | 78 | int badopt; |
80 | char *outfile = NULL; | 79 | char *outfile = NULL; |
81 | char *inrand = NULL; | ||
82 | int base64 = 0; | 80 | int base64 = 0; |
83 | int hex = 0; | 81 | int hex = 0; |
84 | BIO *out = NULL; | 82 | BIO *out = NULL; |
@@ -107,12 +105,7 @@ rand_main(int argc, char **argv) | |||
107 | badopt = 1; | 105 | badopt = 1; |
108 | } | 106 | } |
109 | #endif | 107 | #endif |
110 | else if (strcmp(argv[i], "-rand") == 0) { | 108 | else if (strcmp(argv[i], "-base64") == 0) { |
111 | if ((argv[i + 1] != NULL) && (inrand == NULL)) | ||
112 | inrand = argv[++i]; | ||
113 | else | ||
114 | badopt = 1; | ||
115 | } else if (strcmp(argv[i], "-base64") == 0) { | ||
116 | if (!base64) | 109 | if (!base64) |
117 | base64 = 1; | 110 | base64 = 1; |
118 | else | 111 | else |
@@ -146,7 +139,6 @@ rand_main(int argc, char **argv) | |||
146 | #ifndef OPENSSL_NO_ENGINE | 139 | #ifndef OPENSSL_NO_ENGINE |
147 | BIO_printf(bio_err, "-engine e - use engine e, possibly a hardware device.\n"); | 140 | BIO_printf(bio_err, "-engine e - use engine e, possibly a hardware device.\n"); |
148 | #endif | 141 | #endif |
149 | BIO_printf(bio_err, "-rand file:file:... - seed PRNG from files\n"); | ||
150 | BIO_printf(bio_err, "-base64 - base64 encode output\n"); | 142 | BIO_printf(bio_err, "-base64 - base64 encode output\n"); |
151 | BIO_printf(bio_err, "-hex - hex encode output\n"); | 143 | BIO_printf(bio_err, "-hex - hex encode output\n"); |
152 | goto err; | 144 | goto err; |