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

<refnamediv>
<refname>x509</refname>
<refpurpose>X509 certificates support implementation for MS Crypto.</refpurpose>
</refnamediv>

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

<synopsis>
#define             <link linkend="xmlSecMSCryptoKeyDataX509Id">xmlSecMSCryptoKeyDataX509Id</link>
<link linkend="xmlSecKeyDataId">xmlSecKeyDataId</link>     <link linkend="xmlSecMSCryptoKeyDataX509GetKlass">xmlSecMSCryptoKeyDataX509GetKlass</link>   (void);
<link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link>      <link linkend="xmlSecMSCryptoKeyDataX509GetKeyCert">xmlSecMSCryptoKeyDataX509GetKeyCert</link> (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoKeyDataX509AdoptKeyCert">xmlSecMSCryptoKeyDataX509AdoptKeyCert</link>
                                                        (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link> cert);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoKeyDataX509AdoptCert">xmlSecMSCryptoKeyDataX509AdoptCert</link>  (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link> cert);
<link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link>      <link linkend="xmlSecMSCryptoKeyDataX509GetCert">xmlSecMSCryptoKeyDataX509GetCert</link>    (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="xmlSecSize">xmlSecSize</link> pos);
<link linkend="xmlSecSize">xmlSecSize</link>          <link linkend="xmlSecMSCryptoKeyDataX509GetCertsSize">xmlSecMSCryptoKeyDataX509GetCertsSize</link>
                                                        (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoKeyDataX509AdoptCrl">xmlSecMSCryptoKeyDataX509AdoptCrl</link>   (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="PCCRL-CONTEXT--CAPS">PCCRL_CONTEXT</link> crl);
<link linkend="PCCRL-CONTEXT--CAPS">PCCRL_CONTEXT</link>       <link linkend="xmlSecMSCryptoKeyDataX509GetCrl">xmlSecMSCryptoKeyDataX509GetCrl</link>     (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="xmlSecSize">xmlSecSize</link> pos);
<link linkend="xmlSecSize">xmlSecSize</link>          <link linkend="xmlSecMSCryptoKeyDataX509GetCrlsSize">xmlSecMSCryptoKeyDataX509GetCrlsSize</link>
                                                        (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data);
#define             <link linkend="xmlSecMSCryptoKeyDataRawX509CertId">xmlSecMSCryptoKeyDataRawX509CertId</link>
<link linkend="xmlSecKeyDataId">xmlSecKeyDataId</link>     <link linkend="xmlSecMSCryptoKeyDataRawX509CertGetKlass">xmlSecMSCryptoKeyDataRawX509CertGetKlass</link>
                                                        (void);
#define             <link linkend="xmlSecMSCryptoX509StoreId">xmlSecMSCryptoX509StoreId</link>
<link linkend="xmlSecKeyDataStoreId">xmlSecKeyDataStoreId</link>  <link linkend="xmlSecMSCryptoX509StoreGetKlass">xmlSecMSCryptoX509StoreGetKlass</link>   (void);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoX509StoreAdoptCert">xmlSecMSCryptoX509StoreAdoptCert</link>    (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link> cert,
                                                         <link linkend="xmlSecKeyDataType">xmlSecKeyDataType</link> type);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoX509StoreAdoptKeyStore">xmlSecMSCryptoX509StoreAdoptKeyStore</link>
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="HCERTSTORE--CAPS">HCERTSTORE</link> keyStore);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoX509StoreAdoptTrustedStore">xmlSecMSCryptoX509StoreAdoptTrustedStore</link>
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="HCERTSTORE--CAPS">HCERTSTORE</link> trustedStore);
<link linkend="int">int</link>                 <link linkend="xmlSecMSCryptoX509StoreAdoptUntrustedStore">xmlSecMSCryptoX509StoreAdoptUntrustedStore</link>
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="HCERTSTORE--CAPS">HCERTSTORE</link> untrustedStore);
<link linkend="void">void</link>                <link linkend="xmlSecMSCryptoX509StoreEnableSystemTrustedCerts">xmlSecMSCryptoX509StoreEnableSystemTrustedCerts</link>
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="int">int</link> val);
</synopsis>
</refsynopsisdiv>









<refsect1 id="xmlsec-mscrypto-x509.description" role="desc">
<title role="desc.title">Description</title>
<para>
X509 certificates support implementation for MS Crypto.
</para>
</refsect1>

