]> git.ipfire.org Git - thirdparty/openssl.git/commit
RAND: Rename the RAND_poll_ex() callback and its typedef
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 25 Aug 2017 20:39:33 +0000 (22:39 +0200)
committerRich Salz <rsalz@openssl.org>
Mon, 28 Aug 2017 12:52:02 +0000 (08:52 -0400)
commit4871fa49cdd0d4473b6a815fc01fbde3e6ced339
tree11f329d58a4da8426c2e1942a3251d279bf1e81f
parentaa048aef0b9146f90c06333dedfc105d1f9e2c22
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)
crypto/rand/rand_lcl.h
crypto/rand/rand_lib.c
crypto/rand/rand_unix.c
crypto/rand/rand_vms.c
crypto/rand/rand_win.c
doc/man3/RAND_add.pod
include/openssl/rand.h
util/private.num