~ubuntu-branches/ubuntu/natty/gnome-keyring/natty-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gp11/html/gp11-gp11-slot.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-03-10 21:37:48 UTC
  • mfrom: (1.1.59 upstream)
  • Revision ID: james.westby@ubuntu.com-20100310213748-imimrnfxu32ih4t3
Tags: 2.29.92-0ubuntu1
* New upstream version:
  - Fix various problems with not storing secret value properly.
  - Return no results when a search includes a bad collection identifier.
  - Don't raise error if ssh client disconnects early.
  - Allow running in a test environment.
  - Fix error when setting default keyring to NULL.
  - Autostart gnome-keyring-daemon in LXDE as well.
  - Rework the startup again, to use a singleton crontrolled via dbus, to help
    when no process was started by pam.
  - Display password and confirm prompts when creating keyring.
  - Allow specifying CKA_ID when creating collection.
  - Give translatable label to created login keyring.
  - When no default keyring set, use login keyring.
  - Fix problem initializing socket path in rpc module.
  - Fix endless loop in reading data.
  - Potential fix or sporadic crash.
  - Solaris build fixes.
  - Updated translations.
* debian/patches/05_git_no_read_looping.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="ch01.html" title="PKCS#11 GObject Bindings">
9
9
<link rel="prev" href="gp11-gp11-module.html" title="GP11Module">
10
10
<link rel="next" href="gp11-gp11-session.html" title="GP11Session">
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">
14
14
</head>
23
23
</tr>
24
24
<tr><td colspan="5" class="shortcuts">
25
25
<a href="#gp11-gp11-slot.synopsis" class="shortcut">Top</a>
26
 
                 | 
27
 
                <a href="#gp11-gp11-slot.description" class="shortcut">Description</a>
28
 
                 | 
29
 
                <a href="#gp11-gp11-slot.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
 
                 | 
31
 
                <a href="#gp11-gp11-slot.properties" class="shortcut">Properties</a>
 
26
                   | 
 
27
                  <a href="#gp11-gp11-slot.description" class="shortcut">Description</a>
 
28
                   | 
 
29
                  <a href="#gp11-gp11-slot.object-hierarchy" class="shortcut">Object Hierarchy</a>
 
30
                   | 
 
31
                  <a href="#gp11-gp11-slot.properties" class="shortcut">Properties</a>
32
32
</td></tr>
33
33
</table>
34
34
<div class="refentry" title="GP11Slot">
42
42
</tr></table></div>
43
43
<div class="refsynopsisdiv" title="Synopsis">
44
44
<a name="gp11-gp11-slot.synopsis"></a><h2>Synopsis</h2>
45
 
<a name="GP11Slot"></a><pre class="synopsis">
46
 
                    <a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo">GP11MechanismInfo</a>;
47
 
void                <a class="link" href="gp11-gp11-slot.html#gp11-mechanism-info-free" title="gp11_mechanism_info_free ()">gp11_mechanism_info_free</a>            (<a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo">GP11MechanismInfo</a> *mech_info);
 
45
<a name="GP11Slot"></a><pre class="synopsis">                    <a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo">GP11MechanismInfo</a>;
 
46
<span class="returnvalue">void</span>                <a class="link" href="gp11-gp11-slot.html#gp11-mechanism-info-free" title="gp11_mechanism_info_free ()">gp11_mechanism_info_free</a>            (<a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo"><span class="returnvalue">GP11MechanismInfo</span></a> *mech_info);
48
47
typedef             <a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms">GP11Mechanisms</a>;
49
48
#define             <a class="link" href="gp11-gp11-slot.html#gp11-mechanisms-length" title="gp11_mechanisms_length()">gp11_mechanisms_length</a>              (a)
50
49
#define             <a class="link" href="gp11-gp11-slot.html#gp11-mechanisms-at" title="gp11_mechanisms_at()">gp11_mechanisms_at</a>                  (a, i)
51
50
#define             <a class="link" href="gp11-gp11-slot.html#gp11-mechanisms-free" title="gp11_mechanisms_free()">gp11_mechanisms_free</a>                (a)
52
 
<a
53
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
54
 
>gboolean</a>            <a class="link" href="gp11-gp11-slot.html#gp11-mechanisms-check" title="gp11_mechanisms_check ()">gp11_mechanisms_check</a>               (<a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms">GP11Mechanisms</a> *mechanisms,
 
51
<span class="returnvalue">gboolean</span>            <a class="link" href="gp11-gp11-slot.html#gp11-mechanisms-check" title="gp11_mechanisms_check ()">gp11_mechanisms_check</a>               (<a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms"><span class="returnvalue">GP11Mechanisms</span></a> *mechanisms,
55
52
                                                         ...);
56
53
                    <a class="link" href="gp11-gp11-slot.html#GP11Slot-struct" title="GP11Slot">GP11Slot</a>;
57
 
<a
58
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
59
 
>gboolean</a>            <a class="link" href="gp11-gp11-slot.html#gp11-slot-equal" title="gp11_slot_equal ()">gp11_slot_equal</a>                     (<a
60
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"
61
 
>gconstpointer</a> slot1,
62
 
                                                         <a
63
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"
64
 
>gconstpointer</a> slot2);
65
 
<a
66
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
67
 
>guint</a>               <a class="link" href="gp11-gp11-slot.html#gp11-slot-hash" title="gp11_slot_hash ()">gp11_slot_hash</a>                      (<a
68
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"
69
 
>gconstpointer</a> slot);
70
 
<a class="link" href="gp11-gp11-module.html#GP11Module">GP11Module</a>*         <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-module" title="gp11_slot_get_module ()">gp11_slot_get_module</a>                (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);
71
 
CK_SLOT_ID          <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-handle" title="gp11_slot_get_handle ()">gp11_slot_get_handle</a>                (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);
72
 
<a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo">GP11SlotInfo</a>*       <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-info" title="gp11_slot_get_info ()">gp11_slot_get_info</a>                  (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);
73
 
<a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo">GP11TokenInfo</a>*      <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-token-info" title="gp11_slot_get_token_info ()">gp11_slot_get_token_info</a>            (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);
74
 
<a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms">GP11Mechanisms</a>*     <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-mechanisms" title="gp11_slot_get_mechanisms ()">gp11_slot_get_mechanisms</a>            (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);
75
 
<a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo">GP11MechanismInfo</a>*  <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-mechanism-info" title="gp11_slot_get_mechanism_info ()">gp11_slot_get_mechanism_info</a>        (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
76
 
                                                         <a
77
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
78
 
>gulong</a> mech_type);
79
 
<a
80
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
81
 
>gboolean</a>            <a class="link" href="gp11-gp11-slot.html#gp11-slot-has-flags" title="gp11_slot_has_flags ()">gp11_slot_has_flags</a>                 (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
82
 
                                                         <a
83
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
84
 
>gulong</a> flags);
85
 
<a class="link" href="gp11-gp11-session.html#GP11Session">GP11Session</a>*        <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session" title="gp11_slot_open_session ()">gp11_slot_open_session</a>              (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
86
 
                                                         <a
87
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
88
 
>gulong</a> flags,
89
 
                                                         <a
90
 
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
91
 
>GError</a> **err);
92
 
<a class="link" href="gp11-gp11-session.html#GP11Session">GP11Session</a>*        <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session-full" title="gp11_slot_open_session_full ()">gp11_slot_open_session_full</a>         (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
93
 
                                                         <a
94
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
95
 
>gulong</a> flags,
96
 
                                                         <a
97
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
98
 
>gpointer</a> app_data,
99
 
                                                         CK_NOTIFY notify,
100
 
                                                         <a
101
 
href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"
102
 
>GCancellable</a> *cancellable,
103
 
                                                         <a
104
 
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
105
 
>GError</a> **err);
106
 
void                <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session-async" title="gp11_slot_open_session_async ()">gp11_slot_open_session_async</a>        (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
107
 
                                                         <a
108
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
109
 
>gulong</a> flags,
110
 
                                                         <a
111
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
112
 
>gpointer</a> app_data,
113
 
                                                         CK_NOTIFY notify,
114
 
                                                         <a
115
 
href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"
116
 
>GCancellable</a> *cancellable,
117
 
                                                         <a
118
 
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"
119
 
>GAsyncReadyCallback</a> callback,
120
 
                                                         <a
121
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
122
 
>gpointer</a> user_data);
123
 
