#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <isc/buffer.h>
#include <dns/nsec3.h>
#include <dns/private.h>
#include <dns/rdataclass.h>
#include <dns/rdatatype.h>
#include <dst/dst.h>
#include "dnstest.h"
Go to the source code of this file.
Data Structures | |
struct | signing_testcase_t |
struct | nsec3_testcase_t |
Functions | |
static void | make_signing (signing_testcase_t *testcase, dns_rdata_t *private, unsigned char *buf, size_t len) |
static void | make_nsec3 (nsec3_testcase_t *testcase, dns_rdata_t *private, unsigned char *pbuf) |
ATF_TC (private_signing_totext) | |
ATF_TC_HEAD (private_signing_totext, tc) | |
ATF_TC_BODY (private_signing_totext, tc) | |
ATF_TC (private_nsec3_totext) | |
ATF_TC_HEAD (private_nsec3_totext, tc) | |
ATF_TC_BODY (private_nsec3_totext, tc) | |
ATF_TP_ADD_TCS (tp) | |
Variables | |
static dns_rdatatype_t | privatetype = 65534 |
Definition in file private_test.c.
static void make_signing | ( | signing_testcase_t * | testcase, | |
dns_rdata_t * | private, | |||
unsigned char * | buf, | |||
size_t | len | |||
) | [static] |
Definition at line 61 of file private_test.c.
References signing_testcase_t::alg, signing_testcase_t::complete, dns_rdata_init(), signing_testcase_t::keyid, privatetype, and signing_testcase_t::remove.
Referenced by ATF_TC_BODY().
static void make_nsec3 | ( | nsec3_testcase_t * | testcase, | |
dns_rdata_t * | private, | |||
unsigned char * | pbuf | |||
) | [static] |
Definition at line 78 of file private_test.c.
References DNS_NSEC3PARAM_BUFFERSIZE, dns_nsec3param_toprivate(), dns_rdata_fromstruct(), dns_rdata_init(), DNS_RDATA_INIT, nsec3_testcase_t::flags, nsec3_testcase_t::hash, isc_buffer_init, nsec3_testcase_t::iterations, nsec3_testcase_t::nonsec, nsec3_testcase_t::pending, privatetype, nsec3_testcase_t::remove, and nsec3_testcase_t::salt.
Referenced by ATF_TC_BODY().
ATF_TC | ( | private_signing_totext | ) |
ATF_TC_HEAD | ( | private_signing_totext | , | |
tc | ||||
) |
Definition at line 129 of file private_test.c.
ATF_TC_BODY | ( | private_signing_totext | , | |
tc | ||||
) |
Definition at line 133 of file private_test.c.
References dns_private_totext(), dns_test_begin(), dns_test_end(), DST_ALG_NSEC3RSASHA1, DST_ALG_RSASHA1, DST_ALG_RSASHA256, DST_ALG_RSASHA512, isc_buffer_init, ISC_R_SUCCESS, ISC_TRUE, make_signing(), output(), and UNUSED.
ATF_TC | ( | private_nsec3_totext | ) |
ATF_TC_HEAD | ( | private_nsec3_totext | , | |
tc | ||||
) |
Definition at line 173 of file private_test.c.
ATF_TC_BODY | ( | private_nsec3_totext | , | |
tc | ||||
) |
Definition at line 176 of file private_test.c.
References DNS_NSEC3PARAM_BUFFERSIZE, dns_private_totext(), dns_test_begin(), dns_test_end(), isc_buffer_init, ISC_R_SUCCESS, ISC_TRUE, make_nsec3(), output(), and UNUSED.
ATF_TP_ADD_TCS | ( | tp | ) |
Definition at line 220 of file private_test.c.
dns_rdatatype_t privatetype = 65534 [static] |
Definition at line 38 of file private_test.c.
Referenced by add_nsec3param_records(), check_dnssec(), dns_nsec3param_deletechains(), dns_update_signaturesinc(), dnskey_sane(), ISC_LIST(), make_nsec3(), make_signing(), ns_server_signing(), update_action(), and zone_nsec3chain().