.\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "val_get_rrset 3" .TH val_get_rrset 3 "2013-03-08" "perl v5.12.4" "Programmer's Manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" val_get_rrset() \- get DNSSEC\-validated resource record information .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& #include \& \& struct val_answer_chain { \& val_status_t val_ans_status; \& char *val_ans_name; \& int val_ans_class; \& int val_ans_type; \& struct rr_rec *val_ans; \& struct val_answer_chain *val_ans_next; \& }; \& \& struct rr_rec { \& size_t rr_length; \& unsigned char *rr_data; \& struct rr_rec *rr_next; \& }; \& \& int val_get_rrset(val_context_t *ctx, \& const char *name, \& int class, \& int type, \& unsigned int flags, \& struct val_answer_chain **answers); \& \& void val_free_answer_chain(struct val_answer_chain *answers); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fI\fIval_get_rrset()\fI\fR performs \s-1DNSSEC\s0 validation for the given \s-1DNS\s0 name, class and type. It returns the \s-1DNSSEC\s0 validation status for the resource record set, but does not return any authentication chain details. If the authentication chain details are required, the \fI\fIval_resolve_and_check()\fI\fR function must be used instead. .PP \&\fI\fIval_get_rrset()\fI\fR returns its results in the val_answer_chain structure. The memory for this structure is allocated by val_get_rrset; the user must release this memory after use using the \fI\fIval_free_answer_chain()\fI\fR function. .PP The RRsets in the response are returned in the val_answer_chain structure. The val_ans_name member contains the \s-1DNS\s0 name of the actual resource record set returned. This value may differ from the value passed as the \&\fIname\fR argument to \fIval_get_rrset()\fR if the resource record was returned after following a \s-1CNAME\s0 or \s-1DNAME\s0 alias. val_ans_name and val_ans_type contains the actual class and type for the returned resource record. These values may differ from the values passed as arguments to \fIval_get_rrset()\fR if the query type or class has the value 255 (\s-1ANY\s0). The resource record set is returned in \fIval_ans\fRas a linked list of rr_length and rr_data tuples, for data returned in each resource record of the resource record set. \&\fIval_ans\fR may be \s-1NULL\s0 if the name is non-existant. .PP \&\fIval_ans_status\fR gives the combined validation status value for the the given RRset. \fI\fIval_istrusted()\fI\fR and \&\fI\fIval_isvalidated()\fI\fR can be used to determine the trustworthiness of data and \&\fI\fIp_val_status()\fI\fR can be used to display the status value to the user in \s-1ASCII\s0 format (See \fI\fIlibval\fI\|(3)\fR more for information). .PP The \fIctx\fR parameter specifies the validation context, which can be set to \s-1NULL\s0 for default values (see \fI\fIlibval\fI\|(3)\fR and \fIdnsval.conf\fR for more details on validation contexts and validation policy). .SH "RETURN VALUES" .IX Header "RETURN VALUES" The \fI\fIval_get_rrset()\fI\fR function returns 0 on success and one of the error codes defined in \fIlibval\fR\|(3) on failure. .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2004\-2013 \s-1SPARTA\s0, Inc. All rights reserved. See the \s-1COPYING\s0 file included with the DNSSEC-Tools package for details. .SH "AUTHORS" .IX Header "AUTHORS" Suresh Krishnaswamy .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fI\fIval_getaddrinfo\fI\|(3)\fR .PP \&\fI\fIval_gethostbyname\fI\|(3)\fR, \fI\fIval_res_query\fI\|(3)\fR .PP \&\fI\fIlibval\fI\|(3)\fR .PP http://www.dnssec\-tools.org