Lines Matching defs:txt_out
71 * @param txt_out: output text format (converted from wire_out).
72 * @param wire2: output wireformat in hex, txt_out converted back to wireformat.
76 rr_transform(char* txt_in, char* wire1, char* txt_out, char* wire2,
95 err = sldns_wire2str_rr_buf(b, len, txt_out, bufs);
97 if(vbmp) printf("txt: %s", txt_out);
100 err = sldns_str2wire_rr_buf(txt_out, b, &len, NULL, 3600,
114 rr_checks(char* wire_chk, char* txt_chk, char* txt_out, char* wire_out,
120 if(strstr(txt_out, "IN AAAA"))
121 txt_out = txt_chk; /* skip this test, but test wirefmt */
122 /* so we know that txt_out back to wire is the same */
125 if(strcmp(txt_chk, txt_out) != 0 && vbmp)
132 unit_assert(strcmp(txt_chk, txt_out) == 0);
149 char* txt_out = (char*)malloc(bufs);
154 if(!txt_in || !txt_out || !txt_chk || !wire_out || !wire_chk || !back)
183 rr_transform(txt_in, wire_out, txt_out, back, bufs);
186 fprintf(of, "%s%s", wire_out, txt_out);
188 rr_checks(wire_chk, txt_chk, txt_out, wire_out, back);
196 free(txt_out);