From 4157b6004d9f1de98a1c2fb71ec57ef073f13dd8 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Sun, 12 Jun 2016 00:31:33 +0100 Subject: [PATCH] Renames null entropy source function for clarity --- include/mbedtls/entropy_poll.h | 2 +- library/entropy.c | 2 +- library/entropy_poll.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/entropy_poll.h b/include/mbedtls/entropy_poll.h index d7aa88c5b..430e8651c 100644 --- a/include/mbedtls/entropy_poll.h +++ b/include/mbedtls/entropy_poll.h @@ -47,7 +47,7 @@ extern "C" { * \brief Entropy poll callback that provides 0 entropy. */ #if defined(MBEDTLS_TEST_NULL_ENTROPY) - int mbedtls_zero_entropy_poll( void *data, + int mbedtls_null_entropy_poll( void *data, unsigned char *output, size_t len, size_t *olen ); #endif diff --git a/library/entropy.c b/library/entropy.c index 49710de90..282640f2d 100644 --- a/library/entropy.c +++ b/library/entropy.c @@ -80,7 +80,7 @@ void mbedtls_entropy_init( mbedtls_entropy_context *ctx ) #endif #if defined(MBEDTLS_TEST_NULL_ENTROPY) - mbedtls_entropy_add_source( ctx, mbedtls_zero_entropy_poll, NULL, + mbedtls_entropy_add_source( ctx, mbedtls_null_entropy_poll, NULL, 1, MBEDTLS_ENTROPY_SOURCE_STRONG ); #endif diff --git a/library/entropy_poll.c b/library/entropy_poll.c index ed80babe1..a116e605d 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c @@ -192,7 +192,7 @@ int mbedtls_platform_entropy_poll( void *data, #endif /* !MBEDTLS_NO_PLATFORM_ENTROPY */ #if defined(MBEDTLS_TEST_NULL_ENTROPY) -int mbedtls_zero_entropy_poll( void *data, +int mbedtls_null_entropy_poll( void *data, unsigned char *output, size_t len, size_t *olen ) { ((void) data);