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>GMimeGpgContext</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="GMimeCryptoContext.html" title="GMimeCryptoContext">
10 <link rel="next" href="GMimePkcs7Context.html" title="GMimePkcs7Context">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="GMimeCryptoContext.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="CryptoContexts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GMime 2.6 Reference Manual</th>
21 <td><a accesskey="n" href="GMimePkcs7Context.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GMimeGpgContext.synopsis" class="shortcut">Top</a>
26 <a href="#GMimeGpgContext.description" class="shortcut">Description</a>
28 <a href="#GMimeGpgContext.object-hierarchy" class="shortcut">Object Hierarchy</a>
31 <div class="refentry">
32 <a name="GMimeGpgContext"></a><div class="titlepage"></div>
33 <div class="refnamediv"><table width="100%"><tr>
35 <h2><span class="refentrytitle"><a name="GMimeGpgContext.top_of_page"></a>GMimeGpgContext</span></h2>
36 <p>GMimeGpgContext — GnuPG crypto contexts</p>
38 <td valign="top" align="right"></td>
40 <div class="refsynopsisdiv">
41 <a name="GMimeGpgContext.synopsis"></a><h2>Synopsis</h2>
42 <pre class="synopsis">struct <a class="link" href="GMimeGpgContext.html#GMimeGpgContext-struct" title="struct GMimeGpgContext">GMimeGpgContext</a>;
43 <a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="returnvalue">GMimeCryptoContext</span></a> * <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-new" title="g_mime_gpg_context_new ()">g_mime_gpg_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>,
44 <em class="parameter"><code>const <span class="type">char</span> *path</code></em>);
45 <span class="returnvalue">gboolean</span> <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-get-always-trust" title="g_mime_gpg_context_get_always_trust ()">g_mime_gpg_context_get_always_trust</a> (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>);
46 <span class="returnvalue">void</span> <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-set-always-trust" title="g_mime_gpg_context_set_always_trust ()">g_mime_gpg_context_set_always_trust</a> (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>,
47 <em class="parameter"><code><span class="type">gboolean</span> always_trust</code></em>);
48 <span class="returnvalue">gboolean</span> <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-get-auto-key-retrieve" title="g_mime_gpg_context_get_auto_key_retrieve ()">g_mime_gpg_context_get_auto_key_retrieve</a>
49 (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>);
50 <span class="returnvalue">void</span> <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-set-auto-key-retrieve" title="g_mime_gpg_context_set_auto_key_retrieve ()">g_mime_gpg_context_set_auto_key_retrieve</a>
51 (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>,
52 <em class="parameter"><code><span class="type">gboolean</span> auto_key_retrieve</code></em>);
53 <span class="returnvalue">gboolean</span> <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-get-use-agent" title="g_mime_gpg_context_get_use_agent ()">g_mime_gpg_context_get_use_agent</a> (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>);
54 <span class="returnvalue">void</span> <a class="link" href="GMimeGpgContext.html#g-mime-gpg-context-set-use-agent" title="g_mime_gpg_context_set_use_agent ()">g_mime_gpg_context_set_use_agent</a> (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>,
55 <em class="parameter"><code><span class="type">gboolean</span> use_agent</code></em>);
58 <div class="refsect1">
59 <a name="GMimeGpgContext.object-hierarchy"></a><h2>Object Hierarchy</h2>
60 <pre class="synopsis">
62 +----<a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext">GMimeCryptoContext</a>
66 <div class="refsect1">
67 <a name="GMimeGpgContext.description"></a><h2>Description</h2>
69 A <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> is a <a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="type">GMimeCryptoContext</span></a> that uses GnuPG to do
70 all of the encryption and digital signatures.
73 <div class="refsect1">
74 <a name="GMimeGpgContext.details"></a><h2>Details</h2>
75 <div class="refsect2">
76 <a name="GMimeGpgContext-struct"></a><h3>struct GMimeGpgContext</h3>
77 <pre class="programlisting">struct GMimeGpgContext;</pre>
79 A GnuPG crypto context.
81 <div class="variablelist"><table border="0">
82 <col align="left" valign="top">
87 <div class="refsect2">
88 <a name="g-mime-gpg-context-new"></a><h3>g_mime_gpg_context_new ()</h3>
89 <pre class="programlisting"><a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="returnvalue">GMimeCryptoContext</span></a> * g_mime_gpg_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>,
90 <em class="parameter"><code>const <span class="type">char</span> *path</code></em>);</pre>
92 Creates a new gpg crypto context object.
94 <div class="variablelist"><table border="0">
95 <col align="left" valign="top">
98 <td><p><span class="term"><em class="parameter"><code>request_passwd</code></em> :</span></p></td>
99 <td>a <a class="link" href="GMimeCryptoContext.html#GMimePasswordRequestFunc" title="GMimePasswordRequestFunc ()"><span class="type">GMimePasswordRequestFunc</span></a>
103 <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
104 <td>path to gpg binary</td>
107 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
108 <td>a new gpg crypto context object.</td>
114 <div class="refsect2">
115 <a name="g-mime-gpg-context-get-always-trust"></a><h3>g_mime_gpg_context_get_always_trust ()</h3>
116 <pre class="programlisting"><span class="returnvalue">gboolean</span> g_mime_gpg_context_get_always_trust (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>);</pre>
118 Gets the always_trust flag on the gpg context.
120 <div class="variablelist"><table border="0">
121 <col align="left" valign="top">
124 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
125 <td>a <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a>
129 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
130 <td>the always_trust flag on the gpg context.</td>
136 <div class="refsect2">
137 <a name="g-mime-gpg-context-set-always-trust"></a><h3>g_mime_gpg_context_set_always_trust ()</h3>
138 <pre class="programlisting"><span class="returnvalue">void</span> g_mime_gpg_context_set_always_trust (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>,
139 <em class="parameter"><code><span class="type">gboolean</span> always_trust</code></em>);</pre>
141 Sets the <em class="parameter"><code>always_trust</code></em> flag on the gpg context which is used for
144 <div class="variablelist"><table border="0">
145 <col align="left" valign="top">
148 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
149 <td>a <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a>
153 <td><p><span class="term"><em class="parameter"><code>always_trust</code></em> :</span></p></td>
154 <td>always trust flag</td>
160 <div class="refsect2">
161 <a name="g-mime-gpg-context-get-auto-key-retrieve"></a><h3>g_mime_gpg_context_get_auto_key_retrieve ()</h3>
162 <pre class="programlisting"><span class="returnvalue">gboolean</span> g_mime_gpg_context_get_auto_key_retrieve
163 (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>);</pre>
165 Gets the <em class="parameter"><code>auto_key_retrieve</code></em> flag on the gpg context.
167 <div class="variablelist"><table border="0">
168 <col align="left" valign="top">
171 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
172 <td>a <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a>
176 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
177 <td>the <em class="parameter"><code>auto_key_retrieve</code></em> flag on the gpg context.</td>
183 <div class="refsect2">
184 <a name="g-mime-gpg-context-set-auto-key-retrieve"></a><h3>g_mime_gpg_context_set_auto_key_retrieve ()</h3>
185 <pre class="programlisting"><span class="returnvalue">void</span> g_mime_gpg_context_set_auto_key_retrieve
186 (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>,
187 <em class="parameter"><code><span class="type">gboolean</span> auto_key_retrieve</code></em>);</pre>
189 Sets the <em class="parameter"><code>auto_key_retrieve</code></em> flag on the gpg context which is used
190 for signature verification.
192 <div class="variablelist"><table border="0">
193 <col align="left" valign="top">
196 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
197 <td>a <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a>
201 <td><p><span class="term"><em class="parameter"><code>auto_key_retrieve</code></em> :</span></p></td>
202 <td>auto-retrieve keys from a keys server</td>
208 <div class="refsect2">
209 <a name="g-mime-gpg-context-get-use-agent"></a><h3>g_mime_gpg_context_get_use_agent ()</h3>
210 <pre class="programlisting"><span class="returnvalue">gboolean</span> g_mime_gpg_context_get_use_agent (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>);</pre>
212 Gets the use_agent flag on the gpg context.
214 <div class="variablelist"><table border="0">
215 <col align="left" valign="top">
218 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
219 <td>a <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a>
223 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
224 <td>the use_agent flag on the gpg context, which indicates
225 that GnuPG should attempt to use gpg-agent for credentials.</td>
231 <div class="refsect2">
232 <a name="g-mime-gpg-context-set-use-agent"></a><h3>g_mime_gpg_context_set_use_agent ()</h3>
233 <pre class="programlisting"><span class="returnvalue">void</span> g_mime_gpg_context_set_use_agent (<em class="parameter"><code><a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a> *ctx</code></em>,
234 <em class="parameter"><code><span class="type">gboolean</span> use_agent</code></em>);</pre>
236 Sets the <em class="parameter"><code>use_agent</code></em> flag on the gpg context, which indicates that
237 GnuPG should attempt to use gpg-agent for credentials.
239 <div class="variablelist"><table border="0">
240 <col align="left" valign="top">
243 <td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
244 <td>a <a class="link" href="GMimeGpgContext.html" title="GMimeGpgContext"><span class="type">GMimeGpgContext</span></a>
248 <td><p><span class="term"><em class="parameter"><code>use_agent</code></em> :</span></p></td>
249 <td>always trust flag</td>
255 <div class="refsect1">
256 <a name="GMimeGpgContext.see-also"></a><h2>See Also</h2>
257 <a class="link" href="GMimeCryptoContext.html" title="GMimeCryptoContext"><span class="type">GMimeCryptoContext</span></a>
262 Generated by GTK-Doc V1.18</div>