]> granicus.if.org Git - libevent/commit
Add an arc4random implementation for use by evdns
authorNick Mathewson <nickm@torproject.org>
Wed, 10 Feb 2010 22:19:18 +0000 (17:19 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Feb 2010 17:53:32 +0000 (12:53 -0500)
commitd4de062efcf3facf451c826deee9240fac478bfd
tree26c91138497e690d7db371c7bab0e6a1bf4693da
parent1dd7e6dc3aeff29f9de44678d2aeea3bb82e4f24
Add an arc4random implementation for use by evdns

Previously, evdns was at the mercy of the user for providing a good
entropy source; without one, it would be vulnerable to various
active attacks.

This patch adds a port of OpenBSD's arc4random() calls to Libevent
[port by Chris Davis], and wraps it up a little bit so we can use it
more safely.
Makefile.am
arc4random.c [new file with mode: 0644]
configure.in
evdns.c
evutil.c
evutil_rand.c [new file with mode: 0644]
include/event2/dns.h
include/event2/util.h
test/regress_dns.c