diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-02-25 17:23:54 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-02-25 17:23:54 +0000 |
commit | ef7fa87854b1bb71e05884356e4129e200a58529 (patch) | |
tree | 60d74ade3bd4b3b67616980298e6ddfc2c9c1555 /src/lib/crypto/krb/crypto_libinit.c | |
parent | 920ffa13c22ef8c6ac835a293f5d63f944a82859 (diff) | |
download | krb5-ef7fa87854b1bb71e05884356e4129e200a58529.tar.gz krb5-ef7fa87854b1bb71e05884356e4129e200a58529.tar.xz krb5-ef7fa87854b1bb71e05884356e4129e200a58529.zip |
Now that all PRNG modules fit nicely into a single source file,
simplify the PRNG abstraction, flattening the implementations into
crypto/krb and removing the indirection through function pointers.
Move the guts of the NSS PRNG implementation into the nss subdir so
that crypto/krb doesn't need to be built with CRYPTO_IMPL_CFLAGS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24661 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/krb/crypto_libinit.c')
-rw-r--r-- | src/lib/crypto/krb/crypto_libinit.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/crypto/krb/crypto_libinit.c b/src/lib/crypto/krb/crypto_libinit.c index b94a01cc0..f97713501 100644 --- a/src/lib/crypto/krb/crypto_libinit.c +++ b/src/lib/crypto/krb/crypto_libinit.c @@ -1,13 +1,11 @@ /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include <assert.h> #include "k5-int.h" +#include "prng.h" MAKE_INIT_FUNCTION(cryptoint_initialize_library); MAKE_FINI_FUNCTION(cryptoint_cleanup_library); -extern int krb5int_prng_init(void); -extern void krb5int_prng_cleanup (void); - /* * Initialize the crypto library. */ @@ -15,7 +13,7 @@ extern void krb5int_prng_cleanup (void); int cryptoint_initialize_library (void) { int err; - err = krb5int_prng_init(); + err = k5_prng_init(); if (err) return err; return krb5int_crypto_impl_init(); @@ -34,6 +32,6 @@ void cryptoint_cleanup_library (void) { if (!INITIALIZER_RAN(cryptoint_initialize_library)) return; - krb5int_prng_cleanup(); + k5_prng_cleanup(); krb5int_crypto_impl_cleanup(); } |