Author: cem
Date: Fri Dec 13 05:54:38 2019
New Revision: 355700
URL: https://svnweb.freebsd.org/changeset/base/355700

Log:
  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.

Modified:
  head/usr.sbin/ntp/Makefile.inc

Modified: head/usr.sbin/ntp/Makefile.inc
==============================================================================
--- head/usr.sbin/ntp/Makefile.inc      Fri Dec 13 05:42:57 2019        
(r355699)
+++ head/usr.sbin/ntp/Makefile.inc      Fri Dec 13 05:54:38 2019        
(r355700)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to