<refsect1 id="xmlsec-mscrypto-x509.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="xmlSecMSCryptoKeyDataX509Id" role="macro">
<title>xmlSecMSCryptoKeyDataX509Id</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509Id"><primary sortas="xmlSecMSCryptoKeyDataX509Id">xmlSecMSCryptoKeyDataX509Id</primary></indexterm><programlisting>#define             xmlSecMSCryptoKeyDataX509Id</programlisting>
<para>
The MSCrypto X509 data klass.</para>
<para>
</para></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509GetKlass" role="function">
<title>xmlSecMSCryptoKeyDataX509GetKlass ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509GetKlass"><primary sortas="xmlSecMSCryptoKeyDataX509GetKlass">xmlSecMSCryptoKeyDataX509GetKlass</primary></indexterm><programlisting><link linkend="xmlSecKeyDataId">xmlSecKeyDataId</link>     xmlSecMSCryptoKeyDataX509GetKlass   (void);</programlisting>
<para>
The MSCrypto X509 key data klass (http://www.w3.org/TR/xmldsig-core/<link linkend="sec-X509Data"><type>sec-X509Data</type></link>).</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the X509 data klass.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509GetKeyCert" role="function">
<title>xmlSecMSCryptoKeyDataX509GetKeyCert ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509GetKeyCert"><primary sortas="xmlSecMSCryptoKeyDataX509GetKeyCert">xmlSecMSCryptoKeyDataX509GetKeyCert</primary></indexterm><programlisting><link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link>      xmlSecMSCryptoKeyDataX509GetKeyCert (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data);</programlisting>
<para>
Gets the certificate from which the key was extracted.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the key's certificate or NULL if key data was not used for key
extraction or an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509AdoptKeyCert" role="function">
<title>xmlSecMSCryptoKeyDataX509AdoptKeyCert ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509AdoptKeyCert"><primary sortas="xmlSecMSCryptoKeyDataX509AdoptKeyCert">xmlSecMSCryptoKeyDataX509AdoptKeyCert</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoKeyDataX509AdoptKeyCert
                                                        (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link> cert);</programlisting>
<para>
Sets the key's certificate in <parameter>data</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&#160;:</term>
<listitem><simpara>               the pointer to MSCRYPTO X509 certificate.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509AdoptCert" role="function">
<title>xmlSecMSCryptoKeyDataX509AdoptCert ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509AdoptCert"><primary sortas="xmlSecMSCryptoKeyDataX509AdoptCert">xmlSecMSCryptoKeyDataX509AdoptCert</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoKeyDataX509AdoptCert  (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link> cert);</programlisting>
<para>
Adds certificate to the X509 key data.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&#160;:</term>
<listitem><simpara>               the pointer to MSCRYPTO X509 certificate.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509GetCert" role="function">
<title>xmlSecMSCryptoKeyDataX509GetCert ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509GetCert"><primary sortas="xmlSecMSCryptoKeyDataX509GetCert">xmlSecMSCryptoKeyDataX509GetCert</primary></indexterm><programlisting><link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link>      xmlSecMSCryptoKeyDataX509GetCert    (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="xmlSecSize">xmlSecSize</link> pos);</programlisting>
<para>
Gets a certificate from X509 key data.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>pos</parameter>&#160;:</term>
<listitem><simpara>                the desired certificate position.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the pointer to certificate or NULL if <parameter>pos</parameter> is larger than the
number of certificates in <parameter>data</parameter> or an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509GetCertsSize" role="function">
<title>xmlSecMSCryptoKeyDataX509GetCertsSize ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509GetCertsSize"><primary sortas="xmlSecMSCryptoKeyDataX509GetCertsSize">xmlSecMSCryptoKeyDataX509GetCertsSize</primary></indexterm><programlisting><link linkend="xmlSecSize">xmlSecSize</link>          xmlSecMSCryptoKeyDataX509GetCertsSize
                                                        (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data);</programlisting>
<para>
Gets the number of certificates in <parameter>data</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> te number of certificates in <parameter>data</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509AdoptCrl" role="function">
<title>xmlSecMSCryptoKeyDataX509AdoptCrl ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509AdoptCrl"><primary sortas="xmlSecMSCryptoKeyDataX509AdoptCrl">xmlSecMSCryptoKeyDataX509AdoptCrl</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoKeyDataX509AdoptCrl   (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="PCCRL-CONTEXT--CAPS">PCCRL_CONTEXT</link> crl);</programlisting>
<para>
Adds CRL to the X509 key data.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>crl</parameter>&#160;:</term>
<listitem><simpara>                the pointer to MSCrypto X509 CRL.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509GetCrl" role="function">
<title>xmlSecMSCryptoKeyDataX509GetCrl ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509GetCrl"><primary sortas="xmlSecMSCryptoKeyDataX509GetCrl">xmlSecMSCryptoKeyDataX509GetCrl</primary></indexterm><programlisting><link linkend="PCCRL-CONTEXT--CAPS">PCCRL_CONTEXT</link>       xmlSecMSCryptoKeyDataX509GetCrl     (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data,
                                                         <link linkend="xmlSecSize">xmlSecSize</link> pos);</programlisting>
