1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GMimePkcs7Context</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GMime 2.6 Reference Manual">
8 <link rel="up" href="CryptoContexts.html" title="Cryptography Contexts">
9 <link rel="prev" href="GMimeGpgContext.html" title="GMimeGpgContext">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <td><a accesskey="p" href="GMimeGpgContext.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="CryptoContexts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">GMime 2.6 Reference Manual</th>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#GMimePkcs7Context.synopsis" class="shortcut">Top</a>
25 <a href="#GMimePkcs7Context.description" class="shortcut">Description</a>
27 <a href="#GMimePkcs7Context.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <div class="refentry">
31 <a name="GMimePkcs7Context"></a><div class="titlepage"></div>
32 <div class="refnamediv"><table width="100%"><tr>
34 <h2><span class="refentrytitle"><a name="GMimePkcs7Context.top_of_page"></a>GMimePkcs7Context</span></h2>
35 <p>GMimePkcs7Context — PKCS7 crypto contexts</p>
37 <td valign="top" align="right"></td>
39 <div class="refsynopsisdiv">
40 <a name="GMimePkcs7Context.synopsis"></a><h2>Synopsis</h2>
41 <pre class="synopsis">struct <a class="link" href="GMimePkcs7Context.html#GMimePkcs7Context-struct" title="struct GMimePkcs7Context">GMimePkcs7Context</a>;
42 <a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="returnvalue">GMimeCryptoContext</span></a> * <a class="link" href="GMimePkcs7Context.html#g-mime-pkcs7-context-new" title="g_mime_pkcs7_context_new ()">g_mime_pkcs7_context_new</a> (<em class="parameter"><code><a class="link" href="GMimeCryptoContext.html#GMimePasswordRequestFunc" title="GMimePasswordRequestFunc ()"><span class="type">GMimePasswordRequestFunc</span></a> request_passwd</code></em>);
43 <span class="returnvalue">gboolean</span> <a class="link" href="GMimePkcs7Context.html#g-mime-pkcs7-context-get-always-trust" title="g_mime_pkcs7_context_get_always_trust ()">g_mime_pkcs7_context_get_always_trust</a>
44 (<em class="parameter"><code><a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a> *ctx</code></em>);
45 <span class="returnvalue">void</span> <a class="link" href="GMimePkcs7Context.html#g-mime-pkcs7-context-set-always-trust" title="g_mime_pkcs7_context_set_always_trust ()">g_mime_pkcs7_context_set_always_trust</a>
46 (<em class="parameter"><code><a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a> *ctx</code></em>,
47 <em class="parameter"><code><span class="type">gboolean</span> always_trust</code></em>);
50 <div class="refsect1">
51 <a name="GMimePkcs7Context.object-hierarchy"></a><h2>Object Hierarchy</h2>
52 <pre class="synopsis">
54 +----<a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext">GMimeCryptoContext</a>
55 +----GMimePkcs7Context
58 <div class="refsect1">
59 <a name="GMimePkcs7Context.description"></a><h2>Description</h2>
61 A <a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a> is a <a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="type">GMimeCryptoContext</span></a> that uses GnuPG to do
62 all of the encryption and digital signatures.
65 <div class="refsect1">
66 <a name="GMimePkcs7Context.details"></a><h2>Details</h2>
67 <div class="refsect2">
68 <a name="GMimePkcs7Context-struct"></a><h3>struct GMimePkcs7Context</h3>
69 <pre class="programlisting">struct GMimePkcs7Context;</pre>
71 A PKCS7 crypto context.
73 <div class="variablelist"><table border="0">
74 <col align="left" valign="top">
79 <div class="refsect2">
80 <a name="g-mime-pkcs7-context-new"></a><h3>g_mime_pkcs7_context_new ()</h3>
81 <pre class="programlisting"><a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="returnvalue">GMimeCryptoContext</span></a> * g_mime_pkcs7_context_new (<em class="parameter"><code><a class="link" href="GMimeCryptoContext.html#GMimePasswordRequestFunc" title="GMimePasswordRequestFunc ()"><span class="type">GMimePasswordRequestFunc</span></a> request_passwd</code></em>);</pre>
83 Creates a new pkcs7 crypto context object.
85 <div class="variablelist"><table border="0">
86 <col align="left" valign="top">
89 <td><p><span class="term"><em class="parameter"><code>request_passwd</code></em> :</span></p></td>
90 <td>a <a class="link" href="GMimeCryptoContext.html#GMimePasswordRequestFunc" title="GMimePasswordRequestFunc ()"><span class="type">GMimePasswordRequestFunc</span></a>
94 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
95 <td>a new pkcs7 crypto context object.</td>
101 <div class="refsect2">
102 <a name="g-mime-pkcs7-context-get-always-trust"></a><h3>g_mime_pkcs7_context_get_always_trust ()</h3>
103 <pre class="programlisting"><span class="returnvalue">gboolean</span> g_mime_pkcs7_context_get_always_trust
104 (<em class="parameter"><code><a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a> *ctx</code></em>);</pre>
106 Gets the <em class="parameter"><code>always_trust</code></em> flag on the pkcs7 context.
108 <div class="variablelist"><table border="0">
109 <col align="left" valign="top">
112 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
113 <td>a <a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a>
117 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
118 <td>the <em class="parameter"><code>always_trust</code></em> flag on the pkcs7 context.</td>
124 <div class="refsect2">
125 <a name="g-mime-pkcs7-context-set-always-trust"></a><h3>g_mime_pkcs7_context_set_always_trust ()</h3>
126 <pre class="programlisting"><span class="returnvalue">void</span> g_mime_pkcs7_context_set_always_trust
127 (<em class="parameter"><code><a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a> *ctx</code></em>,
128 <em class="parameter"><code><span class="type">gboolean</span> always_trust</code></em>);</pre>
130 Sets the <em class="parameter"><code>always_trust</code></em> flag on the pkcs7 context which is used for
133 <div class="variablelist"><table border="0">
134 <col align="left" valign="top">
137 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
138 <td>a <a class="link" href="GMimePkcs7Context.html" title="GMimePkcs7Context"><span class="type">GMimePkcs7Context</span></a>
142 <td><p><span class="term"><em class="parameter"><code>always_trust</code></em> :</span></p></td>
143 <td>always trust flag</td>
149 <div class="refsect1">
150 <a name="GMimePkcs7Context.see-also"></a><h2>See Also</h2>
151 <a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="type">GMimeCryptoContext</span></a>
156 Generated by GTK-Doc V1.18</div>