summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-30 23:10:17 +1100
committerDamien Miller <djm@mindrot.org>2015-02-18 22:29:32 +1100
commit773dda25e828c4c9a52f7bdce6e1e5924157beab (patch)
tree831507f35a8feb0ae984a7a13f521932a0fedb61 /ssh-keygen.c
parente89c780886b23600de1e1c8d74aabd1ff61f43f0 (diff)
repair --without-openssl; broken in refactor
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 9b2068254..923874825 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -192,6 +192,7 @@ type_bits_valid(int type, const char *name, u_int32_t *bitsp)
192 exit(1); 192 exit(1);
193 } 193 }
194 if (*bitsp == 0) { 194 if (*bitsp == 0) {
195#ifdef WITH_OPENSSL
195 if (type == KEY_DSA) 196 if (type == KEY_DSA)
196 *bitsp = DEFAULT_BITS_DSA; 197 *bitsp = DEFAULT_BITS_DSA;
197 else if (type == KEY_ECDSA) { 198 else if (type == KEY_ECDSA) {
@@ -200,8 +201,8 @@ type_bits_valid(int type, const char *name, u_int32_t *bitsp)
200 *bitsp = sshkey_curve_nid_to_bits(nid); 201 *bitsp = sshkey_curve_nid_to_bits(nid);
201 if (*bitsp == 0) 202 if (*bitsp == 0)
202 *bitsp = DEFAULT_BITS_ECDSA; 203 *bitsp = DEFAULT_BITS_ECDSA;
203 } 204 } else
204 else 205#endif
205 *bitsp = DEFAULT_BITS; 206 *bitsp = DEFAULT_BITS;
206 } 207 }
207#ifdef WITH_OPENSSL 208#ifdef WITH_OPENSSL