44 #include <ldns/ldns.h>
46 #define TSIG_ERROR_BADSIG 16
47 #define TSIG_ERROR_BADKEY 17
48 #define TSIG_ERROR_BADTIME 18
50 #define TSIG_HMAC_MD5 157
51 #define TSIG_HMAC_SHA1 158
52 #define TSIG_HMAC_SHA256 159
105 void(*
hmac_final)(
void* context, uint8_t* digest,
size_t* size);
void(* hmac_update)(void *context, const void *data, size_t size)
void(* hmac_init)(void *context, tsig_algo_type *algo, tsig_key_type *key)
allocator_type * allocator
uint16_t signed_time_high
void tsig_handler_add_key(tsig_key_type *key)
tsig_type * tsig_create(allocator_type *allocator, char *name, char *algo, char *secret)
int tsig_rr_lookup(tsig_rr_type *trr)
void tsig_rr_sign(tsig_rr_type *trr)
tsig_rr_type * tsig_rr_create(allocator_type *allocator)
enum ods_enum_status ods_status
uint16_t signed_time_fudge
size_t update_since_last_prepare
tsig_type * tsig_lookup_by_name(tsig_type *tsig, const char *name)
int tsig_rr_verify(tsig_rr_type *trr)
const char * tsig_strerror(uint16_t error)
int tsig_rr_find(tsig_rr_type *trr, buffer_type *buffer)
int tsig_rr_parse(tsig_rr_type *trr, buffer_type *buffer)
ods_status tsig_handler_init(allocator_type *allocator)
size_t tsig_rr_reserved_space(tsig_rr_type *trr)
void tsig_handler_cleanup(void)
void tsig_rr_update(tsig_rr_type *trr, buffer_type *buffer, size_t length)
void tsig_rr_prepare(tsig_rr_type *trr)
void tsig_cleanup(tsig_type *tsig, allocator_type *allocator)
tsig_algo_type * tsig_lookup_algo(const char *name)
void(* hmac_final)(void *context, uint8_t *digest, size_t *size)
void tsig_handler_add_algo(tsig_algo_type *algo)
void tsig_rr_append(tsig_rr_type *trr, buffer_type *buffer)
void tsig_rr_cleanup(tsig_rr_type *trr)
void tsig_rr_free(tsig_rr_type *trr)
const char * tsig_status2str(tsig_status status)
void tsig_rr_error(tsig_rr_type *trr)
enum tsig_status_enum tsig_status
void tsig_rr_reset(tsig_rr_type *trr, tsig_algo_type *algo, tsig_key_type *key)
uint16_t original_query_id