mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 09:05:40 +00:00
[rt31459d] rebased rt31459c
This commit is contained in:
@@ -300,6 +300,18 @@ isc_entropy_usebestsource(isc_entropy_t *ectx, isc_entropysource_t **source,
|
||||
* isc_entropy_createcallbacksource().
|
||||
*/
|
||||
|
||||
void
|
||||
isc_entropy_usehook(isc_entropy_t *ectx, isc_boolean_t onoff);
|
||||
/*!<
|
||||
* \brief Mark/unmark the given entropy structure as being hooked.
|
||||
*/
|
||||
|
||||
void
|
||||
isc_entropy_sethook(isc_entropy_getdata_t myhook);
|
||||
/*!<
|
||||
* \brief Set the getdata hook (e.g., for a crypto random generator).
|
||||
*/
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_ENTROPY_H */
|
||||
|
@@ -331,6 +331,11 @@
|
||||
*/
|
||||
@ISC_PLATFORM_HAVESTRINGSH@
|
||||
|
||||
/*
|
||||
* Define if the random functions are provided by crypto.
|
||||
*/
|
||||
@ISC_PLATFORM_CRYPTORANDOM@
|
||||
|
||||
/*
|
||||
* Define if the hash functions must be provided by OpenSSL.
|
||||
*/
|
||||
|
@@ -90,6 +90,8 @@ typedef struct isc_time isc_time_t; /*%< Time */
|
||||
typedef struct isc_timer isc_timer_t; /*%< Timer */
|
||||
typedef struct isc_timermgr isc_timermgr_t; /*%< Timer Manager */
|
||||
|
||||
typedef isc_result_t (*isc_entropy_getdata_t)(void *, unsigned int,
|
||||
unsigned int *, unsigned int);
|
||||
typedef void (*isc_taskaction_t)(isc_task_t *, isc_event_t *);
|
||||
typedef int (*isc_sockfdwatch_t)(isc_task_t *, isc_socket_t *, void *, int);
|
||||
|
||||
|
Reference in New Issue
Block a user