/usr/share/gtk-doc/html/gcr-3/GcrParser.html is in libgcr-3-doc 3.10.1-1.
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 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GcrParser</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Gcr Library Reference Manual">
<link rel="up" href="storage.html" title="Part V. Storage">
<link rel="prev" href="gcr-GcrImportInteraction.html" title="GcrImportInteraction">
<link rel="next" href="misc.html" title="Part VI. Miscellaneous">
<meta name="generator" content="GTK-Doc V1.19 (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="gcr-GcrImportInteraction.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="storage.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">Gcr Library Reference Manual</th>
<td><a accesskey="n" href="misc.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GcrParser.synopsis" class="shortcut">Top</a>
|
<a href="#GcrParser.description" class="shortcut">Description</a>
|
<a href="#GcrParser.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GcrParser.properties" class="shortcut">Properties</a>
|
<a href="#GcrParser.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="GcrParser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GcrParser.top_of_page"></a>GcrParser</span></h2>
<p>GcrParser — Parser for certificate and key files</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GcrParser.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">#define <a class="link" href="GcrParser.html#GCR-DATA-ERROR:CAPS" title="GCR_DATA_ERROR">GCR_DATA_ERROR</a>
enum <a class="link" href="GcrParser.html#GcrDataError" title="enum GcrDataError">GcrDataError</a>;
enum <a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat">GcrDataFormat</a>;
struct <a class="link" href="GcrParser.html#GcrParser-struct" title="struct GcrParser">GcrParser</a>;
struct <a class="link" href="GcrParser.html#GcrParserClass" title="struct GcrParserClass">GcrParserClass</a>;
<a class="link" href="GcrParser.html" title="GcrParser"><span class="returnvalue">GcrParser</span></a> * <a class="link" href="GcrParser.html#gcr-parser-new" title="gcr_parser_new ()">gcr_parser_new</a> (<em class="parameter"><code><span class="type">void</span></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="GcrParser.html#gcr-parser-parse-data" title="gcr_parser_parse_data ()">gcr_parser_parse_data</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *data</code></em>,
<em class="parameter"><code><span class="type">gsize</span> n_data</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</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="GcrParser.html#gcr-parser-parse-stream" title="gcr_parser_parse_stream ()">gcr_parser_parse_stream</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *input</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-parse-stream-async" title="gcr_parser_parse_stream_async ()">gcr_parser_parse_stream_async</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *input</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</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> user_data</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="GcrParser.html#gcr-parser-parse-stream-finish" title="gcr_parser_parse_stream_finish ()">gcr_parser_parse_stream_finish</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-format-enable" title="gcr_parser_format_enable ()">gcr_parser_format_enable</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-format-disable" title="gcr_parser_format_disable ()">gcr_parser_format_disable</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</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="GcrParser.html#gcr-parser-format-supported" title="gcr_parser_format_supported ()">gcr_parser_format_supported</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parser-add-password" title="gcr_parser_add_password ()">gcr_parser_add_password</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</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> *password</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed-label" title="gcr_parser_get_parsed_label ()">gcr_parser_get_parsed_label</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed-description" title="gcr_parser_get_parsed_description ()">gcr_parser_get_parsed_description</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
<span class="returnvalue">GckAttributes</span> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed-attributes" title="gcr_parser_get_parsed_attributes ()">gcr_parser_get_parsed_attributes</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed-block" title="gcr_parser_get_parsed_block ()">gcr_parser_get_parsed_block</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">gsize</span> *n_block</code></em>);
<a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="returnvalue">GcrDataFormat</span></a> <a class="link" href="GcrParser.html#gcr-parser-get-parsed-format" title="gcr_parser_get_parsed_format ()">gcr_parser_get_parsed_format</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
<a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed">GcrParsed</a>;
<a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="returnvalue">GcrParsed</span></a> * <a class="link" href="GcrParser.html#gcr-parsed-ref" title="gcr_parsed_ref ()">gcr_parsed_ref</a> (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GcrParser.html#gcr-parsed-unref" title="gcr_parsed_unref ()">gcr_parsed_unref</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> parsed</code></em>);
<span class="returnvalue">GckAttributes</span> * <a class="link" href="GcrParser.html#gcr-parsed-get-attributes" title="gcr_parsed_get_attributes ()">gcr_parsed_get_attributes</a> (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="GcrParser.html#gcr-parsed-get-data" title="gcr_parsed_get_data ()">gcr_parsed_get_data</a> (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>,
<em class="parameter"><code><span class="type">gsize</span> *n_data</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GcrParser.html#gcr-parsed-get-description" title="gcr_parsed_get_description ()">gcr_parsed_get_description</a> (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);
<a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="returnvalue">GcrDataFormat</span></a> <a class="link" href="GcrParser.html#gcr-parsed-get-format" title="gcr_parsed_get_format ()">gcr_parsed_get_format</a> (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GcrParser.html#gcr-parsed-get-label" title="gcr_parsed_get_label ()">gcr_parsed_get_label</a> (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);
<a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="returnvalue">GcrParsed</span></a> * <a class="link" href="GcrParser.html#gcr-parser-get-parsed" title="gcr_parser_get_parsed ()">gcr_parser_get_parsed</a> (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GcrParser.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----GcrParser
</pre>
</div>
<div class="refsect1">
<a name="GcrParser.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GcrParser.html#GcrParser--parsed-attributes" title='The "parsed-attributes" property'>parsed-attributes</a>" <span class="type">GckAttributes</span>* : Read
"<a class="link" href="GcrParser.html#GcrParser--parsed-description" title='The "parsed-description" property'>parsed-description</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
"<a class="link" href="GcrParser.html#GcrParser--parsed-label" title='The "parsed-label" property'>parsed-label</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read
</pre>
</div>
<div class="refsect1">
<a name="GcrParser.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="GcrParser.html#GcrParser-authenticate" title='The "authenticate" signal'>authenticate</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
"<a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'>parsed</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
</pre>
</div>
<div class="refsect1">
<a name="GcrParser.description"></a><h2>Description</h2>
<p>
A <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> can parse various certificate and key files such as OpenSSL
PEM files, DER encoded certifictes, PKCS#8 keys and so on. Each various
format is identified by a value in the <a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> enumeration.
</p>
<p>
In order to parse data, a new parser is created with <a class="link" href="GcrParser.html#gcr-parser-new" title="gcr_parser_new ()"><code class="function">gcr_parser_new()</code></a> and
then the <a class="link" href="GcrParser.html#GcrParser-authenticate" title='The "authenticate" signal'><span class="type">"authenticate"</span></a> and <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signals should be
connected to. Data is then fed to the parser via <a class="link" href="GcrParser.html#gcr-parser-parse-data" title="gcr_parser_parse_data ()"><code class="function">gcr_parser_parse_data()</code></a>
or <a class="link" href="GcrParser.html#gcr-parser-parse-stream" title="gcr_parser_parse_stream ()"><code class="function">gcr_parser_parse_stream()</code></a>.
</p>
<p>
During the <span class="type">"parsed"</span> signal the attributes that make up the currently
parsed item can be retrieved using the <a class="link" href="GcrParser.html#gcr-parser-get-parsed-attributes" title="gcr_parser_get_parsed_attributes ()"><code class="function">gcr_parser_get_parsed_attributes()</code></a>
function.
</p>
</div>
<div class="refsect1">
<a name="GcrParser.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GCR-DATA-ERROR:CAPS"></a><h3>GCR_DATA_ERROR</h3>
<pre class="programlisting">#define GCR_DATA_ERROR (gcr_data_error_get_domain ())
</pre>
<p>
A domain for data errors with codes from <a class="link" href="GcrParser.html#GcrDataError" title="enum GcrDataError"><span class="type">GcrDataError</span></a>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrDataError"></a><h3>enum GcrDataError</h3>
<pre class="programlisting">typedef enum {
GCR_ERROR_FAILURE = -1,
GCR_ERROR_UNRECOGNIZED = 1,
GCR_ERROR_CANCELLED = 2,
GCR_ERROR_LOCKED = 3
} GcrDataError;
</pre>
<p>
Values responding to error codes for parsing and serializing data.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="GCR-ERROR-FAILURE:CAPS"></a><span class="term"><code class="literal">GCR_ERROR_FAILURE</code></span></p></td>
<td>Failed to parse or serialize the data
</td>
</tr>
<tr>
<td><p><a name="GCR-ERROR-UNRECOGNIZED:CAPS"></a><span class="term"><code class="literal">GCR_ERROR_UNRECOGNIZED</code></span></p></td>
<td>The data was unrecognized or unsupported
</td>
</tr>
<tr>
<td><p><a name="GCR-ERROR-CANCELLED:CAPS"></a><span class="term"><code class="literal">GCR_ERROR_CANCELLED</code></span></p></td>
<td>The operation was cancelled
</td>
</tr>
<tr>
<td><p><a name="GCR-ERROR-LOCKED:CAPS"></a><span class="term"><code class="literal">GCR_ERROR_LOCKED</code></span></p></td>
<td>The data was encrypted or locked and could not be unlocked.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GcrDataFormat"></a><h3>enum GcrDataFormat</h3>
<pre class="programlisting">typedef enum {
GCR_FORMAT_ALL = -1,
GCR_FORMAT_INVALID = 0,
GCR_FORMAT_DER_PRIVATE_KEY = 100,
GCR_FORMAT_DER_PRIVATE_KEY_RSA,
GCR_FORMAT_DER_PRIVATE_KEY_DSA,
GCR_FORMAT_DER_SUBJECT_PUBLIC_KEY = 150,
GCR_FORMAT_DER_CERTIFICATE_X509 = 200,
GCR_FORMAT_DER_PKCS7 = 300,
GCR_FORMAT_DER_PKCS8 = 400,
GCR_FORMAT_DER_PKCS8_PLAIN,
GCR_FORMAT_DER_PKCS8_ENCRYPTED,
GCR_FORMAT_DER_PKCS10 = 450,
GCR_FORMAT_DER_SPKAC = 455,
GCR_FORMAT_BASE64_SPKAC,
GCR_FORMAT_DER_PKCS12 = 500,
GCR_FORMAT_OPENSSH_PUBLIC = 600,
GCR_FORMAT_OPENPGP_PACKET = 700,
GCR_FORMAT_OPENPGP_ARMOR,
GCR_FORMAT_PEM = 1000,
GCR_FORMAT_PEM_PRIVATE_KEY_RSA,
GCR_FORMAT_PEM_PRIVATE_KEY_DSA,
GCR_FORMAT_PEM_CERTIFICATE_X509,
GCR_FORMAT_PEM_PKCS7,
GCR_FORMAT_PEM_PKCS8_PLAIN,
GCR_FORMAT_PEM_PKCS8_ENCRYPTED,
GCR_FORMAT_PEM_PKCS12,
GCR_FORMAT_PEM_PRIVATE_KEY,
GCR_FORMAT_PEM_PKCS10,
} GcrDataFormat;
</pre>
<p>
The various format identifiers.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="GCR-FORMAT-ALL:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_ALL</code></span></p></td>
<td>Represents all the formats, when enabling or disabling
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-INVALID:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_INVALID</code></span></p></td>
<td>Not a valid format
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PRIVATE-KEY:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PRIVATE_KEY</code></span></p></td>
<td>DER encoded private key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PRIVATE-KEY-RSA:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PRIVATE_KEY_RSA</code></span></p></td>
<td>DER encoded RSA private key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PRIVATE-KEY-DSA:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PRIVATE_KEY_DSA</code></span></p></td>
<td>DER encoded DSA private key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-SUBJECT-PUBLIC-KEY:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_SUBJECT_PUBLIC_KEY</code></span></p></td>
<td>DER encoded SubjectPublicKeyInfo
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-CERTIFICATE-X509:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_CERTIFICATE_X509</code></span></p></td>
<td>DER encoded X.509 certificate
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PKCS7:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PKCS7</code></span></p></td>
<td>DER encoded PKCS#7 container file which can contain certificates
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PKCS8:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PKCS8</code></span></p></td>
<td>DER encoded PKCS#8 file which can contain a key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PKCS8-PLAIN:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PKCS8_PLAIN</code></span></p></td>
<td>Unencrypted DER encoded PKCS#8 file which can contain a key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PKCS8-ENCRYPTED:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PKCS8_ENCRYPTED</code></span></p></td>
<td>Encrypted DER encoded PKCS#8 file which can contain a key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PKCS10:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PKCS10</code></span></p></td>
<td>DER encoded PKCS#10 certificate request file
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-SPKAC:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_SPKAC</code></span></p></td>
<td>DER encoded SPKAC as generated by HTML5 keygen element
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-BASE64-SPKAC:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_BASE64_SPKAC</code></span></p></td>
<td>OpenSSL style SPKAC data
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-DER-PKCS12:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_DER_PKCS12</code></span></p></td>
<td>DER encoded PKCS#12 file which can contain certificates and/or keys
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-OPENSSH-PUBLIC:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_OPENSSH_PUBLIC</code></span></p></td>
<td>OpenSSH v1 or v2 public key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-OPENPGP-PACKET:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_OPENPGP_PACKET</code></span></p></td>
<td>OpenPGP key packet(s)
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-OPENPGP-ARMOR:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_OPENPGP_ARMOR</code></span></p></td>
<td>OpenPGP public or private key armor encoded data
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM</code></span></p></td>
<td>An OpenSSL style PEM file with unspecified contents
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PRIVATE-KEY-RSA:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PRIVATE_KEY_RSA</code></span></p></td>
<td>An OpenSSL style PEM file with a private RSA key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PRIVATE-KEY-DSA:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PRIVATE_KEY_DSA</code></span></p></td>
<td>An OpenSSL style PEM file with a private DSA key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-CERTIFICATE-X509:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_CERTIFICATE_X509</code></span></p></td>
<td>An OpenSSL style PEM file with an X.509 certificate
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PKCS7:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PKCS7</code></span></p></td>
<td>An OpenSSL style PEM file containing PKCS#7
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PKCS8-PLAIN:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PKCS8_PLAIN</code></span></p></td>
<td>Unencrypted OpenSSL style PEM file containing PKCS#8
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PKCS8-ENCRYPTED:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PKCS8_ENCRYPTED</code></span></p></td>
<td>Encrypted OpenSSL style PEM file containing PKCS#8
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PKCS12:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PKCS12</code></span></p></td>
<td>An OpenSSL style PEM file containing PKCS#12
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PRIVATE-KEY:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PRIVATE_KEY</code></span></p></td>
<td>An OpenSSL style PEM file with a private key
</td>
</tr>
<tr>
<td><p><a name="GCR-FORMAT-PEM-PKCS10:CAPS"></a><span class="term"><code class="literal">GCR_FORMAT_PEM_PKCS10</code></span></p></td>
<td>An OpenSSL style PEM file containing PKCS#10
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GcrParser-struct"></a><h3>struct GcrParser</h3>
<pre class="programlisting">struct GcrParser;</pre>
<p>
A parser for parsing various types of files or data.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrParserClass"></a><h3>struct GcrParserClass</h3>
<pre class="programlisting">struct GcrParserClass {
GObjectClass parent_class;
/* signals --------------------------------------------------------- */
/* A callback for each password needed */
gboolean (*authenticate) (GcrParser *self, gint count);
void (*parsed) (GcrParser *self);
};
</pre>
<p>
The class for <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="GcrParserClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>The parent class</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GcrParserClass.authenticate"></a>authenticate</code></em> ()</span></p></td>
<td>The default handler for the authenticate signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GcrParserClass.parsed"></a>parsed</code></em> ()</span></p></td>
<td>The default handler for the parsed signal.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-new"></a><h3>gcr_parser_new ()</h3>
<pre class="programlisting"><a class="link" href="GcrParser.html" title="GcrParser"><span class="returnvalue">GcrParser</span></a> * gcr_parser_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Create a new <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-parse-data"></a><h3>gcr_parser_parse_data ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gcr_parser_parse_data (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *data</code></em>,
<em class="parameter"><code><span class="type">gsize</span> n_data</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Parse the data. The <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> and <a class="link" href="GcrParser.html#GcrParser-authenticate" title='The "authenticate" signal'><span class="type">"authenticate"</span></a> signals
may fire during the parsing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>the data to parse. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_data]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_data</code></em> :</span></p></td>
<td>The length of the data</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>A location to raise an error on failure.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the data was parsed successfully or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-parse-stream"></a><h3>gcr_parser_parse_stream ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gcr_parser_parse_stream (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *input</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Parse items from the data in a <a href="/usr/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a>. This function may block while
reading from the input stream. Use <a class="link" href="GcrParser.html#gcr-parser-parse-stream-async" title="gcr_parser_parse_stream_async ()"><code class="function">gcr_parser_parse_stream_async()</code></a> for
a non-blocking variant.
</p>
<p>
The <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> and <a class="link" href="GcrParser.html#GcrParser-authenticate" title='The "authenticate" signal'><span class="type">"authenticate"</span></a> signals
may fire during the parsing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>The input stream</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>An optional cancellation object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>A location to raise an error on failure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the parsing completed successfully or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-parse-stream-async"></a><h3>gcr_parser_parse_stream_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parser_parse_stream_async (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *input</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</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> user_data</code></em>);</pre>
<p>
Parse items from the data in a <a href="/usr/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a>. This function completes
asyncronously and doesn't block.
</p>
<p>
The <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> and <a class="link" href="GcrParser.html#GcrParser-authenticate" title='The "authenticate" signal'><span class="type">"authenticate"</span></a> signals
may fire during the parsing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>The input stream</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>An optional cancellation object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>Called when the operation result is ready.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>Data to pass to callback</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-parse-stream-finish"></a><h3>gcr_parser_parse_stream_finish ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gcr_parser_parse_stream_finish (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Complete an operation to parse a stream.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>The operation result</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>A location to raise an error on failure</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the parsing completed successfully or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-format-enable"></a><h3>gcr_parser_format_enable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parser_format_enable (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);</pre>
<p>
Enable parsing of the given format. Use <a class="link" href="GcrParser.html#GCR-FORMAT-ALL:CAPS"><code class="literal">GCR_FORMAT_ALL</code></a> to enable all the formats.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>The format identifier</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-format-disable"></a><h3>gcr_parser_format_disable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parser_format_disable (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);</pre>
<p>
Disable parsing of the given format. Use <a class="link" href="GcrParser.html#GCR-FORMAT-ALL:CAPS"><code class="literal">GCR_FORMAT_ALL</code></a> to disable all the formats.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>The format identifier</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-format-supported"></a><h3>gcr_parser_format_supported ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gcr_parser_format_supported (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="type">GcrDataFormat</span></a> format</code></em>);</pre>
<p>
Check whether the given format is supported by the parser.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>The format identifier</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the format is supported.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-add-password"></a><h3>gcr_parser_add_password ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parser_add_password (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</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> *password</code></em>);</pre>
<p>
Add a password to the set of passwords to try when parsing locked or encrypted
items. This is usually called from the <a class="link" href="GcrParser.html#GcrParser-authenticate" title='The "authenticate" signal'><span class="type">"authenticate"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td>
<td>a password to try. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-get-parsed-label"></a><h3>gcr_parser_get_parsed_label ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gcr_parser_get_parsed_label (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
<p>
Get the label of the currently parsed item. This is generally only valid
during the <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the label of the currently parsed item. The value is
owned by the parser and should not be freed. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-get-parsed-description"></a><h3>gcr_parser_get_parsed_description ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gcr_parser_get_parsed_description (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
<p>
Get a description for the type of the currently parsed item. This is generally
only valid during the <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the description for the current item; this is owned by
the parser and should not be freed. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-get-parsed-attributes"></a><h3>gcr_parser_get_parsed_attributes ()</h3>
<pre class="programlisting"><span class="returnvalue">GckAttributes</span> * gcr_parser_get_parsed_attributes (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
<p>
Get the attributes which make up the currently parsed item. This is generally
only valid during the <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>The parser</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the attributes for the current item,
which are owned by the parser and should not be freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-get-parsed-block"></a><h3>gcr_parser_get_parsed_block ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * gcr_parser_get_parsed_block (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">gsize</span> *n_block</code></em>);</pre>
<p>
Get the raw data block that represents this parsed object. This is only
valid during the <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_block</code></em> :</span></p></td>
<td>a location to place the size of the block</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the raw data
block of the currently parsed item; the value is owned by the parser
and should not be freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_block][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-get-parsed-format"></a><h3>gcr_parser_get_parsed_format ()</h3>
<pre class="programlisting"><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="returnvalue">GcrDataFormat</span></a> gcr_parser_get_parsed_format (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
<p>
Get the format of the raw data block that represents this parsed object.
This corresponds with the data returned from <a class="link" href="GcrParser.html#gcr-parser-get-parsed-block" title="gcr_parser_get_parsed_block ()"><code class="function">gcr_parser_get_parsed_block()</code></a>.
</p>
<p>
This is only valid during the <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a parser</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the data format of the currently parsed item</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GcrParsed"></a><h3>GcrParsed</h3>
<pre class="programlisting">typedef struct _GcrParsed GcrParsed;</pre>
<p>
A parsed item parsed by a <a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-ref"></a><h3>gcr_parsed_ref ()</h3>
<pre class="programlisting"><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="returnvalue">GcrParsed</span></a> * gcr_parsed_ref (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>
Add a reference to a parsed item. An item may not be shared across threads
until it has been referenced at least once.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the parsed item. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-unref"></a><h3>gcr_parsed_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gcr_parsed_unref (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> parsed</code></em>);</pre>
<p>
Unreferences a parsed item which was referenced with <a class="link" href="GcrParser.html#gcr-parsed-ref" title="gcr_parsed_ref ()"><code class="function">gcr_parsed_ref()</code></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-get-attributes"></a><h3>gcr_parsed_get_attributes ()</h3>
<pre class="programlisting"><span class="returnvalue">GckAttributes</span> * gcr_parsed_get_attributes (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>
Get the attributes which make up the parsed item.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the attributes for the item; these
are owned by the parsed item and should not be freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-get-data"></a><h3>gcr_parsed_get_data ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * gcr_parsed_get_data (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>,
<em class="parameter"><code><span class="type">gsize</span> *n_data</code></em>);</pre>
<p>
Get the raw data block for the parsed item.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_data</code></em> :</span></p></td>
<td>location to store size of returned data</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the raw data of
the parsed item, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_data][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-get-description"></a><h3>gcr_parsed_get_description ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gcr_parsed_get_description (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>
Get the descirption for a parsed item.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the description. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-get-format"></a><h3>gcr_parsed_get_format ()</h3>
<pre class="programlisting"><a class="link" href="GcrParser.html#GcrDataFormat" title="enum GcrDataFormat"><span class="returnvalue">GcrDataFormat</span></a> gcr_parsed_get_format (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>
Get the format of the parsed item.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the data format of the item</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parsed-get-label"></a><h3>gcr_parsed_get_label ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gcr_parsed_get_label (<em class="parameter"><code><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="type">GcrParsed</span></a> *parsed</code></em>);</pre>
<p>
Get the label for the parsed item.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parsed</code></em> :</span></p></td>
<td>a parsed item</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the label for the item. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gcr-parser-get-parsed"></a><h3>gcr_parser_get_parsed ()</h3>
<pre class="programlisting"><a class="link" href="GcrParser.html#GcrParsed" title="GcrParsed"><span class="returnvalue">GcrParsed</span></a> * gcr_parser_get_parsed (<em class="parameter"><code><a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self</code></em>);</pre>
<p>
Get the currently parsed item
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a parser</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the currently parsed item. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GcrParser.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GcrParser--parsed-attributes"></a><h3>The <code class="literal">"parsed-attributes"</code> property</h3>
<pre class="programlisting"> "parsed-attributes" <span class="type">GckAttributes</span>* : Read</pre>
<p>
Get the attributes that make up the currently parsed item. This is
generally only valid during a <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrParser--parsed-description"></a><h3>The <code class="literal">"parsed-description"</code> property</h3>
<pre class="programlisting"> "parsed-description" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
<p>
The description of the type of the currently parsed item. This is generally
only valid during a <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2">
<a name="GcrParser--parsed-label"></a><h3>The <code class="literal">"parsed-label"</code> property</h3>
<pre class="programlisting"> "parsed-label" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read</pre>
<p>
The label of the currently parsed item. This is generally
only valid during a <a class="link" href="GcrParser.html#GcrParser-parsed" title='The "parsed" signal'><span class="type">"parsed"</span></a> signal.
</p>
<p>Default value: ""</p>
</div>
</div>
<div class="refsect1">
<a name="GcrParser.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GcrParser-authenticate"></a><h3>The <code class="literal">"authenticate"</code> signal</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
This signal is emitted when an item needs to be unlocked or decrypted before
it can be parsed. The <em class="parameter"><code>count</code></em> argument specifies the number of times
the signal has been emitted for a given item. This can be used to
display a message saying the previous password was incorrect.
</p>
<p>
Typically the <a class="link" href="GcrParser.html#gcr-parser-add-password" title="gcr_parser_add_password ()"><code class="function">gcr_parser_add_password()</code></a> function is called in
response to this signal.
</p>
<p>
If <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned, then the authentication was not handled. If
no handlers return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> then the item is not parsed and an error
with the code <a class="link" href="GcrParser.html#GCR-ERROR-CANCELLED:CAPS"><code class="literal">GCR_ERROR_CANCELLED</code></a> will be raised.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>the number of times this item has been authenticated</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the authentication was handled.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GcrParser-parsed"></a><h3>The <code class="literal">"parsed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GcrParser.html" title="GcrParser"><span class="type">GcrParser</span></a> *self,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
This signal is emitted when an item is sucessfully parsed. To access
the information about the item use the <a class="link" href="GcrParser.html#gcr-parser-get-parsed-label" title="gcr_parser_get_parsed_label ()"><code class="function">gcr_parser_get_parsed_label()</code></a>,
<a class="link" href="GcrParser.html#gcr-parser-get-parsed-attributes" title="gcr_parser_get_parsed_attributes ()"><code class="function">gcr_parser_get_parsed_attributes()</code></a> and <a class="link" href="GcrParser.html#gcr-parser-get-parsed-description" title="gcr_parser_get_parsed_description ()"><code class="function">gcr_parser_get_parsed_description()</code></a>
functions.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the parser</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|