From cb5e44a440c1b310a9dc5b8b5abe32fe11ed479b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 29 Sep 2000 12:12:36 +1100 Subject: - (djm) Clean up. Strip some unnecessary differences with OpenBSD's code, tidy necessary differences. Use Markus' new debugN() in entropy.c --- rsa.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'rsa.c') diff --git a/rsa.c b/rsa.c index 8f6444032..0c9aef791 100644 --- a/rsa.c +++ b/rsa.c @@ -82,21 +82,6 @@ rsa_alive() return (1); } -/* - * Key generation progress meter callback - */ -void -keygen_progress(int p, int n, void *arg) -{ - const char progress_chars[] = ".o+O?"; - - if ((p < 0) || (p > (sizeof(progress_chars) - 2))) - p = sizeof(progress_chars) - 2; - - putchar(progress_chars[p]); - fflush(stdout); -} - /* * Generates RSA public and private keys. This initializes the data * structures; they should be freed with rsa_clear_private_key and @@ -113,11 +98,8 @@ rsa_generate_key(RSA *prv, RSA *pub, unsigned int bits) if (rsa_verbose) { printf("Generating RSA keys: "); fflush(stdout); - key = RSA_generate_key(bits, 35, keygen_progress, NULL); - printf("\n"); - } else { - key = RSA_generate_key(bits, 35, NULL, NULL); } + key = RSA_generate_key(bits, 35, NULL, NULL); if (key == NULL) fatal("rsa_generate_key: key generation failed."); -- cgit v1.2.3