<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/crypto/arc4random_freebsd.h, branch OPENBSD_5_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_5_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_5_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2015-09-11T11:52:55+00:00</updated>
<entry>
<title>unify files further</title>
<updated>2015-09-11T11:52:55+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2015-09-11T11:52:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2a8f39dde4eb3fc8b492e8c665128c557ff500af'/>
<id>urn:sha1:2a8f39dde4eb3fc8b492e8c665128c557ff500af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>back in september I did the large abstraction refactoring to allow these</title>
<updated>2015-01-15T06:57:18+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2015-01-15T06:57:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2c0fa7a33267776e90c29aa1b640595e92c0d8f7'/>
<id>urn:sha1:2c0fa7a33267776e90c29aa1b640595e92c0d8f7</id>
<content type='text'>
other systems to fit into the same mold, so add copyright
</content>
</entry>
<entry>
<title>Add hooks to override native arc4random_buf on FreeBSD.</title>
<updated>2014-11-03T06:23:30+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2014-11-03T06:23:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=97f48e5c1a29dd52ce16c023eaa14f5da0110610'/>
<id>urn:sha1:97f48e5c1a29dd52ce16c023eaa14f5da0110610</id>
<content type='text'>
The FreeBSD-native arc4random_buf implementation falls back to weak sources of
entropy if the sysctl fails. Remove these dangerous fallbacks by overriding
locally.

Unfortunately, pthread_atfork() is also broken on FreeBSD (at least 9 and 10)
if a program does not link to -lthr. Callbacks registered with pthread_atfork()
simply fail silently. So, it is not always possible to detect a PID wraparound.
I wish we could do better.

This improves arc4random_buf's safety compared to the native FreeBSD
implementation.

Tested on FreeBSD 9 and 10.
</content>
</entry>
</feed>
