diff options
Diffstat (limited to 'src/lib/libssl/src/apps/gendsa.c')
-rw-r--r-- | src/lib/libssl/src/apps/gendsa.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/libssl/src/apps/gendsa.c b/src/lib/libssl/src/apps/gendsa.c index 6d2ed06c81..8a296c66e5 100644 --- a/src/lib/libssl/src/apps/gendsa.c +++ b/src/lib/libssl/src/apps/gendsa.c | |||
@@ -56,6 +56,7 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_DSA */ | ||
59 | #ifndef OPENSSL_NO_DSA | 60 | #ifndef OPENSSL_NO_DSA |
60 | #include <stdio.h> | 61 | #include <stdio.h> |
61 | #include <string.h> | 62 | #include <string.h> |
@@ -139,6 +140,10 @@ int MAIN(int argc, char **argv) | |||
139 | else if (strcmp(*argv,"-idea") == 0) | 140 | else if (strcmp(*argv,"-idea") == 0) |
140 | enc=EVP_idea_cbc(); | 141 | enc=EVP_idea_cbc(); |
141 | #endif | 142 | #endif |
143 | #ifndef OPENSSL_NO_SEED | ||
144 | else if (strcmp(*argv,"-seed") == 0) | ||
145 | enc=EVP_seed_cbc(); | ||
146 | #endif | ||
142 | #ifndef OPENSSL_NO_AES | 147 | #ifndef OPENSSL_NO_AES |
143 | else if (strcmp(*argv,"-aes128") == 0) | 148 | else if (strcmp(*argv,"-aes128") == 0) |
144 | enc=EVP_aes_128_cbc(); | 149 | enc=EVP_aes_128_cbc(); |
@@ -147,6 +152,14 @@ int MAIN(int argc, char **argv) | |||
147 | else if (strcmp(*argv,"-aes256") == 0) | 152 | else if (strcmp(*argv,"-aes256") == 0) |
148 | enc=EVP_aes_256_cbc(); | 153 | enc=EVP_aes_256_cbc(); |
149 | #endif | 154 | #endif |
155 | #ifndef OPENSSL_NO_CAMELLIA | ||
156 | else if (strcmp(*argv,"-camellia128") == 0) | ||
157 | enc=EVP_camellia_128_cbc(); | ||
158 | else if (strcmp(*argv,"-camellia192") == 0) | ||
159 | enc=EVP_camellia_192_cbc(); | ||
160 | else if (strcmp(*argv,"-camellia256") == 0) | ||
161 | enc=EVP_camellia_256_cbc(); | ||
162 | #endif | ||
150 | else if (**argv != '-' && dsaparams == NULL) | 163 | else if (**argv != '-' && dsaparams == NULL) |
151 | { | 164 | { |
152 | dsaparams = *argv; | 165 | dsaparams = *argv; |
@@ -169,10 +182,18 @@ bad: | |||
169 | #ifndef OPENSSL_NO_IDEA | 182 | #ifndef OPENSSL_NO_IDEA |
170 | BIO_printf(bio_err," -idea - encrypt the generated key with IDEA in cbc mode\n"); | 183 | BIO_printf(bio_err," -idea - encrypt the generated key with IDEA in cbc mode\n"); |
171 | #endif | 184 | #endif |
185 | #ifndef OPENSSL_NO_SEED | ||
186 | BIO_printf(bio_err," -seed\n"); | ||
187 | BIO_printf(bio_err," encrypt PEM output with cbc seed\n"); | ||
188 | #endif | ||
172 | #ifndef OPENSSL_NO_AES | 189 | #ifndef OPENSSL_NO_AES |
173 | BIO_printf(bio_err," -aes128, -aes192, -aes256\n"); | 190 | BIO_printf(bio_err," -aes128, -aes192, -aes256\n"); |
174 | BIO_printf(bio_err," encrypt PEM output with cbc aes\n"); | 191 | BIO_printf(bio_err," encrypt PEM output with cbc aes\n"); |
175 | #endif | 192 | #endif |
193 | #ifndef OPENSSL_NO_CAMELLIA | ||
194 | BIO_printf(bio_err," -camellia128, -camellia192, -camellia256\n"); | ||
195 | BIO_printf(bio_err," encrypt PEM output with cbc camellia\n"); | ||
196 | #endif | ||
176 | #ifndef OPENSSL_NO_ENGINE | 197 | #ifndef OPENSSL_NO_ENGINE |
177 | BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n"); | 198 | BIO_printf(bio_err," -engine e - use engine e, possibly a hardware device.\n"); |
178 | #endif | 199 | #endif |