Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GcrImporter: Gcr Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Gcr Library Reference Manual">
<link rel="up" href="storage.html" title="Part V. Storage">
<link rel="prev" href="gcr-Trust-Storage-and-Lookups.html" title="Trust Storage and Lookups">
<link rel="next" href="gcr-GcrImportInteraction.html" title="GcrImportInteraction">
<meta name="generator" content="GTK-Doc V1.27.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GcrImporter.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GcrImporter.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_prerequisites">  <span class="dim">|</span> 
                  <a href="#GcrImporter.prerequisites" class="shortcut">Prerequisites</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GcrImporter.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="storage.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gcr-Trust-Storage-and-Lookups.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gcr-GcrImportInteraction.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GcrImporter"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GcrImporter.top_of_page"></a>GcrImporter</span></h2>
<p>GcrImporter — Import certificates and keys</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GcrImporter.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">GTlsInteraction</span> *
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-get-interaction" title="gcr_importer_get_interaction ()">gcr_importer_get_interaction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-set-interaction" title="gcr_importer_set_interaction ()">gcr_importer_set_interaction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-import" title="gcr_importer_import ()">gcr_importer_import</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-import-async" title="gcr_importer_import_async ()">gcr_importer_import_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-import-finish" title="gcr_importer_import_finish ()">gcr_importer_import_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-register" title="gcr_importer_register ()">gcr_importer_register</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-register-well-known" title="gcr_importer_register_well_known ()">gcr_importer_register_well_known</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GList</span> *
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-create-for-parsed" title="gcr_importer_create_for_parsed ()">gcr_importer_create_for_parsed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-queue-for-parsed" title="gcr_importer_queue_for_parsed ()">gcr_importer_queue_for_parsed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GList</span> *
</td>
<td class="function_name">
<a class="link" href="GcrImporter.html#gcr-importer-queue-and-filter-for-parsed" title="gcr_importer_queue_and_filter_for_parsed ()">gcr_importer_queue_and_filter_for_parsed</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GcrImporter.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<span class="type">GIcon</span> *</td>
<td class="property_name"><a class="link" href="GcrImporter.html#GcrImporter--icon" title="The “icon” property">icon</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GTlsInteraction</span> *</td>
<td class="property_name"><a class="link" href="GcrImporter.html#GcrImporter--interaction" title="The “interaction” property">interaction</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="GcrImporter.html#GcrImporter--label" title="The “label” property">label</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="GcrImporter.html#GcrImporter--uri" title="The “uri” property">uri</a></td>
<td class="property_flags">Read</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GcrImporter.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GcrImporter.html#GcrImporter-struct" title="GcrImporter">GcrImporter</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GcrImporter.html#GcrImporterIface" title="struct GcrImporterIface">GcrImporterIface</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GcrImporter.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/home/dueno/jhbuild/install/share/gtk-doc/html/gobject/GTypeModule.html">GInterface</a>
    <span class="lineart">╰──</span> GcrImporter
</pre>
</div>
<div class="refsect1">
<a name="GcrImporter.prerequisites"></a><h2>Prerequisites</h2>
<p>
GcrImporter requires
 GObject.</p>
</div>
<div class="refsect1">
<a name="GcrImporter.description"></a><h2>Description</h2>
<p>An interface which allows importing of certificates and keys. Each
<a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> is registered with a set of PKCS#11 attributes to match
stuff that it can import.</p>
<p>An importer gets passed a <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> and accesses the currently parsed
item. To create a set of importers that can import the currently parsed
item in a <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a>, use <a class="link" href="GcrImporter.html#gcr-importer-create-for-parsed" title="gcr_importer_create_for_parsed ()"><code class="function">gcr_importer_create_for_parsed()</code></a>. The list of
importers returned has the parsed item queued for import.</p>
<p>To queue additional items with a importer use <a class="link" href="GcrImporter.html#gcr-importer-queue-for-parsed" title="gcr_importer_queue_for_parsed ()"><code class="function">gcr_importer_queue_for_parsed()</code></a>.
In addition you can try and queue an additional item with a set of importers
using the <a class="link" href="GcrImporter.html#gcr-importer-queue-and-filter-for-parsed" title="gcr_importer_queue_and_filter_for_parsed ()"><code class="function">gcr_importer_queue_and_filter_for_parsed()</code></a>.</p>
<p>To start the import use <a class="link" href="GcrImporter.html#gcr-importer-import" title="gcr_importer_import ()"><code class="function">gcr_importer_import()</code></a> or the async variants.</p>
</div>
<div class="refsect1">
<a name="GcrImporter.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gcr-importer-get-interaction"></a><h3>gcr_importer_get_interaction ()</h3>
<pre class="programlisting"><span class="returnvalue">GTlsInteraction</span> *
gcr_importer_get_interaction (<em class="parameter"><code><a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> *importer</code></em>);</pre>
<p>Get the interaction used to prompt the user when needed by this
importer.</p>
<div class="refsect3">
<a name="gcr-importer-get-interaction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>importer</p></td>
<td class="parameter_description"><p>the importer</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gcr-importer-get-interaction.returns"></a><h4>Returns</h4>
<p>the interaction or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-set-interaction"></a><h3>gcr_importer_set_interaction ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gcr_importer_set_interaction (<em class="parameter"><code><a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> *importer</code></em>,
                              <em class="parameter"><code><span class="type">GTlsInteraction</span> *interaction</code></em>);</pre>
