Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 550bbe86d83a7870fdddc73c68e5d2b2 > files > 427

libunbound-devel-1.3.4-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>unbound: validator/val_anchor.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_d2a455e92b602458a2b0ed9b207bdda1.html">validator</a>
  </div>
</div>
<div class="contents">
<h1>val_anchor.h File Reference</h1>This file contains storage for the trust anchors for the validator.  
<a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="rbtree_8h.html">util/rbtree.h</a>&quot;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structval__anchors.html">val_anchors</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Trust anchor store.  <a href="structval__anchors.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structta__key.html">ta_key</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Trust anchor key.  <a href="structta__key.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtrust__anchor.html">trust_anchor</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A trust anchor in the trust anchor store.  <a href="structtrust__anchor.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#46944f5898c21ef8008765b6d8318f93">anchors_create</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create trust anchor storage.  <a href="#46944f5898c21ef8008765b6d8318f93"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#91486eabe8f437cbaa1ef6a3dfb93a9e">anchors_delete</a> (struct <a class="el" href="structval__anchors.html">val_anchors</a> *anchors)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete trust anchor storage.  <a href="#91486eabe8f437cbaa1ef6a3dfb93a9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#9f6ab456d9dcdd10e7c23049e4c8e3ce">anchors_apply_cfg</a> (struct <a class="el" href="structval__anchors.html">val_anchors</a> *anchors, struct <a class="el" href="structconfig__file.html">config_file</a> *cfg)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Process trust anchor config.  <a href="#9f6ab456d9dcdd10e7c23049e4c8e3ce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structtrust__anchor.html">trust_anchor</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#33fd2696313dc1c3c61af73a5147c44b">anchors_lookup</a> (struct <a class="el" href="structval__anchors.html">val_anchors</a> *anchors, uint8_t *qname, size_t qname_len, uint16_t qclass)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Given a qname/qclass combination, find the trust anchor closest above it.  <a href="#33fd2696313dc1c3c61af73a5147c44b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structtrust__anchor.html">trust_anchor</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#0fc5e042c7fbeabd1afb117d43970d41">anchor_find</a> (struct <a class="el" href="structval__anchors.html">val_anchors</a> *anchors, uint8_t *name, int namelabs, size_t namelen, uint16_t dclass)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find a trust anchor.  <a href="#0fc5e042c7fbeabd1afb117d43970d41"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structtrust__anchor.html">trust_anchor</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#c28b8f0ecbfa5611d433397ce22fb753">anchor_store_str</a> (struct <a class="el" href="structval__anchors.html">val_anchors</a> *anchors, ldns_buffer *buffer, const char *str)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Store one string as trust anchor RR.  <a href="#c28b8f0ecbfa5611d433397ce22fb753"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#0f514d5552589c14f1cc0a4709d13dbc">anchors_get_mem</a> (struct <a class="el" href="structval__anchors.html">val_anchors</a> *anchors)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get memory in use by the trust anchor storage.  <a href="#0f514d5552589c14f1cc0a4709d13dbc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66a51f7871809890b25c1290d4923f89"></a><!-- doxytag: member="val_anchor.h::anchor_cmp" ref="66a51f7871809890b25c1290d4923f89" args="(const void *k1, const void *k2)" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="val__anchor_8h.html#66a51f7871809890b25c1290d4923f89">anchor_cmp</a> (const void *k1, const void *k2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">compare two trust anchors <br></td></tr>
</table>
<hr><h2>Detailed Description</h2>
This file contains storage for the trust anchors for the validator. 
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="46944f5898c21ef8008765b6d8318f93"></a><!-- doxytag: member="val_anchor.h::anchors_create" ref="46944f5898c21ef8008765b6d8318f93" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structval__anchors.html">val_anchors</a>* anchors_create           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create trust anchor storage. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>new storage or NULL on error. </dd></dl>

<p>References <a class="el" href="val__anchor_8c_source.html#l00055">anchor_cmp()</a>, <a class="el" href="val__anchor_8c_source.html#l00090">anchors_delete()</a>, <a class="el" href="rbtree_8c_source.html#l00077">rbtree_create()</a>, <a class="el" href="val__anchor_8h_source.html#l00055">val_anchors::region</a>, <a class="el" href="regional_8c_source.html#l00061">regional_create()</a>, and <a class="el" href="val__anchor_8h_source.html#l00062">val_anchors::tree</a>.</p>

<p>Referenced by <a class="el" href="unitanchor_8c_source.html#l00107">anchors_test()</a>, and <a class="el" href="validator_8c_source.html#l00101">val_apply_cfg()</a>.</p>

</div>
</div><p>
<a class="anchor" name="91486eabe8f437cbaa1ef6a3dfb93a9e"></a><!-- doxytag: member="val_anchor.h::anchors_delete" ref="91486eabe8f437cbaa1ef6a3dfb93a9e" args="(struct val_anchors *anchors)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void anchors_delete           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td>
          <td class="paramname"> <em>anchors</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Delete trust anchor storage. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anchors,:</em>&nbsp;</td><td>to delete. </td></tr>
  </table>
