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

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