~ubuntu-branches/ubuntu/quantal/opendmarc/quantal-backports

« back to all changes in this revision

Viewing changes to libopendmarc/docs/opendmarc_policy_fetch_ruf.html

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2013-04-01 23:20:45 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130401232045-r994v0oz6b2ha6ef
Tags: 1.1.2-1~ubuntu12.10.1
No-change backport to quantal

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head><title>opendmarc_policy_fetch_ruf()</title></head>
 
3
<body>
 
4
<!--
 
5
$Id: opendmarc_policy_fetch_ruf.html,v 1.5 2010/07/24 04:52:15 cm-msk Exp $
 
6
-->
 
7
<h1>opendmarc_policy_fetch_ruf()</h1>
 
8
<p align="right"><a href="index.html">[back to index]</a></p>
 
9
 
 
10
<table border="0" cellspacing=4 cellpadding=4>
 
11
<!---------- Synopsis ----------->
 
12
<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
 
13
<pre>
 
14
#include &lt;dmarc.h&gt;
 
15
u_char ** opendmarc_policy_fetch_ruf(
 
16
        <a href="dmarc_policy_t.html"><tt>DMARC_POLICY_T</tt></a> *pctx,
 
17
        u_char *list_buf, size_t size_of_buf, int constant
 
18
);
 
19
</pre>
 
20
Query the library to find the list of <tt>ruf=</tt> values from the <tt>DMARC</tt> record.
 
21
</td></tr>
 
22
 
 
23
<!----------- Description ---------->
 
24
<tr><th valign="top" align=left>DESCRIPTION</th><td>
 
25
<table border="1" cellspacing=1 cellpadding=4>
 
26
<tr align="left" valign=top>
 
27
<th width="80">Called When</th>
 
28
<td><tt>opendmarc_policy_fetch_ruf()</tt>
 
29
        is called after the DMARC record has been fetched and parsed.
 
30
</tr>
 
31
</table>
 
32
 
 
33
<!----------- Arguments ---------->
 
34
<tr><th valign="top" align=left>ARGUMENTS</th><td>
 
35
    <table border="1" cellspacing=0>
 
36
    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
 
37
    <tr valign="top"><td>pctx</td>
 
38
        <td>The address of a structure of type <a href="dmarc_policy_t.html">
 
39
        <tt>DMARC_POLICY_T</tt></a> as returned from <a href="opendmarc_policy_connect_init.html">opendmarc_policy_connect_init()</a>. 
 
40
        </td></tr>
 
41
    <tr valign="top"><td>list_buf</td>
 
42
        <td>If not NULL, the address of a buffer to receive a comma delimited list as a single string.
 
43
        </td></tr>
 
44
    <tr valign="top"><td>size_of_buf</td>
 
45
        <td>If <tt>list_buf</tt> was not NULL, the the length of that buffer in bytes.
 
46
        </td></tr>
 
47
    <tr valign="top"><td>constant</td>
 
48
        <td>This function returns an argv-style array of stings. Set this to 0 if you will free that array
 
49
            when you are finished with it. Set this to 1 if you want to treat that array as const and have
 
50
            the library magically free it for you.
 
51
        </td></tr>
 
52
    </table>
 
53
</td></tr>
 
54
 
 
55
<!----------- Return Values ---------->
 
56
<tr>
 
57
<th valign="top" align=left>RETURN VALUES</th> 
 
58
<td>
 
59
<ul>
 
60
<li><tt>!= NULL</tt> -- On success.
 
61
<li><tt>NULL</tt> -- The <tt>pctp</tt> pointer was NULL.
 
62
<li><tt>NULL</tt> -- If the <tt>DMARC</tt> record contained no <tt>ruf=</tt>
 
63
</ul>
 
64
</td>
 
65
</tr>
 
66
 
 
67
<!----------- Notes ---------->
 
68
<tr>
 
69
<th valign="top" align=left>NOTES</th> 
 
70
<td>
 
71
<ul>
 
72
<li>If you set <tt>constant</tt> to 1, you must not free the array returned. To do so will have unpredictable results.
 
73
<li>Call this function only after a <tt>DMARC</tt> record was fetched and parsed with
 
74
<a href="opendmarc_policy_query_dmarc.html">opendmarc_policy_query_dmarc()</a>
 
75
or supplied to the library with
 
76
<a href="opendmarc_policy_store_dmarc.html">opendmarc_policy_store_dmarc()</a>.
 
77
</ul>
 
78
</td>
 
79
</tr>
 
80
</table>
 
81
 
 
82
<hr size="1">
 
83
<font size="-1">
 
84
Copyright (c) 2012, The Trusted Domain Project.  All rights reserved.
 
85
 
 
86
<br>
 
87
By using this file, you agree to the terms and conditions set
 
88
forth in the license.
 
89
</font>
 
90
</body>
 
91
</html>