<a class="link" href="gp11-gp11-session.html#GP11Session">GP11Session</a>*        <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session-finish" title="gp11_slot_open_session_finish ()">gp11_slot_open_session_finish</a>       (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
124
 
                                                         <a
125
 
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
126
 
>GAsyncResult</a> *result,
127
 
                                                         <a
128
 
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
129
 
>GError</a> **err);
 
54
<span class="returnvalue">gboolean</span>            <a class="link" href="gp11-gp11-slot.html#gp11-slot-equal" title="gp11_slot_equal ()">gp11_slot_equal</a>                     (<span class="returnvalue">gconstpointer</span> slot1,
 
55
                                                         <span class="returnvalue">gconstpointer</span> slot2);
 
56
<span class="returnvalue">guint</span>               <a class="link" href="gp11-gp11-slot.html#gp11-slot-hash" title="gp11_slot_hash ()">gp11_slot_hash</a>                      (<span class="returnvalue">gconstpointer</span> slot);
 
57
<a class="link" href="gp11-gp11-module.html#GP11Module"><span class="returnvalue">GP11Module</span></a>*         <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-module" title="gp11_slot_get_module ()">gp11_slot_get_module</a>                (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);
 
58
<span class="returnvalue">CK_SLOT_ID</span>          <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-handle" title="gp11_slot_get_handle ()">gp11_slot_get_handle</a>                (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);
 
59
<a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo"><span class="returnvalue">GP11SlotInfo</span></a>*       <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-info" title="gp11_slot_get_info ()">gp11_slot_get_info</a>                  (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);
 
60
<a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo"><span class="returnvalue">GP11TokenInfo</span></a>*      <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-token-info" title="gp11_slot_get_token_info ()">gp11_slot_get_token_info</a>            (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);
 
61
<a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms"><span class="returnvalue">GP11Mechanisms</span></a>*     <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-mechanisms" title="gp11_slot_get_mechanisms ()">gp11_slot_get_mechanisms</a>            (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);
 
62
<a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo"><span class="returnvalue">GP11MechanismInfo</span></a>*  <a class="link" href="gp11-gp11-slot.html#gp11-slot-get-mechanism-info" title="gp11_slot_get_mechanism_info ()">gp11_slot_get_mechanism_info</a>        (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
63
                                                         <span class="returnvalue">gulong</span> mech_type);
 
64
<span class="returnvalue">gboolean</span>            <a class="link" href="gp11-gp11-slot.html#gp11-slot-has-flags" title="gp11_slot_has_flags ()">gp11_slot_has_flags</a>                 (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
65
                                                         <span class="returnvalue">gulong</span> flags);
 
66
<a class="link" href="gp11-gp11-session.html#GP11Session"><span class="returnvalue">GP11Session</span></a>*        <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session" title="gp11_slot_open_session ()">gp11_slot_open_session</a>              (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
67
                                                         <span class="returnvalue">gulong</span> flags,
 
68
                                                         <span class="returnvalue">GError</span> **err);
 
69
<a class="link" href="gp11-gp11-session.html#GP11Session"><span class="returnvalue">GP11Session</span></a>*        <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session-full" title="gp11_slot_open_session_full ()">gp11_slot_open_session_full</a>         (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
70
                                                         <span class="returnvalue">gulong</span> flags,
 
71
                                                         <span class="returnvalue">gpointer</span> app_data,
 
72
                                                         <span class="returnvalue">CK_NOTIFY</span> notify,
 
73
                                                         <span class="returnvalue">GCancellable</span> *cancellable,
 
74
                                                         <span class="returnvalue">GError</span> **err);
 
75
<span class="returnvalue">void</span>                <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session-async" title="gp11_slot_open_session_async ()">gp11_slot_open_session_async</a>        (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
76
                                                         <span class="returnvalue">gulong</span> flags,
 
77
                                                         <span class="returnvalue">gpointer</span> app_data,
 
78
                                                         <span class="returnvalue">CK_NOTIFY</span> notify,
 
79
                                                         <span class="returnvalue">GCancellable</span> *cancellable,
 
80
                                                         <span class="returnvalue">GAsyncReadyCallback</span> callback,
 
81
                                                         <span class="returnvalue">gpointer</span> user_data);
 