<para>
Gets a CRL from X509 key data.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>pos</parameter>&#160;:</term>
<listitem><simpara>                the desired CRL position.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the pointer to CRL or NULL if <parameter>pos</parameter> is larger than the
number of CRLs in <parameter>data</parameter> or an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataX509GetCrlsSize" role="function">
<title>xmlSecMSCryptoKeyDataX509GetCrlsSize ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataX509GetCrlsSize"><primary sortas="xmlSecMSCryptoKeyDataX509GetCrlsSize">xmlSecMSCryptoKeyDataX509GetCrlsSize</primary></indexterm><programlisting><link linkend="xmlSecSize">xmlSecSize</link>          xmlSecMSCryptoKeyDataX509GetCrlsSize
                                                        (<link linkend="xmlSecKeyData">xmlSecKeyDataPtr</link> data);</programlisting>
<para>
Gets the number of CRLs in <parameter>data</parameter>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>               the pointer to X509 key data.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> te number of CRLs in <parameter>data</parameter>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataRawX509CertId" role="macro">
<title>xmlSecMSCryptoKeyDataRawX509CertId</title>
<indexterm zone="xmlSecMSCryptoKeyDataRawX509CertId"><primary sortas="xmlSecMSCryptoKeyDataRawX509CertId">xmlSecMSCryptoKeyDataRawX509CertId</primary></indexterm><programlisting>#define             xmlSecMSCryptoKeyDataRawX509CertId</programlisting>
<para>
The MSCrypto raw X509 certificate klass.</para>
<para>
</para></refsect2>
<refsect2 id="xmlSecMSCryptoKeyDataRawX509CertGetKlass" role="function">
<title>xmlSecMSCryptoKeyDataRawX509CertGetKlass ()</title>
<indexterm zone="xmlSecMSCryptoKeyDataRawX509CertGetKlass"><primary sortas="xmlSecMSCryptoKeyDataRawX509CertGetKlass">xmlSecMSCryptoKeyDataRawX509CertGetKlass</primary></indexterm><programlisting><link linkend="xmlSecKeyDataId">xmlSecKeyDataId</link>     xmlSecMSCryptoKeyDataRawX509CertGetKlass
                                                        (void);</programlisting>
<para>
The raw X509 certificates key data klass.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> raw X509 certificates key data klass.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreId" role="macro">
<title>xmlSecMSCryptoX509StoreId</title>
<indexterm zone="xmlSecMSCryptoX509StoreId"><primary sortas="xmlSecMSCryptoX509StoreId">xmlSecMSCryptoX509StoreId</primary></indexterm><programlisting>#define             xmlSecMSCryptoX509StoreId</programlisting>
<para>
The MSCrypto X509 store klass.</para>
<para>
</para></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreGetKlass" role="function">
<title>xmlSecMSCryptoX509StoreGetKlass ()</title>
<indexterm zone="xmlSecMSCryptoX509StoreGetKlass"><primary sortas="xmlSecMSCryptoX509StoreGetKlass">xmlSecMSCryptoX509StoreGetKlass</primary></indexterm><programlisting><link linkend="xmlSecKeyDataStoreId">xmlSecKeyDataStoreId</link>  xmlSecMSCryptoX509StoreGetKlass   (void);</programlisting>
<para>
The MSCrypto X509 certificates key data store klass.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> pointer to MSCrypto X509 certificates key data store klass.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreAdoptCert" role="function">
<title>xmlSecMSCryptoX509StoreAdoptCert ()</title>
<indexterm zone="xmlSecMSCryptoX509StoreAdoptCert"><primary sortas="xmlSecMSCryptoX509StoreAdoptCert">xmlSecMSCryptoX509StoreAdoptCert</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoX509StoreAdoptCert    (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="PCCERT-CONTEXT--CAPS">PCCERT_CONTEXT</link> cert,
                                                         <link linkend="xmlSecKeyDataType">xmlSecKeyDataType</link> type);</programlisting>