</dl>

<p>References <a class="el" href="val__anchor_8h_source.html#l00055">val_anchors::region</a>, <a class="el" href="regional_8c_source.html#l00108">regional_destroy()</a>, and <a class="el" href="val__anchor_8h_source.html#l00062">val_anchors::tree</a>.</p>

<p>Referenced by <a class="el" href="val__anchor_8c_source.html#l00071">anchors_create()</a>, <a class="el" href="unitanchor_8c_source.html#l00107">anchors_test()</a>, and <a class="el" href="validator_8c_source.html#l00172">val_deinit()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9f6ab456d9dcdd10e7c23049e4c8e3ce"></a><!-- doxytag: member="val_anchor.h::anchors_apply_cfg" ref="9f6ab456d9dcdd10e7c23049e4c8e3ce" args="(struct val_anchors *anchors, struct config_file *cfg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int anchors_apply_cfg           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td>
          <td class="paramname"> <em>anchors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structconfig__file.html">config_file</a> *&nbsp;</td>
          <td class="paramname"> <em>cfg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Process trust anchor config. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anchors,:</em>&nbsp;</td><td>struct anchor storage </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cfg,:</em>&nbsp;</td><td>config options. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on error. </dd></dl>

<p>References <a class="el" href="val__anchor_8c_source.html#l00294">anchor_insert_insecure()</a>, <a class="el" href="val__anchor_8c_source.html#l00702">anchor_read_bind_file_wild()</a>, <a class="el" href="val__anchor_8c_source.html#l00339">anchor_read_file()</a>, <a class="el" href="val__anchor_8c_source.html#l00309">anchor_store_str()</a>, <a class="el" href="val__anchor_8c_source.html#l00886">anchors_assemble_rrsets()</a>, <a class="el" href="config__file_8h_source.html#l00162">config_file::chrootdir</a>, <a class="el" href="val__anchor_8h_source.html#l00064">val_anchors::dlv_anchor</a>, <a class="el" href="config__file_8h_source.html#l00196">config_file::dlv_anchor_file</a>, <a class="el" href="config__file_8h_source.html#l00198">config_file::dlv_anchor_list</a>, <a class="el" href="config__file_8h_source.html#l00200">config_file::domain_insecure</a>, <a class="el" href="val__anchor_8c_source.html#l00101">init_parents()</a>, <a class="el" href="log_8c_source.html#l00241">log_err()</a>, <a class="el" href="config__file_8h_source.html#l00280">config_strlist::next</a>, <a class="el" href="config__file_8h_source.html#l00282">config_strlist::str</a>, <a class="el" href="config__file_8h_source.html#l00190">config_file::trust_anchor_file_list</a>, <a class="el" href="config__file_8h_source.html#l00192">config_file::trust_anchor_list</a>, and <a class="el" href="config__file_8h_source.html#l00194">config_file::trusted_keys_file_list</a>.</p>

<p>Referenced by <a class="el" href="validator_8c_source.html#l00101">val_apply_cfg()</a>.</p>

</div>
</div><p>
<a class="anchor" name="33fd2696313dc1c3c61af73a5147c44b"></a><!-- doxytag: member="val_anchor.h::anchors_lookup" ref="33fd2696313dc1c3c61af73a5147c44b" args="(struct val_anchors *anchors, uint8_t *qname, size_t qname_len, uint16_t qclass)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structtrust__anchor.html">trust_anchor</a>* anchors_lookup           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td>
          <td class="paramname"> <em>anchors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>qname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>qname_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&nbsp;</td>
          <td class="paramname"> <em>qclass</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Given a qname/qclass combination, find the trust anchor closest above it. 
<p>
Or return NULL if none exists.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anchors,:</em>&nbsp;</td><td>struct anchor storage </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>qname,:</em>&nbsp;</td><td>query name, uncompressed wireformat. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>qname_len,:</em>&nbsp;</td><td>length of qname. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>qclass,:</em>&nbsp;</td><td>class to query for. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the trust anchor or NULL if none is found. </dd></dl>

<p>References <a class="el" href="val__anchor_8h_source.html#l00110">trust_anchor::dclass</a>, <a class="el" href="dname_8c_source.html#l00369">dname_count_labels()</a>, <a class="el" href="dname_8c_source.html#l00424">dname_lab_cmp()</a>, <a class="el" href="rbtree_8h_source.html#l00063">rbnode_t::key</a>, <a class="el" href="val__anchor_8h_source.html#l00089">trust_anchor::name</a>, <a class="el" href="val__anchor_8h_source.html#l00093">trust_anchor::namelabs</a>, <a class="el" href="val__anchor_8h_source.html#l00091">trust_anchor::namelen</a>, <a class="el" href="val__anchor_8h_source.html#l00087">trust_anchor::node</a>, <a class="el" href="val__anchor_8h_source.html#l00095">trust_anchor::parent</a>, <a class="el" href="rbtree_8c_source.html#l00507">rbtree_find_less_equal()</a>, and <a class="el" href="val__anchor_8h_source.html#l00062">val_anchors::tree</a>.</p>

<p>Referenced by <a class="el" href="validator_8c_source.html#l01158">processInit()</a>, <a class="el" href="unitanchor_8c_source.html#l00049">test_anchor_empty()</a>, <a class="el" href="unitanchor_8c_source.html#l00065">test_anchor_one()</a>, <a class="el" href="unitanchor_8c_source.html#l00084">test_anchors()</a>, and <a class="el" href="val__utils_8c_source.html#l00716">val_mark_indeterminate()</a>.</p>

</div>
</div><p>
<a class="anchor" name="0fc5e042c7fbeabd1afb117d43970d41"></a><!-- doxytag: member="val_anchor.h::anchor_find" ref="0fc5e042c7fbeabd1afb117d43970d41" args="(struct val_anchors *anchors, uint8_t *name, int namelabs, size_t namelen, uint16_t dclass)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structtrust__anchor.html">trust_anchor</a>* anchor_find           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td>
          <td class="paramname"> <em>anchors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>namelabs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>namelen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&nbsp;</td>
          <td class="paramname"> <em>dclass</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Find a trust anchor. 
<p>
Exact matching. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anchors,:</em>&nbsp;</td><td>anchor storage. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name,:</em>&nbsp;</td><td>name of trust anchor (wireformat) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>namelabs,:</em>&nbsp;</td><td>labels in name </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>namelen,:</em>&nbsp;</td><td>length of name </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dclass,:</em>&nbsp;</td><td>class of trust anchor </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>NULL if not found. </dd></dl>

<p>References <a class="el" href="val__anchor_8h_source.html#l00110">trust_anchor::dclass</a>, <a class="el" href="rbtree_8h_source.html#l00063">rbnode_t::key</a>, <a class="el" href="val__anchor_8h_source.html#l00089">trust_anchor::name</a>, <a class="el" href="val__anchor_8h_source.html#l00093">trust_anchor::namelabs</a>, <a class="el" href="val__anchor_8h_source.html#l00091">trust_anchor::namelen</a>, <a class="el" href="val__anchor_8h_source.html#l00087">trust_anchor::node</a>, <a class="el" href="rbtree_8c_source.html#l00280">rbtree_search()</a>, and <a class="el" href="val__anchor_8h_source.html#l00062">val_anchors::tree</a>.</p>

<p>Referenced by <a class="el" href="val__anchor_8c_source.html#l00214">anchor_store_new_key()</a>, and <a class="el" href="iter__utils_8c_source.html#l00476">iter_indicates_dnssec()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c28b8f0ecbfa5611d433397ce22fb753"></a><!-- doxytag: member="val_anchor.h::anchor_store_str" ref="c28b8f0ecbfa5611d433397ce22fb753" args="(struct val_anchors *anchors, ldns_buffer *buffer, const char *str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structtrust__anchor.html">trust_anchor</a>* anchor_store_str           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td>
          <td class="paramname"> <em>anchors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ldns_buffer *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>str</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Store one string as trust anchor RR. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anchors,:</em>&nbsp;</td><td>anchor storage. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>buffer,:</em>&nbsp;</td><td>parsing buffer, to generate the RR wireformat in. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>str,:</em>&nbsp;</td><td>string. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>NULL on error. </dd></dl>

<p>References <a class="el" href="val__anchor_8c_source.html#l00259">anchor_store_new_rr()</a>, and <a class="el" href="log_8c_source.html#l00241">log_err()</a>.</p>

<p>Referenced by <a class="el" href="val__anchor_8c_source.html#l00928">anchors_apply_cfg()</a>, <a class="el" href="val__anchor_8c_source.html#l00553">process_bind_contents()</a>, <a class="el" href="unitanchor_8c_source.html#l00065">test_anchor_one()</a>, and <a class="el" href="unitanchor_8c_source.html#l00084">test_anchors()</a>.</p>

</div>
</div><p>
<a class="anchor" name="0f514d5552589c14f1cc0a4709d13dbc"></a><!-- doxytag: member="val_anchor.h::anchors_get_mem" ref="0f514d5552589c14f1cc0a4709d13dbc" args="(struct val_anchors *anchors)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t anchors_get_mem           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structval__anchors.html">val_anchors</a> *&nbsp;</td>
          <td class="paramname"> <em>anchors</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get memory in use by the trust anchor storage. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anchors,:</em>&nbsp;</td><td>anchor storage. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>memory in use in bytes. </dd></dl>

<p>References <a class="el" href="val__anchor_8h_source.html#l00055">val_anchors::region</a>, and <a class="el" href="regional_8c_source.html#l00214">regional_get_mem()</a>.</p>

<p>Referenced by <a class="el" href="validator_8c_source.html#l02582">val_get_mem()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 13 06:46:33 2009 for unbound by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>