<refentry id="camel-CamelCertDB">
<refmeta>
<refentrytitle role="top_of_page" id="camel-CamelCertDB.top_of_page">CamelCertDB</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>CAMEL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>CamelCertDB</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="camel-CamelCertDB.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
                    <link linkend="CamelCertDB">CamelCertDB</link>;
enum                <link linkend="CamelCertTrust">CamelCertTrust</link>;
                    <link linkend="CamelCert">CamelCert</link>;
<link linkend="CamelCertDB">CamelCertDB</link>*        <link linkend="camel-certdb-new">camel_certdb_new</link>                    (void);
<link linkend="void">void</link>                <link linkend="camel-certdb-set-default">camel_certdb_set_default</link>            (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);
<link linkend="CamelCertDB">CamelCertDB</link>*        <link linkend="camel-certdb-get-default">camel_certdb_get_default</link>            (void);
<link linkend="void">void</link>                <link linkend="camel-certdb-set-filename">camel_certdb_set_filename</link>           (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         const <link linkend="char">char</link> *filename);
<link linkend="int">int</link>                 <link linkend="camel-certdb-load">camel_certdb_load</link>                   (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);
<link linkend="int">int</link>                 <link linkend="camel-certdb-save">camel_certdb_save</link>                   (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);
<link linkend="void">void</link>                <link linkend="camel-certdb-touch">camel_certdb_touch</link>                  (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);
<link linkend="CamelCert">CamelCert</link>*          <link linkend="camel-certdb-get-cert">camel_certdb_get_cert</link>               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         const <link linkend="char">char</link> *fingerprint);
<link linkend="void">void</link>                <link linkend="camel-certdb-add">camel_certdb_add</link>                    (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);
<link linkend="void">void</link>                <link linkend="camel-certdb-remove">camel_certdb_remove</link>                 (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);
<link linkend="CamelCert">CamelCert</link>*          <link linkend="camel-certdb-cert-new">camel_certdb_cert_new</link>               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);
<link linkend="void">void</link>                <link linkend="camel-certdb-cert-ref">camel_certdb_cert_ref</link>               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);
<link linkend="void">void</link>                <link linkend="camel-certdb-cert-unref">camel_certdb_cert_unref</link>             (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);
<link linkend="void">void</link>                <link linkend="camel-certdb-clear">camel_certdb_clear</link>                  (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);
const <link linkend="char">char</link>*         <link linkend="camel-cert-get-string">camel_cert_get_string</link>               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert,
                                                         <link linkend="int">int</link> string);
<link linkend="void">void</link>                <link linkend="camel-cert-set-string">camel_cert_set_string</link>               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert,
                                                         <link linkend="int">int</link> string,
                                                         const <link linkend="char">char</link> *value);
#define             <link linkend="camel-cert-get-issuer">camel_cert_get_issuer</link>               (certdb,cert)
#define             <link linkend="camel-cert-get-subject">camel_cert_get_subject</link>              (certdb,cert)
#define             <link linkend="camel-cert-get-hostname">camel_cert_get_hostname</link>             (certdb,cert)
#define             <link linkend="camel-cert-get-fingerprint">camel_cert_get_fingerprint</link>          (certdb,cert)
#define             <link linkend="camel-cert-set-issuer">camel_cert_set_issuer</link>               (certdb,cert,issuer)
#define             <link linkend="camel-cert-set-subject">camel_cert_set_subject</link>              (certdb,cert,subject)
#define             <link linkend="camel-cert-set-hostname">camel_cert_set_hostname</link>             (certdb,cert,hostname)
#define             <link linkend="camel-cert-set-fingerprint">camel_cert_set_fingerprint</link>          (certdb,cert,fingerprint)
<link linkend="CamelCertTrust">CamelCertTrust</link>      <link linkend="camel-cert-get-trust">camel_cert_get_trust</link>                (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);
<link linkend="void">void</link>                <link linkend="camel-cert-set-trust">camel_cert_set_trust</link>                (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert,
                                                         <link linkend="CamelCertTrust">CamelCertTrust</link> trust);
</synopsis>
</refsynopsisdiv>









