str2host.h
Go to the documentation of this file.
#ifndef LDNS_2HOST_H
#define LDNS_2HOST_H
#include <ldns/common.h>
#include <ldns/error.h>
#include <ldns/rr.h>
#include <ldns/rdata.h>
#include <ldns/packet.h>
#include <ldns/buffer.h>
#include <ctype.h>
#ifdef __cplusplus
extern "C" {
#endif
ldns_status ldns_str2rdf_int8(ldns_rdf **rd, const char *bytestr);
ldns_status ldns_str2rdf_int16(ldns_rdf **rd, const char *shortstr);
ldns_status ldns_str2rdf_int32(ldns_rdf **rd, const char *longstr);
ldns_status ldns_str2rdf_time(ldns_rdf **rd, const char *time);
/* convert string with NSEC3 salt to wireformat)
* \param[out] rd the rdf where to put the data
* \param[in] str the string to be converted
* return ldns_status
*/
ldns_status ldns_str2rdf_nsec3_salt(ldns_rdf **rd, const char *nsec3_salt);
/* convert a time period (think TTL's) to wireformat)
* \param[out] rd the rdf where to put the data
* \param[in] str the string to be converted
* return ldns_status
*/
ldns_status ldns_str2rdf_period(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_a(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_aaaa(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_str(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_apl(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_b64(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_b32_ext(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_hex(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_nsec(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_type(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_class(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_cert_alg(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_alg(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_certificate_usage(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_selector(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_matching_type(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_unknown(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_service(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_loc(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_wks(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_nsap(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_atma(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_ipseckey(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_dname(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_ilnp64(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_eui48(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_eui64(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_tag(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_long_str(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_hip(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_amtrelay(ldns_rdf **rd, const char *str);
ldns_status ldns_str2rdf_svcparams(ldns_rdf **rd, const char *str);
#ifdef __cplusplus
}
#endif
#endif /* LDNS_2HOST_H */
buffer.h
This file contains the definition of ldns_buffer, and functions to manipulate those.
common.h
Common definitions for LDNS.
error.h
Defines error numbers and functions to translate those to a readable string.
ldns_status
enum ldns_enum_status ldns_status
Definition error.h:148
packet.h
Contains the definition of ldns_pkt and its parts, as well as functions to manipulate those.
rdata.h
Defines ldns_rdf and functions to manipulate those.
ldns_rdf
struct ldns_struct_rdf ldns_rdf
Definition rdata.h:205
rr.h
Contains the definition of ldns_rr and functions to manipulate those.
ldns_str2rdf_hex
ldns_status ldns_str2rdf_hex(ldns_rdf **rd, const char *str)
convert a hex value into wireformat
Definition str2host.c:644
ldns_str2rdf_amtrelay
ldns_status ldns_str2rdf_amtrelay(ldns_rdf **rd, const char *str)
Convert a "<precedence> <D-bit> <type> <relay>" encoding of the value field as specified in Section 4...
Definition str2host.c:1672
ldns_str2rdf_int8
ldns_status ldns_str2rdf_int8(ldns_rdf **rd, const char *bytestr)
convert a byte into wireformat
Definition str2host.c:228
ldns_str2rdf_certificate_usage
ldns_status ldns_str2rdf_certificate_usage(ldns_rdf **rd, const char *str)
convert a tlsa certificate usage value into wireformat
Definition str2host.c:839
ldns_str2rdf_hip
ldns_status ldns_str2rdf_hip(ldns_rdf **rd, const char *str)
Convert a "<algorithm> <hit> <pk>" encoding of the value field as specified in Section 6.
Definition str2host.c:1576
ldns_str2rdf_service
ldns_status ldns_str2rdf_service(ldns_rdf **rd, const char *str)
convert string with a protocol service into wireformat
ldns_str2rdf_atma
ldns_status ldns_str2rdf_atma(ldns_rdf **rd, const char *str)
convert a str with a ATMA RR into wireformat
Definition str2host.c:1255
ldns_str2rdf_type
ldns_status ldns_str2rdf_type(ldns_rdf **rd, const char *str)
convert a rrtype into wireformat
Definition str2host.c:738
ldns_str2rdf_nsec3_salt
ldns_status ldns_str2rdf_nsec3_salt(ldns_rdf **rd, const char *nsec3_salt)
Definition str2host.c:126
ldns_str2rdf_svcparams
ldns_status ldns_str2rdf_svcparams(ldns_rdf **rd, const char *str)
Convert a series of "key[=<value>]" encodings to wireformat as described in [draft-ietf-dnsop-svcb-ht...
Definition str2host.c:2331
ldns_str2rdf_period
ldns_status ldns_str2rdf_period(ldns_rdf **rd, const char *str)
Definition str2host.c:178
ldns_str2rdf_aaaa
ldns_status ldns_str2rdf_aaaa(ldns_rdf **rd, const char *str)
convert the str with an AAAA record into wireformat
Definition str2host.c:414
ldns_str2rdf_b32_ext
ldns_status ldns_str2rdf_b32_ext(ldns_rdf **rd, const char *str)
convert the string with the b32 ext hex data into wireformat
Definition str2host.c:613
ldns_str2rdf_long_str
ldns_status ldns_str2rdf_long_str(ldns_rdf **rd, const char *str)
Convert a <character-string> encoding of the value field as specified [RFC1035], Section 5....
Definition str2host.c:1529
ldns_str2rdf_class
ldns_status ldns_str2rdf_class(ldns_rdf **rd, const char *str)
convert string with a classname into wireformat
Definition str2host.c:749
ldns_str2rdf_alg
ldns_status ldns_str2rdf_alg(ldns_rdf **rd, const char *str)
convert an algorithm value into wireformat
Definition str2host.c:833
ldns_str2rdf_nsec
ldns_status ldns_str2rdf_nsec(ldns_rdf **rd, const char *str)
convert string with nsec into wireformat
Definition str2host.c:690
ldns_str2rdf_a
ldns_status ldns_str2rdf_a(ldns_rdf **rd, const char *str)
convert str with an A record into wireformat
Definition str2host.c:401
ldns_str2rdf_matching_type
ldns_status ldns_str2rdf_matching_type(ldns_rdf **rd, const char *str)
convert a tlsa matching type value into wireformat
Definition str2host.c:852
ldns_str2rdf_wks
ldns_status ldns_str2rdf_wks(ldns_rdf **rd, const char *str)
convert string with a WKS RR into wireformat
Definition str2host.c:1091
ldns_str2rdf_ilnp64
ldns_status ldns_str2rdf_ilnp64(ldns_rdf **rd, const char *str)
convert 4 * 16bit hex separated by colons into wireformat
Definition str2host.c:1429
ldns_str2rdf_time
ldns_status ldns_str2rdf_time(ldns_rdf **rd, const char *time)
convert a time string to a time value in wireformat
Definition str2host.c:57
ldns_str2rdf_nsap
ldns_status ldns_str2rdf_nsap(ldns_rdf **rd, const char *str)
convert a str with a NSAP RR into wireformat
Definition str2host.c:1236
ldns_str2rdf_eui64
ldns_status ldns_str2rdf_eui64(ldns_rdf **rd, const char *str)
convert 8 hex bytes separated by dashes into wireformat
Definition str2host.c:1475
ldns_str2rdf_loc
ldns_status ldns_str2rdf_loc(ldns_rdf **rd, const char *str)
convert a string with a LOC RR into wireformat
Definition str2host.c:916
ldns_str2rdf_str
ldns_status ldns_str2rdf_str(ldns_rdf **rd, const char *str)
convert a string into wireformat (think txt record)
Definition str2host.c:428
ldns_str2rdf_ipseckey
ldns_status ldns_str2rdf_ipseckey(ldns_rdf **rd, const char *str)
convert a str with a IPSECKEY RR into wireformat
Definition str2host.c:1275
ldns_str2rdf_selector
ldns_status ldns_str2rdf_selector(ldns_rdf **rd, const char *str)
convert a tlsa selector value into wireformat
Definition str2host.c:846
ldns_str2rdf_tag
ldns_status ldns_str2rdf_tag(ldns_rdf **rd, const char *str)
Convert a non-zero sequence of US-ASCII letters and numbers into wireformat.
Definition str2host.c:1500
ldns_str2rdf_apl
ldns_status ldns_str2rdf_apl(ldns_rdf **rd, const char *str)
convert str with the apl record into wireformat
Definition str2host.c:472
ldns_str2rdf_b64
ldns_status ldns_str2rdf_b64(ldns_rdf **rd, const char *str)
convert the string with the b64 data into wireformat
Definition str2host.c:583
ldns_str2rdf_dname
ldns_status ldns_str2rdf_dname(ldns_rdf **rd, const char *str)
convert a dname string into wireformat
Definition str2host.c:311
ldns_str2rdf_eui48
ldns_status ldns_str2rdf_eui48(ldns_rdf **rd, const char *str)
convert 6 hex bytes separated by dashes into wireformat
Definition str2host.c:1452
ldns_str2rdf_int32
ldns_status ldns_str2rdf_int32(ldns_rdf **rd, const char *longstr)
convert a strings into a 4 byte int in wireformat
Definition str2host.c:197
ldns_str2rdf_int16
ldns_status ldns_str2rdf_int16(ldns_rdf **rd, const char *shortstr)
convert a string to a int16 in wireformat
Definition str2host.c:36
ldns_str2rdf_cert_alg
ldns_status ldns_str2rdf_cert_alg(ldns_rdf **rd, const char *str)
convert an certificate algorithm value into wireformat
Definition str2host.c:763
ldns_str2rdf_unknown
ldns_status ldns_str2rdf_unknown(ldns_rdf **rd, const char *str)
convert a string with a unknown RR into wireformat