From c1ff6d6bfa7a79be3f46fb0e005cbcdb76684d8f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 18 Mar 2004 02:09:40 +0000 Subject: [PATCH] * prng.c (krb5int_prng_cleanup): Renamed from prng_cleanup. * crypto_libinit.c: Include k5-int.h. (cryptoint_cleanup_library): Updated call. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16179 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/ChangeLog | 6 ++++++ src/lib/crypto/crypto_libinit.c | 4 +++- src/lib/crypto/prng.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index ced469471..933410005 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,9 @@ +2004-03-17 Ken Raeburn + + * prng.c (krb5int_prng_cleanup): Renamed from prng_cleanup. + * crypto_libinit.c: Include k5-int.h. + (cryptoint_cleanup_library): Updated call. + 2004-03-04 Ken Raeburn * configure.in: Don't check for --enable-athena and don't define diff --git a/src/lib/crypto/crypto_libinit.c b/src/lib/crypto/crypto_libinit.c index 48ad330d5..a799b1ec3 100644 --- a/src/lib/crypto/crypto_libinit.c +++ b/src/lib/crypto/crypto_libinit.c @@ -1,5 +1,7 @@ #include #include "crypto_libinit.h" +/* get prng_cleanup decl */ +#include "k5-int.h" static int initialized = 0; @@ -27,7 +29,7 @@ void cryptoint_cleanup_library (void) { assert (initialized); - prng_cleanup (); + krb5int_prng_cleanup (); initialized = 0; } diff --git a/src/lib/crypto/prng.c b/src/lib/crypto/prng.c index 5f0d3864a..eebaca2b9 100644 --- a/src/lib/crypto/prng.c +++ b/src/lib/crypto/prng.c @@ -109,7 +109,7 @@ krb5_c_random_make_octets(krb5_context context, krb5_data *data) return(0); } -void prng_cleanup (void) +void krb5int_prng_cleanup (void) { if (inited) krb5int_yarrow_final (&y_ctx); inited = 0; -- 2.26.2