<refsect1 id="camel-CamelCertDB.description" role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="camel-CamelCertDB.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="CamelCertDB" role="struct">
<title>CamelCertDB</title>
<indexterm zone="CamelCertDB"><primary>CamelCertDB</primary></indexterm><programlisting>typedef struct {
	CamelObject parent_object;
	struct _CamelCertDBPrivate *priv;
	
	char *filename;
	guint32 version;
	guint32 saved_certs;
	guint32 flags;
	
	guint32 cert_size;
	
	struct _EMemChunk *cert_chunks;
	
	GPtrArray *certs;
	GHashTable *cert_hash;
} CamelCertDB;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="CamelCertTrust" role="enum">
<title>enum CamelCertTrust</title>
<indexterm zone="CamelCertTrust"><primary>CamelCertTrust</primary></indexterm><programlisting>typedef enum {
	CAMEL_CERT_TRUST_UNKNOWN,
	CAMEL_CERT_TRUST_NEVER,
	CAMEL_CERT_TRUST_MARGINAL,
	CAMEL_CERT_TRUST_FULLY,
	CAMEL_CERT_TRUST_ULTIMATE
} CamelCertTrust;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="CamelCert" role="struct">
<title>CamelCert</title>
<indexterm zone="CamelCert"><primary>CamelCert</primary></indexterm><programlisting>typedef struct {
	guint32 refcount;
	
	char *issuer;
	char *subject;
	char *hostname;
	char *fingerprint;
	
	CamelCertTrust trust;
	GByteArray *rawcert;
} CamelCert;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-certdb-new" role="function">
<title>camel_certdb_new ()</title>
<indexterm zone="camel-certdb-new"><primary>camel_certdb_new</primary></indexterm><programlisting><link linkend="CamelCertDB">CamelCertDB</link>*        camel_certdb_new                    (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-set-default" role="function">
<title>camel_certdb_set_default ()</title>
<indexterm zone="camel-certdb-set-default"><primary>camel_certdb_set_default</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_set_default            (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-get-default" role="function">
<title>camel_certdb_get_default ()</title>
<indexterm zone="camel-certdb-get-default"><primary>camel_certdb_get_default</primary></indexterm><programlisting><link linkend="CamelCertDB">CamelCertDB</link>*        camel_certdb_get_default            (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-set-filename" role="function">
<title>camel_certdb_set_filename ()</title>
<indexterm zone="camel-certdb-set-filename"><primary>camel_certdb_set_filename</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_set_filename           (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         const <link linkend="char">char</link> *filename);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-load" role="function">
<title>camel_certdb_load ()</title>
<indexterm zone="camel-certdb-load"><primary>camel_certdb_load</primary></indexterm><programlisting><link linkend="int">int</link>                 camel_certdb_load                   (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-save" role="function">
<title>camel_certdb_save ()</title>
<indexterm zone="camel-certdb-save"><primary>camel_certdb_save</primary></indexterm><programlisting><link linkend="int">int</link>                 camel_certdb_save                   (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-touch" role="function">
<title>camel_certdb_touch ()</title>
<indexterm zone="camel-certdb-touch"><primary>camel_certdb_touch</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_touch                  (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-get-cert" role="function">
<title>camel_certdb_get_cert ()</title>
<indexterm zone="camel-certdb-get-cert"><primary>camel_certdb_get_cert</primary></indexterm><programlisting><link linkend="CamelCert">CamelCert</link>*          camel_certdb_get_cert               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         const <link linkend="char">char</link> *fingerprint);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>fingerprint</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-add" role="function">
<title>camel_certdb_add ()</title>
<indexterm zone="camel-certdb-add"><primary>camel_certdb_add</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_add                    (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-remove" role="function">
<title>camel_certdb_remove ()</title>
<indexterm zone="camel-certdb-remove"><primary>camel_certdb_remove</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_remove                 (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-cert-new" role="function">
<title>camel_certdb_cert_new ()</title>
<indexterm zone="camel-certdb-cert-new"><primary>camel_certdb_cert_new</primary></indexterm><programlisting><link linkend="CamelCert">CamelCert</link>*          camel_certdb_cert_new               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-cert-ref" role="function">
<title>camel_certdb_cert_ref ()</title>
<indexterm zone="camel-certdb-cert-ref"><primary>camel_certdb_cert_ref</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_cert_ref               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-cert-unref" role="function">
<title>camel_certdb_cert_unref ()</title>
<indexterm zone="camel-certdb-cert-unref"><primary>camel_certdb_cert_unref</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_cert_unref             (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-certdb-clear" role="function">
<title>camel_certdb_clear ()</title>
<indexterm zone="camel-certdb-clear"><primary>camel_certdb_clear</primary></indexterm><programlisting><link linkend="void">void</link>                camel_certdb_clear                  (<link linkend="CamelCertDB">CamelCertDB</link> *certdb);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-get-string" role="function">
<title>camel_cert_get_string ()</title>
<indexterm zone="camel-cert-get-string"><primary>camel_cert_get_string</primary></indexterm><programlisting>const <link linkend="char">char</link>*         camel_cert_get_string               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert,
                                                         <link linkend="int">int</link> string);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>string</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-set-string" role="function">
<title>camel_cert_set_string ()</title>
<indexterm zone="camel-cert-set-string"><primary>camel_cert_set_string</primary></indexterm><programlisting><link linkend="void">void</link>                camel_cert_set_string               (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert,
                                                         <link linkend="int">int</link> string,
                                                         const <link linkend="char">char</link> *value);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>string</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>value</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-get-issuer" role="macro">
<title>camel_cert_get_issuer()</title>
<indexterm zone="camel-cert-get-issuer"><primary>camel_cert_get_issuer</primary></indexterm><programlisting>#define camel_cert_get_issuer(certdb,cert) camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_ISSUER)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-get-subject" role="macro">
<title>camel_cert_get_subject()</title>
<indexterm zone="camel-cert-get-subject"><primary>camel_cert_get_subject</primary></indexterm><programlisting>#define camel_cert_get_subject(certdb,cert) camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_SUBJECT)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-get-hostname" role="macro">
<title>camel_cert_get_hostname()</title>
<indexterm zone="camel-cert-get-hostname"><primary>camel_cert_get_hostname</primary></indexterm><programlisting>#define camel_cert_get_hostname(certdb,cert) camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_HOSTNAME)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-get-fingerprint" role="macro">
<title>camel_cert_get_fingerprint()</title>
<indexterm zone="camel-cert-get-fingerprint"><primary>camel_cert_get_fingerprint</primary></indexterm><programlisting>#define camel_cert_get_fingerprint(certdb,cert) camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_FINGERPRINT)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-set-issuer" role="macro">
<title>camel_cert_set_issuer()</title>
<indexterm zone="camel-cert-set-issuer"><primary>camel_cert_set_issuer</primary></indexterm><programlisting>#define camel_cert_set_issuer(certdb,cert,issuer) camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_ISSUER, issuer)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>issuer</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-set-subject" role="macro">
<title>camel_cert_set_subject()</title>
<indexterm zone="camel-cert-set-subject"><primary>camel_cert_set_subject</primary></indexterm><programlisting>#define camel_cert_set_subject(certdb,cert,subject) camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_SUBJECT, subject)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>subject</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-set-hostname" role="macro">
<title>camel_cert_set_hostname()</title>
<indexterm zone="camel-cert-set-hostname"><primary>camel_cert_set_hostname</primary></indexterm><programlisting>#define camel_cert_set_hostname(certdb,cert,hostname) camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_HOSTNAME, hostname)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>hostname</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-set-fingerprint" role="macro">
<title>camel_cert_set_fingerprint()</title>
<indexterm zone="camel-cert-set-fingerprint"><primary>camel_cert_set_fingerprint</primary></indexterm><programlisting>#define camel_cert_set_fingerprint(certdb,cert,fingerprint) camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_FINGERPRINT, fingerprint)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>fingerprint</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-get-trust" role="function">
<title>camel_cert_get_trust ()</title>
<indexterm zone="camel-cert-get-trust"><primary>camel_cert_get_trust</primary></indexterm><programlisting><link linkend="CamelCertTrust">CamelCertTrust</link>      camel_cert_get_trust                (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-cert-set-trust" role="function">
<title>camel_cert_set_trust ()</title>
<indexterm zone="camel-cert-set-trust"><primary>camel_cert_set_trust</primary></indexterm><programlisting><link linkend="void">void</link>                camel_cert_set_trust                (<link linkend="CamelCertDB">CamelCertDB</link> *certdb,
                                                         <link linkend="CamelCert">CamelCert</link> *cert,
                                                         <link linkend="CamelCertTrust">CamelCertTrust</link> trust);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>certdb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cert</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>trust</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
