Commit f9130382 authored by Niels Möller's avatar Niels Möller
Browse files

* src/lsh-keygen.c (main): When generating an rsa key, display a

better message before trying again.

Rev: src/lsh-keygen.c:1.6
parent b1410405
......@@ -213,7 +213,7 @@ int main(int argc, char **argv)
mpz_t e;
mpz_init(e);
do
for (;;)
{
/* Use a reasonably small random e, and make sure that at
* it is odd and has at most one more one bit. */
......@@ -222,8 +222,11 @@ int main(int argc, char **argv)
mpz_setbit(e, 17);
key = rsa_generate_key(e, &r->super, options->level);
if (key)
break;
verbose("Bad choice of public exponent. Trying another...\n");
}
while (!key);
mpz_clear(e);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment