summaryrefslogtreecommitdiff
path: root/lib/auth_rsa.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-05-08 12:49:55 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-05-08 12:49:55 +0000
commitac011a17fd076e97c4f54cab93038d0f6be35f26 (patch)
tree4ca34c5336b10fa529b9eb245117e44eb40de633 /lib/auth_rsa.c
parent64d925dc6569f00ab8eeba329eb28b9daf8d05be (diff)
downloadgnutls-ac011a17fd076e97c4f54cab93038d0f6be35f26.tar.gz
Fixed some things in the random number usage. Weak levels are used
where possible to avoid emptying the strong random pool.
Diffstat (limited to 'lib/auth_rsa.c')
-rw-r--r--lib/auth_rsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/auth_rsa.c b/lib/auth_rsa.c
index 38d51a9a97..8bb0a3f541 100644
--- a/lib/auth_rsa.c
+++ b/lib/auth_rsa.c
@@ -255,8 +255,10 @@ int _gnutls_proc_rsa_client_kx(gnutls_session session, opaque * data, size_t _da
}
if (randomize_key != 0) {
+ /* we do not need strong random numbers here.
+ */
RANDOMIZE_KEY(session->key->key,
- gnutls_malloc, GNUTLS_STRONG_RANDOM);
+ gnutls_malloc, GNUTLS_WEAK_RANDOM);
} else {
session->key->key.data = plaintext.data;