summaryrefslogtreecommitdiff
path: root/rsa.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-05 17:14:38 +1100
committerDamien Miller <djm@mindrot.org>2000-03-05 17:14:38 +1100
commitcf87b5b71b82879525bc801358ac6f7d755e278e (patch)
treee239bd2f445746bb706014d72972339242a8d1f2 /rsa.c
parent65165f8d83f342b1f3664eebb011c6a0ce6215b4 (diff)
Avoid compiler warnings
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/rsa.c b/rsa.c
index 1df8fbc9..64786718 100644
--- a/rsa.c
+++ b/rsa.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$Id: rsa.c,v 1.8 2000/03/05 05:10:46 damien Exp $");
+RCSID("$Id: rsa.c,v 1.9 2000/03/05 06:14:38 damien Exp $");
#include "rsa.h"
#include "ssh.h"
@@ -44,6 +44,19 @@ RCSID("$Id: rsa.c,v 1.8 2000/03/05 05:10:46 damien Exp $");
int rsa_verbose = 1;
+/*
+ * Seed OpenSSL's random number generator
+ */
+void
+seed_rng()
+{
+ char buf[64];
+
+ get_random_bytes(buf, sizeof(buf));
+ RAND_seed(buf, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
+}
+
int
rsa_alive()
{
@@ -73,19 +86,6 @@ keygen_progress(int p, int n, void *arg)
}
/*
- * Seed OpenSSL's random number generator
- */
-void
-seed_rng()
-{
- char buf[64];
-
- get_random_bytes(buf, sizeof(buf));
- RAND_seed(buf, sizeof(buf));
- memset(buf, 0, sizeof(buf));
-}
-
-/*
* 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.