From 1769a90abbaadc69f4b37a8c1457b947353471bc Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Wed, 27 Sep 2000 00:09:55 +0000 Subject: Sync again (remove unneeded RAND_set calls). --- lib/libkeynote/environment.c | 6 +----- lib/libkeynote/keynote-keygen.c | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/libkeynote/environment.c b/lib/libkeynote/environment.c index 6cfeef2f616..3fd90af4bc9 100644 --- a/lib/libkeynote/environment.c +++ b/lib/libkeynote/environment.c @@ -1,4 +1,4 @@ -/* $OpenBSD: environment.c,v 1.13 2000/09/26 23:28:46 angelos Exp $ */ +/* $OpenBSD: environment.c,v 1.14 2000/09/27 00:09:54 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -370,10 +370,6 @@ keynote_env_cleanup(struct environment **table, u_int hashsize) static int keynote_init_environment(void) { -#ifdef CRYPTO - RAND_set_rand_method(RAND_SSLeay()); -#endif /* CRYPTO */ - memset(keynote_current_session->ks_env_table, 0, HASHTABLESIZE * sizeof(struct environment *)); memset(keynote_current_session->ks_assertion_table, 0, diff --git a/lib/libkeynote/keynote-keygen.c b/lib/libkeynote/keynote-keygen.c index 581639cf10d..b3a2a2236af 100644 --- a/lib/libkeynote/keynote-keygen.c +++ b/lib/libkeynote/keynote-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote-keygen.c,v 1.10 2000/09/26 23:28:46 angelos Exp $ */ +/* $OpenBSD: keynote-keygen.c,v 1.11 2000/09/27 00:09:54 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -176,8 +176,6 @@ keynote_keygen(int argc, char *argv[]) exit(-1); } - RAND_set_rand_method(RAND_SSLeay()); - if ((alg == KEYNOTE_ALGORITHM_DSA) && (ienc == INTERNAL_ENC_ASN1) && ((enc == ENCODING_HEX) || (enc == ENCODING_BASE64))) -- cgit v1.2.3