<para>
Adds trusted (root) or untrusted certificate to the store.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&#160;:</term>
<listitem><simpara>              the pointer to X509 key data store klass.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&#160;:</term>
<listitem><simpara>               the pointer to PCCERT_CONTEXT X509 certificate.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</parameter>&#160;:</term>
<listitem><simpara>               the certificate type (trusted/untrusted).
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreAdoptKeyStore" role="function">
<title>xmlSecMSCryptoX509StoreAdoptKeyStore ()</title>
<indexterm zone="xmlSecMSCryptoX509StoreAdoptKeyStore"><primary sortas="xmlSecMSCryptoX509StoreAdoptKeyStore">xmlSecMSCryptoX509StoreAdoptKeyStore</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoX509StoreAdoptKeyStore
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="HCERTSTORE--CAPS">HCERTSTORE</link> keyStore);</programlisting>
<para>
Adds <parameter>keyStore</parameter> to the list of key stores.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&#160;:</term>
<listitem><simpara>              the pointer to X509 key data store klass.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>keyStore</parameter>&#160;:</term>
<listitem><simpara>           the pointer to keys store.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreAdoptTrustedStore" role="function">
<title>xmlSecMSCryptoX509StoreAdoptTrustedStore ()</title>
<indexterm zone="xmlSecMSCryptoX509StoreAdoptTrustedStore"><primary sortas="xmlSecMSCryptoX509StoreAdoptTrustedStore">xmlSecMSCryptoX509StoreAdoptTrustedStore</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoX509StoreAdoptTrustedStore
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="HCERTSTORE--CAPS">HCERTSTORE</link> trustedStore);</programlisting>
<para>
Adds <parameter>trustedStore</parameter> to the list of trusted certs stores.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&#160;:</term>
<listitem><simpara>              the pointer to X509 key data store klass.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>trustedStore</parameter>&#160;:</term>
<listitem><simpara>       the pointer to certs store.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreAdoptUntrustedStore" role="function">
<title>xmlSecMSCryptoX509StoreAdoptUntrustedStore ()</title>
<indexterm zone="xmlSecMSCryptoX509StoreAdoptUntrustedStore"><primary sortas="xmlSecMSCryptoX509StoreAdoptUntrustedStore">xmlSecMSCryptoX509StoreAdoptUntrustedStore</primary></indexterm><programlisting><link linkend="int">int</link>                 xmlSecMSCryptoX509StoreAdoptUntrustedStore
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="HCERTSTORE--CAPS">HCERTSTORE</link> untrustedStore);</programlisting>
<para>
Adds <parameter>trustedStore</parameter> to the list of un-trusted certs stores.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&#160;:</term>
<listitem><simpara>              the pointer to X509 key data store klass.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>untrustedStore</parameter>&#160;:</term>
<listitem><simpara>     the pointer to certs store.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> 0 on success or a negative value if an error occurs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="xmlSecMSCryptoX509StoreEnableSystemTrustedCerts" role="function">
<title>xmlSecMSCryptoX509StoreEnableSystemTrustedCerts ()</title>
<indexterm zone="xmlSecMSCryptoX509StoreEnableSystemTrustedCerts"><primary sortas="xmlSecMSCryptoX509StoreEnableSystemTrustedCerts">xmlSecMSCryptoX509StoreEnableSystemTrustedCerts</primary></indexterm><programlisting><link linkend="void">void</link>                xmlSecMSCryptoX509StoreEnableSystemTrustedCerts
                                                        (<link linkend="xmlSecKeyDataStore">xmlSecKeyDataStorePtr</link> store,
                                                         <link linkend="int">int</link> val);</programlisting>
<para>
Enables/disables the system trusted certs.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>store</parameter>&#160;:</term>
<listitem><simpara>              the pointer to X509 key data store klass.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>val</parameter>&#160;:</term>
<listitem><simpara>                the enable/disable flag
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
