This file is indexed.

/usr/share/gtk-doc/html/gck/gck-GckAttribute.html is in libgck-1-doc 3.2.2-2ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GckAttribute</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Gck Library Reference Manual">
<link rel="up" href="reference.html" title="PKCS#11 GObject Bindings">
<link rel="prev" href="gck-GckObject.html" title="GckObject">
<link rel="next" href="gck-GckAttributes.html" title="GckAttributes">
<meta name="generator" content="GTK-Doc V1.18 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="gck-GckObject.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Gck Library Reference Manual</th>
<td><a accesskey="n" href="gck-GckAttributes.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gck-GckAttribute.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gck-GckAttribute.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gck-GckAttribute"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gck-GckAttribute.top_of_page"></a>GckAttribute</span></h2>
<p>GckAttribute — A PKCS11 attribute.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gck-GckAttribute.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute">GckAttribute</a>;
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init" title="gck_attribute_init ()">gck_attribute_init</a>                  (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> value</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> length</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-invalid" title="gck_attribute_init_invalid ()">gck_attribute_init_invalid</a>          (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-empty" title="gck_attribute_init_empty ()">gck_attribute_init_empty</a>            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-boolean" title="gck_attribute_init_boolean ()">gck_attribute_init_boolean</a>          (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-date" title="gck_attribute_init_date ()">gck_attribute_init_date</a>             (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *value</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-ulong" title="gck_attribute_init_ulong ()">gck_attribute_init_ulong</a>            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> value</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-string" title="gck_attribute_init_string ()">gck_attribute_init_string</a>           (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-init-copy" title="gck_attribute_init_copy ()">gck_attribute_init_copy</a>             (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *dest</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *src</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new" title="gck_attribute_new ()">gck_attribute_new</a>                   (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> value</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> length</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new-invalid" title="gck_attribute_new_invalid ()">gck_attribute_new_invalid</a>           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new-empty" title="gck_attribute_new_empty ()">gck_attribute_new_empty</a>             (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new-boolean" title="gck_attribute_new_boolean ()">gck_attribute_new_boolean</a>           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new-date" title="gck_attribute_new_date ()">gck_attribute_new_date</a>              (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *value</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new-ulong" title="gck_attribute_new_ulong ()">gck_attribute_new_ulong</a>             (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> value</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-new-string" title="gck_attribute_new_string ()">gck_attribute_new_string</a>            (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gck-GckAttribute.html#gck-attribute-is-invalid" title="gck_attribute_is_invalid ()">gck_attribute_is_invalid</a>            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gck-GckAttribute.html#gck-attribute-get-boolean" title="gck_attribute_get_boolean ()">gck_attribute_get_boolean</a>           (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>              <a class="link" href="gck-GckAttribute.html#gck-attribute-get-ulong" title="gck_attribute_get_ulong ()">gck_attribute_get_ulong</a>             (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="gck-GckAttribute.html#gck-attribute-get-string" title="gck_attribute_get_string ()">gck_attribute_get_string</a>            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-get-date" title="gck_attribute_get_date ()">gck_attribute_get_date</a>              (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *value</code></em>);
<a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      <a class="link" href="gck-GckAttribute.html#gck-attribute-dup" title="gck_attribute_dup ()">gck_attribute_dup</a>                   (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()">gck_attribute_clear</a>                 (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()">gck_attribute_free</a>                  (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gck-GckAttribute.html#gck-attribute-dump" title="gck_attribute_dump ()">gck_attribute_dump</a>                  (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gck-GckAttribute.html#gck-attribute-equal" title="gck_attribute_equal ()">gck_attribute_equal</a>                 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> a</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> b</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gck-GckAttribute.description"></a><h2>Description</h2>
<p>
This structure represents a PKCS11 CK_ATTRIBUTE. These attributes contain information
about a PKCS11 object. Use <a class="link" href="gck-GckObject.html#gck-object-get" title="gck_object_get ()"><code class="function">gck_object_get()</code></a> or <a class="link" href="gck-GckObject.html#gck-object-set" title="gck_object_set ()"><code class="function">gck_object_set()</code></a> to set and retrieve
attributes on an object.
</p>
</div>
<div class="refsect1">
<a name="gck-GckAttribute.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GckAttribute"></a><h3>GckAttribute</h3>
<pre class="programlisting">typedef struct {
	gulong type;
	gconstpointer value;
	gulong length;
} GckAttribute;
</pre>
<p>
This structure represents a PKCS11 CK_ATTRIBUTE.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> <em class="structfield"><code><a name="GckAttribute.type"></a>type</code></em>;</span></p></td>
<td>The attribute type, such as CKA_LABEL.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> <em class="structfield"><code><a name="GckAttribute.value"></a>value</code></em>;</span></p></td>
<td>The value of the attribute. May be NULL.</td>
</tr>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> <em class="structfield"><code><a name="GckAttribute.length"></a>length</code></em>;</span></p></td>
<td>The length of the attribute. May be G_MAXULONG if the attribute is invalid.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init"></a><h3>gck_attribute_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init                  (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> value</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> length</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute. This copies the value memory
into an internal buffer.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The raw value of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>The length of the raw value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-invalid"></a><h3>gck_attribute_init_invalid ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_invalid          (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to an 'invalid' or 'not found'
state. Specifically this sets the value length to (CK_ULONG)-1
as specified in the PKCS#11 specification.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-empty"></a><h3>gck_attribute_init_empty ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_empty            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to an empty state. The attribute
type will be set, but no data will be set.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-boolean"></a><h3>gck_attribute_init_boolean ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_boolean          (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to boolean. This will result
in a CK_BBOOL attribute from the PKCS#11 specs.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The boolean value of the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-date"></a><h3>gck_attribute_init_date ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_date             (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to a date. This will result
in a CK_DATE attribute from the PKCS#11 specs.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The date value of the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-ulong"></a><h3>gck_attribute_init_ulong ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_ulong            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to a unsigned long. This will result
in a CK_ULONG attribute from the PKCS#11 specs.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The ulong value of the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-string"></a><h3>gck_attribute_init_string ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_string           (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to a string. This will result
in an attribute containing the text, but not the null terminator.
The text in the attribute will be of the same encoding as you pass
to this function.
</p>
<p>
When done with the attribute you should use <a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a>
to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The null terminated string value of the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-init-copy"></a><h3>gck_attribute_init_copy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_init_copy             (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *dest</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *src</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute as a copy of another attribute.
This copies the value memory as well.
</p>
<p>
When done with the copied attribute you should use
<a class="link" href="gck-GckAttribute.html#gck-attribute-clear" title="gck_attribute_clear ()"><code class="function">gck_attribute_clear()</code></a> to free the internal memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>An uninitialized attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
<td>An attribute to copy.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new"></a><h3>gck_attribute_new ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new                   (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> value</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> length</code></em>);</pre>
<p>
Create a new PKCS#11 attribute. The value will be copied
into the new attribute.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The raw value of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>The length of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new-invalid"></a><h3>gck_attribute_new_invalid ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new_invalid           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);</pre>
<p>
Create a new PKCS#11 attribute as 'invalid' or 'not found'
state. Specifically this sets the value length to (CK_ULONG)-1
as specified in the PKCS#11 specification.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new-empty"></a><h3>gck_attribute_new_empty ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new_empty             (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>);</pre>
<p>
Create a new PKCS#11 attribute with empty data.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new-boolean"></a><h3>gck_attribute_new_boolean ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new_boolean           (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to boolean. This will result
in a CK_BBOOL attribute from the PKCS#11 specs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The boolean value of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new-date"></a><h3>gck_attribute_new_date ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new_date              (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to a date. This will result
in a CK_DATE attribute from the PKCS#11 specs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The date value of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new-ulong"></a><h3>gck_attribute_new_ulong ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new_ulong             (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to a unsigned long. This will result
in a CK_ULONG attribute from the PKCS#11 specs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The ulong value of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-new-string"></a><h3>gck_attribute_new_string ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_new_string            (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> attr_type</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Initialize a PKCS#11 attribute to a string. This will result
in an attribute containing the text, but not the null terminator.
The text in the attribute will be of the same encoding as you pass
to this function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr_type</code></em> :</span></p></td>
<td>The PKCS#11 attribute type to set on the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The null terminated string value of the attribute.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The new attribute. When done with the attribute use
<a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a> to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-is-invalid"></a><h3>gck_attribute_is_invalid ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gck_attribute_is_invalid            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Check if the PKCS#11 attribute represents 'invalid' or 'not found'
according to the PKCS#11 spec. That is, having length
of (CK_ULONG)-1.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute to check.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the attribute represents invalid or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-get-boolean"></a><h3>gck_attribute_get_boolean ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gck_attribute_get_boolean           (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Get the CK_BBOOL of a PKCS#11 attribute. No conversion
is performed. It is an error to pass an attribute to this
function unless you're know it's supposed to contain a
boolean value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute to retrieve value from.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The boolean value of the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-get-ulong"></a><h3>gck_attribute_get_ulong ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>              gck_attribute_get_ulong             (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Get the CK_ULONG value of a PKCS#11 attribute. No
conversion is performed. It is an error to pass an attribute
to this function unless you're know it's supposed to contain
a value of the right type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute to retrieve value from.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The ulong value of the attribute.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-get-string"></a><h3>gck_attribute_get_string ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             gck_attribute_get_string            (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Get the string value of a PKCS#11 attribute. No
conversion is performed. It is an error to pass an attribute
to this function unless you're know it's supposed to contain
a value of the right type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute to retrieve value from.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A null terminated string, to be freed with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>,
or NULL if the value contained a NULL string.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-get-date"></a><h3>gck_attribute_get_date ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_get_date              (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDate"><span class="type">GDate</span></a> *value</code></em>);</pre>
<p>
Get the CK_DATE of a PKCS#11 attribute. No
conversion is performed. It is an error to pass an attribute
to this function unless you're know it's supposed to contain
a value of the right type.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute to retrieve value from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The date value to fill in with the parsed date.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-dup"></a><h3>gck_attribute_dup ()</h3>
<pre class="programlisting"><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="returnvalue">GckAttribute</span></a> *      gck_attribute_dup                   (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Duplicate the PKCS#11 attribute. All value memory is
also copied.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute to duplicate.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The duplicated attribute. Use <a class="link" href="gck-GckAttribute.html#gck-attribute-free" title="gck_attribute_free ()"><code class="function">gck_attribute_free()</code></a>
to free it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-clear"></a><h3>gck_attribute_clear ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_clear                 (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Clear allocated memory held by a statically allocated attribute.
These are usually initialized with <a class="link" href="gck-GckAttribute.html#gck-attribute-init" title="gck_attribute_init ()"><code class="function">gck_attribute_init()</code></a> or a
similar function.
</p>
<p>
The type of the attribute will remain set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>Attribute to clear.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-free"></a><h3>gck_attribute_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_free                  (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Free an attribute and its allocated memory. These is usually
used with attributes that are allocated by <a class="link" href="gck-GckAttribute.html#gck-attribute-new" title="gck_attribute_new ()"><code class="function">gck_attribute_new()</code></a>
or a similar function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>Attribute to free.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-dump"></a><h3>gck_attribute_dump ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gck_attribute_dump                  (<em class="parameter"><code><a class="link" href="gck-GckAttribute.html#GckAttribute" title="GckAttribute"><span class="type">GckAttribute</span></a> *attr</code></em>);</pre>
<p>
Dump the specified attribute using <a href="/usr/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-printerr"><code class="function">g_printerr()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>The attribute</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gck-attribute-equal"></a><h3>gck_attribute_equal ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gck_attribute_equal                 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> a</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> b</code></em>);</pre>
<p>
Compare two attributes. Useful with <code class="code">GHashTable</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>First attribute to compare.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>Second attribute to compare.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the attributes are equal.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>