aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2017-08-25 22:39:33 +0200
committerRich Salz <rsalz@openssl.org>2017-08-28 08:52:02 -0400
commit4871fa49cdd0d4473b6a815fc01fbde3e6ced339 (patch)
tree11f329d58a4da8426c2e1942a3251d279bf1e81f /doc
parentaa048aef0b9146f90c06333dedfc105d1f9e2c22 (diff)
downloadopenssl-4871fa49cdd0d4473b6a815fc01fbde3e6ced339.tar.gz
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 <paul.dale@oracle.com> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4266)
Diffstat (limited to 'doc')
-rw-r--r--doc/man3/RAND_add.pod6
1 files changed, 3 insertions, 3 deletions
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);