summaryrefslogtreecommitdiff
path: root/rsa.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-29 20:40:22 +1100
committerDamien Miller <djm@mindrot.org>2000-01-29 20:40:22 +1100
commitf07390e90da683fecbf55849a3cee6dc9b79a3e3 (patch)
treec9c7ad28557e08ff024da1e9a5302fc78d4de4f7 /rsa.h
parent4e61b79d5bcb3c5ac3014fe55be55214e23b2927 (diff)
- Seed OpenSSL's random number generator before generating RSA keypairs
- Split random collector into seperate file
Diffstat (limited to 'rsa.h')
-rw-r--r--rsa.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/rsa.h b/rsa.h
index 485a94dcd..57c00a146 100644
--- a/rsa.h
+++ b/rsa.h
@@ -13,7 +13,7 @@
13 * 13 *
14*/ 14*/
15 15
16/* RCSID("$Id: rsa.h,v 1.5 1999/11/25 00:54:59 damien Exp $"); */ 16/* RCSID("$Id: rsa.h,v 1.6 2000/01/29 09:40:22 damien Exp $"); */
17 17
18#ifndef RSA_H 18#ifndef RSA_H
19#define RSA_H 19#define RSA_H
@@ -23,11 +23,13 @@
23#ifdef HAVE_OPENSSL 23#ifdef HAVE_OPENSSL
24#include <openssl/bn.h> 24#include <openssl/bn.h>
25#include <openssl/rsa.h> 25#include <openssl/rsa.h>
26#include <openssl/rand.h>
26#endif 27#endif
27 28
28#ifdef HAVE_SSL 29#ifdef HAVE_SSL
29#include <ssl/bn.h> 30#include <ssl/bn.h>
30#include <ssl/rsa.h> 31#include <ssl/rsa.h>
32#include <ssl/rand.h>
31#endif 33#endif
32 34
33/* Calls SSL RSA_generate_key, only copies to prv and pub */ 35/* Calls SSL RSA_generate_key, only copies to prv and pub */