<p>Set the interaction used to prompt the user when needed by this
importer.</p>
<div class="refsect3">
<a name="gcr-importer-set-interaction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importer</p></td>
<td class="parameter_description"><p>the importer</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interaction</p></td>
<td class="parameter_description"><p>the interaction used by the importer</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-import"></a><h3>gcr_importer_import ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gcr_importer_import (<em class="parameter"><code><a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> *importer</code></em>,
                     <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                     <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Import the queued items in the importer. This call will block
until the operation completes.</p>
<div class="refsect3">
<a name="gcr-importer-import.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importer</p></td>
<td class="parameter_description"><p>the importer</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>a <span class="type">GCancellable</span>, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>the location to place an error on failure, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gcr-importer-import.returns"></a><h4>Returns</h4>
<p> whether the items were imported successfully or not</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-import-async"></a><h3>gcr_importer_import_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gcr_importer_import_async (<em class="parameter"><code><a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> *importer</code></em>,
                           <em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
                           <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                           <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Import the queued items in the importer. This function returns immediately
and completes asynchronously.</p>
<div class="refsect3">
<a name="gcr-importer-import-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importer</p></td>
<td class="parameter_description"><p>the importer</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>a <span class="type">GCancellable</span>, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>called when the operation completes</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>data to be passed to the callback</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-import-finish"></a><h3>gcr_importer_import_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gcr_importer_import_finish (<em class="parameter"><code><a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> *importer</code></em>,
                            <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                            <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Complete an asynchronous operation to import queued items.</p>
<div class="refsect3">
<a name="gcr-importer-import-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importer</p></td>
<td class="parameter_description"><p>the importer</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>result</p></td>
<td class="parameter_description"><p>an asynchronous result</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>the location to place an error on failure, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gcr-importer-import-finish.returns"></a><h4>Returns</h4>
<p> whether the import succeeded or failed</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-register"></a><h3>gcr_importer_register ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gcr_importer_register (<em class="parameter"><code><span class="type">GType</span> importer_type</code></em>,
                       <em class="parameter"><code><span class="type">GckAttributes</span> *attrs</code></em>);</pre>
<p>Register an importer to handle parsed items that match the given attributes.</p>
<p>If <em class="parameter"><code>attrs</code></em>
 are a floating reference, then it is consumed.</p>
