1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

ntpd(8): Don't use OpenSSL's RAND API

The !USE_OPENSSL_CRYPTO_RAND path uses arc4random_buf() correctly.

In general, we should prefer to avoid things OpenSSL does poorly when a good
alternative exists in libc.
This commit is contained in:
Conrad Meyer 2019-12-13 05:54:38 +00:00
parent 23c30549af
commit 15da83398e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355700

View File

@ -11,7 +11,7 @@ NTPDEFS= -DSYS_FREEBSD
CFLAGS+= ${NTPDEFS} ${DEFS_LOCAL} ${CLOCKDEFS}
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DOPENSSL -DUSE_OPENSSL_CRYPTO_RAND -DAUTOKEY
CFLAGS+= -DOPENSSL -DAUTOKEY
.endif
WARNS?= 0