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

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

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

<synopsis>
                    <link linkend="CamelSMIMEContext">CamelSMIMEContext</link>;
enum                <link linkend="camel-smime-sign-t">camel_smime_sign_t</link>;
enum                <link linkend="camel-smime-describe-t">camel_smime_describe_t</link>;
<link linkend="CamelCipherContext">CamelCipherContext</link>* <link linkend="camel-smime-context-new">camel_smime_context_new</link>             (<link linkend="CamelSession">CamelSession</link> *session);
<link linkend="void">void</link>                <link linkend="camel-smime-context-set-encrypt-key">camel_smime_context_set_encrypt_key</link> (<link linkend="CamelSMIMEContext">CamelSMIMEContext</link> *context,
                                                         <link linkend="gboolean">gboolean</link> use,
                                                         const <link linkend="char">char</link> *key);
<link linkend="void">void</link>                <link linkend="camel-smime-context-set-sign-mode">camel_smime_context_set_sign_mode</link>   (<link linkend="CamelSMIMEContext">CamelSMIMEContext</link> *context,
                                                         <link linkend="camel-smime-sign-t">camel_smime_sign_t</link> type);
<link linkend="guint32">guint32</link>             <link linkend="camel-smime-context-describe-part">camel_smime_context_describe_part</link>   (<link linkend="CamelSMIMEContext">CamelSMIMEContext</link> *,
                                                         <link linkend="struct--CamelMimePart">struct _CamelMimePart</link> *);
</synopsis>
</refsynopsisdiv>









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

</para>
</refsect1>

<refsect1 id="camel-CamelSMIMEContext.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="CamelSMIMEContext" role="struct">
<title>CamelSMIMEContext</title>
<indexterm zone="CamelSMIMEContext"><primary>CamelSMIMEContext</primary></indexterm><programlisting>typedef struct {
	CamelCipherContext cipher;

	struct _CamelSMIMEContextPrivate *priv;
} CamelSMIMEContext;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-smime-sign-t" role="enum">
<title>enum camel_smime_sign_t</title>
<indexterm zone="camel-smime-sign-t"><primary>camel_smime_sign_t</primary></indexterm><programlisting>typedef enum _camel_smime_sign_t {
	CAMEL_SMIME_SIGN_CLEARSIGN,
	CAMEL_SMIME_SIGN_ENVELOPED
} camel_smime_sign_t;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-smime-describe-t" role="enum">
<title>enum camel_smime_describe_t</title>
<indexterm zone="camel-smime-describe-t"><primary>camel_smime_describe_t</primary></indexterm><programlisting>typedef enum _camel_smime_describe_t {
	CAMEL_SMIME_SIGNED = 1&lt;&lt;0,
	CAMEL_SMIME_ENCRYPTED = 1&lt;&lt;1,
	CAMEL_SMIME_CERTS = 1&lt;&lt;2,
	CAMEL_SMIME_CRLS = 1&lt;&lt;3
} camel_smime_describe_t;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-smime-context-new" role="function">
<title>camel_smime_context_new ()</title>
<indexterm zone="camel-smime-context-new"><primary>camel_smime_context_new</primary></indexterm><programlisting><link linkend="CamelCipherContext">CamelCipherContext</link>* camel_smime_context_new             (<link linkend="CamelSession">CamelSession</link> *session);</programlisting>
<para>
Creates a new sm cipher context object.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>session</parameter>&nbsp;:</term>
<listitem><simpara> session
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>a new sm cipher context object.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-smime-context-set-encrypt-key" role="function">
<title>camel_smime_context_set_encrypt_key ()</title>
<indexterm zone="camel-smime-context-set-encrypt-key"><primary>camel_smime_context_set_encrypt_key</primary></indexterm><programlisting><link linkend="void">void</link>                camel_smime_context_set_encrypt_key (<link linkend="CamelSMIMEContext">CamelSMIMEContext</link> *context,
                                                         <link linkend="gboolean">gboolean</link> use,
                                                         const <link linkend="char">char</link> *key);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-smime-context-set-sign-mode" role="function">
<title>camel_smime_context_set_sign_mode ()</title>
<indexterm zone="camel-smime-context-set-sign-mode"><primary>camel_smime_context_set_sign_mode</primary></indexterm><programlisting><link linkend="void">void</link>                camel_smime_context_set_sign_mode   (<link linkend="CamelSMIMEContext">CamelSMIMEContext</link> *context,
                                                         <link linkend="camel-smime-sign-t">camel_smime_sign_t</link> type);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-smime-context-describe-part" role="function">
<title>camel_smime_context_describe_part ()</title>
<indexterm zone="camel-smime-context-describe-part"><primary>camel_smime_context_describe_part</primary></indexterm><programlisting><link linkend="guint32">guint32</link>             camel_smime_context_describe_part   (<link linkend="CamelSMIMEContext">CamelSMIMEContext</link> *,
                                                         <link linkend="struct--CamelMimePart">struct _CamelMimePart</link> *);</programlisting>
<para>

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


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

</refsect1>




</refentry>
