]> granicus.if.org Git - libevent/commitdiff
dns: remove evdns_set_transaction_id_fn
authorfanquake <fanquake@gmail.com>
Sat, 3 Apr 2021 04:55:32 +0000 (12:55 +0800)
committerfanquake <fanquake@gmail.com>
Sat, 3 Apr 2021 04:55:32 +0000 (12:55 +0800)
evdns.c
include/event2/dns.h

diff --git a/evdns.c b/evdns.c
index ab460b5f2f0a7cbb0c077281f48d9345ed603303..52077064339593684b006c429c023da78062772f 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -1595,12 +1595,6 @@ err:
 #undef GET8
 }
 
-
-void
-evdns_set_transaction_id_fn(ev_uint16_t (*fn)(void))
-{
-}
-
 /* Try to choose a strong transaction id which isn't already in flight */
 static u16
 transaction_id_pick(struct evdns_base *base) {
index b093554b36147ee88bc454ac0603121054cfb862..e6b33afb7663828107a9ea7111a735f102458a51 100644 (file)
@@ -602,19 +602,6 @@ typedef void (*evdns_debug_log_fn_type)(int is_warning, const char *msg);
 EVENT2_EXPORT_SYMBOL
 void evdns_set_log_fn(evdns_debug_log_fn_type fn);
 
-/**
-   Set a callback that will be invoked to generate transaction IDs.  By
-   default, we pick transaction IDs based on the current clock time, which
-   is bad for security.
-
-   @param fn the new callback, or NULL to use the default.
-
-   NOTE: This function has no effect in Libevent 2.0.4-alpha and later,
-   since Libevent now provides its own secure RNG.
- */
-EVENT2_EXPORT_SYMBOL
-void evdns_set_transaction_id_fn(ev_uint16_t (*fn)(void));
-
 /*
  * Functions used to implement a DNS server.
  */