8
8
<link rel="up" href="ch01.html" title="PKCS#11 GObject Bindings">
9
9
<link rel="prev" href="gp11-gp11-attributes.html" title="GP11Attributes">
10
10
<link rel="next" href="gp11-gp11-misc.html" title="Miscellaneous Functions">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="ch01.html" title="PKCS#11 GObject Bindings">
24
24
<tr><td colspan="5" class="shortcuts">
25
25
<a href="#gp11-gp11-error.synopsis" class="shortcut">Top</a>
27
<a href="#gp11-gp11-error.description" class="shortcut">Description</a>
27
<a href="#gp11-gp11-error.description" class="shortcut">Description</a>
30
30
<div class="refentry" title="Errors">
38
38
</tr></table></div>
39
39
<div class="refsynopsisdiv" title="Synopsis">
40
40
<a name="gp11-gp11-error.synopsis"></a><h2>Synopsis</h2>
41
<pre class="synopsis">
42
#define <a class="link" href="gp11-gp11-error.html#GP11-VENDOR-CODE--CAPS" title="GP11_VENDOR_CODE">GP11_VENDOR_CODE</a>
43
#define <a class="link" href="gp11-gp11-error.html#GP11-ERROR--CAPS" title="GP11_ERROR">GP11_ERROR</a>
45
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
46
>gchar</a>* <a class="link" href="gp11-gp11-error.html#gp11-message-from-rv" title="gp11_message_from_rv ()">gp11_message_from_rv</a> (CK_RV rv);
47
#define <a class="link" href="gp11-gp11-error.html#CKR-GP11-MODULE-PROBLEM--CAPS" title="CKR_GP11_MODULE_PROBLEM">CKR_GP11_MODULE_PROBLEM</a>
41
<pre class="synopsis">#define <a class="link" href="gp11-gp11-error.html#GP11-VENDOR-CODE:CAPS" title="GP11_VENDOR_CODE">GP11_VENDOR_CODE</a>
42
#define <a class="link" href="gp11-gp11-error.html#GP11-ERROR:CAPS" title="GP11_ERROR">GP11_ERROR</a>
43
const <span class="returnvalue">gchar</span>* <a class="link" href="gp11-gp11-error.html#gp11-message-from-rv" title="gp11_message_from_rv ()">gp11_message_from_rv</a> (<span class="returnvalue">CK_RV</span> rv);
44
#define <a class="link" href="gp11-gp11-error.html#CKR-GP11-MODULE-PROBLEM:CAPS" title="CKR_GP11_MODULE_PROBLEM">CKR_GP11_MODULE_PROBLEM</a>
50
47
<div class="refsect1" title="Description">
53
50
GP11 errors are returned as GError structures. The code member of GError
54
51
contains the raw PKCS11 CK_RV result value.</p>
58
53
<div class="refsect1" title="Details">
59
54
<a name="gp11-gp11-error.details"></a><h2>Details</h2>
60
55
<div class="refsect2" title="GP11_VENDOR_CODE">
61
<a name="GP11-VENDOR-CODE--CAPS"></a><h3>GP11_VENDOR_CODE</h3>
56
<a name="GP11-VENDOR-CODE:CAPS"></a><h3>GP11_VENDOR_CODE</h3>
62
57
<pre class="programlisting">#define GP11_VENDOR_CODE 0x47503131 /* GP11 */
65
60
Custom PKCS11 errors that originate from the GP11 library, are
66
61
based at this error code.</p>
71
64
<div class="refsect2" title="GP11_ERROR">
72
<a name="GP11-ERROR--CAPS"></a><h3>GP11_ERROR</h3>
65
<a name="GP11-ERROR:CAPS"></a><h3>GP11_ERROR</h3>
73
66
<pre class="programlisting">#define GP11_ERROR (gp11_get_error_quark ())
76
69
The error domain for GP11 library errors.</p>
81
72
<div class="refsect2" title="gp11_message_from_rv ()">
82
73
<a name="gp11-message-from-rv"></a><h3>gp11_message_from_rv ()</h3>
83
<pre class="programlisting">const <a
84
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
85
>gchar</a>* gp11_message_from_rv (CK_RV rv);</pre>
74
<pre class="programlisting">const <span class="returnvalue">gchar</span>* gp11_message_from_rv (<span class="returnvalue">CK_RV</span> rv);</pre>
87
76
Get a message for a PKCS<span class="type">11</span> return value or error code. Do not
88
77
pass CKR_OK or other such non errors to this function.</p>
91
78
<div class="variablelist"><table border="0">
92
79
<col align="left" valign="top">
108
95
<div class="refsect2" title="CKR_GP11_MODULE_PROBLEM">
109
<a name="CKR-GP11-MODULE-PROBLEM--CAPS"></a><h3>CKR_GP11_MODULE_PROBLEM</h3>
96
<a name="CKR-GP11-MODULE-PROBLEM:CAPS"></a><h3>CKR_GP11_MODULE_PROBLEM</h3>
110
97
<pre class="programlisting">#define CKR_GP11_MODULE_PROBLEM (CKR_VENDOR_DEFINED | (GP11_VENDOR_CODE + 1))