summaryrefslogtreecommitdiff
path: root/rsa.h
diff options
context:
space:
mode:
authordamien <damien>2000-01-29 09:40:22 +0000
committerdamien <damien>2000-01-29 09:40:22 +0000
commit608338fa154f33e03d0723b2fb04e702358fb102 (patch)
treec9c7ad28557e08ff024da1e9a5302fc78d4de4f7 /rsa.h
parent55e753c808fa1f7a7ce37144ad8e82df8c90ac2f (diff)
downloadopenssh-608338fa154f33e03d0723b2fb04e702358fb102.tar.gz
- 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 485a94dc..57c00a14 100644
--- a/rsa.h
+++ b/rsa.h
@@ -13,7 +13,7 @@
*
*/
-/* RCSID("$Id: rsa.h,v 1.5 1999/11/25 00:54:59 damien Exp $"); */
+/* RCSID("$Id: rsa.h,v 1.6 2000/01/29 09:40:22 damien Exp $"); */
#ifndef RSA_H
#define RSA_H
@@ -23,11 +23,13 @@
#ifdef HAVE_OPENSSL
#include <openssl/bn.h>
#include <openssl/rsa.h>
+#include <openssl/rand.h>
#endif
#ifdef HAVE_SSL
#include <ssl/bn.h>
#include <ssl/rsa.h>
+#include <ssl/rand.h>
#endif
/* Calls SSL RSA_generate_key, only copies to prv and pub */