<div class="refsect3">
<a name="gcr-importer-register.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importer_type</p></td>
<td class="parameter_description"><p>the GType of the importer being registered</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>attrs</p></td>
<td class="parameter_description"><p>the attributes that this importer is compatible with</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-register-well-known"></a><h3>gcr_importer_register_well_known ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gcr_importer_register_well_known (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Register built-in PKCS#11 and GnuPG importers.</p>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-create-for-parsed"></a><h3>gcr_importer_create_for_parsed ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> *
gcr_importer_create_for_parsed (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>Create a set of importers which can import this parsed item.
The parsed item is represented by the state of the GcrParser at the
time of calling this method.</p>
<div class="refsect3">
<a name="gcr-importer-create-for-parsed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parsed</p></td>
<td class="parameter_description"><p>a parser with a parsed item to import</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gcr-importer-create-for-parsed.returns"></a><h4>Returns</h4>
<p>a list of importers
which can import the parsed item, which should be freed with
<code class="function">g_object_unref()</code>, or <code class="literal">NULL</code> if no types of importers can be created. </p>
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gcr.Importer][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-queue-for-parsed"></a><h3>gcr_importer_queue_for_parsed ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gcr_importer_queue_for_parsed (<em class="parameter"><code><a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a> *importer</code></em>,
                               <em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>Queues an additional item to be imported. The parsed item is represented
by the state of the <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> at the time of calling this method.</p>
<p>If the parsed item is incompatible with the importer, then this will
fail and the item will not be queued.</p>
<div class="refsect3">
<a name="gcr-importer-queue-for-parsed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importer</p></td>
<td class="parameter_description"><p>an importer to add additional items to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>parsed</p></td>
<td class="parameter_description"><p>a parsed item to import</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gcr-importer-queue-for-parsed.returns"></a><h4>Returns</h4>
<p> whether the item was queued or not</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-importer-queue-and-filter-for-parsed"></a><h3>gcr_importer_queue_and_filter_for_parsed ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> *
gcr_importer_queue_and_filter_for_parsed
                               (<em class="parameter"><code><span class="type">GList</span> *importers</code></em>,
                                <em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>Queues an additional item to be imported in all compattible importers
in the set. The parsed item is represented by the state of the <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a>
at the time of calling this method.</p>
<p>If the parsed item is incompatible with an importer, then that the item
will not be queued on that importer.</p>
<div class="refsect3">
<a name="gcr-importer-queue-and-filter-for-parsed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>importers</p></td>
<td class="parameter_description"><p>a set of importers. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gcr.Importer]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>parsed</p></td>
<td class="parameter_description"><p>a parsed item</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gcr-importer-queue-and-filter-for-parsed.returns"></a><h4>Returns</h4>
<p>a new set of importers
that queued the item, which should be freed with <code class="function">gck_list_unref_free()</code>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gcr.Importer]</span></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GcrImporter.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GcrImporter-struct"></a><h3>GcrImporter</h3>
<pre class="programlisting">typedef struct _GcrImporter GcrImporter;</pre>
<p>Imports certificates and keys</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrImporterIface"></a><h3>struct GcrImporterIface</h3>
<pre class="programlisting">struct GcrImporterIface {
	GTypeInterface parent;

	GList *     (*create_for_parsed)      (GcrParsed *parsed);

	gboolean    (*queue_for_parsed)       (GcrImporter *importer,
	                                       GcrParsed *parsed);

	gboolean    (*import_sync)            (GcrImporter *importer,
	                                       GCancellable *cancellable,
	                                       GError **error);

	void        (*import_async)           (GcrImporter *importer,
	                                       GCancellable *cancellable,
	                                       GAsyncReadyCallback callback,
	                                       gpointer user_data);

	gboolean    (*import_finish)          (GcrImporter *importer,
	                                       GAsyncResult *result,
	                                       GError **error);
};
</pre>
<p>Interface implemented for a <a class="link" href="GcrImporter.html" title="GcrImporter"><span class="type">GcrImporter</span></a>.</p>
<div class="refsect3">
<a name="GcrImporterIface.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">GTypeInterface</span> <em class="structfield"><code><a name="GcrImporterIface.parent"></a>parent</code></em>;</p></td>
<td class="struct_member_description"><p>parent interface</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GcrImporterIface.create-for-parsed"></a>create_for_parsed</code></em> ()</p></td>
<td class="struct_member_description"><p>implementation of <a class="link" href="GcrImporter.html#gcr-importer-create-for-parsed" title="gcr_importer_create_for_parsed ()"><code class="function">gcr_importer_create_for_parsed()</code></a>, required</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GcrImporterIface.queue-for-parsed"></a>queue_for_parsed</code></em> ()</p></td>
<td class="struct_member_description"><p>implementation of <a class="link" href="GcrImporter.html#gcr-importer-queue-for-parsed" title="gcr_importer_queue_for_parsed ()"><code class="function">gcr_importer_queue_for_parsed()</code></a>, required</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GcrImporterIface.import-sync"></a>import_sync</code></em> ()</p></td>
<td class="struct_member_description"><p>optional implemantionon of <a class="link" href="GcrImporter.html#gcr-importer-import" title="gcr_importer_import ()"><code class="function">gcr_importer_import()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GcrImporterIface.import-async"></a>import_async</code></em> ()</p></td>
<td class="struct_member_description"><p>implementation of <a class="link" href="GcrImporter.html#gcr-importer-import-async" title="gcr_importer_import_async ()"><code class="function">gcr_importer_import_async()</code></a>, required</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GcrImporterIface.import-finish"></a>import_finish</code></em> ()</p></td>
<td class="struct_member_description"><p>implementation of <a class="link" href="GcrImporter.html#gcr-importer-import-finish" title="gcr_importer_import_finish ()"><code class="function">gcr_importer_import_finish()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GcrImporter.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GcrImporter--icon"></a><h3>The <code class="literal">“icon”</code> property</h3>
<pre class="programlisting">  “icon”                     <span class="type">GIcon</span> *</pre>
<p>The icon for the importer.</p>
<p>Flags: Read</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrImporter--interaction"></a><h3>The <code class="literal">“interaction”</code> property</h3>
<pre class="programlisting">  “interaction”              <span class="type">GTlsInteraction</span> *</pre>
<p>The interaction for the importer.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrImporter--label"></a><h3>The <code class="literal">“label”</code> property</h3>
<pre class="programlisting">  “label”                    <span class="type">gchar</span> *</pre>
<p>The label for the importer.</p>
<p>Flags: Read</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrImporter--uri"></a><h3>The <code class="literal">“uri”</code> property</h3>
<pre class="programlisting">  “uri”                      <span class="type">gchar</span> *</pre>
<p>The URI of the location imported to.</p>
<p>Flags: Read</p>
<p>Default value: NULL</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27.1</div>
</body>
</html>