19#ifdef HAVE_SYS_SOCKET_H
20#include <sys/socket.h>
22#ifdef HAVE_ARPA_INET_H
32#include <openssl/bn.h>
33#include <openssl/rsa.h>
35#include <openssl/dsa.h>
39#ifndef INET_ADDRSTRLEN
40#define INET_ADDRSTRLEN 16
42#ifndef INET6_ADDRSTRLEN
43#define INET6_ADDRSTRLEN 46
203 if (lt && lt->
name) {
208 return ldns_buffer_status(output);
215 if (lt && lt->
name) {
220 return ldns_buffer_status(output);
229 if (lt && lt->
name) {
234 return ldns_buffer_status(output);
243 if (lt && lt->
name) {
249 return ldns_buffer_status(output);
360 for(i = 0; i < len; i++) {
364 c = (
unsigned char) data[src_pos];
365 if(c ==
'.' || c ==
';' ||
366 c ==
'(' || c ==
')' ||
370 }
else if (!(isascii(c) && isgraph(c))) {
385 return ldns_buffer_status(output);
393 return ldns_buffer_status(output);
401 return ldns_buffer_status(output);
409 return ldns_buffer_status(output);
419 memset(&tm, 0,
sizeof(tm));
421 && strftime(date_buf, 15,
"%Y%m%d%H%M%S", &tm)) {
424 return ldns_buffer_status(output);
435 return ldns_buffer_status(output);
447 return ldns_buffer_status(output);
452 size_t amount,
const uint8_t* characters)
457 if (isprint((
int)ch) || ch ==
'\t') {
458 if (ch ==
'\"' || ch ==
'\\')
464 (
unsigned)(uint8_t) ch);
480 ldns_characters2buffer_str(output,
483 return ldns_buffer_status(output);