version 1.110, 2003/10/14 19:42:10 |
version 1.111, 2003/11/21 11:57:03 |
|
|
case 'a': |
case 'a': |
trials = atoi(optarg); |
trials = atoi(optarg); |
if (trials < TRIAL_MINIMUM) { |
if (trials < TRIAL_MINIMUM) { |
fatal("Minimum primality trials is %d", |
fatal("Minimum primality trials is %d", |
TRIAL_MINIMUM); |
TRIAL_MINIMUM); |
} |
} |
break; |
break; |
case 'M': |
case 'M': |
memory = atoi(optarg); |
memory = atoi(optarg); |
if (memory != 0 && |
if (memory != 0 && |
(memory < LARGE_MINIMUM || memory > LARGE_MAXIMUM)) { |
(memory < LARGE_MINIMUM || memory > LARGE_MAXIMUM)) { |
fatal("Invalid memory amount (min %ld, max %ld)", |
fatal("Invalid memory amount (min %ld, max %ld)", |
LARGE_MINIMUM, LARGE_MAXIMUM); |
LARGE_MINIMUM, LARGE_MAXIMUM); |
|
|
|
|
if (do_gen_candidates) { |
if (do_gen_candidates) { |
FILE *out = fopen(out_file, "w"); |
FILE *out = fopen(out_file, "w"); |
|
|
if (out == NULL) { |
if (out == NULL) { |
error("Couldn't open modulus candidate file \"%s\": %s", |
error("Couldn't open modulus candidate file \"%s\": %s", |
out_file, strerror(errno)); |
out_file, strerror(errno)); |
|
|
if (have_identity && strcmp(identity_file, "-") != 0) { |
if (have_identity && strcmp(identity_file, "-") != 0) { |
if ((in = fopen(identity_file, "r")) == NULL) { |
if ((in = fopen(identity_file, "r")) == NULL) { |
fatal("Couldn't open modulus candidate " |
fatal("Couldn't open modulus candidate " |
"file \"%s\": %s", identity_file, |
"file \"%s\": %s", identity_file, |
strerror(errno)); |
strerror(errno)); |
} |
} |
} else |
} else |