OpenDNSSEC-signer
1.4.8.2
|
Go to the source code of this file.
Data Structures | |
struct | acl_struct |
Typedefs | |
typedef enum acl_range_enum | acl_range_type |
typedef struct acl_struct | acl_type |
Enumerations | |
enum | acl_range_enum { ACL_RANGE_SINGLE = 0, ACL_RANGE_MASK = 1, ACL_RANGE_SUBNET = 2, ACL_RANGE_MINMAX = 3 } |
Functions | |
acl_type * | acl_create (allocator_type *allocator, char *address, char *port, char *tsig_name, tsig_type *tsig) |
acl_type * | acl_find (acl_type *acl, struct sockaddr_storage *addr, tsig_rr_type *tsig) |
int | acl_parse_family (const char *a) |
int | addr2ip (struct sockaddr_storage addr, char *ip, size_t len) |
void | acl_cleanup (acl_type *acl, allocator_type *allocator) |
typedef enum acl_range_enum acl_range_type |
typedef struct acl_struct acl_type |
enum acl_range_enum |
void acl_cleanup | ( | acl_type * | acl, |
allocator_type * | allocator | ||
) |
Clean up ACL.
[in] | acl | ACL |
[in] | allocator | memory allocator |
Clean up ACL.
Definition at line 464 of file acl.c.
References acl_cleanup(), acl_struct::address, allocator_deallocate(), and acl_struct::next.
Referenced by acl_cleanup(), acl_create(), dnsin_cleanup(), and dnsout_cleanup().
acl_type* acl_create | ( | allocator_type * | allocator, |
char * | address, | ||
char * | port, | ||
char * | tsig_name, | ||
tsig_type * | tsig | ||
) |
Create ACL.
[in] | allocator | memory allocator |
[in] | address | IP address |
[in] | port | port |
[in] | tsig_name | TSIG name |
[in] | tsig | list of TSIGs |
Create ACL.
Definition at line 126 of file acl.c.
References acl_cleanup(), acl_parse_family(), ACL_RANGE_MASK, ACL_RANGE_MINMAX, ACL_RANGE_SINGLE, ACL_RANGE_SUBNET, acl_struct::addr, acl_addr_storage::addr, acl_addr_storage::addr6, acl_struct::address, tsig_rr_struct::algo, tsig_struct::algorithm, allocator_alloc(), allocator_strdup(), tsig_key_struct::dname, tsig_rr_struct::error_code, acl_struct::family, acl_struct::ixfr_disabled, tsig_struct::key, tsig_rr_struct::key_name, acl_struct::next, ods_log_assert, ods_log_debug(), ods_log_error(), ods_status2str(), ODS_STATUS_OK, ods_strlowercmp(), acl_struct::port, acl_struct::range_mask, acl_struct::range_type, tsig_rr_struct::status, acl_struct::tsig, tsig_lookup_by_name(), TSIG_NOT_PRESENT, TSIG_OK, tsig_status2str(), and tsig_algo_struct::txt_name.
acl_type* acl_find | ( | acl_type * | acl, |
struct sockaddr_storage * | addr, | ||
tsig_rr_type * | trr | ||
) |
Find ACL.
[in] | acl | ACL |
[in] | addr | remote address storage |
[in] | tsig | tsig credentials |
Find ACL.
Definition at line 445 of file acl.c.
References acl_struct::address, acl_struct::next, and ods_log_debug().
Referenced by query_prepare(), and query_reset().
int acl_parse_family | ( | const char * | a | ) |
Parse family from address.
[in] | a | address in string format |
Parse family from address.
Definition at line 104 of file acl.c.
Referenced by acl_create().
int addr2ip | ( | struct sockaddr_storage | addr, |
char * | ip, | ||
size_t | len | ||
) |
Address storage to IP string.
[in] | addr | socket address storage |
[out] | ip | ip address |
[in] | len | max strlen of ip address |
Address storage to IP string.
Definition at line 424 of file acl.c.
Referenced by query_reset().