<refentry id="xmlsec-x509">
<refmeta>
<refentrytitle role="top_of_page" id="xmlsec-x509.top_of_page">x509</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>XMLSEC Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>x509</refname>
<refpurpose><ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Certificate">&lt;dsig:X509Certificate/&gt;</ulink> node parser.</refpurpose>
</refnamediv>

<refsynopsisdiv id="xmlsec-x509.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
#define             <link linkend="XMLSEC-X509DATA-CERTIFICATE-NODE--CAPS">XMLSEC_X509DATA_CERTIFICATE_NODE</link>
#define             <link linkend="XMLSEC-X509DATA-SUBJECTNAME-NODE--CAPS">XMLSEC_X509DATA_SUBJECTNAME_NODE</link>
#define             <link linkend="XMLSEC-X509DATA-ISSUERSERIAL-NODE--CAPS">XMLSEC_X509DATA_ISSUERSERIAL_NODE</link>
#define             <link linkend="XMLSEC-X509DATA-SKI-NODE--CAPS">XMLSEC_X509DATA_SKI_NODE</link>
#define             <link linkend="XMLSEC-X509DATA-CRL-NODE--CAPS">XMLSEC_X509DATA_CRL_NODE</link>
#define             <link linkend="XMLSEC-X509DATA-DEFAULT--CAPS">XMLSEC_X509DATA_DEFAULT</link>
<link linkend="int">int</link>                 <link linkend="xmlSecX509DataGetNodeContent">xmlSecX509DataGetNodeContent</link>        (<link linkend="xmlNode">xmlNodePtr</link> node,
                                                         <link linkend="int">int</link> deleteChildren,
                                                         <link linkend="xmlSecKeyInfoCtx">xmlSecKeyInfoCtxPtr</link> keyInfoCtx);
</synopsis>
</refsynopsisdiv>









<refsect1 id="xmlsec-x509.description" role="desc">
<title role="desc.title">Description</title>
<para>
<ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Certificate">&lt;dsig:X509Certificate/&gt;</ulink> node parser.
</para>
</refsect1>

<refsect1 id="xmlsec-x509.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="XMLSEC-X509DATA-CERTIFICATE-NODE--CAPS" role="macro">
<title>XMLSEC_X509DATA_CERTIFICATE_NODE</title>
<indexterm zone="XMLSEC-X509DATA-CERTIFICATE-NODE--CAPS"><primary sortas="XMLSEC_X509DATA_CERTIFICATE_NODE">XMLSEC_X509DATA_CERTIFICATE_NODE</primary></indexterm><programlisting>#define XMLSEC_X509DATA_CERTIFICATE_NODE                        0x00000001
</programlisting>
<para>
<ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Certificate">&lt;dsig:X509Certificate/&gt;</ulink> node found or would be written back.</para>
<para>
</para></refsect2>
<refsect2 id="XMLSEC-X509DATA-SUBJECTNAME-NODE--CAPS" role="macro">
<title>XMLSEC_X509DATA_SUBJECTNAME_NODE</title>
<indexterm zone="XMLSEC-X509DATA-SUBJECTNAME-NODE--CAPS"><primary sortas="XMLSEC_X509DATA_SUBJECTNAME_NODE">XMLSEC_X509DATA_SUBJECTNAME_NODE</primary></indexterm><programlisting>#define XMLSEC_X509DATA_SUBJECTNAME_NODE                        0x00000002
</programlisting>
<para>
<ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509SubjectName">&lt;dsig:X509SubjectName/&gt;</ulink> node found or would be written back.</para>
<para>
</para></refsect2>
<refsect2 id="XMLSEC-X509DATA-ISSUERSERIAL-NODE--CAPS" role="macro">
<title>XMLSEC_X509DATA_ISSUERSERIAL_NODE</title>
<indexterm zone="XMLSEC-X509DATA-ISSUERSERIAL-NODE--CAPS"><primary sortas="XMLSEC_X509DATA_ISSUERSERIAL_NODE">XMLSEC_X509DATA_ISSUERSERIAL_NODE</primary></indexterm><programlisting>#define XMLSEC_X509DATA_ISSUERSERIAL_NODE                       0x00000004
</programlisting>
<para>
<ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509IssuerSerial">&lt;dsig:X509IssuerSerial/&gt;</ulink> node found or would be written back.</para>
<para>
</para></refsect2>
<refsect2 id="XMLSEC-X509DATA-SKI-NODE--CAPS" role="macro">
<title>XMLSEC_X509DATA_SKI_NODE</title>
<indexterm zone="XMLSEC-X509DATA-SKI-NODE--CAPS"><primary sortas="XMLSEC_X509DATA_SKI_NODE">XMLSEC_X509DATA_SKI_NODE</primary></indexterm><programlisting>#define XMLSEC_X509DATA_SKI_NODE                                0x00000008
</programlisting>
<para>
&lt;dsig:/X509SKI&gt; node found or would be written back.</para>
<para>
</para></refsect2>
<refsect2 id="XMLSEC-X509DATA-CRL-NODE--CAPS" role="macro">
<title>XMLSEC_X509DATA_CRL_NODE</title>
<indexterm zone="XMLSEC-X509DATA-CRL-NODE--CAPS"><primary sortas="XMLSEC_X509DATA_CRL_NODE">XMLSEC_X509DATA_CRL_NODE</primary></indexterm><programlisting>#define XMLSEC_X509DATA_CRL_NODE                                0x00000010
</programlisting>
<para>
<ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509CRL">&lt;dsig:X509CRL/&gt;</ulink> node found or would be written back.</para>
<para>
</para></refsect2>
<refsect2 id="XMLSEC-X509DATA-DEFAULT--CAPS" role="macro">
<title>XMLSEC_X509DATA_DEFAULT</title>
<indexterm zone="XMLSEC-X509DATA-DEFAULT--CAPS"><primary sortas="XMLSEC_X509DATA_DEFAULT">XMLSEC_X509DATA_DEFAULT</primary></indexterm><programlisting>#define             XMLSEC_X509DATA_DEFAULT</programlisting>
<para>
Default set of nodes to write in case of empty
<ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Data">&lt;dsig:X509Data/&gt;</ulink> node template.</para>
<para>
</para></refsect2>
<refsect2 id="xmlSecX509DataGetNodeContent" role="function">
<title>xmlSecX509DataGetNodeContent ()</title>
<indexterm zone="xmlSecX509DataGetNodeContent"><primary sortas="xmlSecX509DataGetNodeContent">xmlSecX509DataGetNodeContent</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecX509DataGetNodeContent        (<link linkend="xmlNode">xmlNodePtr</link> node,
                                                         <link linkend="int">int</link> deleteChildren,
                                                         <link linkend="xmlSecKeyInfoCtx">xmlSecKeyInfoCtxPtr</link> keyInfoCtx);</programlisting>
<para>
Reads the contents of <ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Data">&lt;dsig:X509Data/&gt;</ulink> node and returns it as
a bits mask.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>node</parameter>&#160;:</term>
<listitem><simpara>               the pointer to <ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Data">&lt;dsig:X509Data/&gt;</ulink> node.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>deleteChildren</parameter>&#160;:</term>
<listitem><simpara>     the flag that indicates whether to remove node children after reading.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>keyInfoCtx</parameter>&#160;:</term>
<listitem><simpara>         the pointer to <ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-KeyInfo">&lt;dsig:KeyInfo/&gt;</ulink> node processing context.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the bit mask representing the <ulink URL="http://www.w3.org/TR/xmldsig-core/#sec-X509Data">&lt;dsig:X509Data/&gt;</ulink> node content
or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
