Home
last modified time | relevance | path

Searched refs:REQUIRE (Results 1 – 25 of 125) sorted by relevance

12345

/openbsd/usr.bin/dig/lib/isc/
H A Dsha2.c81 REQUIRE(context != (isc_sha224_t *)0); in isc_sha224_update()
83 REQUIRE(data != (uint8_t*)0); in isc_sha224_update()
92 REQUIRE(context != (isc_sha224_t *)0); in isc_sha224_final()
123 REQUIRE(context != (isc_sha256_t *)0); in isc_sha256_update()
125 REQUIRE(data != (uint8_t*)0); in isc_sha256_update()
134 REQUIRE(context != (isc_sha256_t *)0); in isc_sha256_final()
164 REQUIRE(context != (isc_sha512_t *)0); in isc_sha512_update()
166 REQUIRE(data != (uint8_t*)0); in isc_sha512_update()
174 REQUIRE(context != (isc_sha512_t *)0); in isc_sha512_final()
205 REQUIRE(context != (isc_sha512_t *)0); in isc_sha384_update()
[all …]
H A Dbuffer.c35 REQUIRE(b != NULL); in isc__buffer_init()
57 REQUIRE(r != NULL); in isc__buffer_usedregion()
68 REQUIRE(r != NULL); in isc__buffer_availableregion()
90 REQUIRE(b->used >= n); in isc__buffer_subtract()
110 REQUIRE(r != NULL); in isc__buffer_remainingregion()
121 REQUIRE(r != NULL); in isc__buffer_activeregion()
288 REQUIRE(source != NULL); in isc__buffer_putstr()
307 REQUIRE(r != NULL); in isc_buffer_copyregion()
328 REQUIRE(dynbuffer != NULL); in isc_buffer_allocate()
329 REQUIRE(*dynbuffer == NULL); in isc_buffer_allocate()
[all …]
H A Devent.c44 REQUIRE(size >= sizeof(struct isc_event)); in isc_event_allocate()
45 REQUIRE(action != NULL); in isc_event_allocate()
61 REQUIRE(eventp != NULL); in isc_event_free()
63 REQUIRE(event != NULL); in isc_event_free()
65 REQUIRE(!ISC_LINK_LINKED(event, ev_link)); in isc_event_free()
66 REQUIRE(!ISC_LINK_LINKED(event, ev_ratelink)); in isc_event_free()
/openbsd/usr.bin/dig/lib/dns/
H A Ddst_api.c91 REQUIRE(!dst_initialized); in dst_lib_init()
122 REQUIRE(dst_initialized); in dst_algorithm_supported()
137 REQUIRE(dst_initialized); in dst_context_create3()
165 REQUIRE(dctxp != NULL); in dst_context_destroy()
177 REQUIRE(data != NULL); in dst_context_adddata()
185 REQUIRE(sig != NULL); in dst_context_sign()
195 REQUIRE(sig != NULL); in dst_context_verify()
205 REQUIRE(target != NULL); in dst_key_todns()
265 REQUIRE(keyp != NULL); in dst_key_free()
282 REQUIRE(n != NULL); in dst_key_sigsize()
[all …]
H A Drdata.c274 REQUIRE(rdata != NULL); in dns_rdata_init()
288 REQUIRE(rdata != NULL); in dns_rdata_reset()
307 REQUIRE(src != NULL); in dns_rdata_clone()
331 REQUIRE(rdata != NULL); in dns_rdata_fromregion()
333 REQUIRE(r != NULL); in dns_rdata_fromregion()
348 REQUIRE(r != NULL); in dns_rdata_toregion()
369 REQUIRE(dctx != NULL); in dns_rdata_fromwire()
599 REQUIRE(soa != NULL); in dns_rdata_fromstruct_soa()
696 REQUIRE(ns != NULL); in dns_rdata_freestruct_ns()
703 REQUIRE(soa != NULL); in dns_rdata_freestruct_soa()
[all …]
H A Drdatalist.c43 REQUIRE(rdatalist != NULL); in dns_rdatalist_init()
65 REQUIRE(rdatalist != NULL); in dns_rdatalist_tordataset()
66 REQUIRE(! dns_rdataset_isassociated(rdataset)); in dns_rdatalist_tordataset()
83 REQUIRE(rdatalist != NULL && rdataset != NULL); in dns_rdatalist_fromrdataset()
111 REQUIRE(rdataset != NULL); in isc__rdatalist_next()
129 REQUIRE(rdataset != NULL); in isc__rdatalist_current()
140 REQUIRE(source != NULL); in isc__rdatalist_clone()
141 REQUIRE(target != NULL); in isc__rdatalist_clone()
157 REQUIRE(rdataset != NULL); in isc__rdatalist_count()
/openbsd/usr.bin/dig/lib/dns/rdata/in_1/
H A Dhttps_65.c26 REQUIRE(rdata->type == dns_rdatatype_https); in totext_in_https()
27 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_https()
28 REQUIRE(rdata->length != 0); in totext_in_https()
35 REQUIRE(type == dns_rdatatype_https); in fromwire_in_https()
36 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_https()
43 REQUIRE(rdata->type == dns_rdatatype_https); in towire_in_https()
44 REQUIRE(rdata->length != 0); in towire_in_https()
H A Dnsap_22.c31 REQUIRE(rdata->type == dns_rdatatype_nsap); in totext_in_nsap()
32 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_nsap()
33 REQUIRE(rdata->length != 0); in totext_in_nsap()
51 REQUIRE(type == dns_rdatatype_nsap); in fromwire_in_nsap()
52 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_nsap()
70 REQUIRE(rdata->type == dns_rdatatype_nsap); in towire_in_nsap()
71 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_nsap()
72 REQUIRE(rdata->length != 0); in towire_in_nsap()
H A Daaaa_28.c32 REQUIRE(rdata->type == dns_rdatatype_aaaa); in totext_in_aaaa()
33 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_aaaa()
34 REQUIRE(rdata->length == 16); in totext_in_aaaa()
45 REQUIRE(type == dns_rdatatype_aaaa); in fromwire_in_aaaa()
46 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_aaaa()
72 REQUIRE(rdata->type == dns_rdatatype_aaaa); in towire_in_aaaa()
73 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_aaaa()
74 REQUIRE(rdata->length == 16); in towire_in_aaaa()
H A Da_1.c31 REQUIRE(rdata->type == dns_rdatatype_a); in totext_in_a()
32 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_a()
33 REQUIRE(rdata->length == 4); in totext_in_a()
46 REQUIRE(type == dns_rdatatype_a); in fromwire_in_a()
47 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_a()
71 REQUIRE(rdata->type == dns_rdatatype_a); in towire_in_a()
72 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_a()
73 REQUIRE(rdata->length == 4); in towire_in_a()
H A Dnsap-ptr_23.c33 REQUIRE(rdata->type == dns_rdatatype_nsap_ptr); in totext_in_nsap_ptr()
34 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_nsap_ptr()
35 REQUIRE(rdata->length != 0); in totext_in_nsap_ptr()
52 REQUIRE(type == dns_rdatatype_nsap_ptr); in fromwire_in_nsap_ptr()
53 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_nsap_ptr()
70 REQUIRE(rdata->type == dns_rdatatype_nsap_ptr); in towire_in_nsap_ptr()
71 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_nsap_ptr()
72 REQUIRE(rdata->length != 0); in towire_in_nsap_ptr()
H A Ddhcid_49.c30 REQUIRE(rdata->type == dns_rdatatype_dhcid); in totext_in_dhcid()
31 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_dhcid()
32 REQUIRE(rdata->length != 0); in totext_in_dhcid()
61 REQUIRE(type == dns_rdatatype_dhcid); in fromwire_in_dhcid()
62 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_dhcid()
81 REQUIRE(rdata->type == dns_rdatatype_dhcid); in towire_in_dhcid()
82 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_dhcid()
83 REQUIRE(rdata->length != 0); in towire_in_dhcid()
H A Dkx_36.c35 REQUIRE(rdata->type == dns_rdatatype_kx); in totext_in_kx()
36 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_kx()
37 REQUIRE(rdata->length != 0); in totext_in_kx()
60 REQUIRE(type == dns_rdatatype_kx); in fromwire_in_kx()
61 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_kx()
84 REQUIRE(rdata->type == dns_rdatatype_kx); in towire_in_kx()
85 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_kx()
86 REQUIRE(rdata->length != 0); in towire_in_kx()
H A Dwks_11.c37 REQUIRE(rdata->type == dns_rdatatype_wks); in totext_in_wks()
38 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_wks()
39 REQUIRE(rdata->length >= 5); in totext_in_wks()
71 REQUIRE(type == dns_rdatatype_wks); in fromwire_in_wks()
72 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_wks()
102 REQUIRE(rdata->type == dns_rdatatype_wks); in towire_in_wks()
103 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_wks()
104 REQUIRE(rdata->length != 0); in towire_in_wks()
H A Dpx_26.c35 REQUIRE(rdata->type == dns_rdatatype_px); in totext_in_px()
36 REQUIRE(rdata->rdclass == dns_rdataclass_in); in totext_in_px()
37 REQUIRE(rdata->length != 0); in totext_in_px()
74 REQUIRE(type == dns_rdatatype_px); in fromwire_in_px()
75 REQUIRE(rdclass == dns_rdataclass_in); in fromwire_in_px()
110 REQUIRE(rdata->type == dns_rdatatype_px); in towire_in_px()
111 REQUIRE(rdata->rdclass == dns_rdataclass_in); in towire_in_px()
112 REQUIRE(rdata->length != 0); in towire_in_px()
/openbsd/usr.bin/dig/lib/dns/rdata/any_255/
H A Dtsig_250.c38 REQUIRE(rdata->length != 0); in totext_any_tsig()
91 REQUIRE(n <= sr.length); in totext_any_tsig()
146 REQUIRE(type == dns_rdatatype_tsig); in fromwire_any_tsig()
147 REQUIRE(rdclass == dns_rdataclass_any); in fromwire_any_tsig()
211 REQUIRE(rdata->length != 0); in towire_any_tsig()
227 REQUIRE(type == dns_rdatatype_tsig); in fromstruct_any_tsig()
228 REQUIRE(rdclass == dns_rdataclass_any); in fromstruct_any_tsig()
229 REQUIRE(source != NULL); in fromstruct_any_tsig()
231 REQUIRE(tsig->common.rdtype == type); in fromstruct_any_tsig()
301 REQUIRE(rdata->length != 0); in tostruct_any_tsig()
[all …]
/openbsd/usr.bin/dig/lib/dns/rdata/hs_4/
H A Da_1.c28 REQUIRE(rdata->type == dns_rdatatype_a); in totext_hs_a()
29 REQUIRE(rdata->rdclass == dns_rdataclass_hs); in totext_hs_a()
30 REQUIRE(rdata->length == 4); in totext_hs_a()
43 REQUIRE(type == dns_rdatatype_a); in fromwire_hs_a()
44 REQUIRE(rdclass == dns_rdataclass_hs); in fromwire_hs_a()
68 REQUIRE(rdata->type == dns_rdatatype_a); in towire_hs_a()
69 REQUIRE(rdata->rdclass == dns_rdataclass_hs); in towire_hs_a()
70 REQUIRE(rdata->length == 4); in towire_hs_a()
/openbsd/usr.bin/dig/lib/dns/rdata/generic/
H A Dns_2.c31 REQUIRE(rdata->type == dns_rdatatype_ns); in totext_ns()
32 REQUIRE(rdata->length != 0); in totext_ns()
49 REQUIRE(type == dns_rdatatype_ns); in fromwire_ns()
66 REQUIRE(rdata->type == dns_rdatatype_ns); in towire_ns()
67 REQUIRE(rdata->length != 0); in towire_ns()
84 REQUIRE(rdata->type == dns_rdatatype_ns); in tostruct_ns()
85 REQUIRE(target != NULL); in tostruct_ns()
86 REQUIRE(rdata->length != 0); in tostruct_ns()
104 REQUIRE(source != NULL); in freestruct_ns()
H A Dcname_5.c31 REQUIRE(rdata->type == dns_rdatatype_cname); in totext_cname()
32 REQUIRE(rdata->length != 0); in totext_cname()
49 REQUIRE(type == dns_rdatatype_cname); in fromwire_cname()
66 REQUIRE(rdata->type == dns_rdatatype_cname); in towire_cname()
67 REQUIRE(rdata->length != 0); in towire_cname()
84 REQUIRE(rdata->type == dns_rdatatype_cname); in tostruct_cname()
85 REQUIRE(target != NULL); in tostruct_cname()
86 REQUIRE(rdata->length != 0); in tostruct_cname()
104 REQUIRE(source != NULL); in freestruct_cname()
H A Drkey_57.c23 REQUIRE(rdata != NULL); in totext_rkey()
24 REQUIRE(rdata->type == dns_rdatatype_rkey); in totext_rkey()
32 REQUIRE(type == dns_rdatatype_rkey); in fromwire_rkey()
42 REQUIRE(rdata != NULL); in towire_rkey()
43 REQUIRE(rdata->type == dns_rdatatype_rkey); in towire_rkey()
44 REQUIRE(rdata->length != 0); in towire_rkey()
H A Ddnskey_48.c33 REQUIRE(rdata != NULL); in totext_dnskey()
34 REQUIRE(rdata->type == dns_rdatatype_dnskey); in totext_dnskey()
42 REQUIRE(type == dns_rdatatype_dnskey); in fromwire_dnskey()
52 REQUIRE(rdata != NULL); in towire_dnskey()
53 REQUIRE(rdata->type == dns_rdatatype_dnskey); in towire_dnskey()
54 REQUIRE(rdata->length != 0); in towire_dnskey()
H A Dsoa_6.c39 REQUIRE(rdata->type == dns_rdatatype_soa); in totext_soa()
40 REQUIRE(rdata->length != 0); in totext_soa()
106 REQUIRE(type == dns_rdatatype_soa); in fromwire_soa()
144 REQUIRE(rdata->length != 0); in towire_soa()
175 REQUIRE(type == dns_rdatatype_soa); in fromstruct_soa()
176 REQUIRE(source != NULL); in fromstruct_soa()
177 REQUIRE(soa->common.rdtype == type); in fromstruct_soa()
178 REQUIRE(soa->common.rdclass == rdclass); in fromstruct_soa()
202 REQUIRE(target != NULL); in tostruct_soa()
203 REQUIRE(rdata->length != 0); in tostruct_soa()
[all …]
H A Dcaa_257.c47 REQUIRE(rdata->type == dns_rdatatype_caa); in totext_caa()
48 REQUIRE(rdata->length >= 3U); in totext_caa()
49 REQUIRE(rdata->data != NULL); in totext_caa()
78 REQUIRE(type == dns_rdatatype_caa); in fromwire_caa()
121 REQUIRE(rdata->type == dns_rdatatype_caa); in towire_caa()
122 REQUIRE(rdata->length >= 3U); in towire_caa()
123 REQUIRE(rdata->data != NULL); in towire_caa()
/openbsd/usr.bin/dig/lib/isccfg/
H A Dparser.c167 REQUIRE(pctx != NULL); in cfg_parse_obj()
168 REQUIRE(type != NULL); in cfg_parse_obj()
182 REQUIRE(pctx != NULL); in cfg_parse_special()
360 REQUIRE(pctx != NULL); in cfg_parse_file()
362 REQUIRE(type != NULL); in cfg_parse_file()
425 REQUIRE(pctx != NULL); in cfg_parse_qstring()
447 REQUIRE(pctx != NULL); in cfg_parse_astring()
467 REQUIRE(pctx != NULL); in cfg_parse_sstring()
523 REQUIRE(pctx != NULL); in cfg_create_list()
524 REQUIRE(type != NULL); in cfg_create_list()
[all …]
/openbsd/usr.bin/dig/lib/dns/rdata/ch_3/
H A Da_1.c34 REQUIRE(rdata->type == dns_rdatatype_a); in totext_ch_a()
35 REQUIRE(rdata->rdclass == dns_rdataclass_ch); /* 3 */ in totext_ch_a()
36 REQUIRE(rdata->length != 0); in totext_ch_a()
60 REQUIRE(type == dns_rdatatype_a); in fromwire_ch_a()
61 REQUIRE(rdclass == dns_rdataclass_ch); in fromwire_ch_a()
93 REQUIRE(rdata->type == dns_rdatatype_a); in towire_ch_a()
94 REQUIRE(rdata->rdclass == dns_rdataclass_ch); in towire_ch_a()
95 REQUIRE(rdata->length != 0); in towire_ch_a()

12345