summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/krb/prng/prng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/krb/prng/prng.h')
-rw-r--r--src/lib/crypto/krb/prng/prng.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/crypto/krb/prng/prng.h b/src/lib/crypto/krb/prng/prng.h
index f4a0e6fa82..d072507e66 100644
--- a/src/lib/crypto/krb/prng/prng.h
+++ b/src/lib/crypto/krb/prng/prng.h
@@ -44,6 +44,10 @@
#define ENTROPY_BUFSIZE YARROW_SLOW_THRESH/8 /* SHA1 digest length*/
#endif
+/* Used by PRNG implementations to gather OS entropy. Returns true on
+ * success. */
+krb5_boolean k5_get_os_entropy(unsigned char *buf, size_t len);
+
/* prng.h */
struct krb5_prng_provider {
char prng_name[8];