diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 2dfbb24b3..5539fe17a 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.114 2004/05/08 00:21:31 djm Exp $"); | 15 | RCSID("$OpenBSD: ssh-keygen.c,v 1.115 2004/05/09 00:06:47 djm Exp $"); |
16 | 16 | ||
17 | #include <openssl/evp.h> | 17 | #include <openssl/evp.h> |
18 | #include <openssl/pem.h> | 18 | #include <openssl/pem.h> |
@@ -27,7 +27,6 @@ RCSID("$OpenBSD: ssh-keygen.c,v 1.114 2004/05/08 00:21:31 djm Exp $"); | |||
27 | #include "pathnames.h" | 27 | #include "pathnames.h" |
28 | #include "log.h" | 28 | #include "log.h" |
29 | #include "misc.h" | 29 | #include "misc.h" |
30 | #include "moduli.h" | ||
31 | 30 | ||
32 | #ifdef SMARTCARD | 31 | #ifdef SMARTCARD |
33 | #include "scard.h" | 32 | #include "scard.h" |
@@ -85,6 +84,10 @@ char *__progname; | |||
85 | 84 | ||
86 | char hostname[MAXHOSTNAMELEN]; | 85 | char hostname[MAXHOSTNAMELEN]; |
87 | 86 | ||
87 | /* moduli.c */ | ||
88 | int gen_candidates(FILE *, int, int, BIGNUM *); | ||
89 | int prime_test(FILE *, FILE *, u_int32_t, u_int32_t); | ||
90 | |||
88 | static void | 91 | static void |
89 | ask_filename(struct passwd *pw, const char *prompt) | 92 | ask_filename(struct passwd *pw, const char *prompt) |
90 | { | 93 | { |
@@ -911,18 +914,9 @@ main(int ac, char **av) | |||
911 | break; | 914 | break; |
912 | case 'a': | 915 | case 'a': |
913 | trials = atoi(optarg); | 916 | trials = atoi(optarg); |
914 | if (trials < TRIAL_MINIMUM) { | ||
915 | fatal("Minimum primality trials is %d", | ||
916 | TRIAL_MINIMUM); | ||
917 | } | ||
918 | break; | 917 | break; |
919 | case 'M': | 918 | case 'M': |
920 | memory = atoi(optarg); | 919 | memory = atoi(optarg); |
921 | if (memory != 0 && | ||
922 | (memory < LARGE_MINIMUM || memory > LARGE_MAXIMUM)) { | ||
923 | fatal("Invalid memory amount (min %ld, max %ld)", | ||
924 | LARGE_MINIMUM, LARGE_MAXIMUM); | ||
925 | } | ||
926 | break; | 920 | break; |
927 | case 'G': | 921 | case 'G': |
928 | do_gen_candidates = 1; | 922 | do_gen_candidates = 1; |