<refentry id="GMimePkcs7Context">
<refmeta>
<refentrytitle role="top_of_page" id="GMimePkcs7Context.top_of_page">GMimePkcs7Context</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  GMIME Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GMimePkcs7Context</refname>
<refpurpose>PKCS7 crypto contexts</refpurpose>
</refnamediv>

<refsynopsisdiv id="GMimePkcs7Context.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>                    <link linkend="GMimePkcs7Context-struct">GMimePkcs7Context</link>;
<link linkend="GMimeCryptoContext"><returnvalue>GMimeCryptoContext</returnvalue></link> * <link linkend="g-mime-pkcs7-context-new">g_mime_pkcs7_context_new</link>           (<parameter><link linkend="GMimePasswordRequestFunc"><type>GMimePasswordRequestFunc</type></link> request_passwd</parameter>);
<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="g-mime-pkcs7-context-get-always-trust">g_mime_pkcs7_context_get_always_trust</link>
                                                        (<parameter><link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link> *ctx</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-pkcs7-context-set-always-trust">g_mime_pkcs7_context_set_always_trust</link>
                                                        (<parameter><link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link> *ctx</parameter>,
                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> always_trust</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="GMimePkcs7Context.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GMimeCryptoContext">GMimeCryptoContext</link>
         +----GMimePkcs7Context
</synopsis>
</refsect1>

<refsect1 id="GMimePkcs7Context.description" role="desc">
<title role="desc.title">Description</title>
<para>
A <link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link> is a <link linkend="GMimeCryptoContext"><type>GMimeCryptoContext</type></link> that uses GnuPG to do
all of the encryption and digital signatures.
</para>
</refsect1>
<refsect1 id="GMimePkcs7Context.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GMimePkcs7Context-struct" role="struct">
<title>GMimePkcs7Context</title>
<indexterm zone="GMimePkcs7Context-struct"><primary>GMimePkcs7Context</primary></indexterm>
<programlisting>typedef struct _GMimePkcs7Context GMimePkcs7Context;</programlisting>
<para>
A PKCS7 crypto context.
</para><variablelist role="struct">
</variablelist></refsect2>
<refsect2 id="g-mime-pkcs7-context-new" role="function">
<title>g_mime_pkcs7_context_new ()</title>
<indexterm zone="g-mime-pkcs7-context-new"><primary>g_mime_pkcs7_context_new</primary></indexterm>
<programlisting><link linkend="GMimeCryptoContext"><returnvalue>GMimeCryptoContext</returnvalue></link> * g_mime_pkcs7_context_new           (<parameter><link linkend="GMimePasswordRequestFunc"><type>GMimePasswordRequestFunc</type></link> request_passwd</parameter>);</programlisting>
<para>
Creates a new pkcs7 crypto context object.
</para><variablelist role="params">
<varlistentry><term><parameter>request_passwd</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePasswordRequestFunc"><type>GMimePasswordRequestFunc</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a new pkcs7 crypto context object.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-pkcs7-context-get-always-trust" role="function">
<title>g_mime_pkcs7_context_get_always_trust ()</title>
<indexterm zone="g-mime-pkcs7-context-get-always-trust"><primary>g_mime_pkcs7_context_get_always_trust</primary></indexterm>
<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            g_mime_pkcs7_context_get_always_trust
                                                        (<parameter><link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link> *ctx</parameter>);</programlisting>
<para>
Gets the <parameter>always_trust</parameter> flag on the pkcs7 context.
</para><variablelist role="params">
<varlistentry><term><parameter>ctx</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the <parameter>always_trust</parameter> flag on the pkcs7 context.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-pkcs7-context-set-always-trust" role="function">
<title>g_mime_pkcs7_context_set_always_trust ()</title>
<indexterm zone="g-mime-pkcs7-context-set-always-trust"><primary>g_mime_pkcs7_context_set_always_trust</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_pkcs7_context_set_always_trust
                                                        (<parameter><link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link> *ctx</parameter>,
                                                         <parameter><link linkend="gboolean"><type>gboolean</type></link> always_trust</parameter>);</programlisting>
<para>
Sets the <parameter>always_trust</parameter> flag on the pkcs7 context which is used for
encryption.
</para><variablelist role="params">
<varlistentry><term><parameter>ctx</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GMimePkcs7Context"><type>GMimePkcs7Context</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>always_trust</parameter>&#160;:</term>
<listitem><simpara>always trust flag
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="GMimePkcs7Context.see-also">
<title>See Also</title>
<link linkend="GMimeCryptoContext"><type>GMimeCryptoContext</type></link>
</refsect1>

</refentry>
