mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
[master] completed and corrected the crypto-random change
4724. [func] By default, BIND now uses the random number functions provided by the crypto library (i.e., OpenSSL or a PKCS#11 provider) as a source of randomness rather than /dev/random. This is suitable for virtual machine environments which have limited entropy pools and lack hardware random number generators. This can be overridden by specifying another entropy source via the "random-device" option in named.conf, or via the -r command line option; however, for functions requiring full cryptographic strength, such as DNSSEC key generation, this cannot be overridden. In particular, the -r command line option no longer has any effect on dnssec-keygen. This can be disabled by building with "configure --disable-crypto-rand". [RT #31459] [RT #46047]
This commit is contained in:
@@ -158,8 +158,18 @@ isc_result_t
|
||||
dst_random_getdata(void *data, unsigned int length,
|
||||
unsigned int *returned, unsigned int flags);
|
||||
/*%<
|
||||
* \brief Return data from the crypto random generator.
|
||||
* Specialization of isc_entropy_getdata().
|
||||
* Gets random data from the random generator provided by the
|
||||
* crypto library, if BIND was built with --enable-crypto-rand.
|
||||
*
|
||||
* See isc_entropy_getdata() for parameter usage. Normally when
|
||||
* this function is available, it will be set up as a hook in the
|
||||
* entropy context, so that isc_entropy_getdata() is a front-end to
|
||||
* this function.
|
||||
*
|
||||
* Returns:
|
||||
* \li ISC_R_SUCCESS on success
|
||||
* \li ISC_R_NOTIMPLEMENTED if BIND is built with --disable-crypto-rand
|
||||
* \li DST_R_OPENSSLFAILURE, DST_R_CRYPTOFAILURE, or other codes on error
|
||||
*/
|
||||
|
||||
isc_boolean_t
|
||||
|
Reference in New Issue
Block a user