Current File : //proc/self/root/kunden/usr/share/doc/libopendmarc-devel/opendmarc_policy_fetch_alignment.html
<html>
<head><title>opendmarc_policy_fetch_alignment()</title></head>
<body>
<!--
$Id: opendmarc_policy_fetch_alignment.html,v 1.5 2010/07/24 04:52:15 cm-msk Exp $
-->
<h1>opendmarc_policy_fetch_alignment()</h1>
<p align="right"><a href="index.html">[back to index]</a></p>

<table border="0" cellspacing=4 cellpadding=4>
<!---------- Synopsis ----------->
<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
<pre>
#include &lt;dmarc.h&gt;
<a href="opendmarc_status_t.html"><tt>OPENDMARC_STATUS_T</tt></a> opendmarc_policy_fetch_alignment(
	<a href="dmarc_policy_t.html"><tt>DMARC_POLICY_T</tt></a> *pctx,
	int *dkim_alignment, int *spf_alignment
);
</pre>
Find out the Alignment results for the SPF and DKIM checks. 
</td></tr>

<!----------- Description ---------->
<tr><th valign="top" align=left>DESCRIPTION</th><td>
<table border="1" cellspacing=1 cellpadding=4>
<tr align="left" valign=top>
<th width="80">Called When</th>
<td><tt>opendmarc_policy_fetch_alignment()</tt>
	is called after the DMARC record has been fetched and parsed.
</tr>
</table>

<!----------- Arguments ---------->
<tr><th valign="top" align=left>ARGUMENTS</th><td>
    <table border="1" cellspacing=0>
    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
    <tr valign="top"><td>pctx</td>
	<td>The address of a structure of type <a href="dmarc_policy_t.html">
        <tt>DMARC_POLICY_T</tt></a> as returned from <a href="opendmarc_policy_connect_init.html">opendmarc_policy_connect_init()</a>. 
	</td></tr>
    <tr valign="top"><td>dkim_alignment</td>
	<td>The address of an integer that will be set to either
	<br><tt>DMARC_POLICY_DKIM_ALIGNMENT_PASS</tt> or
	<br><tt>DMARC_POLICY_DKIM_ALIGNMENT_FAIL</tt>
	</td></tr>
    <tr valign="top"><td>spf_alignment</td>
	<td>The address of an integer that will be set to either
	<br><tt>DMARC_POLICY_SPF_ALIGNMENT_PASS</tt> or 
	<br><tt>DMARC_POLICY_SPF_ALIGNMENT_FAIL</tt>
	</td></tr>
    </table>
</td></tr>

<!----------- Return Values ---------->
<tr>
<th valign="top" align=left>RETURN VALUES</th> 
<td>
<ul>
<li><tt>DMARC_PARSE_OKAY</tt> -- Success.
<li><tt>DMARC_PARSE_ERROR_NULL_CTX</tt> -- If you passed in a <tt>pctx</tt> value that was NULL.
</ul>
</td>
</tr>

<!----------- Notes ---------->
<tr>
<th valign="top" align=left>NOTES</th> 
<td>
<ul>
<li>This function should only be called after feeding the library the SPF and DKIM results with
<a href="opendmarc_policy_store_spf.html">opendmarc_policy_store_spf()</a> or
<a href="opendmarc_policy_store_dkim.html">opendmarc_policy_store_dkim()</a>.
And should only be called after providing the From header domain with
<a href="opendmarc_policy_store_from_domain.html">opendmarc_policy_store_from_domain()</a>.
And should only be called after the DMARC record has been fetched with
<a href="opendmarc_policy_query_dmarc.html">opendmarc_policy_query_dmarc()</a>
or supplied to the library with
<a href="opendmarc_policy_store_dmarc.html">opendmarc_policy_store_dmarc()</a>.
And shoud only be called after the policy to enforce has been retrieved
and processed using
<a href="opendmarc_get_policy_to_enforce.html">opendmarc_get_policy_to_enforce()</a>.
</ul>
</td>
</tr>
</table>

<hr size="1">
<font size="-1">
Copyright (c) 2012, The Trusted Domain Project.  All rights reserved.

<br>
By using this file, you agree to the terms and conditions set
forth in the license.
</font>
</body>
</html>