From 4871fa49cdd0d4473b6a815fc01fbde3e6ced339 Mon Sep 17 00:00:00 2001 From: "Dr. Matthias St. Pierre" Date: Fri, 25 Aug 2017 22:39:33 +0200 Subject: RAND: Rename the RAND_poll_ex() callback and its typedef With the introduction of RAND_poll_ex(), the `RAND_add()` calls were replaced by meaningless cb(...). This commit changes the 'cb(...)' calls back to 'rand_add(...)' calls by changing the signature as follows: -int RAND_poll_ex(RAND_poll_fn cb, void *arg); +int RAND_poll_ex(RAND_poll_cb rand_add, void *arg); Changed the function typedef name to 'RAND_poll_cb' to emphasize the fact that the function type represents a callback function. Reviewed-by: Paul Dale Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4266) --- doc/man3/RAND_add.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/man3/RAND_add.pod b/doc/man3/RAND_add.pod index 5006bdb2f7..ea81492c2c 100644 --- a/doc/man3/RAND_add.pod +++ b/doc/man3/RAND_add.pod @@ -2,7 +2,7 @@ =head1 NAME -RAND_add, RAND_poll, RAND_poll_ex, RAND_poll_fn, +RAND_add, RAND_poll, RAND_poll_ex, RAND_poll_cb, RAND_seed, RAND_status, RAND_event, RAND_screen - add randomness to the PRNG or get its status @@ -12,9 +12,9 @@ RAND_seed, RAND_status, RAND_event, RAND_screen int RAND_status(void); - typedef void (*RAND_poll_fn)(void *arg, + typedef void (*RAND_poll_cb)(void *arg, const void *buf, int num, double randomness); - int RAND_poll_ex(RAND_poll_fn cb, void *arg); + int RAND_poll_ex(RAND_poll_cb cb, void *arg); int RAND_poll(); void RAND_add(const void *buf, int num, double randomness); -- cgit v1.2.3