82
<a class="link" href="gp11-gp11-session.html#GP11Session"><span class="returnvalue">GP11Session</span></a>*        <a class="link" href="gp11-gp11-slot.html#gp11-slot-open-session-finish" title="gp11_slot_open_session_finish ()">gp11_slot_open_session_finish</a>       (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
83
                                                         <span class="returnvalue">GAsyncResult</span> *result,
 
84
                                                         <span class="returnvalue">GError</span> **err);
130
85
                    <a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo">GP11SlotInfo</a>;
131
 
void                <a class="link" href="gp11-gp11-slot.html#gp11-slot-info-free" title="gp11_slot_info_free ()">gp11_slot_info_free</a>                 (<a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo">GP11SlotInfo</a> *slot_info);
 
86
<span class="returnvalue">void</span>                <a class="link" href="gp11-gp11-slot.html#gp11-slot-info-free" title="gp11_slot_info_free ()">gp11_slot_info_free</a>                 (<a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo"><span class="returnvalue">GP11SlotInfo</span></a> *slot_info);
132
87
                    <a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo">GP11TokenInfo</a>;
133
 
void                <a class="link" href="gp11-gp11-slot.html#gp11-token-info-free" title="gp11_token_info_free ()">gp11_token_info_free</a>                (<a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo">GP11TokenInfo</a> *token_info);
 
88
<span class="returnvalue">void</span>                <a class="link" href="gp11-gp11-slot.html#gp11-token-info-free" title="gp11_token_info_free ()">gp11_token_info_free</a>                (<a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo"><span class="returnvalue">GP11TokenInfo</span></a> *token_info);
134
89
</pre>
135
90
</div>
136
91
<div class="refsect1" title="Object Hierarchy">
137
92
<a name="gp11-gp11-slot.object-hierarchy"></a><h2>Object Hierarchy</h2>
138
93
<pre class="synopsis">
139
 
  <a
140
 
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
141
 
>GObject</a>
 
94
  GObject
142
95
   +----GP11Slot
143
96
</pre>
144
97
</div>
145
98
<div class="refsect1" title="Properties">
146
99
<a name="gp11-gp11-slot.properties"></a><h2>Properties</h2>
147
100
<pre class="synopsis">
148
 
  "<a class="link" href="gp11-gp11-slot.html#GP11Slot--handle" title='The "handle" property'>handle</a>"                   <a
149
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
150
 
>gulong</a>                : Read / Write / Construct Only
151
 
  "<a class="link" href="gp11-gp11-slot.html#GP11Slot--module" title='The "module" property'>module</a>"                   <a class="link" href="gp11-gp11-module.html#GP11Module">GP11Module</a>*           : Read / Write / Construct Only
 
101
  "<a class="link" href="gp11-gp11-slot.html#GP11Slot--handle" title='The "handle" property'>handle</a>"                   <span class="type">gulong</span>                : Read / Write / Construct Only
 
102
  "<a class="link" href="gp11-gp11-slot.html#GP11Slot--module" title='The "module" property'>module</a>"                   <a class="link" href="gp11-gp11-module.html#GP11Module"><span class="type">GP11Module</span></a>*           : Read / Write / Construct Only
152
103
</pre>
153
104
</div>
154
105
<div class="refsect1" title="Description">
156
107
<p>
157
108
A PKCS11 slot can contain a token. As an example, a slot might be a card reader, and the token
158
109
the card. If the PKCS11 module is not a hardware driver, often the slot and token are equivalent.</p>
159
 
<p>
160
 
</p>
161
110
</div>
162
111
<div class="refsect1" title="Details">
163
112
<a name="gp11-gp11-slot.details"></a><h2>Details</h2>
178
127
<p>
179
128
When you're done with this structure it should be released with 
180
129
<a class="link" href="gp11-gp11-slot.html#gp11-mechanism-info-free" title="gp11_mechanism_info_free ()"><code class="function">gp11_mechanism_info_free()</code></a>.</p>
181
 
<p>
182
 
</p>
183
130
<div class="variablelist"><table border="0">
184
131
<col align="left" valign="top">
185
132
<tbody>
186
133
<tr>
187
 
<td><p><span class="term"><a
188
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
189
 
>gulong</a> <em class="structfield"><code>min_key_size</code></em>;</span></p></td>
 
134
<td><p><span class="term"><span class="type">gulong</span> <em class="structfield"><code><a name="GP11MechanismInfo.min-key-size"></a>min_key_size</code></em>;</span></p></td>
190
135
<td> The minimum key size that can be used with this mechanism.
191
136
</td>
192
137
</tr>
193
138
<tr>
194
 
<td><p><span class="term"><a
195
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
196
 
>gulong</a> <em class="structfield"><code>max_key_size</code></em>;</span></p></td>
 
139
<td><p><span class="term"><span class="type">gulong</span> <em class="structfield"><code><a name="GP11MechanismInfo.max-key-size"></a>max_key_size</code></em>;</span></p></td>
197
140
<td> The maximum key size that can be used with this mechanism.
198
141
</td>
199
142
</tr>
200
143
<tr>
201
 
<td><p><span class="term"><a
202
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
203
 
>gulong</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
 
144
<td><p><span class="term"><span class="type">gulong</span> <em class="structfield"><code><a name="GP11MechanismInfo.flags"></a>flags</code></em>;</span></p></td>
204
145
<td> Various PKCS11 flags that apply to this mechanism.
205
146
</td>
206
147
</tr>
210
151
<hr>
211
152
<div class="refsect2" title="gp11_mechanism_info_free ()">
212
153
<a name="gp11-mechanism-info-free"></a><h3>gp11_mechanism_info_free ()</h3>
213
 
<pre class="programlisting">void                gp11_mechanism_info_free            (<a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo">GP11MechanismInfo</a> *mech_info);</pre>
 
154
<pre class="programlisting"><span class="returnvalue">void</span>                gp11_mechanism_info_free            (<a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo"><span class="returnvalue">GP11MechanismInfo</span></a> *mech_info);</pre>
214
155
<p>
215
156
Free the GP11MechanismInfo and associated resources.</p>
216
 
<p>
217
 
</p>
218
157
<div class="variablelist"><table border="0">
219
158
<col align="left" valign="top">
220
159
<tbody><tr>
231
170
</pre>
232
171
<p>
233
172
A set of GP11MechanismInfo structures.</p>
234
 
<p>
235
 
</p>
236
173
</div>
237
174
<hr>
238
175
<div class="refsect2" title="gp11_mechanisms_length()">
241
178
</pre>
242
179
<p>
243
180
Get the number of GP11MechanismInfo in the set.</p>
244
 
<p>
245
 
</p>
246
181
<div class="variablelist"><table border="0">
247
182
<col align="left" valign="top">
248
 
<tbody><tr>
 
183
<tbody>
 
184
<tr>
249
185
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
250
186
<td> A GP11Mechanisms set.
251
187
</td>
252
 
</tr></tbody>
 
188
</tr>
 
189
<tr>
 
190
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
191
<td> The number in the set.
 
192
</td>
 
193
</tr>
 
194
</tbody>
253
195
</table></div>
254
196
</div>
255
197
<hr>
259
201
</pre>
260
202
<p>
261
203
Get a specific GP11MechanismInfo in a the set.</p>
262
 
<p>
263
 
</p>
264
204
<div class="variablelist"><table border="0">
265
205
<col align="left" valign="top">
266
206
<tbody>
274
214
<td> The index of a GP11MechanismInfo.
275
215
</td>
276
216
</tr>
 
217
<tr>
 
218
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
219
<td> The GP11MechanismInfo.
 
220
</td>
 
221
</tr>
277
222
</tbody>
278
223
</table></div>
279
224
</div>
284
229
</pre>
285
230
<p>
286
231
Free a GP11Mechanisms set.</p>
287
 
<p>
288
 
</p>
289
232
<div class="variablelist"><table border="0">
290
233
<col align="left" valign="top">
291
234
<tbody><tr>
298
241
<hr>
299
242
<div class="refsect2" title="gp11_mechanisms_check ()">
300
243
<a name="gp11-mechanisms-check"></a><h3>gp11_mechanisms_check ()</h3>
301
 
<pre class="programlisting"><a
302
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
303
 
>gboolean</a>            gp11_mechanisms_check               (<a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms">GP11Mechanisms</a> *mechanisms,
 
244
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gp11_mechanisms_check               (<a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms"><span class="returnvalue">GP11Mechanisms</span></a> *mechanisms,
304
245
                                                         ...);</pre>
305
246
<p>
306
247
Check whether all the mechanism types are in the list.
308
249
<p>
309
250
The arguments should be a list of CKM_XXX mechanism types. The last argument
310
251
should be GP11_INVALID.</p>
311
 
<p>
312
 
</p>
313
252
<div class="variablelist"><table border="0">
314
253
<col align="left" valign="top">
315
254
<tbody>
337
276
<pre class="programlisting">typedef struct _GP11Slot GP11Slot;</pre>
338
277
<p>
339
278
Represents a PKCS11 slot.</p>
340
 
<p>
341
 
</p>
342
279
</div>
343
280
<hr>
344
281
<div class="refsect2" title="gp11_slot_equal ()">
345
282
<a name="gp11-slot-equal"></a><h3>gp11_slot_equal ()</h3>
346
 
<pre class="programlisting"><a
347
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
348
 
>gboolean</a>            gp11_slot_equal                     (<a
349
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"
350
 
>gconstpointer</a> slot1,
351
 
                                                         <a
352
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"
353
 
>gconstpointer</a> slot2);</pre>
 
283
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gp11_slot_equal                     (<span class="returnvalue">gconstpointer</span> slot1,
 
284
                                                         <span class="returnvalue">gconstpointer</span> slot2);</pre>
354
285
<p>
355
286
Checks equality of two slots. Two GP11Slot objects can point to the same 
356
287
underlying PKCS<span class="type">11</span> slot.</p>
357
 
<p>
358
 
</p>
359
288
<div class="variablelist"><table border="0">
360
289
<col align="left" valign="top">
361
290
<tbody>
380
309
<hr>
381
310
<div class="refsect2" title="gp11_slot_hash ()">
382
311
<a name="gp11-slot-hash"></a><h3>gp11_slot_hash ()</h3>
383
 
<pre class="programlisting"><a
384
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
385
 
>guint</a>               gp11_slot_hash                      (<a
386
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"
387
 
>gconstpointer</a> slot);</pre>
 
312
<pre class="programlisting"><span class="returnvalue">guint</span>               gp11_slot_hash                      (<span class="returnvalue">gconstpointer</span> slot);</pre>
388
313
<p>
389
314
Create a hash value for the GP11Slot. 
390
315
</p>
391
316
<p>
392
317
This function is intended for easily hashing a GP11Slot to add to 
393
318
a GHashTable or similar data structure.</p>
394
 
<p>
395
 
</p>
396
319
<div class="variablelist"><table border="0">
397
320
<col align="left" valign="top">
398
321
<tbody>
412
335
<hr>
413
336
<div class="refsect2" title="gp11_slot_get_module ()">
414
337
<a name="gp11-slot-get-module"></a><h3>gp11_slot_get_module ()</h3>
415
 
<pre class="programlisting"><a class="link" href="gp11-gp11-module.html#GP11Module">GP11Module</a>*         gp11_slot_get_module                (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);</pre>
 
338
<pre class="programlisting"><a class="link" href="gp11-gp11-module.html#GP11Module"><span class="returnvalue">GP11Module</span></a>*         gp11_slot_get_module                (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);</pre>
416
339
<p>
417
340
Get the module that this slot is on.</p>
418
 
<p>
419
 
</p>
420
341
<div class="variablelist"><table border="0">
421
342
<col align="left" valign="top">
422
343
<tbody>
436
357
<hr>
437
358
<div class="refsect2" title="gp11_slot_get_handle ()">
438
359
<a name="gp11-slot-get-handle"></a><h3>gp11_slot_get_handle ()</h3>
439
 
<pre class="programlisting">CK_SLOT_ID          gp11_slot_get_handle                (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);</pre>
 
360
<pre class="programlisting"><span class="returnvalue">CK_SLOT_ID</span>          gp11_slot_get_handle                (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);</pre>
440
361
<p>
441
362
Get the raw PKCS<span class="type">11</span> handle of a slot.</p>
442
 
<p>
443
 
</p>
444
363
<div class="variablelist"><table border="0">
445
364
<col align="left" valign="top">
446
365
<tbody>
460
379
<hr>
461
380
<div class="refsect2" title="gp11_slot_get_info ()">
462
381
<a name="gp11-slot-get-info"></a><h3>gp11_slot_get_info ()</h3>
463
 
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo">GP11SlotInfo</a>*       gp11_slot_get_info                  (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);</pre>
 
382
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo"><span class="returnvalue">GP11SlotInfo</span></a>*       gp11_slot_get_info                  (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);</pre>
464
383
<p>
465
384
Get the information for this slot.</p>
466
 
<p>
467
 
</p>
468
385
<div class="variablelist"><table border="0">
469
386
<col align="left" valign="top">
470
387
<tbody>
485
402
<hr>
486
403
<div class="refsect2" title="gp11_slot_get_token_info ()">
487
404
<a name="gp11-slot-get-token-info"></a><h3>gp11_slot_get_token_info ()</h3>
488
 
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo">GP11TokenInfo</a>*      gp11_slot_get_token_info            (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);</pre>
 
405
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo"><span class="returnvalue">GP11TokenInfo</span></a>*      gp11_slot_get_token_info            (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);</pre>
489
406
<p>
490
407
Get the token information for this slot.</p>
491
 
<p>
492
 
</p>
493
408
<div class="variablelist"><table border="0">
494
409
<col align="left" valign="top">
495
410
<tbody>
510
425
<hr>
511
426
<div class="refsect2" title="gp11_slot_get_mechanisms ()">
512
427
<a name="gp11-slot-get-mechanisms"></a><h3>gp11_slot_get_mechanisms ()</h3>
513
 
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms">GP11Mechanisms</a>*     gp11_slot_get_mechanisms            (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self);</pre>
 
428
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11Mechanisms" title="GP11Mechanisms"><span class="returnvalue">GP11Mechanisms</span></a>*     gp11_slot_get_mechanisms            (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self);</pre>
514
429
<p>
515
430
Get the available mechanisms for this slot.</p>
516
 
<p>
517
 
</p>
518
431
<div class="variablelist"><table border="0">
519
432
<col align="left" valign="top">
520
433
<tbody>
535
448
<hr>
536
449
<div class="refsect2" title="gp11_slot_get_mechanism_info ()">
537
450
<a name="gp11-slot-get-mechanism-info"></a><h3>gp11_slot_get_mechanism_info ()</h3>
538
 
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo">GP11MechanismInfo</a>*  gp11_slot_get_mechanism_info        (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
539
 
                                                         <a
540
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
541
 
>gulong</a> mech_type);</pre>
 
451
<pre class="programlisting"><a class="link" href="gp11-gp11-slot.html#GP11MechanismInfo" title="GP11MechanismInfo"><span class="returnvalue">GP11MechanismInfo</span></a>*  gp11_slot_get_mechanism_info        (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
452
                                                         <span class="returnvalue">gulong</span> mech_type);</pre>
542
453
<p>
543
454
Get information for the specified mechanism.</p>
544
 
<p>
545
 
</p>
546
455
<div class="variablelist"><table border="0">
547
456
<col align="left" valign="top">
548
457
<tbody>
568
477
<hr>
569
478
<div class="refsect2" title="gp11_slot_has_flags ()">
570
479
<a name="gp11-slot-has-flags"></a><h3>gp11_slot_has_flags ()</h3>
571
 
<pre class="programlisting"><a
572
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
573
 
>gboolean</a>            gp11_slot_has_flags                 (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
574
 
                                                         <a
575
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
576
 
>gulong</a> flags);</pre>
 
480
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gp11_slot_has_flags                 (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
481
                                                         <span class="returnvalue">gulong</span> flags);</pre>
577
482
<p>
578
483
Check if the PKCS11 slot has the given flags.</p>
579
 
<p>
580
 
</p>
581
484
<div class="variablelist"><table border="0">
582
485
<col align="left" valign="top">
583
486
<tbody>
602
505
<hr>
603
506
<div class="refsect2" title="gp11_slot_open_session ()">
604
507
<a name="gp11-slot-open-session"></a><h3>gp11_slot_open_session ()</h3>
605
 
<pre class="programlisting"><a class="link" href="gp11-gp11-session.html#GP11Session">GP11Session</a>*        gp11_slot_open_session              (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
606
 
                                                         <a
607
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
608
 
>gulong</a> flags,
609
 
                                                         <a
610
 
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
611
 
>GError</a> **err);</pre>
 
508
<pre class="programlisting"><a class="link" href="gp11-gp11-session.html#GP11Session"><span class="returnvalue">GP11Session</span></a>*        gp11_slot_open_session              (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
509
                                                         <span class="returnvalue">gulong</span> flags,
 
510
                                                         <span class="returnvalue">GError</span> **err);</pre>
612
511
<p>
613
512
Open a session on the slot. If the 'auto reuse' setting is set,
614
513
then this may be a recycled session with the same flags.
615
514
</p>
616
515
<p>
617
516
This call may block for an indefinite period.</p>
618
 
<p>
619
 
</p>
620
517
<div class="variablelist"><table border="0">
621
518
<col align="left" valign="top">
622
519
<tbody>
646
543
<hr>
647
544
<div class="refsect2" title="gp11_slot_open_session_full ()">
648
545
<a name="gp11-slot-open-session-full"></a><h3>gp11_slot_open_session_full ()</h3>
649
 
<pre class="programlisting"><a class="link" href="gp11-gp11-session.html#GP11Session">GP11Session</a>*        gp11_slot_open_session_full         (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
650
 
                                                         <a
651
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
652
 
>gulong</a> flags,
653
 
                                                         <a
654
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
655
 
>gpointer</a> app_data,
656
 
                                                         CK_NOTIFY notify,
657
 
                                                         <a
658
 
href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"
659
 
>GCancellable</a> *cancellable,
660
 
                                                         <a
661
 
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
662
 
>GError</a> **err);</pre>
 
546
<pre class="programlisting"><a class="link" href="gp11-gp11-session.html#GP11Session"><span class="returnvalue">GP11Session</span></a>*        gp11_slot_open_session_full         (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
547
                                                         <span class="returnvalue">gulong</span> flags,
 
548
                                                         <span class="returnvalue">gpointer</span> app_data,
 
549
                                                         <span class="returnvalue">CK_NOTIFY</span> notify,
 
550
                                                         <span class="returnvalue">GCancellable</span> *cancellable,
 
551
                                                         <span class="returnvalue">GError</span> **err);</pre>
663
552
<p>
664
553
Open a session on the slot. If the 'auto reuse' setting is set,
665
554
then this may be a recycled session with the same flags.
666
555
</p>
667
556
<p>
668
557
This call may block for an indefinite period.</p>
669
 
<p>
670
 
</p>
671
558
<div class="variablelist"><table border="0">
672
559
<col align="left" valign="top">
673
560
<tbody>
712
599
<hr>
713
600
<div class="refsect2" title="gp11_slot_open_session_async ()">
714
601
<a name="gp11-slot-open-session-async"></a><h3>gp11_slot_open_session_async ()</h3>
715
 
<pre class="programlisting">void                gp11_slot_open_session_async        (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
716
 
                                                         <a
717
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
718
 
>gulong</a> flags,
719
 
                                                         <a
720
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
721
 
>gpointer</a> app_data,
722
 
                                                         CK_NOTIFY notify,
723
 
                                                         <a
724
 
href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"
725
 
>GCancellable</a> *cancellable,
726
 
                                                         <a
727
 
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"
728
 
>GAsyncReadyCallback</a> callback,
729
 
                                                         <a
730
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
731
 
>gpointer</a> user_data);</pre>
 
602
<pre class="programlisting"><span class="returnvalue">void</span>                gp11_slot_open_session_async        (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
603
                                                         <span class="returnvalue">gulong</span> flags,
 
604
                                                         <span class="returnvalue">gpointer</span> app_data,
 
605
                                                         <span class="returnvalue">CK_NOTIFY</span> notify,
 
606
                                                         <span class="returnvalue">GCancellable</span> *cancellable,
 
607
                                                         <span class="returnvalue">GAsyncReadyCallback</span> callback,
 
608
                                                         <span class="returnvalue">gpointer</span> user_data);</pre>
732
609
<p>
733
610
Open a session on the slot. If the 'auto reuse' setting is set,
734
611
then this may be a recycled session with the same flags.
735
612
</p>
736
613
<p>
737
614
This call will return immediately and complete asynchronously.</p>
738
 
<p>
739
 
</p>
740
615
<div class="variablelist"><table border="0">
741
616
<col align="left" valign="top">
742
617
<tbody>
781
656
<hr>
782
657
<div class="refsect2" title="gp11_slot_open_session_finish ()">
783
658
<a name="gp11-slot-open-session-finish"></a><h3>gp11_slot_open_session_finish ()</h3>
784
 
<pre class="programlisting"><a class="link" href="gp11-gp11-session.html#GP11Session">GP11Session</a>*        gp11_slot_open_session_finish       (<a class="link" href="gp11-gp11-slot.html#GP11Slot">GP11Slot</a> *self,
785
 
                                                         <a
786
 
href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"
787
 
>GAsyncResult</a> *result,
788
 
                                                         <a
789
 
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
790
 
>GError</a> **err);</pre>
 
659
<pre class="programlisting"><a class="link" href="gp11-gp11-session.html#GP11Session"><span class="returnvalue">GP11Session</span></a>*        gp11_slot_open_session_finish       (<a class="link" href="gp11-gp11-slot.html#GP11Slot"><span class="returnvalue">GP11Slot</span></a> *self,
 
660
                                                         <span class="returnvalue">GAsyncResult</span> *result,
 
661
                                                         <span class="returnvalue">GError</span> **err);</pre>
791
662
<p>
792
663
Get the result of an open session operation. If the 'auto reuse' setting is set,
793
664
then this may be a recycled session with the same flags.</p>
794
 
<p>
795
 
</p>
796
665
<div class="variablelist"><table border="0">
797
666
<col align="left" valign="top">
798
667
<tbody>
842
711
<p>
843
712
When you're done with this structure it should be released with 
844
713
<a class="link" href="gp11-gp11-slot.html#gp11-slot-info-free" title="gp11_slot_info_free ()"><code class="function">gp11_slot_info_free()</code></a>.</p>
845
 
<p>
846
 
</p>
847
714
<div class="variablelist"><table border="0">
848
715
<col align="left" valign="top">
849
716
<tbody>
850
717
<tr>
851
 
<td><p><span class="term"><a
852
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
853
 
>gchar</a> *<em class="structfield"><code>slot_description</code></em>;</span></p></td>
 
718
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GP11SlotInfo.slot-description"></a>slot_description</code></em>;</span></p></td>
854
719
<td> Description of the slot.
855
720
</td>
856
721
</tr>
857
722
<tr>
858
 
<td><p><span class="term"><a
859
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
860
 
>gchar</a> *<em class="structfield"><code>manufacturer_id</code></em>;</span></p></td>
 
723
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GP11SlotInfo.manufacturer-id"></a>manufacturer_id</code></em>;</span></p></td>
861
724
<td> The manufacturer of this slot.
862
725
</td>
863
726
</tr>
864
727
<tr>
865
 
<td><p><span class="term"><a
866
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
867
 
>gulong</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
 
728
<td><p><span class="term"><span class="type">gulong</span> <em class="structfield"><code><a name="GP11SlotInfo.flags"></a>flags</code></em>;</span></p></td>
868
729
<td> Various PKCS11 flags that apply to this slot. 
869
730
</td>
870
731
</tr>
871
732
<tr>
872
 
<td><p><span class="term"><a
873
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
874
 
>guint8</a> <em class="structfield"><code>hardware_version_major</code></em>;</span></p></td>
 
733
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11SlotInfo.hardware-version-major"></a>hardware_version_major</code></em>;</span></p></td>
875
734
<td> The major version of the hardware.
876
735
</td>
877
736
</tr>
878
737
<tr>
879
 
<td><p><span class="term"><a
880
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
881
 
>guint8</a> <em class="structfield"><code>hardware_version_minor</code></em>;</span></p></td>
 
738
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11SlotInfo.hardware-version-minor"></a>hardware_version_minor</code></em>;</span></p></td>
882
739
<td> The minor version of the hardware.
883
740
</td>
884
741
</tr>
885
742
<tr>
886
 
<td><p><span class="term"><a
887
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
888
 
>guint8</a> <em class="structfield"><code>firmware_version_major</code></em>;</span></p></td>
 
743
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11SlotInfo.firmware-version-major"></a>firmware_version_major</code></em>;</span></p></td>
889
744
<td> The major version of the firmware.
890
745
</td>
891
746
</tr>
892
747
<tr>
893
 
<td><p><span class="term"><a
894
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
895
 
>guint8</a> <em class="structfield"><code>firmware_version_minor</code></em>;</span></p></td>
 
748
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11SlotInfo.firmware-version-minor"></a>firmware_version_minor</code></em>;</span></p></td>
896
749
<td> The minor version of the firmware.
897
750
</td>
898
751
</tr>
902
755
<hr>
903
756
<div class="refsect2" title="gp11_slot_info_free ()">
904
757
<a name="gp11-slot-info-free"></a><h3>gp11_slot_info_free ()</h3>
905
 
<pre class="programlisting">void                gp11_slot_info_free                 (<a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo">GP11SlotInfo</a> *slot_info);</pre>
 
758
<pre class="programlisting"><span class="returnvalue">void</span>                gp11_slot_info_free                 (<a class="link" href="gp11-gp11-slot.html#GP11SlotInfo" title="GP11SlotInfo"><span class="returnvalue">GP11SlotInfo</span></a> *slot_info);</pre>
906
759
<p>
907
760
Free the GP11SlotInfo and associated resources.</p>
908
 
<p>
909
 
</p>
910
761
<div class="variablelist"><table border="0">
911
762
<col align="left" valign="top">
912
763
<tbody><tr>
952
803
<p>
953
804
When you're done with this structure it should be released with 
954
805
<a class="link" href="gp11-gp11-slot.html#gp11-token-info-free" title="gp11_token_info_free ()"><code class="function">gp11_token_info_free()</code></a>.</p>
955
 
<p>
956
 
</p>
957
806
<div class="variablelist"><table border="0">
958
807
<col align="left" valign="top">
959
808
<tbody>
960
809
<tr>
961
 
<td><p><span class="term"><a
962
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
963
 
>gchar</a> *<em class="structfield"><code>label</code></em>;</span></p></td>
 
810
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GP11TokenInfo.label"></a>label</code></em>;</span></p></td>
964
811
<td> The displayable token label.
965
812
</td>
966
813
</tr>
967
814
<tr>
968
 
<td><p><span class="term"><a
969
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
970
 
>gchar</a> *<em class="structfield"><code>manufacturer_id</code></em>;</span></p></td>
 
815
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GP11TokenInfo.manufacturer-id"></a>manufacturer_id</code></em>;</span></p></td>
971
816
<td> The manufacturer of this slot.
972
817
</td>
973
818
</tr>
974
819
<tr>
975
 
<td><p><span class="term"><a
976
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
977
 
>gchar</a> *<em class="structfield"><code>model</code></em>;</span></p></td>
 
820
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GP11TokenInfo.model"></a>model</code></em>;</span></p></td>
978
821
<td> The token model number as a string.
979
822
</td>
980
823
</tr>
981
824
<tr>
982
 
<td><p><span class="term"><a
983
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
984
 
>gchar</a> *<em class="structfield"><code>serial_number</code></em>;</span></p></td>
 
825
<td><p><span class="term"><span class="type">gchar</span> *<em class="structfield"><code><a name="GP11TokenInfo.serial-number"></a>serial_number</code></em>;</span></p></td>
985
826
<td> The token serial number as a string.
986
827
</td>
987
828
</tr>
988
829
<tr>
989
 
<td><p><span class="term"><a
990
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
991
 
>gulong</a> <em class="structfield"><code>flags</code></em>;</span></p></td>
 
830
<td><p><span class="term"><span class="type">gulong</span> <em class="structfield"><code><a name="GP11TokenInfo.flags"></a>flags</code></em>;</span></p></td>
992
831
<td> Various PKCS11 flags that apply to this token.
993
832
</td>
994
833
</tr>
995
834
<tr>
996
 
<td><p><span class="term"><a
997
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
998
 
>glong</a> <em class="structfield"><code>max_session_count</code></em>;</span></p></td>
 
835
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.max-session-count"></a>max_session_count</code></em>;</span></p></td>
999
836
<td> The maximum number of sessions allowed on this token.
1000
837
</td>
1001
838
</tr>
1002
839
<tr>
1003
 
<td><p><span class="term"><a
1004
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1005
 
>glong</a> <em class="structfield"><code>session_count</code></em>;</span></p></td>
 
840
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.session-count"></a>session_count</code></em>;</span></p></td>
1006
841
<td> The number of sessions open on this token.
1007
842
</td>
1008
843
</tr>
1009
844
<tr>
1010
 
<td><p><span class="term"><a
1011
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1012
 
>glong</a> <em class="structfield"><code>max_rw_session_count</code></em>;</span></p></td>
 
845
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.max-rw-session-count"></a>max_rw_session_count</code></em>;</span></p></td>
1013
846
<td> The maximum number of read/write sessions allowed on this token.
1014
847
</td>
1015
848
</tr>
1016
849
<tr>
1017
 
<td><p><span class="term"><a
1018
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1019
 
>glong</a> <em class="structfield"><code>rw_session_count</code></em>;</span></p></td>
 
850
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.rw-session-count"></a>rw_session_count</code></em>;</span></p></td>
1020
851
<td> The number of sessions open on this token.
1021
852
</td>
1022
853
</tr>
1023
854
<tr>
1024
 
<td><p><span class="term"><a
1025
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1026
 
>glong</a> <em class="structfield"><code>max_pin_len</code></em>;</span></p></td>
 
855
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.max-pin-len"></a>max_pin_len</code></em>;</span></p></td>
1027
856
<td> The maximum length of a PIN for locking this token.
1028
857
</td>
1029
858
</tr>
1030
859
<tr>
1031
 
<td><p><span class="term"><a
1032
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1033
 
>glong</a> <em class="structfield"><code>min_pin_len</code></em>;</span></p></td>
 
860
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.min-pin-len"></a>min_pin_len</code></em>;</span></p></td>
1034
861
<td> The minimum length of a PIN for locking this token.
1035
862
</td>
1036
863
</tr>
1037
864
<tr>
1038
 
<td><p><span class="term"><a
1039
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1040
 
>glong</a> <em class="structfield"><code>total_public_memory</code></em>;</span></p></td>
 
865
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.total-public-memory"></a>total_public_memory</code></em>;</span></p></td>
1041
866
<td> The total amount of memory on this token for storing public objects.
1042
867
</td>
1043
868
</tr>
1044
869
<tr>
1045
 
<td><p><span class="term"><a
1046
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1047
 
>glong</a> <em class="structfield"><code>free_public_memory</code></em>;</span></p></td>
 
870
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.free-public-memory"></a>free_public_memory</code></em>;</span></p></td>
1048
871
<td> The available amount of memory on this token for storing public objects.  
1049
872
</td>
1050
873
</tr>
1051
874
<tr>
1052
 
<td><p><span class="term"><a
1053
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1054
 
>glong</a> <em class="structfield"><code>total_private_memory</code></em>;</span></p></td>
 
875
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.total-private-memory"></a>total_private_memory</code></em>;</span></p></td>
1055
876
<td> The total amount of memory on this token for storing private objects.
1056
877
</td>
1057
878
</tr>
1058
879
<tr>
1059
 
<td><p><span class="term"><a
1060
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"
1061
 
>glong</a> <em class="structfield"><code>free_private_memory</code></em>;</span></p></td>
 
880
<td><p><span class="term"><span class="type">glong</span> <em class="structfield"><code><a name="GP11TokenInfo.free-private-memory"></a>free_private_memory</code></em>;</span></p></td>
1062
881
<td> The available amount of memory on this token for storing private objects.  
1063
882
</td>
1064
883
</tr>
1065
884
<tr>
1066
 
<td><p><span class="term"><a
1067
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
1068
 
>guint8</a> <em class="structfield"><code>hardware_version_major</code></em>;</span></p></td>
 
885
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11TokenInfo.hardware-version-major"></a>hardware_version_major</code></em>;</span></p></td>
1069
886
<td> The major version of the hardware.
1070
887
</td>
1071
888
</tr>
1072
889
<tr>
1073
 
<td><p><span class="term"><a
1074
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
1075
 
>guint8</a> <em class="structfield"><code>hardware_version_minor</code></em>;</span></p></td>
 
890
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11TokenInfo.hardware-version-minor"></a>hardware_version_minor</code></em>;</span></p></td>
1076
891
<td> The minor version of the hardware.
1077
892
</td>
1078
893
</tr>
1079
894
<tr>
1080
 
<td><p><span class="term"><a
1081
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
1082
 
>guint8</a> <em class="structfield"><code>firmware_version_major</code></em>;</span></p></td>
 
895
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11TokenInfo.firmware-version-major"></a>firmware_version_major</code></em>;</span></p></td>
1083
896
<td> The major version of the firmware.
1084
897
</td>
1085
898
</tr>
1086
899
<tr>
1087
 
<td><p><span class="term"><a
1088
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
1089
 
>guint8</a> <em class="structfield"><code>firmware_version_minor</code></em>;</span></p></td>
 
900
<td><p><span class="term"><span class="type">guint8</span> <em class="structfield"><code><a name="GP11TokenInfo.firmware-version-minor"></a>firmware_version_minor</code></em>;</span></p></td>
1090
901
<td> The minor version of the firmware.
1091
902
</td>
1092
903
</tr>
1093
904
<tr>
1094
 
<td><p><span class="term"><a
1095
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint64"
1096
 
>gint64</a> <em class="structfield"><code>utc_time</code></em>;</span></p></td>
 
905
<td><p><span class="term"><span class="type">gint64</span> <em class="structfield"><code><a name="GP11TokenInfo.utc-time"></a>utc_time</code></em>;</span></p></td>
1097
906
<td> If the token has a hardware clock, this is set to the number of seconds since the epoch.
1098
907
</td>
1099
908
</tr>
1103
912
<hr>
1104
913
<div class="refsect2" title="gp11_token_info_free ()">
1105
914
<a name="gp11-token-info-free"></a><h3>gp11_token_info_free ()</h3>
1106
 
<pre class="programlisting">void                gp11_token_info_free                (<a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo">GP11TokenInfo</a> *token_info);</pre>
 
915
<pre class="programlisting"><span class="returnvalue">void</span>                gp11_token_info_free                (<a class="link" href="gp11-gp11-slot.html#GP11TokenInfo" title="GP11TokenInfo"><span class="returnvalue">GP11TokenInfo</span></a> *token_info);</pre>
1107
916
<p>
1108
917
Free the GP11TokenInfo and associated resources.</p>
1109
 
<p>
1110
 
</p>
1111
918
<div class="variablelist"><table border="0">
1112
919
<col align="left" valign="top">
1113
920
<tbody><tr>
1122
929
<a name="gp11-gp11-slot.property-details"></a><h2>Property Details</h2>
1123
930
<div class="refsect2" title='The "handle" property'>
1124
931
<a name="GP11Slot--handle"></a><h3>The <code class="literal">"handle"</code> property</h3>
1125
 
<pre class="programlisting">  "handle"                   <a
1126
 
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"
1127
 
>gulong</a>                : Read / Write / Construct Only</pre>
 
932
<pre class="programlisting">  "handle"                   <span class="type">gulong</span>                : Read / Write / Construct Only</pre>
1128
933
<p>
1129
934
The raw CK_SLOT_ID handle of this slot.</p>
1130
 
<p>
1131
 
</p>
1132
935
</div>
1133
936
<hr>
1134
937
<div class="refsect2" title='The "module" property'>
1135
938
<a name="GP11Slot--module"></a><h3>The <code class="literal">"module"</code> property</h3>
1136
 
<pre class="programlisting">  "module"                   <a class="link" href="gp11-gp11-module.html#GP11Module">GP11Module</a>*           : Read / Write / Construct Only</pre>
 
939
<pre class="programlisting">  "module"                   <a class="link" href="gp11-gp11-module.html#GP11Module"><span class="type">GP11Module</span></a>*           : Read / Write / Construct Only</pre>
1137
940
<p>
1138
941
The PKCS11 object that this slot is a part of.</p>
1139
 
<p>
1140
 
</p>
1141
942
</div>
1142
943
</div>
1143
944
</div>
1144
945
<div class="footer">
1145
946
<hr>
1146
 
          Generated by GTK-Doc V1.11</div>
 
947
          Generated by GTK-Doc V1.14</div>
1147
948
</body>
1148
 
</html>
 
949
</html>
 
 
b'\\ No newline at end of file'