- do we call random()?
o Make a shared library and test compile some programs
o Thread safety, strtok is used
+o NSEC cannot be converted from str to host fmt
o ssl autoconf
o create a bunch of small programs:
dig
bitmap_length = data[pos+1];
pos += 2;
-
for (bit_pos = 0; bit_pos < (bitmap_length) * 8; bit_pos++) {
if (get_bit(&data[pos], bit_pos)) {
type = 256 * (uint16_t) window_block_nr + bit_pos;
r_max = ldns_rr_descriptor_maximum(desc);
r_min = ldns_rr_descriptor_minimum(desc);
+ /* this breaks with nsec */
for(rd = strtok(rdata, "\t \0"), r_cnt =0; rd; rd = strtok(NULL, "\t \0"), r_cnt++) {
+ printf("rd found %s\n", rd);
r = ldns_rdf_new_frm_str(
ldns_rr_descriptor_field_type(desc, r_cnt),
rd);
ldns_rr *key;
ldns_rr *ds;
ldns_rdf *ch;
+ ldns_rr *nsec;
key = ldns_rr_new_frm_str("nlnetlabs.nl. 86400 IN DNSKEY 257 3 RSASHA1 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9NLby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1UBYtEIQ==");
ds = ldns_key_rr2ds(key);
+ nsec = ldns_rr_new_frm_str("nlnetlabs.nl. 18000 IN NSEC _sip._udp.nlnetlabs.nl. NS SOA MX TXT RRSIG NSEC DNSKEY");
+
printf("\nand now the DS\n");
printf("rdata count %d\n", ldns_rr_rd_count(ds));
ldns_rr_print(stdout, ds);