summaryrefslogtreecommitdiff
path: root/rsa.c
diff options
context:
space:
mode:
authordjm <djm>2000-09-29 01:12:36 +0000
committerdjm <djm>2000-09-29 01:12:36 +0000
commit3aed815c8d1460d46cfe5b196e426d168501330d (patch)
tree87d569d74947251dabab0e96cf890d4916552098 /rsa.c
parent96e0a0b610355742b956904876bbd750dbd89f4a (diff)
downloadopenssh-3aed815c8d1460d46cfe5b196e426d168501330d.tar.gz
- (djm) Clean up. Strip some unnecessary differences with OpenBSD's code,
tidy necessary differences. Use Markus' new debugN() in entropy.c
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/rsa.c b/rsa.c
index 8f644403..0c9aef79 100644
--- a/rsa.c
+++ b/rsa.c
@@ -83,21 +83,6 @@ rsa_alive()
}
/*
- * 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
* rsa_clear_public_key.
@@ -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.");