/usr/share/gir-1.0/Gcr-3.gir is in libgcr-3-dev 3.20.0-5.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 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0" version="1.2">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gck" version="1"/>
<package name="gcr-base-3"/>
<c:include name="gcr/gcr-base.h"/>
<namespace name="Gcr" version="3" shared-library="libgcr-base-3.so.1" c:identifier-prefixes="Gcr" c:symbol-prefixes="gcr">
<interface name="Certificate" c:symbol-prefix="certificate" c:type="GcrCertificate" glib:type-name="GcrCertificate" glib:get-type="gcr_certificate_get_type" glib:type-struct="CertificateIface">
<doc xml:space="preserve">An object which holds a certificate.</doc>
<prerequisite name="Comparable"/>
<function name="compare" c:identifier="gcr_certificate_compare">
<doc xml:space="preserve">Compare one certificate against another. If the certificates are equal
then zero is returned. If one certificate is %NULL or not a certificate,
then a non-zero value is returned.
The return value is useful in a stable sort, but has no user logical
meaning.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">zero if the certificates match, non-zero otherwise.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="first" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the certificate to compare</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
<parameter name="other" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the certificate to compare against</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
</parameters>
</function>
<function name="get_columns" c:identifier="gcr_certificate_get_columns" introspectable="0">
<doc xml:space="preserve">Get the columns appropriate for a certificate</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the columns</doc>
<type name="Column" c:type="const GcrColumn*"/>
</return-value>
</function>
<function name="mixin_class_init" c:identifier="gcr_certificate_mixin_class_init" introspectable="0">
<doc xml:space="preserve">Initialize the certificate mixin for the class. This mixin implements the
various required properties for the certificate.
Call this function near the end of your derived class_init function. The
derived class must implement the #GcrCertificate interface.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object_class" transfer-ownership="none">
<doc xml:space="preserve">The GObjectClass for this class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass*"/>
</parameter>
</parameters>
</function>
<function name="mixin_comparable_init" c:identifier="gcr_certificate_mixin_comparable_init" introspectable="0">
<doc xml:space="preserve">Initialize a #GcrComparableIface to compare the current certificate.
In general it's easier to use the GCR_CERTIFICATE_MIXIN_IMPLEMENT_COMPARABLE()
macro instead of this function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="iface" transfer-ownership="none">
<doc xml:space="preserve">The interface</doc>
<type name="ComparableIface" c:type="GcrComparableIface*"/>
</parameter>
</parameters>
</function>
<function name="mixin_get_property" c:identifier="gcr_certificate_mixin_get_property" introspectable="0">
<doc xml:space="preserve">Implementation to get various required certificate properties. This should
be called from your derived class get_property function, or used as a
get_property virtual function.
Example of use as called from derived class get_property function:
<informalexample><programlisting>
static void
my_get_property (GObject *obj, guint prop_id, GValue *value, GParamSpec *pspec)
{
switch (prop_id) {
...
default:
gcr_certificate_mixin_get_property (obj, prop_id, value, pspec);
break;
}
}
</programlisting></informalexample>
Example of use as get_property function:
<informalexample><programlisting>
static void
my_class_init (MyClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->get_property = gcr_certificate_mixin_get_property;
...
}
</programlisting></informalexample></doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="obj" transfer-ownership="none">
<doc xml:space="preserve">The object</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="prop_id" transfer-ownership="none">
<doc xml:space="preserve">The property id</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value to fill in.</doc>
<type name="GObject.Value" c:type="GValue*"/>
</parameter>
<parameter name="pspec" transfer-ownership="none">
<doc xml:space="preserve">The param specification.</doc>
<type name="GObject.ParamSpec" c:type="GParamSpec*"/>
</parameter>
</parameters>
</function>
<virtual-method invoker="get_der_data" name="get_der_data"><doc xml:space="preserve">Gets the raw DER data for an X.509 certificate.</doc><return-value transfer-ownership="none">
<doc xml:space="preserve">raw DER data of the X.509 certificate</doc>
<array length="0" zero-terminated="0" c:type="guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</return-value><parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="n_data" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">a pointer to a location to store the size of the resulting DER data.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters></virtual-method>
<method name="get_basic_constraints" c:identifier="gcr_certificate_get_basic_constraints">
<doc xml:space="preserve">Get the basic constraints for the certificate if present. If %FALSE is
returned then no basic constraints are present and the @is_ca and
@path_len arguments are not changed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether basic constraints are present or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the certificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="is_ca" direction="out" caller-allocates="0" transfer-ownership="full" optional="1" allow-none="1">
<doc xml:space="preserve">location to place a %TRUE if is an authority</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
<parameter name="path_len" direction="out" caller-allocates="0" transfer-ownership="full" optional="1" allow-none="1">
<doc xml:space="preserve">location to place the max path length</doc>
<type name="gint" c:type="gint*"/>
</parameter>
</parameters>
</method>
<method name="get_der_data" c:identifier="gcr_certificate_get_der_data">
<doc xml:space="preserve">Gets the raw DER data for an X.509 certificate.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">raw DER data of the X.509 certificate</doc>
<array length="0" zero-terminated="0" c:type="guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="n_data" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">a pointer to a location to store the size of the resulting DER data.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_expiry_date" c:identifier="gcr_certificate_get_expiry_date">
<doc xml:space="preserve">Get the expiry date of this certificate.
The #GDate returned should be freed by the caller using
g_date_free() when no longer required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">An allocated expiry date of this certificate.</doc>
<type name="GLib.Date" c:type="GDate*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_fingerprint" c:identifier="gcr_certificate_get_fingerprint">
<doc xml:space="preserve">Calculate the fingerprint for this certificate.
You can pass G_CHECKSUM_SHA1 or G_CHECKSUM_MD5 as the @type
parameter.
The caller should free the returned data using g_free() when
it is no longer required.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the raw binary fingerprint</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">the type of algorithm for the fingerprint.</doc>
<type name="GLib.ChecksumType" c:type="GChecksumType"/>
</parameter>
<parameter name="n_length" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">The length of the resulting fingerprint.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_fingerprint_hex" c:identifier="gcr_certificate_get_fingerprint_hex">
<doc xml:space="preserve">Calculate the fingerprint for this certificate, and return it
as a hex string.
You can pass G_CHECKSUM_SHA1 or G_CHECKSUM_MD5 as the @type
parameter.
The caller should free the returned data using g_free() when
it is no longer required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an allocated hex string which contains the fingerprint.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">the type of algorithm for the fingerprint.</doc>
<type name="GLib.ChecksumType" c:type="GChecksumType"/>
</parameter>
</parameters>
</method>
<method name="get_icon" c:identifier="gcr_certificate_get_icon" introspectable="0">
<doc xml:space="preserve">Get the icon for a certificate.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the icon for this certificate, which should be
released with g_object_unref()</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The certificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_issued_date" c:identifier="gcr_certificate_get_issued_date">
<doc xml:space="preserve">Get the issued date of this certificate.
The #GDate returned should be freed by the caller using
g_date_free() when no longer required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">An allocated issued date of this certificate.</doc>
<type name="GLib.Date" c:type="GDate*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_issuer_cn" c:identifier="gcr_certificate_get_issuer_cn">
<doc xml:space="preserve">Get the common name of the issuer of this certificate.
The string returned should be freed by the caller when no longer
required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">The allocated issuer CN, or NULL if no issuer CN present.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_issuer_dn" c:identifier="gcr_certificate_get_issuer_dn">
<doc xml:space="preserve">Get the full issuer DN of the certificate as a (mostly)
readable string.
The string returned should be freed by the caller when no longer
required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">The allocated issuer DN of the certificate.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_issuer_name" c:identifier="gcr_certificate_get_issuer_name">
<doc xml:space="preserve">Get a name to represent the issuer of this certificate.
This will try to lookup the common name, orianizational unit,
organization in that order.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the allocated issuer name, or NULL if no issuer name</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_issuer_part" c:identifier="gcr_certificate_get_issuer_part">
<doc xml:space="preserve">Get a part of the DN of the issuer of this certificate.
Examples of a @part might be the 'OU' (organizational unit)
or the 'CN' (common name). Only the value of that part
of the DN is returned.
The string returned should be freed by the caller when no longer
required.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">the allocated part of the issuer DN, or %NULL if no
such part is present</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="part" transfer-ownership="none">
<doc xml:space="preserve">a DN type string or OID.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_issuer_raw" c:identifier="gcr_certificate_get_issuer_raw">
<doc xml:space="preserve">Get the raw DER data for the issuer DN of the certificate.
The data should be freed by using g_free() when no longer required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">allocated memory containing
the raw issuer</doc>
<array length="0" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="n_data" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">The length of the returned data.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_key_size" c:identifier="gcr_certificate_get_key_size">
<doc xml:space="preserve">Get the key size in bits of the public key represented
by this certificate.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The key size of the certificate.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_markup_text" c:identifier="gcr_certificate_get_markup_text">
<doc xml:space="preserve">Calculate a GMarkup string for displaying this certificate.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the markup string</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a certificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_serial_number" c:identifier="gcr_certificate_get_serial_number">
<doc xml:space="preserve">Get the raw binary serial number of the certificate.
The caller should free the returned data using g_free() when
it is no longer required.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the raw binary serial number.</doc>
<array length="0" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="n_length" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">the length of the returned data.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_serial_number_hex" c:identifier="gcr_certificate_get_serial_number_hex">
<doc xml:space="preserve">Get the serial number of the certificate as a hex string.
The caller should free the returned data using g_free() when
it is no longer required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an allocated string containing the serial number as hex.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_subject_cn" c:identifier="gcr_certificate_get_subject_cn">
<doc xml:space="preserve">Get the common name of the subject of this certificate.
The string returned should be freed by the caller when no longer
required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">The allocated subject CN, or NULL if no subject CN present.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_subject_dn" c:identifier="gcr_certificate_get_subject_dn">
<doc xml:space="preserve">Get the full subject DN of the certificate as a (mostly)
readable string.
The string returned should be freed by the caller when no longer
required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">The allocated subject DN of the certificate.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_subject_name" c:identifier="gcr_certificate_get_subject_name">
<doc xml:space="preserve">Get a name to represent the subject of this certificate.
This will try to lookup the common name, orianizational unit,
organization in that order.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the allocated subject name, or NULL if no subject name</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_subject_part" c:identifier="gcr_certificate_get_subject_part">
<doc xml:space="preserve">Get a part of the DN of the subject of this certificate.
Examples of a @part might be the 'OU' (organizational unit)
or the 'CN' (common name). Only the value of that part
of the DN is returned.
The string returned should be freed by the caller when no longer
required.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">the allocated part of the subject DN, or %NULL if no
such part is present.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="part" transfer-ownership="none">
<doc xml:space="preserve">a DN type string or OID.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_subject_raw" c:identifier="gcr_certificate_get_subject_raw">
<doc xml:space="preserve">Get the raw DER data for the subject DN of the certificate.
The data should be freed by using g_free() when no longer required.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">allocated memory containing
the raw subject</doc>
<array length="0" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="n_data" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">The length of the returned data.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="is_issuer" c:identifier="gcr_certificate_is_issuer">
<doc xml:space="preserve">Check if @issuer could be the issuer of this certificate. This is done by
comparing the relevant subject and issuer fields. No signature check is
done. Proper verification of certificates must be done via a crypto
library.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether @issuer could be the issuer of the certificate.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
<parameter name="issuer" transfer-ownership="none">
<doc xml:space="preserve">a possible issuer #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</parameter>
</parameters>
</method>
<method name="mixin_emit_notify" c:identifier="gcr_certificate_mixin_emit_notify">
<doc xml:space="preserve">Implementers of the #GcrCertificate mixin should call this function to notify
when the certificate has changed to emit notifications on the various
properties.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</instance-parameter>
</parameters>
</method>
<property name="description" transfer-ownership="none">
<doc xml:space="preserve">A readable description for this certificate</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="expiry" transfer-ownership="none">
<doc xml:space="preserve">The expiry date of the certificate</doc>
<type name="GLib.Date"/>
</property>
<property name="icon" transfer-ownership="none">
<doc xml:space="preserve">An icon representing the certificate</doc>
<type name="Gio.Icon"/>
</property>
<property name="issuer" transfer-ownership="none">
<doc xml:space="preserve">Common name part of the certificate issuer</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="label" transfer-ownership="none">
<doc xml:space="preserve">A readable label for this certificate.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="markup" transfer-ownership="none">
<doc xml:space="preserve">GLib markup to describe the certificate</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="subject" transfer-ownership="none">
<doc xml:space="preserve">Common name part of the certificate subject</doc>
<type name="utf8" c:type="gchar*"/>
</property>
</interface>
<class name="CertificateChain" c:symbol-prefix="certificate_chain" c:type="GcrCertificateChain" parent="GObject.Object" glib:type-name="GcrCertificateChain" glib:get-type="gcr_certificate_chain_get_type" glib:type-struct="CertificateChainClass">
<doc xml:space="preserve">A chain of certificates.</doc>
<constructor name="new" c:identifier="gcr_certificate_chain_new">
<doc xml:space="preserve">Create a new #GcrCertificateChain.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated certificate chain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</return-value>
</constructor>
<method name="add" c:identifier="gcr_certificate_chain_add">
<doc xml:space="preserve">Add @certificate to the chain. The order of certificates in the chain are
important. The first certificate should be the endpoint certificate, and
then come the signers (certificate authorities) each in turn. If a root
certificate authority is present, it should come last.
Adding a certificate an already built chain (see
gcr_certificate_chain_build()) resets the type of the certificate chain
to %GCR_CERTIFICATE_CHAIN_UNKNOWN</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
<parameter name="certificate" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate to add to the chain</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</parameter>
</parameters>
</method>
<method name="build" c:identifier="gcr_certificate_chain_build" throws="1">
<doc xml:space="preserve">Complete a certificate chain. Once a certificate chain has been built
its status can be examined.
This operation will lookup missing certificates in PKCS\#11
modules and also that each certificate in the chain is the signer of the
previous one. If a trust anchor, pinned certificate, or self-signed certificate
is found, then the chain is considered built. Any extra certificates are
removed from the chain.
It's important to understand that building of a certificate chain does not
constitute verifying that chain. This is merely the first step towards
trust verification.
The @purpose is a string like %GCR_PURPOSE_CLIENT_AUTH and is the purpose
for which the certificate chain will be used. Trust anchors are looked up
for this purpose. This argument is required.
The @peer is usually the host name of the peer whith which this certificate
chain is being used. It is used to look up pinned certificates that have
been stored for this peer. If %NULL then no pinned certificates will
be considered.
If the %GCR_CERTIFICATE_CHAIN_NO_LOOKUPS flag is specified then no
lookups for anchors or pinned certificates are done, and the resulting chain
will be neither anchored or pinned. Additionally no missing certificate
authorities are looked up in PKCS\#11
This call will block, see gcr_certificate_chain_build_async() for the
asynchronous version.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the operation completed successfully</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
<parameter name="purpose" transfer-ownership="none">
<doc xml:space="preserve">the purpose the certificate chain will be used for</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="peer" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the peer the certificate chain will be used with, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">chain completion flags</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="build_async" c:identifier="gcr_certificate_chain_build_async">
<doc xml:space="preserve">Complete a certificate chain. Once a certificate chain has been built
its status can be examined.
This will lookup missing certificates in PKCS\#11
modules and also that each certificate in the chain is the signer of the
previous one. If a trust anchor, pinned certificate, or self-signed certificate
is found, then the chain is considered built. Any extra certificates are
removed from the chain.
It's important to understand that building of a certificate chain does not
constitute verifying that chain. This is merely the first step towards
trust verification.
The @purpose is a string like %GCR_PURPOSE_CLIENT_AUTH and is the purpose
for which the certificate chain will be used. Trust anchors are looked up
for this purpose. This argument is required.
The @peer is usually the host name of the peer whith which this certificate
chain is being used. It is used to look up pinned certificates that have
been stored for this peer. If %NULL then no pinned certificates will
be considered.
If the %GCR_CERTIFICATE_CHAIN_NO_LOOKUPS flag is specified then no
lookups for anchors or pinned certificates are done, and the resulting chain
will be neither anchored or pinned. Additionally no missing certificate
authorities are looked up in PKCS\#11
When the operation is finished, @callback will be called. You can then call
gcr_certificate_chain_build_finish() to get the result of the operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
<parameter name="purpose" transfer-ownership="none">
<doc xml:space="preserve">the purpose the certificate chain will be used for</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="peer" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the peer the certificate chain will be used with, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">chain completion flags</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="5">
<doc xml:space="preserve">this will be called when the operation completes.</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="build_finish" c:identifier="gcr_certificate_chain_build_finish" throws="1">
<doc xml:space="preserve">Finishes an asynchronous operation started by
gcr_certificate_chain_build_async().</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the operation succeeded</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the #GAsyncResult passed to the callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="get_anchor" c:identifier="gcr_certificate_chain_get_anchor">
<doc xml:space="preserve">If the certificate chain has been built and is of status
%GCR_CERTIFICATE_CHAIN_ANCHORED, then this will return the anchor
certificate that was found. This is not necessarily a root certificate
authority. If an intermediate certificate authority in the chain was
found to be anchored, then that certificate will be returned.
If an anchor is returned it does not mean that the certificate chain has
been verified, but merely that an anchor has been found.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the anchor certificate, or NULL if not anchored.</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_certificate" c:identifier="gcr_certificate_chain_get_certificate">
<doc xml:space="preserve">Get a certificate in the chain. It is an error to call this function
with an invalid index.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the certificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
<parameter name="index" transfer-ownership="none">
<doc xml:space="preserve">index of the certificate to get</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_endpoint" c:identifier="gcr_certificate_chain_get_endpoint">
<doc xml:space="preserve">Get the endpoint certificate in the chain. This is always the first
certificate in the chain. The endpoint certificate cannot be anchored.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the endpoint certificate, or %NULL if the chain
is empty</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_length" c:identifier="gcr_certificate_chain_get_length">
<doc xml:space="preserve">Get the length of the certificate chain.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the length of the certificate chain</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_status" c:identifier="gcr_certificate_chain_get_status">
<doc xml:space="preserve">Get the status of a certificate chain. If the certificate chain has not
been built, then the status will be %GCR_CERTIFICATE_CHAIN_UNKNOWN.
A status of %GCR_CERTIFICATE_CHAIN_ANCHORED does not mean that the
certificate chain has been verified, but merely that an anchor has been
found.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the status of the certificate chain.</doc>
<type name="CertificateChainStatus" c:type="GcrCertificateChainStatus"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #GcrCertificateChain</doc>
<type name="CertificateChain" c:type="GcrCertificateChain*"/>
</instance-parameter>
</parameters>
</method>
<property name="length" transfer-ownership="none">
<doc xml:space="preserve">The length of the certificate chain.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="status" introspectable="0" transfer-ownership="none">
<doc xml:space="preserve">The certificate chain status. See #GcrCertificateChainStatus</doc>
<type/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="CertificateChainPrivate" c:type="GcrCertificateChainPrivate*"/>
</field>
</class>
<record name="CertificateChainClass" c:type="GcrCertificateChainClass" glib:is-gtype-struct-for="CertificateChain">
<doc xml:space="preserve">The class for #GcrCertificateChain.</doc>
<field name="parent_class">
<doc xml:space="preserve">The parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<bitfield name="CertificateChainFlags" c:type="GcrCertificateChainFlags">
<doc xml:space="preserve">Flags to be used with the gcr_certificate_chain_build() operation.</doc>
<member name="none" value="0" c:identifier="GCR_CERTIFICATE_CHAIN_NONE">
<doc xml:space="preserve">no flags</doc>
</member>
<member name="no_lookups" value="1" c:identifier="GCR_CERTIFICATE_CHAIN_NO_LOOKUPS">
<doc xml:space="preserve">If this flag is specified then no
lookups for anchors or pinned certificates are done, and the resulting chain
will be neither anchored or pinned. Additionally no missing certificate
authorities are looked up in PKCS\#11.</doc>
</member>
</bitfield>
<record name="CertificateChainPrivate" c:type="GcrCertificateChainPrivate" disguised="1">
</record>
<enumeration name="CertificateChainStatus" c:type="GcrCertificateChainStatus">
<doc xml:space="preserve">The status of a built certificate chain. Will be set to
%GCR_CERTIFICATE_CHAIN_UNKNOWN for certificate chains that have not been
built.</doc>
<member name="unknown" value="0" c:identifier="GCR_CERTIFICATE_CHAIN_UNKNOWN">
<doc xml:space="preserve">The certificate chain's status is unknown.
When a chain is not yet built it has this status. If a chain is modified after
being built, it has this status.</doc>
</member>
<member name="incomplete" value="1" c:identifier="GCR_CERTIFICATE_CHAIN_INCOMPLETE">
<doc xml:space="preserve">A full chain could not be loaded. The
chain does not end with a self-signed certificate, a trusted anchor, or a
pinned certificate.</doc>
</member>
<member name="distrusted" value="2" c:identifier="GCR_CERTIFICATE_CHAIN_DISTRUSTED">
<doc xml:space="preserve">The certificate chain contains a revoked
or otherwise explicitly distrusted certificate. The entire chain should
be distrusted.</doc>
</member>
<member name="selfsigned" value="3" c:identifier="GCR_CERTIFICATE_CHAIN_SELFSIGNED">
<doc xml:space="preserve">The chain ends with a self-signed
certificate. No trust anchor was found.</doc>
</member>
<member name="pinned" value="4" c:identifier="GCR_CERTIFICATE_CHAIN_PINNED">
<doc xml:space="preserve">The chain represents a pinned certificate. A
pinned certificate is an exception which trusts a given certificate
explicitly for a purpose and communication with a certain peer.</doc>
</member>
<member name="anchored" value="5" c:identifier="GCR_CERTIFICATE_CHAIN_ANCHORED">
<doc xml:space="preserve">The chain ends with an anchored
certificate. The anchored certificate is not necessarily self-signed.</doc>
</member>
</enumeration>
<record name="CertificateIface" c:type="GcrCertificateIface" glib:is-gtype-struct-for="Certificate">
<doc xml:space="preserve">The interface that implementors of #GcrCertificate must implement.</doc>
<field name="parent">
<doc xml:space="preserve">the parent interface type</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="get_der_data">
<callback name="get_der_data">
<return-value transfer-ownership="none">
<type name="guint8" c:type="const guint8*"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<type name="Certificate" c:type="GcrCertificate*"/>
</parameter>
<parameter name="n_data" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="dummy1" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy2" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy3" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy5" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy6" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy7" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy8" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
</record>
<class name="CertificateRequest" c:symbol-prefix="certificate_request" c:type="GcrCertificateRequest" parent="GObject.Object" glib:type-name="GcrCertificateRequest" glib:get-type="gcr_certificate_request_get_type">
<doc xml:space="preserve">Represents a certificate request.</doc>
<function name="capable" c:identifier="gcr_certificate_request_capable" throws="1">
<doc xml:space="preserve">Check whether #GcrCertificateRequest is capable of creating a request
for the given @private_key.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether a request can be created</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="private_key" transfer-ownership="none">
<doc xml:space="preserve">a private key</doc>
<type name="Gck.Object" c:type="GckObject*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="capable_async" c:identifier="gcr_certificate_request_capable_async">
<doc xml:space="preserve">Asynchronously check whether #GcrCertificateRequest is capable of creating
a request for the given @private_key.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="private_key" transfer-ownership="none">
<doc xml:space="preserve">a private key</doc>
<type name="Gck.Object" c:type="GckObject*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">will be called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to be passed to callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="capable_finish" c:identifier="gcr_certificate_request_capable_finish" throws="1">
<doc xml:space="preserve">Get the result for asynchronously check whether #GcrCertificateRequest is
capable of creating a request for the given @private_key.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether a request can be created</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="prepare" c:identifier="gcr_certificate_request_prepare">
<doc xml:space="preserve">Create a new certificate request, in the given format for the private key.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GcrCertificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</return-value>
<parameters>
<parameter name="format" transfer-ownership="none">
<doc xml:space="preserve">the format for the certificate request</doc>
<type name="CertificateRequestFormat" c:type="GcrCertificateRequestFormat"/>
</parameter>
<parameter name="private_key" transfer-ownership="none">
<doc xml:space="preserve">the private key the the certificate is being requested for</doc>
<type name="Gck.Object" c:type="GckObject*"/>
</parameter>
</parameters>
</function>
<method name="complete" c:identifier="gcr_certificate_request_complete" throws="1">
<doc xml:space="preserve">Complete and sign a certificate request, so that it can be encoded
and sent to a certificate authority.
This call may block as it signs the request using the private key.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether certificate request was successfully completed or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="complete_async" c:identifier="gcr_certificate_request_complete_async">
<doc xml:space="preserve">Asynchronously complete and sign a certificate request, so that it can
be encoded and sent to a certificate authority.
This call will return immediately and complete later.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="complete_finish" c:identifier="gcr_certificate_request_complete_finish" throws="1">
<doc xml:space="preserve">Finish an asynchronous operation to complete and sign a certificate
request.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether certificate request was successfully completed or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">result of the asynchronous operation</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="encode" c:identifier="gcr_certificate_request_encode">
<doc xml:space="preserve">Encode the certificate request. It must have been completed with
gcr_certificate_request_complete() or gcr_certificate_request_complete_async()
If @textual is %FALSE, the output is a DER encoded certificate request.
If @textual is %TRUE, the output is encoded as text. For PKCS\#10 requests this
is done using the OpenSSL style PEM encoding.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the encoded certificate request</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
<parameter name="textual" transfer-ownership="none">
<doc xml:space="preserve">whether to encode output as text</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="length" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">location to place length of returned data</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_format" c:identifier="gcr_certificate_request_get_format">
<doc xml:space="preserve">Get the format of this certificate request.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the format</doc>
<type name="CertificateRequestFormat" c:type="GcrCertificateRequestFormat"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_private_key" c:identifier="gcr_certificate_request_get_private_key">
<doc xml:space="preserve">Get the private key this certificate request is for.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the private key,</doc>
<type name="Gck.Object" c:type="GckObject*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_cn" c:identifier="gcr_certificate_request_set_cn">
<doc xml:space="preserve">Set the common name encoded in the certificate request.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the certificate request</doc>
<type name="CertificateRequest" c:type="GcrCertificateRequest*"/>
</instance-parameter>
<parameter name="cn" transfer-ownership="none">
<doc xml:space="preserve">common name to set on the request</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<property name="format" introspectable="0" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The format of the certificate request.</doc>
<type/>
</property>
<property name="private-key" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The private key that this certificate request is for.</doc>
<type name="Gck.Object"/>
</property>
</class>
<enumeration name="CertificateRequestFormat" c:type="GcrCertificateRequestFormat">
<doc xml:space="preserve">The format of a certificate request. Currently only PKCS\#10 is supported.</doc>
<member name="certificate_request_pkcs10" value="1" c:identifier="GCR_CERTIFICATE_REQUEST_PKCS10">
<doc xml:space="preserve">certificate request is in PKCS\#10 format</doc>
</member>
</enumeration>
<interface name="Collection" c:symbol-prefix="collection" c:type="GcrCollection" glib:type-name="GcrCollection" glib:get-type="gcr_collection_get_type" glib:type-struct="CollectionIface">
<doc xml:space="preserve">A #GcrCollection is used to group a set of objects.</doc>
<virtual-method name="added">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="contains" invoker="contains">
<doc xml:space="preserve">Check whether the collection contains an object or not.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the collection contains this object</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">object to check</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="get_length" invoker="get_length">
<doc xml:space="preserve">Get the number of objects in this collection.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The number of objects.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
</parameters>
</virtual-method>
<virtual-method name="get_objects" invoker="get_objects">
<doc xml:space="preserve">Get a list of the objects in this collection.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">a list of the objects
in this collection, which should be freed with g_list_free()</doc>
<type name="GLib.List" c:type="GList*">
<type name="GObject.Object"/>
</type>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
</parameters>
</virtual-method>
<virtual-method name="removed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</virtual-method>
<method name="contains" c:identifier="gcr_collection_contains">
<doc xml:space="preserve">Check whether the collection contains an object or not.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the collection contains this object</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">object to check</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</method>
<method name="emit_added" c:identifier="gcr_collection_emit_added">
<doc xml:space="preserve">Emit the #GcrCollection::added signal for the given object. This function
is used by implementors of this interface.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">The object that was added</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</method>
<method name="emit_removed" c:identifier="gcr_collection_emit_removed">
<doc xml:space="preserve">Emit the #GcrCollection::removed signal for the given object. This function
is used by implementors of this interface.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">The object that was removed</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</method>
<method name="get_length" c:identifier="gcr_collection_get_length">
<doc xml:space="preserve">Get the number of objects in this collection.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">The number of objects.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_objects" c:identifier="gcr_collection_get_objects">
<doc xml:space="preserve">Get a list of the objects in this collection.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">a list of the objects
in this collection, which should be freed with g_list_free()</doc>
<type name="GLib.List" c:type="GList*">
<type name="GObject.Object"/>
</type>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</instance-parameter>
</parameters>
</method>
<glib:signal name="added" when="last">
<doc xml:space="preserve">This signal is emitted when an object is added to the collection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">object that was added</doc>
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="removed" when="last">
<doc xml:space="preserve">This signal is emitted when an object is removed from the collection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">object that was removed</doc>
<type name="GObject.Object"/>
</parameter>
</parameters>
</glib:signal>
</interface>
<record name="CollectionIface" c:type="GcrCollectionIface" glib:is-gtype-struct-for="Collection">
<field name="parent">
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="added">
<callback name="added">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="removed">
<callback name="removed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
<parameter name="object" transfer-ownership="none">
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="get_length">
<callback name="get_length">
<return-value transfer-ownership="none">
<doc xml:space="preserve">The number of objects.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="get_objects">
<callback name="get_objects">
<return-value transfer-ownership="container">
<doc xml:space="preserve">a list of the objects
in this collection, which should be freed with g_list_free()</doc>
<type name="GLib.List" c:type="GList*">
<type name="GObject.Object"/>
</type>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="contains">
<callback name="contains">
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the collection contains this object</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">object to check</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="dummy1" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy2" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy3" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy5" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy6" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy7" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="dummy8" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
</record>
<record name="Column" c:type="GcrColumn">
<field name="property_name" writable="1">
<type name="utf8" c:type="const gchar*"/>
</field>
<field name="property_type" writable="1">
<type name="GType" c:type="GType"/>
</field>
<field name="column_type" writable="1">
<type name="GType" c:type="GType"/>
</field>
<field name="label" writable="1">
<type name="utf8" c:type="const gchar*"/>
</field>
<field name="flags" writable="1">
<type name="ColumnFlags" c:type="GcrColumnFlags"/>
</field>
<field name="transformer" writable="1">
<type name="GObject.ValueTransform" c:type="GValueTransform"/>
</field>
<field name="user_data" writable="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="reserved" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
</record>
<bitfield name="ColumnFlags" c:type="GcrColumnFlags">
<member name="none" value="0" c:identifier="GCR_COLUMN_NONE">
</member>
<member name="hidden" value="2" c:identifier="GCR_COLUMN_HIDDEN">
</member>
<member name="sortable" value="4" c:identifier="GCR_COLUMN_SORTABLE">
</member>
</bitfield>
<interface name="Comparable" c:symbol-prefix="comparable" c:type="GcrComparable" glib:type-name="GcrComparable" glib:get-type="gcr_comparable_get_type" glib:type-struct="ComparableIface">
<doc xml:space="preserve">The #GcrComparable interface is implemented by comparable objects.</doc>
<function name="memcmp" c:identifier="gcr_comparable_memcmp" introspectable="0">
<doc xml:space="preserve">Compare two blocks of memory. The return value can be used to sort
the blocks of memory.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Zero if the blocks are identical, negative if first
less than secend, possitive otherwise.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="mem1" transfer-ownership="none">
<doc xml:space="preserve">First block of memory</doc>
<array length="1" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="size1" transfer-ownership="none">
<doc xml:space="preserve">Length of first block</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="mem2" transfer-ownership="none">
<doc xml:space="preserve">Second block of memory</doc>
<array length="3" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="size2" transfer-ownership="none">
<doc xml:space="preserve">Length of second block</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</function>
<virtual-method name="compare" invoker="compare">
<doc xml:space="preserve">Compare whether two objects represent the same thing. The return value can
also be used to sort the objects.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Zero if the two objects represent the same thing, non-zero if not.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The comparable object</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</instance-parameter>
<parameter name="other" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">Another comparable object</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
</parameters>
</virtual-method>
<method name="compare" c:identifier="gcr_comparable_compare">
<doc xml:space="preserve">Compare whether two objects represent the same thing. The return value can
also be used to sort the objects.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Zero if the two objects represent the same thing, non-zero if not.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The comparable object</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</instance-parameter>
<parameter name="other" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">Another comparable object</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
</parameters>
</method>
</interface>
<record name="ComparableIface" c:type="GcrComparableIface" glib:is-gtype-struct-for="Comparable">
<doc xml:space="preserve">The interface to implement for #GcrComparable</doc>
<field name="parent">
<doc xml:space="preserve">type interface</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="compare">
<callback name="compare">
<return-value transfer-ownership="none">
<doc xml:space="preserve">Zero if the two objects represent the same thing, non-zero if not.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The comparable object</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
<parameter name="other" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">Another comparable object</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<enumeration name="DataError" c:type="GcrDataError">
<doc xml:space="preserve">Values responding to error codes for parsing and serializing data.</doc>
<member name="failure" value="-1" c:identifier="GCR_ERROR_FAILURE">
<doc xml:space="preserve">Failed to parse or serialize the data</doc>
</member>
<member name="unrecognized" value="1" c:identifier="GCR_ERROR_UNRECOGNIZED">
<doc xml:space="preserve">The data was unrecognized or unsupported</doc>
</member>
<member name="cancelled" value="2" c:identifier="GCR_ERROR_CANCELLED">
<doc xml:space="preserve">The operation was cancelled</doc>
</member>
<member name="locked" value="3" c:identifier="GCR_ERROR_LOCKED">
<doc xml:space="preserve">The data was encrypted or locked and could not be unlocked.</doc>
</member>
</enumeration>
<enumeration name="DataFormat" c:type="GcrDataFormat">
<doc xml:space="preserve">The various format identifiers.</doc>
<member name="all" value="-1" c:identifier="GCR_FORMAT_ALL">
<doc xml:space="preserve">Represents all the formats, when enabling or disabling</doc>
</member>
<member name="invalid" value="0" c:identifier="GCR_FORMAT_INVALID">
<doc xml:space="preserve">Not a valid format</doc>
</member>
<member name="der_private_key" value="100" c:identifier="GCR_FORMAT_DER_PRIVATE_KEY">
<doc xml:space="preserve">DER encoded private key</doc>
</member>
<member name="der_private_key_rsa" value="101" c:identifier="GCR_FORMAT_DER_PRIVATE_KEY_RSA">
<doc xml:space="preserve">DER encoded RSA private key</doc>
</member>
<member name="der_private_key_dsa" value="102" c:identifier="GCR_FORMAT_DER_PRIVATE_KEY_DSA">
<doc xml:space="preserve">DER encoded DSA private key</doc>
</member>
<member name="der_private_key_ec" value="103" c:identifier="GCR_FORMAT_DER_PRIVATE_KEY_EC">
<doc xml:space="preserve">DER encoded EC private key</doc>
</member>
<member name="der_subject_public_key" value="150" c:identifier="GCR_FORMAT_DER_SUBJECT_PUBLIC_KEY">
<doc xml:space="preserve">DER encoded SubjectPublicKeyInfo</doc>
</member>
<member name="der_certificate_x509" value="200" c:identifier="GCR_FORMAT_DER_CERTIFICATE_X509">
<doc xml:space="preserve">DER encoded X.509 certificate</doc>
</member>
<member name="der_pkcs7" value="300" c:identifier="GCR_FORMAT_DER_PKCS7">
<doc xml:space="preserve">DER encoded PKCS\#7 container file which can contain certificates</doc>
</member>
<member name="der_pkcs8" value="400" c:identifier="GCR_FORMAT_DER_PKCS8">
<doc xml:space="preserve">DER encoded PKCS\#8 file which can contain a key</doc>
</member>
<member name="der_pkcs8_plain" value="401" c:identifier="GCR_FORMAT_DER_PKCS8_PLAIN">
<doc xml:space="preserve">Unencrypted DER encoded PKCS\#8 file which can contain a key</doc>
</member>
<member name="der_pkcs8_encrypted" value="402" c:identifier="GCR_FORMAT_DER_PKCS8_ENCRYPTED">
<doc xml:space="preserve">Encrypted DER encoded PKCS\#8 file which can contain a key</doc>
</member>
<member name="der_pkcs10" value="450" c:identifier="GCR_FORMAT_DER_PKCS10">
<doc xml:space="preserve">DER encoded PKCS\#10 certificate request file</doc>
</member>
<member name="der_spkac" value="455" c:identifier="GCR_FORMAT_DER_SPKAC">
<doc xml:space="preserve">DER encoded SPKAC as generated by HTML5 keygen element</doc>
</member>
<member name="base64_spkac" value="456" c:identifier="GCR_FORMAT_BASE64_SPKAC">
<doc xml:space="preserve">OpenSSL style SPKAC data</doc>
</member>
<member name="der_pkcs12" value="500" c:identifier="GCR_FORMAT_DER_PKCS12">
<doc xml:space="preserve">DER encoded PKCS\#12 file which can contain certificates and/or keys</doc>
</member>
<member name="openssh_public" value="600" c:identifier="GCR_FORMAT_OPENSSH_PUBLIC">
<doc xml:space="preserve">OpenSSH v1 or v2 public key</doc>
</member>
<member name="openpgp_packet" value="700" c:identifier="GCR_FORMAT_OPENPGP_PACKET">
<doc xml:space="preserve">OpenPGP key packet(s)</doc>
</member>
<member name="openpgp_armor" value="701" c:identifier="GCR_FORMAT_OPENPGP_ARMOR">
<doc xml:space="preserve">OpenPGP public or private key armor encoded data</doc>
</member>
<member name="pem" value="1000" c:identifier="GCR_FORMAT_PEM">
<doc xml:space="preserve">An OpenSSL style PEM file with unspecified contents</doc>
</member>
<member name="pem_private_key_rsa" value="1001" c:identifier="GCR_FORMAT_PEM_PRIVATE_KEY_RSA">
<doc xml:space="preserve">An OpenSSL style PEM file with a private RSA key</doc>
</member>
<member name="pem_private_key_dsa" value="1002" c:identifier="GCR_FORMAT_PEM_PRIVATE_KEY_DSA">
<doc xml:space="preserve">An OpenSSL style PEM file with a private DSA key</doc>
</member>
<member name="pem_certificate_x509" value="1003" c:identifier="GCR_FORMAT_PEM_CERTIFICATE_X509">
<doc xml:space="preserve">An OpenSSL style PEM file with an X.509 certificate</doc>
</member>
<member name="pem_pkcs7" value="1004" c:identifier="GCR_FORMAT_PEM_PKCS7">
<doc xml:space="preserve">An OpenSSL style PEM file containing PKCS\#7</doc>
</member>
<member name="pem_pkcs8_plain" value="1005" c:identifier="GCR_FORMAT_PEM_PKCS8_PLAIN">
<doc xml:space="preserve">Unencrypted OpenSSL style PEM file containing PKCS\#8</doc>
</member>
<member name="pem_pkcs8_encrypted" value="1006" c:identifier="GCR_FORMAT_PEM_PKCS8_ENCRYPTED">
<doc xml:space="preserve">Encrypted OpenSSL style PEM file containing PKCS\#8</doc>
</member>
<member name="pem_pkcs12" value="1007" c:identifier="GCR_FORMAT_PEM_PKCS12">
<doc xml:space="preserve">An OpenSSL style PEM file containing PKCS\#12</doc>
</member>
<member name="pem_private_key" value="1008" c:identifier="GCR_FORMAT_PEM_PRIVATE_KEY">
<doc xml:space="preserve">An OpenSSL style PEM file with a private key</doc>
</member>
<member name="pem_pkcs10" value="1009" c:identifier="GCR_FORMAT_PEM_PKCS10">
<doc xml:space="preserve">An OpenSSL style PEM file containing PKCS\#10</doc>
</member>
<member name="pem_private_key_ec" value="1010" c:identifier="GCR_FORMAT_PEM_PRIVATE_KEY_EC">
<doc xml:space="preserve">An OpenSSL style PEM file with a private EC key</doc>
</member>
<member name="pem_public_key" value="1011" c:identifier="GCR_FORMAT_PEM_PUBLIC_KEY">
<doc xml:space="preserve">An OpenSSL style PEM file containing a SubjectPublicKeyInfo</doc>
</member>
</enumeration>
<class name="FilterCollection" c:symbol-prefix="filter_collection" c:type="GcrFilterCollection" parent="GObject.Object" glib:type-name="GcrFilterCollection" glib:get-type="gcr_filter_collection_get_type" glib:type-struct="FilterCollectionClass">
<doc xml:space="preserve">A filter implementation of #GcrCollection.</doc>
<implements name="Collection"/>
<constructor name="new_with_callback" c:identifier="gcr_filter_collection_new_with_callback">
<doc xml:space="preserve">Create a new #GcrFilterCollection.
The callback should return %TRUE if an object should appear in the
filtered collection.
If a %NULL callback is set, then all underlynig objects will appear in the
filtered collection.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated
filtered collection, which should be freed with g_object_unref()</doc>
<type name="FilterCollection" c:type="GcrCollection*"/>
</return-value>
<parameters>
<parameter name="underlying" transfer-ownership="none">
<doc xml:space="preserve">the underlying collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="notified" closure="2" destroy="3">
<doc xml:space="preserve">function to call for each object</doc>
<type name="FilterCollectionFunc" c:type="GcrFilterCollectionFunc"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="destroy_func" transfer-ownership="none" scope="async">
<doc xml:space="preserve">called for user_data when it is no longer needed</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</constructor>
<method name="get_underlying" c:identifier="gcr_filter_collection_get_underlying">
<doc xml:space="preserve">Get the collection that is being filtered by this filter collection.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the underlying collection</doc>
<type name="Collection" c:type="GcrCollection*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a filter collection</doc>
<type name="FilterCollection" c:type="GcrFilterCollection*"/>
</instance-parameter>
</parameters>
</method>
<method name="refilter" c:identifier="gcr_filter_collection_refilter">
<doc xml:space="preserve">Refilter all objects in the underlying collection. Call this function if
the filter callback function changes its filtering criteria.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a filter collection</doc>
<type name="FilterCollection" c:type="GcrFilterCollection*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_callback" c:identifier="gcr_filter_collection_set_callback">
<doc xml:space="preserve">Set the callback used to filter the objects in the underlying collection.
The callback should return %TRUE if an object should appear in the
filtered collection.
If a %NULL callback is set, then all underlynig objects will appear in the
filtered collection.
This will refilter the collection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a filter collection</doc>
<type name="FilterCollection" c:type="GcrFilterCollection*"/>
</instance-parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="notified" closure="1" destroy="2">
<doc xml:space="preserve">function to call for each object</doc>
<type name="FilterCollectionFunc" c:type="GcrFilterCollectionFunc"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="destroy_func" transfer-ownership="none" scope="async">
<doc xml:space="preserve">called for user_data when it is no longer needed</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</method>
<property name="underlying" writable="1" construct-only="1" transfer-ownership="none">
<type name="Collection"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="FilterCollectionPrivate" c:type="GcrFilterCollectionPrivate*"/>
</field>
</class>
<record name="FilterCollectionClass" c:type="GcrFilterCollectionClass" glib:is-gtype-struct-for="FilterCollection">
<doc xml:space="preserve">The class for #GcrFilterCollection.</doc>
<field name="parent_class">
<doc xml:space="preserve">the parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<callback name="FilterCollectionFunc" c:type="GcrFilterCollectionFunc">
<doc xml:space="preserve">A function which is called by #GcrFilterCollection in order to determine
whether an object should show through the filter or not.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if an object should be included in the filtered collection</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">object to filter</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="1">
<doc xml:space="preserve">user data passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<record name="FilterCollectionPrivate" c:type="GcrFilterCollectionPrivate" disguised="1">
</record>
<constant name="ICON_CERTIFICATE" value="application-certificate" c:type="GCR_ICON_CERTIFICATE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="ICON_GNUPG" value="gcr-gnupg" c:type="GCR_ICON_GNUPG">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="ICON_HOME_DIRECTORY" value="user-home" c:type="GCR_ICON_HOME_DIRECTORY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="ICON_KEY" value="gcr-key" c:type="GCR_ICON_KEY">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="ICON_KEY_PAIR" value="gcr-key-pair" c:type="GCR_ICON_KEY_PAIR">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="ICON_PASSWORD" value="gcr-password" c:type="GCR_ICON_PASSWORD">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="ICON_SMART_CARD" value="gcr-smart-card" c:type="GCR_ICON_SMART_CARD">
<type name="utf8" c:type="gchar*"/>
</constant>
<interface name="ImportInteraction" c:symbol-prefix="import_interaction" c:type="GcrImportInteraction" glib:type-name="GcrImportInteraction" glib:get-type="gcr_import_interaction_get_type" glib:type-struct="ImportInteractionIface">
<doc xml:space="preserve">Interface implemented by the caller performing an import.</doc>
<prerequisite name="Gio.TlsInteraction"/>
<virtual-method name="supplement" invoker="supplement" throws="1">
<doc xml:space="preserve">Supplement attributes before import. This means prompting the user for
things like labels and the like. The needed attributes will have been passed
to gcr_import_interaction_supplement_prep().
This method prompts the user and fills in the attributes. If the user or
cancellable cancels the operation the error should be set with %G_IO_ERROR_CANCELLED.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%G_TLS_INTERACTION_HANDLED if successful or %G_TLS_INTERACTION_FAILED</doc>
<type name="Gio.TlsInteractionResult" c:type="GTlsInteractionResult"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">supplemented attributes</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="supplement_async" invoker="supplement_async">
<doc xml:space="preserve">Asynchronously supplement attributes before import. This means prompting the
user for things like labels and the like. The needed attributes will have
been passed to gcr_import_interaction_supplement_prep().
This method prompts the user and fills in the attributes.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">supplemented attributes</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="3">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="supplement_finish" invoker="supplement_finish" throws="1">
<doc xml:space="preserve">Complete operation to asynchronously supplement attributes before import.
If the user or cancellable cancels the operation the error should be set
with %G_IO_ERROR_CANCELLED.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%G_TLS_INTERACTION_HANDLED if successful or %G_TLS_INTERACTION_FAILED</doc>
<type name="Gio.TlsInteractionResult" c:type="GTlsInteractionResult"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="supplement_prep" invoker="supplement_prep">
<doc xml:space="preserve">Prepare for supplementing the given attributes before import. This means
prompting the user for things like labels and the like. The attributes
will contain attributes for values that the importer needs, either empty
or prefilled with suggested values.
This method does not prompt the user, but rather just prepares the
interaction that these are the attributes that are needed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">attributes to supplement</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
</parameters>
</virtual-method>
<method name="supplement" c:identifier="gcr_import_interaction_supplement" throws="1">
<doc xml:space="preserve">Supplement attributes before import. This means prompting the user for
things like labels and the like. The needed attributes will have been passed
to gcr_import_interaction_supplement_prep().
This method prompts the user and fills in the attributes. If the user or
cancellable cancels the operation the error should be set with %G_IO_ERROR_CANCELLED.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%G_TLS_INTERACTION_HANDLED if successful or %G_TLS_INTERACTION_FAILED</doc>
<type name="Gio.TlsInteractionResult" c:type="GTlsInteractionResult"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">supplemented attributes</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="supplement_async" c:identifier="gcr_import_interaction_supplement_async">
<doc xml:space="preserve">Asynchronously supplement attributes before import. This means prompting the
user for things like labels and the like. The needed attributes will have
been passed to gcr_import_interaction_supplement_prep().
This method prompts the user and fills in the attributes.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">supplemented attributes</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="supplement_finish" c:identifier="gcr_import_interaction_supplement_finish" throws="1">
<doc xml:space="preserve">Complete operation to asynchronously supplement attributes before import.
If the user or cancellable cancels the operation the error should be set
with %G_IO_ERROR_CANCELLED.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%G_TLS_INTERACTION_HANDLED if successful or %G_TLS_INTERACTION_FAILED</doc>
<type name="Gio.TlsInteractionResult" c:type="GTlsInteractionResult"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="supplement_prep" c:identifier="gcr_import_interaction_supplement_prep">
<doc xml:space="preserve">Prepare for supplementing the given attributes before import. This means
prompting the user for things like labels and the like. The attributes
will contain attributes for values that the importer needs, either empty
or prefilled with suggested values.
This method does not prompt the user, but rather just prepares the
interaction that these are the attributes that are needed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</instance-parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">attributes to supplement</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
</parameters>
</method>
</interface>
<record name="ImportInteractionIface" c:type="GcrImportInteractionIface" glib:is-gtype-struct-for="ImportInteraction">
<doc xml:space="preserve">Interface implemented by implementations of #GcrImportInteraction.</doc>
<field name="parent">
<doc xml:space="preserve">parent interface</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="supplement_prep">
<callback name="supplement_prep">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">attributes to supplement</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="supplement">
<callback name="supplement" throws="1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%G_TLS_INTERACTION_HANDLED if successful or %G_TLS_INTERACTION_FAILED</doc>
<type name="Gio.TlsInteractionResult" c:type="GTlsInteractionResult"/>
</return-value>
<parameters>
<parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">supplemented attributes</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="supplement_async">
<callback name="supplement_async">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</parameter>
<parameter name="builder" transfer-ownership="none">
<doc xml:space="preserve">supplemented attributes</doc>
<type name="Gck.Builder" c:type="GckBuilder*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="4">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="4">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="supplement_finish">
<callback name="supplement_finish" throws="1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%G_TLS_INTERACTION_HANDLED if successful or %G_TLS_INTERACTION_FAILED</doc>
<type name="Gio.TlsInteractionResult" c:type="GTlsInteractionResult"/>
</return-value>
<parameters>
<parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction</doc>
<type name="ImportInteraction" c:type="GcrImportInteraction*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="6">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<interface name="Importer" c:symbol-prefix="importer" c:type="GcrImporter" glib:type-name="GcrImporter" glib:get-type="gcr_importer_get_type" glib:type-struct="ImporterIface">
<doc xml:space="preserve">Imports certificates and keys</doc>
<function name="create_for_parsed" c:identifier="gcr_importer_create_for_parsed">
<doc xml:space="preserve">Create a set of importers which can import this parsed item.
The parsed item is represented by the state of the GcrParser at the
time of calling this method.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of importers
which can import the parsed item, which should be freed with
g_object_unref(), or %NULL if no types of importers can be created</doc>
<type name="GLib.List" c:type="GList*">
<type name="Importer"/>
</type>
</return-value>
<parameters>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parser with a parsed item to import</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</function>
<function name="queue_and_filter_for_parsed" c:identifier="gcr_importer_queue_and_filter_for_parsed">
<doc xml:space="preserve">Queues an additional item to be imported in all compattible importers
in the set. The parsed item is represented by the state of the #GcrParser
at the time of calling this method.
If the parsed item is incompatible with an importer, then that the item
will not be queued on that importer.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new set of importers
that queued the item, which should be freed with gck_list_unref_free()</doc>
<type name="GLib.List" c:type="GList*">
<type name="Importer"/>
</type>
</return-value>
<parameters>
<parameter name="importers" transfer-ownership="none">
<doc xml:space="preserve">a set of importers</doc>
<type name="GLib.List" c:type="GList*">
<type name="Importer"/>
</type>
</parameter>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</function>
<function name="register" c:identifier="gcr_importer_register">
<doc xml:space="preserve">Register an importer to handle parsed items that match the given attributes.
If @attrs are a floating reference, then it is consumed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="importer_type" transfer-ownership="none">
<doc xml:space="preserve">the GType of the importer being registered</doc>
<type name="GType" c:type="GType"/>
</parameter>
<parameter name="attrs" transfer-ownership="none">
<doc xml:space="preserve">the attributes that this importer is compatible with</doc>
<type name="Gck.Attributes" c:type="GckAttributes*"/>
</parameter>
</parameters>
</function>
<function name="register_well_known" c:identifier="gcr_importer_register_well_known">
<doc xml:space="preserve">Register built-in PKCS\#11 and GnuPG importers.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<virtual-method name="import_async" invoker="import_async">
<doc xml:space="preserve">Import the queued items in the importer. This function returns immediately
and completes asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="2">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="import_finish" invoker="import_finish" throws="1">
<doc xml:space="preserve">Complete an asynchronous operation to import queued items.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the import succeeded or failed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">an asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="import_sync" throws="1">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="queue_for_parsed" invoker="queue_for_parsed">
<doc xml:space="preserve">Queues an additional item to be imported. The parsed item is represented
by the state of the #GcrParser at the time of calling this method.
If the parsed item is incompatible with the importer, then this will
fail and the item will not be queued.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the item was queued or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">an importer to add additional items to</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item to import</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</virtual-method>
<method name="get_interaction" c:identifier="gcr_importer_get_interaction">
<doc xml:space="preserve">Get the interaction used to prompt the user when needed by this
importer.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the interaction or %NULL</doc>
<type name="Gio.TlsInteraction" c:type="GTlsInteraction*"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
</parameters>
</method>
<method name="import" c:identifier="gcr_importer_import" throws="1">
<doc xml:space="preserve">Import the queued items in the importer. This call will block
until the operation completes.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the items were imported successfully or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="import_async" c:identifier="gcr_importer_import_async">
<doc xml:space="preserve">Import the queued items in the importer. This function returns immediately
and completes asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="import_finish" c:identifier="gcr_importer_import_finish" throws="1">
<doc xml:space="preserve">Complete an asynchronous operation to import queued items.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the import succeeded or failed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">an asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="queue_for_parsed" c:identifier="gcr_importer_queue_for_parsed">
<doc xml:space="preserve">Queues an additional item to be imported. The parsed item is represented
by the state of the #GcrParser at the time of calling this method.
If the parsed item is incompatible with the importer, then this will
fail and the item will not be queued.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the item was queued or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">an importer to add additional items to</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item to import</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</method>
<method name="set_interaction" c:identifier="gcr_importer_set_interaction">
<doc xml:space="preserve">Set the interaction used to prompt the user when needed by this
importer.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</instance-parameter>
<parameter name="interaction" transfer-ownership="none">
<doc xml:space="preserve">the interaction used by the importer</doc>
<type name="Gio.TlsInteraction" c:type="GTlsInteraction*"/>
</parameter>
</parameters>
</method>
<property name="icon" transfer-ownership="none">
<doc xml:space="preserve">The icon for the importer.</doc>
<type name="Gio.Icon"/>
</property>
<property name="interaction" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The interaction for the importer.</doc>
<type name="Gio.TlsInteraction"/>
</property>
<property name="label" transfer-ownership="none">
<doc xml:space="preserve">The label for the importer.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="uri" transfer-ownership="none">
<doc xml:space="preserve">The URI of the location imported to.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
</interface>
<record name="ImporterIface" c:type="GcrImporterIface" glib:is-gtype-struct-for="Importer">
<doc xml:space="preserve">Interface implemented for a #GcrImporter.</doc>
<field name="parent">
<doc xml:space="preserve">parent interface</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="create_for_parsed" introspectable="0">
<callback name="create_for_parsed" introspectable="0">
<return-value>
<type name="GLib.List" c:type="GList*">
<type name="gpointer" c:type="gpointer"/>
</type>
</return-value>
<parameters>
<parameter name="parsed" transfer-ownership="none">
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="queue_for_parsed">
<callback name="queue_for_parsed">
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the item was queued or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">an importer to add additional items to</doc>
<type name="Importer" c:type="GcrImporter*"/>
</parameter>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item to import</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="import_sync">
<callback name="import_sync" throws="1">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="importer" transfer-ownership="none">
<type name="Importer" c:type="GcrImporter*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="import_async">
<callback name="import_async">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="3">
<doc xml:space="preserve">data to be passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="import_finish">
<callback name="import_finish" throws="1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the import succeeded or failed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="importer" transfer-ownership="none">
<doc xml:space="preserve">the importer</doc>
<type name="Importer" c:type="GcrImporter*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">an asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="14">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<constant name="MAJOR_VERSION" value="3" c:type="GCR_MAJOR_VERSION">
<doc xml:space="preserve">The major version number of the Gcr library.</doc>
<type name="gint" c:type="gint"/>
</constant>
<constant name="MICRO_VERSION" value="0" c:type="GCR_MICRO_VERSION">
<doc xml:space="preserve">The micro version number of the Gcr library.</doc>
<type name="gint" c:type="gint"/>
</constant>
<constant name="MINOR_VERSION" value="20" c:type="GCR_MINOR_VERSION">
<doc xml:space="preserve">The minor version number of the Gcr library.</doc>
<type name="gint" c:type="gint"/>
</constant>
<record name="Parsed" c:type="GcrParsed" glib:type-name="GcrParsed" glib:get-type="gcr_parsed_get_type" c:symbol-prefix="parsed">
<doc xml:space="preserve">A parsed item parsed by a #GcrParser.</doc>
<method name="get_attributes" c:identifier="gcr_parsed_get_attributes">
<doc xml:space="preserve">Get the attributes which make up the parsed item.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the attributes for the item; these
are owned by the parsed item and should not be freed</doc>
<type name="Gck.Attributes" c:type="GckAttributes*"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_bytes" c:identifier="gcr_parsed_get_bytes">
<doc xml:space="preserve">Get the raw data block for the parsed item.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the raw data of the parsed item, or %NULL</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_data" c:identifier="gcr_parsed_get_data">
<doc xml:space="preserve">Get the raw data block for the parsed item.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the raw data of
the parsed item, or %NULL</doc>
<array length="0" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
<parameter name="n_data" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">location to store size of returned data</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_description" c:identifier="gcr_parsed_get_description">
<doc xml:space="preserve">Get the descirption for a parsed item.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the description</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_filename" c:identifier="gcr_parsed_get_filename">
<doc xml:space="preserve">Get the filename of the parsed item.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the filename of
the parsed item, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_format" c:identifier="gcr_parsed_get_format">
<doc xml:space="preserve">Get the format of the parsed item.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the data format of the item</doc>
<type name="DataFormat" c:type="GcrDataFormat"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_label" c:identifier="gcr_parsed_get_label">
<doc xml:space="preserve">Get the label for the parsed item.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the label for the item</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<method name="ref" c:identifier="gcr_parsed_ref">
<doc xml:space="preserve">Add a reference to a parsed item. An item may not be shared across threads
until it has been referenced at least once.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</return-value>
<parameters>
<instance-parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</instance-parameter>
</parameters>
</method>
<function name="unref" c:identifier="gcr_parsed_unref">
<doc xml:space="preserve">Unreferences a parsed item which was referenced with gcr_parsed_ref()</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="parsed" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a parsed item</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
</record>
<class name="Parser" c:symbol-prefix="parser" c:type="GcrParser" parent="GObject.Object" glib:type-name="GcrParser" glib:get-type="gcr_parser_get_type" glib:type-struct="ParserClass">
<doc xml:space="preserve">A parser for parsing various types of files or data.</doc>
<constructor name="new" c:identifier="gcr_parser_new">
<doc xml:space="preserve">Create a new #GcrParser</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated #GcrParser</doc>
<type name="Parser" c:type="GcrParser*"/>
</return-value>
</constructor>
<virtual-method name="authenticate">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="count" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="parsed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</virtual-method>
<method name="add_password" c:identifier="gcr_parser_add_password">
<doc xml:space="preserve">Add a password to the set of passwords to try when parsing locked or encrypted
items. This is usually called from the #GcrParser::authenticate signal.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="password" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a password to try</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="format_disable" c:identifier="gcr_parser_format_disable">
<doc xml:space="preserve">Disable parsing of the given format. Use %GCR_FORMAT_ALL to disable all the formats.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="format" transfer-ownership="none">
<doc xml:space="preserve">The format identifier</doc>
<type name="DataFormat" c:type="GcrDataFormat"/>
</parameter>
</parameters>
</method>
<method name="format_enable" c:identifier="gcr_parser_format_enable">
<doc xml:space="preserve">Enable parsing of the given format. Use %GCR_FORMAT_ALL to enable all the formats.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="format" transfer-ownership="none">
<doc xml:space="preserve">The format identifier</doc>
<type name="DataFormat" c:type="GcrDataFormat"/>
</parameter>
</parameters>
</method>
<method name="format_supported" c:identifier="gcr_parser_format_supported">
<doc xml:space="preserve">Check whether the given format is supported by the parser.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the format is supported.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="format" transfer-ownership="none">
<doc xml:space="preserve">The format identifier</doc>
<type name="DataFormat" c:type="GcrDataFormat"/>
</parameter>
</parameters>
</method>
<method name="get_filename" c:identifier="gcr_parser_get_filename">
<doc xml:space="preserve">Get the filename of the parser item.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the filename set on the parser, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a parser item</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parsed" c:identifier="gcr_parser_get_parsed">
<doc xml:space="preserve">Get the currently parsed item</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the currently parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parsed_attributes" c:identifier="gcr_parser_get_parsed_attributes">
<doc xml:space="preserve">Get the attributes which make up the currently parsed item. This is generally
only valid during the #GcrParser::parsed signal.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the attributes for the current item,
which are owned by the parser and should not be freed</doc>
<type name="Gck.Attributes" c:type="GckAttributes*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parsed_block" c:identifier="gcr_parser_get_parsed_block">
<doc xml:space="preserve">Get the raw data block that represents this parsed object. This is only
valid during the #GcrParser::parsed signal.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the raw data
block of the currently parsed item; the value is owned by the parser
and should not be freed</doc>
<array length="0" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="n_block" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">a location to place the size of the block</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_parsed_bytes" c:identifier="gcr_parser_get_parsed_bytes">
<doc xml:space="preserve">Get the raw data block that represents this parsed object. This is only
valid during the #GcrParser::parsed signal.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the raw data block of the currently parsed item</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parsed_description" c:identifier="gcr_parser_get_parsed_description">
<doc xml:space="preserve">Get a description for the type of the currently parsed item. This is generally
only valid during the #GcrParser::parsed signal.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the description for the current item; this is owned by
the parser and should not be freed</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parsed_format" c:identifier="gcr_parser_get_parsed_format">
<doc xml:space="preserve">Get the format of the raw data block that represents this parsed object.
This corresponds with the data returned from gcr_parser_get_parsed_block().
This is only valid during the #GcrParser::parsed signal.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the data format of the currently parsed item</doc>
<type name="DataFormat" c:type="GcrDataFormat"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parsed_label" c:identifier="gcr_parser_get_parsed_label">
<doc xml:space="preserve">Get the label of the currently parsed item. This is generally only valid
during the #GcrParser::parsed signal.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the label of the currently parsed item. The value is
owned by the parser and should not be freed.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
</parameters>
</method>
<method name="parse_bytes" c:identifier="gcr_parser_parse_bytes" throws="1">
<doc xml:space="preserve">Parse the data. The #GcrParser::parsed and #GcrParser::authenticate signals
may fire during the parsing.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the data was parsed successfully or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the data to parse</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
</parameters>
</method>
<method name="parse_data" c:identifier="gcr_parser_parse_data" throws="1">
<doc xml:space="preserve">Parse the data. The #GcrParser::parsed and #GcrParser::authenticate signals
may fire during the parsing.
A copy of the data will be made. Use gcr_parser_parse_bytes() to avoid this.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the data was parsed successfully or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the data to parse</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</parameter>
<parameter name="n_data" transfer-ownership="none">
<doc xml:space="preserve">The length of the data</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</method>
<method name="parse_stream" c:identifier="gcr_parser_parse_stream" throws="1">
<doc xml:space="preserve">Parse items from the data in a #GInputStream. This function may block while
reading from the input stream. Use gcr_parser_parse_stream_async() for
a non-blocking variant.
The #GcrParser::parsed and #GcrParser::authenticate signals
may fire during the parsing.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the parsing completed successfully or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="input" transfer-ownership="none">
<doc xml:space="preserve">The input stream</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">An optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="parse_stream_async" c:identifier="gcr_parser_parse_stream_async">
<doc xml:space="preserve">Parse items from the data in a #GInputStream. This function completes
asyncronously and doesn't block.
The #GcrParser::parsed and #GcrParser::authenticate signals
may fire during the parsing.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="input" transfer-ownership="none">
<doc xml:space="preserve">The input stream</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">An optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">Called when the operation result is ready.</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">Data to pass to callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="parse_stream_finish" c:identifier="gcr_parser_parse_stream_finish" throws="1">
<doc xml:space="preserve">Complete an operation to parse a stream.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the parsing completed successfully or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The parser</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">The operation result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="set_filename" c:identifier="gcr_parser_set_filename">
<doc xml:space="preserve">Sets the filename of the parser item.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a parser item</doc>
<type name="Parser" c:type="GcrParser*"/>
</instance-parameter>
<parameter name="filename" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a string of the filename of the parser item</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<property name="parsed-attributes" transfer-ownership="none">
<doc xml:space="preserve">Get the attributes that make up the currently parsed item. This is
generally only valid during a #GcrParser::parsed signal.</doc>
<type name="Gck.Attributes"/>
</property>
<property name="parsed-description" transfer-ownership="none">
<doc xml:space="preserve">The description of the type of the currently parsed item. This is generally
only valid during a #GcrParser::parsed signal.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="parsed-label" transfer-ownership="none">
<doc xml:space="preserve">The label of the currently parsed item. This is generally
only valid during a #GcrParser::parsed signal.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="ParserPrivate" c:type="GcrParserPrivate*"/>
</field>
<glib:signal name="authenticate" when="last">
<doc xml:space="preserve">This signal is emitted when an item needs to be unlocked or decrypted before
it can be parsed. The @count 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.
Typically the gcr_parser_add_password() function is called in
response to this signal.
If %FALSE is returned, then the authentication was not handled. If
no handlers return %TRUE then the item is not parsed and an error
with the code %GCR_ERROR_CANCELLED will be raised.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the authentication was handled.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="count" transfer-ownership="none">
<doc xml:space="preserve">the number of times this item has been authenticated</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="parsed" when="first">
<doc xml:space="preserve">This signal is emitted when an item is sucessfully parsed. To access
the information about the item use the gcr_parser_get_parsed_label(),
gcr_parser_get_parsed_attributes() and gcr_parser_get_parsed_description()
functions.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
</class>
<record name="ParserClass" c:type="GcrParserClass" glib:is-gtype-struct-for="Parser">
<doc xml:space="preserve">The class for #GcrParser</doc>
<field name="parent_class">
<doc xml:space="preserve">The parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="authenticate">
<callback name="authenticate">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<type name="Parser" c:type="GcrParser*"/>
</parameter>
<parameter name="count" transfer-ownership="none">
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</callback>
</field>
<field name="parsed">
<callback name="parsed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<type name="Parser" c:type="GcrParser*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<record name="ParserPrivate" c:type="GcrParserPrivate" disguised="1">
</record>
<class name="Pkcs11Certificate" c:symbol-prefix="pkcs11_certificate" c:type="GcrPkcs11Certificate" parent="Gck.Object" glib:type-name="GcrPkcs11Certificate" glib:get-type="gcr_pkcs11_certificate_get_type" glib:type-struct="Pkcs11CertificateClass">
<doc xml:space="preserve">A certificate loaded from PKCS\#11 storage.</doc>
<implements name="Certificate"/>
<implements name="Comparable"/>
<function name="lookup_issuer" c:identifier="gcr_pkcs11_certificate_lookup_issuer" throws="1">
<doc xml:space="preserve">Lookup a the issuer of a @certificate in the PKCS\#11 storage. The
lookup is done using the issuer DN of the certificate. No certificate chain
verification is done. Use a crypto library to make trust decisions.
This call may block, see gcr_pkcs11_certificate_lookup_issuer() for the
non-blocking version.
Will return %NULL if no issuer certificate is found. Use @error to determine
if an error occurred.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GcrPkcs11Certificate, or %NULL</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<parameter name="certificate" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="lookup_issuer_async" c:identifier="gcr_pkcs11_certificate_lookup_issuer_async">
<doc xml:space="preserve">Lookup a the issuer of a @certificate in the PKCS\#11 storage. The
lookup is done using the issuer DN of the certificate. No certificate chain
verification is done. Use a crypto library to make trust decisions.
When the operation is finished, callback will be called. You can then call
gcr_pkcs11_certificate_lookup_issuer_finish() to get the result of the
operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="certificate" transfer-ownership="none">
<doc xml:space="preserve">a #GcrCertificate</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a #GCancellable</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the data to pass to callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="lookup_issuer_finish" c:identifier="gcr_pkcs11_certificate_lookup_issuer_finish" throws="1">
<doc xml:space="preserve">Finishes an asynchronous operation started by
gcr_pkcs11_certificate_lookup_issuer_async().
Will return %NULL if no issuer certificate is found. Use @error to determine
if an error occurred.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GcrPkcs11Certificate, or %NULL</doc>
<type name="Certificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the #GAsyncResult passed to the callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<method name="get_attributes" c:identifier="gcr_pkcs11_certificate_get_attributes">
<doc xml:space="preserve">Access the automatically loaded attributes for this certificate.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the certificate attributes</doc>
<type name="Gck.Attributes" c:type="GckAttributes*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">A #GcrPkcs11Certificate</doc>
<type name="Pkcs11Certificate" c:type="GcrPkcs11Certificate*"/>
</instance-parameter>
</parameters>
</method>
<property name="attributes" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">Automatically loaded attributes for this certificate.</doc>
<type name="Gck.Attributes"/>
</property>
<field name="parent">
<type name="Gck.Object" c:type="GckObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="Pkcs11CertificatePrivate" c:type="GcrPkcs11CertificatePrivate*"/>
</field>
</class>
<record name="Pkcs11CertificateClass" c:type="GcrPkcs11CertificateClass" glib:is-gtype-struct-for="Pkcs11Certificate">
<doc xml:space="preserve">The class for #GcrPkcs11Certificate.</doc>
<field name="parent_class" readable="0" private="1">
<type name="Gck.ObjectClass" c:type="GckObjectClass"/>
</field>
</record>
<record name="Pkcs11CertificatePrivate" c:type="GcrPkcs11CertificatePrivate" disguised="1">
</record>
<interface name="Prompt" c:symbol-prefix="prompt" c:type="GcrPrompt" glib:type-name="GcrPrompt" glib:get-type="gcr_prompt_get_type" glib:type-struct="PromptIface">
<doc xml:space="preserve">Represents a #GcrPrompt displayed to the user.</doc>
<virtual-method name="prompt_close">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</virtual-method>
<virtual-method name="prompt_confirm_async">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="2">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="prompt_confirm_finish" throws="1">
<return-value transfer-ownership="none">
<type name="PromptReply" c:type="GcrPromptReply"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="prompt_password_async">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="2">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="prompt_password_finish" throws="1">
<return-value transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</virtual-method>
<method name="close" c:identifier="gcr_prompt_close">
<doc xml:space="preserve">Closes the prompt so that in can no longer be used to prompt. The various
prompt methods will return results as if the user dismissed the prompt.
The prompt may also be closed by the implementor of the #GcrPrompt object.
This emits the GcrPrompt::prompt-close signal on the prompt object.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="confirm" c:identifier="gcr_prompt_confirm" throws="1">
<doc xml:space="preserve">Prompts for confirmation asking a cancel/continue style question.
Set the various properties on the prompt before calling this function to
represent the question correctly.
This method will block until the a response is returned from the prompter.
%GCR_PROMPT_REPLY_CONTINUE will be returned if the user confirms the prompt. The
return value will also be %GCR_PROMPT_REPLY_CANCEL if the user cancels or if
an error occurs. Check the @error argument to tell the difference.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the reply from the prompt</doc>
<type name="PromptReply" c:type="GcrPromptReply"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="confirm_async" c:identifier="gcr_prompt_confirm_async">
<doc xml:space="preserve">Prompts for confirmation asking a cancel/continue style question.
Set the various properties on the prompt before calling this method to
represent the question correctly.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="confirm_finish" c:identifier="gcr_prompt_confirm_finish" throws="1">
<doc xml:space="preserve">Complete an operation to prompt for confirmation.
%GCR_PROMPT_REPLY_CONTINUE will be returned if the user confirms the prompt. The
return value will also be %GCR_PROMPT_REPLY_CANCEL if the user cancels or if
an error occurs. Check the @error argument to tell the difference.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the reply from the prompt</doc>
<type name="PromptReply" c:type="GcrPromptReply"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">asynchronous result passed to callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="confirm_run" c:identifier="gcr_prompt_confirm_run" throws="1">
<doc xml:space="preserve">Prompts for confirmation asking a cancel/continue style question.
Set the various properties on the prompt before calling this function to
represent the question correctly.
This method will block until the a response is returned from the prompter
and will run a main loop similar to a gtk_dialog_run(). The application
will remain responsive but care must be taken to handle reentrancy issues.
%GCR_PROMPT_REPLY_CONTINUE will be returned if the user confirms the prompt. The
return value will also be %GCR_PROMPT_REPLY_CANCEL if the user cancels or if
an error occurs. Check the @error argument to tell the difference.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the reply from the prompt</doc>
<type name="PromptReply" c:type="GcrPromptReply"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="get_caller_window" c:identifier="gcr_prompt_get_caller_window">
<doc xml:space="preserve">Get the string handle of the caller's window.
The caller window indicates to the prompt which window is prompting the
user. The prompt may choose to ignore this information or use it in whatever
way it sees fit.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the string
handle of the window.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_cancel_label" c:identifier="gcr_prompt_get_cancel_label">
<doc xml:space="preserve">Get the label for the cancel button.
This is the button that results in a %GCR_PROMPT_REPLY_CANCEL reply
from the prompt.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the label</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_choice_chosen" c:identifier="gcr_prompt_get_choice_chosen">
<doc xml:space="preserve">Get whether the additional choice was chosen or not.
The additional choice would have been setup using
gcr_prompt_set_choice_label().</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether chosen</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_choice_label" c:identifier="gcr_prompt_get_choice_label">
<doc xml:space="preserve">Get the label for the additional choice.
This will be %NULL if no additional choice is being displayed.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the additional
choice or %NULL</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_continue_label" c:identifier="gcr_prompt_get_continue_label">
<doc xml:space="preserve">Get the label for the continue button.
This is the button that results in a %GCR_PROMPT_REPLY_CONTINUE reply
from the prompt.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the label</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_description" c:identifier="gcr_prompt_get_description">
<doc xml:space="preserve">Get the detailed description of the prompt.
A prompt implementation may choose not to display this detailed description.
The prompt message should contain relevant information.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the detailed
description of the prompt</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_message" c:identifier="gcr_prompt_get_message">
<doc xml:space="preserve">Gets the prompt message for the user.
A prompt implementation should always display this message.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the detailed
description of the prompt</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_password_new" c:identifier="gcr_prompt_get_password_new">
<doc xml:space="preserve">Get whether the prompt will prompt for a new password.
This will cause the prompt implementation to ask the user to confirm the
password and/or display other relevant user interface for creating a new
password.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether in new password mode or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_password_strength" c:identifier="gcr_prompt_get_password_strength">
<doc xml:space="preserve">Get indication of the password strength.
Prompts will return a zero value if the password is empty, and a value
greater than zero if the password has any characters.
This is only valid after a successful prompt for a password.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">zero if the password is empty, greater than zero if not</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_title" c:identifier="gcr_prompt_get_title">
<doc xml:space="preserve">Gets the title of the prompt.
A prompt implementation may choose not to display the prompt title. The
prompt message should contain relevant information.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the prompt
title.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_warning" c:identifier="gcr_prompt_get_warning">
<doc xml:space="preserve">Get a prompt warning displayed on the prompt.
This is a warning like "The password is incorrect." usually displayed to the
user about a previous 'unsuccessful' prompt.
If this string is %NULL then no warning is displayed.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string containing the prompt
warning, or %NULL if no warning</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="password" c:identifier="gcr_prompt_password" throws="1">
<doc xml:space="preserve">Prompts for password. Set the various properties on the prompt before calling
this method to explain which password should be entered.
This method will block until the a response is returned from the prompter.
A password will be returned if the user enters a password successfully.
The returned password is valid until the next time a method is called
to display another prompt.
%NULL will be returned if the user cancels or if an error occurs. Check the
@error argument to tell the difference.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the password owned by the prompt, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="password_async" c:identifier="gcr_prompt_password_async">
<doc xml:space="preserve">Prompts for password. Set the various properties on the prompt before calling
this method to explain which password should be entered.
This method will return immediately and complete asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="password_finish" c:identifier="gcr_prompt_password_finish" throws="1">
<doc xml:space="preserve">Complete an operation to prompt for a password.
A password will be returned if the user enters a password successfully.
The returned password is valid until the next time a method is called
to display another prompt.
%NULL will be returned if the user cancels or if an error occurs. Check the
@error argument to tell the difference.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the password owned by the prompt, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">asynchronous result passed to callback</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="password_run" c:identifier="gcr_prompt_password_run" throws="1">
<doc xml:space="preserve">Prompts for password. Set the various properties on the prompt before calling
this method to explain which password should be entered.
This method will block until the a response is returned from the prompter
and will run a main loop similar to a gtk_dialog_run(). The application
will remain responsive but care must be taken to handle reentrancy issues.
A password will be returned if the user enters a password successfully.
The returned password is valid until the next time a method is called
to display another prompt.
%NULL will be returned if the user cancels or if an error occurs. Check the
@error argument to tell the difference.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the password owned by the prompt, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">a prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="reset" c:identifier="gcr_prompt_reset">
<doc xml:space="preserve">Reset the contents and properties of the prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_caller_window" c:identifier="gcr_prompt_set_caller_window">
<doc xml:space="preserve">Set the string handle of the caller's window.
The caller window indicates to the prompt which window is prompting the
user. The prompt may choose to ignore this information or use it in whatever
way it sees fit.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="window_id" transfer-ownership="none">
<doc xml:space="preserve">the window id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_cancel_label" c:identifier="gcr_prompt_set_cancel_label">
<doc xml:space="preserve">Set the label for the continue button.
This is the button that results in a %GCR_PROMPT_REPLY_CANCEL reply
from the prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="cancel_label" transfer-ownership="none">
<doc xml:space="preserve">the label</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_choice_chosen" c:identifier="gcr_prompt_set_choice_chosen">
<doc xml:space="preserve">Set whether the additional choice is chosen or not.
The additional choice should be set up using gcr_prompt_set_choice_label().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="chosen" transfer-ownership="none">
<doc xml:space="preserve">whether chosen</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_choice_label" c:identifier="gcr_prompt_set_choice_label">
<doc xml:space="preserve">Set the label for the additional choice.
If this is a non-%NULL value then an additional boolean choice will be
displayed by the prompt allowing the user to select or deselect it.
The initial value of the choice can be set with the
gcr_prompt_set_choice_label() method.
If this is %NULL, then no additional choice is being displayed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="choice_label" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the additional choice or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_continue_label" c:identifier="gcr_prompt_set_continue_label">
<doc xml:space="preserve">Set the label for the continue button.
This is the button that results in a %GCR_PROMPT_REPLY_CONTINUE reply
from the prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="continue_label" transfer-ownership="none">
<doc xml:space="preserve">the label</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_description" c:identifier="gcr_prompt_set_description">
<doc xml:space="preserve">Set the detailed description of the prompt.
A prompt implementation may choose not to display this detailed description.
Use gcr_prompt_set_message() to set a general message containing relevant
information.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="description" transfer-ownership="none">
<doc xml:space="preserve">the detailed description</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_message" c:identifier="gcr_prompt_set_message">
<doc xml:space="preserve">Sets the prompt message for the user.
A prompt implementation should always display this message.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve">the prompt message</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_password_new" c:identifier="gcr_prompt_set_password_new">
<doc xml:space="preserve">Set whether the prompt will prompt for a new password.
This will cause the prompt implementation to ask the user to confirm the
password and/or display other relevant user interface for creating a new
password.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="new_password" transfer-ownership="none">
<doc xml:space="preserve">whether in new password mode or not</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_title" c:identifier="gcr_prompt_set_title">
<doc xml:space="preserve">Sets the title of the prompt.
A prompt implementation may choose not to display the prompt title. The
prompt message should contain relevant information.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="title" transfer-ownership="none">
<doc xml:space="preserve">the prompt title</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_warning" c:identifier="gcr_prompt_set_warning">
<doc xml:space="preserve">Set a prompt warning displayed on the prompt.
This is a warning like "The password is incorrect." usually displayed to the
user about a previous 'unsuccessful' prompt.
If this string is %NULL then no warning is displayed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompt" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="Prompt" c:type="GcrPrompt*"/>
</instance-parameter>
<parameter name="warning" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the warning or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<property name="caller-window" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The string handle of the caller's window.
The caller window indicates to the prompt which window is prompting the
user. The prompt may choose to ignore this information or use it in whatever
way it sees fit.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="cancel-label" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The label for the cancel button in the prompt.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="choice-chosen" writable="1" transfer-ownership="none">
<doc xml:space="preserve">Whether the additional choice is chosen or not.
The additional choice would have been setup using #GcrPrompt:choice-label.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="choice-label" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The label for the additional choice.
If this is a non-%NULL value then an additional boolean choice will be
displayed by the prompt allowing the user to select or deselect it.
If %NULL, then no additional choice is displayed.
The initial value of the choice can be set with #GcrPrompt:choice-chosen.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="continue-label" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The label for the continue button in the prompt.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="description" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The detailed description of the prompt.
A prompt implementation may choose not to display this detailed description.
The prompt message should contain relevant information.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="message" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The prompt message for the user.
A prompt implementation should always display this message.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="password-new" writable="1" transfer-ownership="none">
<doc xml:space="preserve">Whether the prompt will prompt for a new password.
This will cause the prompt implementation to ask the user to confirm the
password and/or display other relevant user interface for creating a new
password.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="password-strength" transfer-ownership="none">
<doc xml:space="preserve">Indication of the password strength.
Prompts will return a zero value if the password is empty, and a value
greater than zero if the password has any characters.
This is only valid after a successful prompt for a password.</doc>
<type name="gint" c:type="gint"/>
</property>
<property name="title" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">The title of the prompt.
A prompt implementation may choose not to display the prompt title. The
#GcrPrompt:message should contain relevant information.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="warning" writable="1" construct="1" transfer-ownership="none">
<doc xml:space="preserve">A prompt warning displayed on the prompt, or %NULL for no warning.
This is a warning like "The password is incorrect." usually displayed to the
user about a previous 'unsuccessful' prompt.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<glib:signal name="prompt-close" when="first">
<doc xml:space="preserve">Action signal fired when the prompt is to be closed. After the default
handler has run, the prompt is closed. The various prompting methods
will return results as if the user dismissed the prompt.
You can use the gcr_prompt_close() method to emit this signal.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
</interface>
<record name="PromptIface" c:type="GcrPromptIface" glib:is-gtype-struct-for="Prompt">
<doc xml:space="preserve">The interface for implementing #GcrPrompt.</doc>
<field name="parent_iface">
<doc xml:space="preserve">parent interface</doc>
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
</field>
<field name="prompt_password_async">
<callback name="prompt_password_async">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="3">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="prompt_password_finish">
<callback name="prompt_password_finish" throws="1">
<return-value transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="prompt_confirm_async">
<callback name="prompt_confirm_async">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1" closure="3">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="prompt_confirm_finish">
<callback name="prompt_confirm_finish" throws="1">
<return-value transfer-ownership="none">
<type name="PromptReply" c:type="GcrPromptReply"/>
</return-value>
<parameters>
<parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="prompt_close">
<callback name="prompt_close">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompt" transfer-ownership="none">
<type name="Prompt" c:type="GcrPrompt*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<enumeration name="PromptReply" c:type="GcrPromptReply">
<doc xml:space="preserve">Various replies returned by gcr_prompt_confirm() and friends.</doc>
<member name="cancel" value="0" c:identifier="GCR_PROMPT_REPLY_CANCEL">
<doc xml:space="preserve">the prompt was cancelled</doc>
</member>
<member name="continue" value="1" c:identifier="GCR_PROMPT_REPLY_CONTINUE">
<doc xml:space="preserve">the user replied with 'ok'</doc>
</member>
</enumeration>
<constant name="SECRET_EXCHANGE_PROTOCOL_1" value="sx-aes-1" c:type="GCR_SECRET_EXCHANGE_PROTOCOL_1">
<doc xml:space="preserve">The current secret exchange protocol. Key agreement is done using DH with the
1536 bit IKE parameter group. Keys are derived using SHA256 with HKDF. The
transport encryption is done with 128 bit AES.</doc>
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="SecretExchange" c:symbol-prefix="secret_exchange" c:type="GcrSecretExchange" parent="GObject.Object" glib:type-name="GcrSecretExchange" glib:get-type="gcr_secret_exchange_get_type" glib:type-struct="SecretExchangeClass">
<doc xml:space="preserve">An object representing one side of a secret exchange.</doc>
<constructor name="new" c:identifier="gcr_secret_exchange_new">
<doc xml:space="preserve">Create a new secret exchange object.
Specify a protocol of %NULL to allow any protocol. This is especially
relevant on the side of the exchange that does not call
gcr_secret_exchange_begin(), that is the originator. Currently the only
protocol supported is %GCR_SECRET_EXCHANGE_PROTOCOL_1.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A new #GcrSecretExchange object</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</return-value>
<parameters>
<parameter name="protocol" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the exchange protocol to use</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="decrypt_transport_data" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="allocator" transfer-ownership="none">
<type name="Gck.Allocator" c:type="GckAllocator"/>
</parameter>
<parameter name="cipher_text" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_cipher_text" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="parameter" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_parameter" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="plain_text" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_plain_text" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="derive_transport_key">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="peer" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_peer" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="encrypt_transport_data" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="allocator" transfer-ownership="none">
<type name="Gck.Allocator" c:type="GckAllocator"/>
</parameter>
<parameter name="plain_text" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_plain_text" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="parameter" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_parameter" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
<parameter name="cipher_text" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_cipher_text" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="generate_exchange_key">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="scheme" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="public_key" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_public_key" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</virtual-method>
<method name="begin" c:identifier="gcr_secret_exchange_begin">
<doc xml:space="preserve">Begin the secret exchange. The resulting string should be sent to the other
side of the exchange. The other side should use gcr_secret_exchange_receive()
to process the string.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A newly allocated string to be sent to the other
side of the secret exchange</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrSecretExchange object</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_protocol" c:identifier="gcr_secret_exchange_get_protocol">
<doc xml:space="preserve">Will return %NULL if no protocol was specified, and either
gcr_secret_exchange_begin() or gcr_secret_exchange_receive() have not been
called successfully.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the protocol or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrSecretExchange object
Get the secret exchange protocol.</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_secret" c:identifier="gcr_secret_exchange_get_secret">
<doc xml:space="preserve">Returns the last secret received. If no secret has yet been received this
will return %NULL. The string is owned by the #GcrSecretExchange object
and will be valid until the next time that gcr_secret_exchange_receive()
is called on this object, or the object is destroyed.
Depending on the secret passed into the other side of the secret exchange,
the result may be a binary string. It does however have a null terminator,
so if you're certain that it is does not contain arbitrary binary data,
it can be used as a string.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the last secret received</doc>
<array length="0" zero-terminated="0" c:type="gchar*">
<type name="utf8" c:type="gchar"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrSecretExchange object</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="secret_len" direction="out" caller-allocates="0" transfer-ownership="full" nullable="1">
<doc xml:space="preserve">optionally, a location to store the length of returned secret</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="receive" c:identifier="gcr_secret_exchange_receive">
<doc xml:space="preserve">Receive a string from the other side of secret exchange. This string will
have been created by gcr_secret_exchange_begin() or gcr_secret_exchange_send().
After this call completes successfully the value returned from
gcr_secret_exchange_get_secret() will have changed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the string was successfully parsed and received</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrSecretExchange object</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="exchange" transfer-ownership="none">
<doc xml:space="preserve">the string received</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="send" c:identifier="gcr_secret_exchange_send">
<doc xml:space="preserve">Send a reply to the other side of the secret exchange, optionally sending a
secret.
gcr_secret_exchange_receive() must have been successfully called at least
once on this object. In other words this object must have received data
from the other side of the secret exchange, before we can send a secret.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated string to be sent to the other
side of the secret exchange</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a #GcrSecretExchange object</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</instance-parameter>
<parameter name="secret" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optionally, a secret to send to the other side</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="secret_len" transfer-ownership="none">
<doc xml:space="preserve">length of @secret, or -1 if null terminated</doc>
<type name="gssize" c:type="gssize"/>
</parameter>
</parameters>
</method>
<property name="protocol" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The protocol being used for the exchange.
Will be %NULL if no protocol was specified when creating this object,
and either gcr_secret_exchange_begin() or gcr_secret_exchange_receive()
have not been called successfully.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent" readable="0" private="1">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="SecretExchangePrivate" c:type="GcrSecretExchangePrivate*"/>
</field>
</class>
<record name="SecretExchangeClass" c:type="GcrSecretExchangeClass" glib:is-gtype-struct-for="SecretExchange">
<doc xml:space="preserve">The class for #GcrSecretExchange</doc>
<field name="parent_class" readable="0" private="1">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="generate_exchange_key">
<callback name="generate_exchange_key">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</parameter>
<parameter name="scheme" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="public_key" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_public_key" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="derive_transport_key">
<callback name="derive_transport_key">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</parameter>
<parameter name="peer" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_peer" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</callback>
</field>
<field name="encrypt_transport_data" introspectable="0">
<callback name="encrypt_transport_data" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</parameter>
<parameter name="allocator" transfer-ownership="none">
<type name="Gck.Allocator" c:type="GckAllocator"/>
</parameter>
<parameter name="plain_text" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_plain_text" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="parameter" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_parameter" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
<parameter name="cipher_text" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_cipher_text" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="decrypt_transport_data" introspectable="0">
<callback name="decrypt_transport_data" introspectable="0">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="exchange" transfer-ownership="none">
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</parameter>
<parameter name="allocator" transfer-ownership="none">
<type name="Gck.Allocator" c:type="GckAllocator"/>
</parameter>
<parameter name="cipher_text" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_cipher_text" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="parameter" transfer-ownership="none">
<type name="guint8" c:type="const guchar*"/>
</parameter>
<parameter name="n_parameter" transfer-ownership="none">
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="plain_text" transfer-ownership="none">
<type name="guint8" c:type="guchar**"/>
</parameter>
<parameter name="n_plain_text" transfer-ownership="none">
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="dummy" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="6">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="SecretExchangePrivate" c:type="GcrSecretExchangePrivate" disguised="1">
</record>
<class name="SimpleCertificate" c:symbol-prefix="simple_certificate" c:type="GcrSimpleCertificate" parent="GObject.Object" glib:type-name="GcrSimpleCertificate" glib:get-type="gcr_simple_certificate_get_type" glib:type-struct="SimpleCertificateClass">
<doc xml:space="preserve">A #GcrCertificate which represents a certificate already in memory.</doc>
<implements name="Certificate"/>
<implements name="Comparable"/>
<constructor name="new" c:identifier="gcr_simple_certificate_new">
<doc xml:space="preserve">Create a new #GcrSimpleCertificate for the raw DER data. The @data memory is
copied so you can dispose of it after this function returns.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GcrSimpleCertificate</doc>
<type name="SimpleCertificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the raw DER certificate data</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</parameter>
<parameter name="n_data" transfer-ownership="none">
<doc xml:space="preserve">The length of @data</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_static" c:identifier="gcr_simple_certificate_new_static" introspectable="0">
<doc xml:space="preserve">Create a new #GcrSimpleCertificate for the raw DER data. The @data memory is
not copied and must persist until the #GcrSimpleCertificate object is
destroyed.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GcrSimpleCertificate</doc>
<type name="SimpleCertificate" c:type="GcrCertificate*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">The raw DER certificate data</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</parameter>
<parameter name="n_data" transfer-ownership="none">
<doc xml:space="preserve">The length of @data</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</constructor>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="SimpleCertificatePrivate" c:type="GcrSimpleCertificatePrivate*"/>
</field>
</class>
<record name="SimpleCertificateClass" c:type="GcrSimpleCertificateClass" glib:is-gtype-struct-for="SimpleCertificate">
<doc xml:space="preserve">The class for #GcrSimpleCertificate.</doc>
<field name="parent_class">
<doc xml:space="preserve">The parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="SimpleCertificatePrivate" c:type="GcrSimpleCertificatePrivate" disguised="1">
</record>
<class name="SimpleCollection" c:symbol-prefix="simple_collection" c:type="GcrSimpleCollection" parent="GObject.Object" glib:type-name="GcrSimpleCollection" glib:get-type="gcr_simple_collection_get_type" glib:type-struct="SimpleCollectionClass">
<doc xml:space="preserve">A simple implementation of #GcrCollection.</doc>
<implements name="Collection"/>
<constructor name="new" c:identifier="gcr_simple_collection_new">
<doc xml:space="preserve">Create a new #GcrSimpleCollection.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated
collection, which should be freed with g_object_unref()</doc>
<type name="SimpleCollection" c:type="GcrCollection*"/>
</return-value>
</constructor>
<method name="add" c:identifier="gcr_simple_collection_add">
<doc xml:space="preserve">Add an object to this collection</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="SimpleCollection" c:type="GcrSimpleCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">The object to add</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</method>
<method name="remove" c:identifier="gcr_simple_collection_remove">
<doc xml:space="preserve">Remove an object from the collection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="SimpleCollection" c:type="GcrSimpleCollection*"/>
</instance-parameter>
<parameter name="object" transfer-ownership="none">
<doc xml:space="preserve">The object to remove from the collection</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="SimpleCollectionPrivate" c:type="GcrSimpleCollectionPrivate*"/>
</field>
</class>
<record name="SimpleCollectionClass" c:type="GcrSimpleCollectionClass" glib:is-gtype-struct-for="SimpleCollection">
<doc xml:space="preserve">The class for #GcrSimpleCollection.</doc>
<field name="parent_class">
<doc xml:space="preserve">The parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="SimpleCollectionPrivate" c:type="GcrSimpleCollectionPrivate" disguised="1">
</record>
<class name="SystemPrompt" c:symbol-prefix="system_prompt" c:type="GcrSystemPrompt" parent="GObject.Object" glib:type-name="GcrSystemPrompt" glib:get-type="gcr_system_prompt_get_type" glib:type-struct="SystemPromptClass">
<doc xml:space="preserve">A #GcrPrompt which shows a system prompt. This is usually a system modal
dialog.</doc>
<implements name="Prompt"/>
<implements name="Gio.AsyncInitable"/>
<implements name="Gio.Initable"/>
<function name="error_get_domain" c:identifier="gcr_system_prompt_error_get_domain">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<function name="open" c:identifier="gcr_system_prompt_open" throws="1">
<doc xml:space="preserve">Opens a system prompt with the default prompter.
Most system prompters only allow showing one prompt at a time, and if
another prompt is shown then this method will block for up to
@timeout_seconds seconds. If @timeout_seconds is equal to -1, then this
will block indefinitely until the prompt can be opened. If @timeout_seconds
expires, then this function will fail with a %GCR_SYSTEM_PROMPT_IN_PROGRESS
error.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the prompt, or %NULL if
prompt could not be opened</doc>
<type name="SystemPrompt" c:type="GcrPrompt*"/>
</return-value>
<parameters>
<parameter name="timeout_seconds" transfer-ownership="none">
<doc xml:space="preserve">the number of seconds to wait to access the prompt, or -1</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="open_async" c:identifier="gcr_system_prompt_open_async">
<doc xml:space="preserve">Asynchronously open a system prompt with the default system prompter.
Most system prompters only allow showing one prompt at a time, and if
another prompt is shown then this method will block for up to
@timeout_seconds seconds. If @timeout_seconds is equal to -1, then this
will block indefinitely until the prompt can be opened. If @timeout_seconds
expires, then this operation will fail with a %GCR_SYSTEM_PROMPT_IN_PROGRESS
error.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="timeout_seconds" transfer-ownership="none">
<doc xml:space="preserve">the number of seconds to wait to access the prompt, or -1</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="3">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="open_finish" c:identifier="gcr_system_prompt_open_finish" throws="1">
<doc xml:space="preserve">Complete an operation to asynchronously open a system prompt.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the prompt, or %NULL if
prompt could not be opened</doc>
<type name="SystemPrompt" c:type="GcrPrompt*"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="open_for_prompter" c:identifier="gcr_system_prompt_open_for_prompter" throws="1">
<doc xml:space="preserve">Opens a system prompt. If prompter_name is %NULL, then the default
system prompter is used.
Most system prompters only allow showing one prompt at a time, and if
another prompt is shown then this method will block for up to
@timeout_seconds seconds. If @timeout_seconds is equal to -1, then this
will block indefinitely until the prompt can be opened. If @timeout_seconds
expires, then this function will fail with a %GCR_SYSTEM_PROMPT_IN_PROGRESS
error.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the prompt, or %NULL if
prompt could not be opened</doc>
<type name="SystemPrompt" c:type="GcrPrompt*"/>
</return-value>
<parameters>
<parameter name="prompter_name" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the prompter dbus name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="timeout_seconds" transfer-ownership="none">
<doc xml:space="preserve">the number of seconds to wait to access the prompt, or -1</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="open_for_prompter_async" c:identifier="gcr_system_prompt_open_for_prompter_async">
<doc xml:space="preserve">Opens a system prompt asynchronously. If prompter_name is %NULL, then the
default system prompter is used.
Most system prompters only allow showing one prompt at a time, and if
another prompt is shown then this method will block for up to
@timeout_seconds seconds. If @timeout_seconds is equal to -1, then this
will block indefinitely until the prompt can be opened. If @timeout_seconds
expires, then this operation will fail with a %GCR_SYSTEM_PROMPT_IN_PROGRESS
error.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompter_name" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the prompter dbus name</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="timeout_seconds" transfer-ownership="none">
<doc xml:space="preserve">the number of seconds to wait to access the prompt, or -1</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="4">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<method name="close" c:identifier="gcr_system_prompt_close" throws="1">
<doc xml:space="preserve">Close this prompt. After calling this function, no further prompts will
succeed on this object. The prompt object is not unreferenced by this
function, and you must unreference it once done.
This call may block, use the gcr_system_prompt_close_async() to perform
this action indefinitely.
Whether or not this function returns %TRUE, the system prompt object is
still closed and may not be further used.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether close was cleanly completed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="SystemPrompt" c:type="GcrSystemPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">an optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="close_async" c:identifier="gcr_system_prompt_close_async">
<doc xml:space="preserve">Close this prompt asynchronously. After calling this function, no further
methods may be called on this object. The prompt object is not unreferenced
by this function, and you must unreference it once done.
This call returns immediately and completes asynchronously.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="SystemPrompt" c:type="GcrSystemPrompt*"/>
</instance-parameter>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">an optional cancellation object</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data to pass to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="close_finish" c:identifier="gcr_system_prompt_close_finish" throws="1">
<doc xml:space="preserve">Complete operation to close this prompt.
Whether or not this function returns %TRUE, the system prompt object is
still closed and may not be further used.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether close was cleanly completed</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the prompt</doc>
<type name="SystemPrompt" c:type="GcrSystemPrompt*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">asynchronous operation result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="get_secret_exchange" c:identifier="gcr_system_prompt_get_secret_exchange">
<doc xml:space="preserve">Get the current #GcrSecretExchange used to transfer secrets in this prompt.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the secret exchange</doc>
<type name="SecretExchange" c:type="GcrSecretExchange*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">a prompter</doc>
<type name="SystemPrompt" c:type="GcrSystemPrompt*"/>
</instance-parameter>
</parameters>
</method>
<property name="bus-name" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The DBus bus name of the prompter to use for prompting, or %NULL
for the default prompter.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="secret-exchange" writable="1" transfer-ownership="none">
<doc xml:space="preserve">The #GcrSecretExchange to use when transferring passwords. A default
secret exchange will be used if this is not set.</doc>
<type name="SecretExchange"/>
</property>
<property name="timeout-seconds" readable="0" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The timeout in seconds to wait when opening the prompt.</doc>
<type name="gint" c:type="gint"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="SystemPromptPrivate" c:type="GcrSystemPromptPrivate*"/>
</field>
</class>
<record name="SystemPromptClass" c:type="GcrSystemPromptClass" glib:is-gtype-struct-for="SystemPrompt">
<doc xml:space="preserve">The class for #GcrSystemPrompt.</doc>
<field name="parent_class">
<doc xml:space="preserve">parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<enumeration name="SystemPromptError" c:type="GcrSystemPromptError">
<doc xml:space="preserve">No error returned by the #GcrSystemPrompt is suitable for display or
to the user.
If the system prompter can only show one prompt at a time, and there is
already a prompt being displayed, and the timeout waiting to open the
prompt expires, then %GCR_SYSTEM_PROMPT_IN_PROGRESS is returned.</doc>
<member name="system_prompt_in_progress" value="1" c:identifier="GCR_SYSTEM_PROMPT_IN_PROGRESS">
<doc xml:space="preserve">another prompt is already in progress</doc>
</member>
</enumeration>
<record name="SystemPromptPrivate" c:type="GcrSystemPromptPrivate" disguised="1">
</record>
<class name="SystemPrompter" c:symbol-prefix="system_prompter" c:type="GcrSystemPrompter" parent="GObject.Object" glib:type-name="GcrSystemPrompter" glib:get-type="gcr_system_prompter_get_type" glib:type-struct="SystemPrompterClass">
<doc xml:space="preserve">A prompter used by implementations of system prompts.</doc>
<constructor name="new" c:identifier="gcr_system_prompter_new">
<doc xml:space="preserve">Create a new system prompter service. This prompter won't do anything unless
you connect to its signals and show appropriate prompts.
If @prompt_type is zero, then the new-prompt signal must be handled and
return a valid prompt object implementing the #GcrPrompt interface.
If @prompt_type is non-zero then the #GType must implement the #GcrPrompt
interface.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new prompter service</doc>
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</return-value>
<parameters>
<parameter name="mode" transfer-ownership="none">
<doc xml:space="preserve">the mode for the prompt</doc>
<type name="SystemPrompterMode" c:type="GcrSystemPrompterMode"/>
</parameter>
<parameter name="prompt_type" transfer-ownership="none">
<doc xml:space="preserve">the gobject type for prompts created by this prompter</doc>
<type name="GType" c:type="GType"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="new_prompt" introspectable="0">
<return-value>
<type name="Prompt" c:type="GcrPrompt*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</instance-parameter>
</parameters>
</virtual-method>
<method name="get_mode" c:identifier="gcr_system_prompter_get_mode">
<doc xml:space="preserve">Get the mode for this prompter.
Most system prompters only display one prompt at a time and therefore
return %GCR_SYSTEM_PROMPTER_SINGLE.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the prompter mode</doc>
<type name="SystemPrompterMode" c:type="GcrSystemPrompterMode"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the prompter</doc>
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_prompt_type" c:identifier="gcr_system_prompter_get_prompt_type">
<doc xml:space="preserve">Get the #GType for prompts created by this prompter.
The returned #GType will be a #GcrPrompt implementation.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the prompt #GType</doc>
<type name="GType" c:type="GType"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the prompter</doc>
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_prompting" c:identifier="gcr_system_prompter_get_prompting">
<doc xml:space="preserve">Get whether prompting or not.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether prompting or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the prompter</doc>
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="register" c:identifier="gcr_system_prompter_register">
<doc xml:space="preserve">Register this system prompter on the DBus @connection.
This makes the prompter available for clients to call. The prompter will
remain registered until gcr_system_prompter_unregister() is called, or the
prompter is unreferenced.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the system prompter</doc>
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</instance-parameter>
<parameter name="connection" transfer-ownership="none">
<doc xml:space="preserve">a DBus connection</doc>
<type name="Gio.DBusConnection" c:type="GDBusConnection*"/>
</parameter>
</parameters>
</method>
<method name="unregister" c:identifier="gcr_system_prompter_unregister">
<doc xml:space="preserve">Unregister this system prompter on the DBus @connection.
The prompter must have previously been registered with gcr_system_prompter_register().
If @wait is set then this function will wait until all prompts have been closed
or cancelled. This is usually only used by tests.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the system prompter</doc>
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</instance-parameter>
<parameter name="wait" transfer-ownership="none">
<doc xml:space="preserve">whether to wait for closing prompts</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<property name="mode" introspectable="0" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The mode for this prompter.
Most system prompters only display one prompt at a time and therefore
return %GCR_SYSTEM_PROMPTER_SINGLE.</doc>
<type/>
</property>
<property name="prompt-type" writable="1" construct-only="1" transfer-ownership="none">
<doc xml:space="preserve">The #GType for prompts created by this prompter. This must be a
#GcrPrompt implementation.</doc>
<type name="GType" c:type="GType"/>
</property>
<property name="prompting" transfer-ownership="none">
<doc xml:space="preserve">Whether the prompter is prompting or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="SystemPrompterPrivate" c:type="GcrSystemPrompterPrivate*"/>
</field>
<glib:signal name="new-prompt" when="last">
<doc xml:space="preserve">Signal emitted to create a new prompt when needed.
The default implementation of this signal creates a prompt of the type
gcr_system_prompter_get_prompt_type().</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the new prompt</doc>
<type name="Prompt"/>
</return-value>
</glib:signal>
</class>
<record name="SystemPrompterClass" c:type="GcrSystemPrompterClass" glib:is-gtype-struct-for="SystemPrompter">
<doc xml:space="preserve">The class for #GcrSystemPrompter.</doc>
<field name="parent_class">
<doc xml:space="preserve">parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="new_prompt" introspectable="0">
<callback name="new_prompt" introspectable="0">
<return-value>
<type name="Prompt" c:type="GcrPrompt*"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<type name="SystemPrompter" c:type="GcrSystemPrompter*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="padding" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="7">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<enumeration name="SystemPrompterMode" c:type="GcrSystemPrompterMode">
<doc xml:space="preserve">The mode for the system prompter. Most system prompters can only show
one prompt at a time and would use the %GCR_SYSTEM_PROMPTER_SINGLE mode.</doc>
<member name="single" value="0" c:identifier="GCR_SYSTEM_PROMPTER_SINGLE">
<doc xml:space="preserve">only one prompt shown at a time</doc>
</member>
<member name="multiple" value="1" c:identifier="GCR_SYSTEM_PROMPTER_MULTIPLE">
<doc xml:space="preserve">more than one prompt shown at a time</doc>
</member>
</enumeration>
<record name="SystemPrompterPrivate" c:type="GcrSystemPrompterPrivate" disguised="1">
</record>
<constant name="UNLOCK_OPTION_ALWAYS" value="always" c:type="GCR_UNLOCK_OPTION_ALWAYS">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="UNLOCK_OPTION_IDLE" value="idle" c:type="GCR_UNLOCK_OPTION_IDLE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="UNLOCK_OPTION_SESSION" value="session" c:type="GCR_UNLOCK_OPTION_SESSION">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="UNLOCK_OPTION_TIMEOUT" value="timeout" c:type="GCR_UNLOCK_OPTION_TIMEOUT">
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="UnionCollection" c:symbol-prefix="union_collection" c:type="GcrUnionCollection" parent="GObject.Object" glib:type-name="GcrUnionCollection" glib:get-type="gcr_union_collection_get_type" glib:type-struct="UnionCollectionClass">
<doc xml:space="preserve">A union implementation of #GcrCollection.</doc>
<implements name="Collection"/>
<constructor name="new" c:identifier="gcr_union_collection_new">
<doc xml:space="preserve">Create a new #GcrUnionCollection.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated
collection, which should be freed with g_object_unref()</doc>
<type name="UnionCollection" c:type="GcrCollection*"/>
</return-value>
</constructor>
<method name="add" c:identifier="gcr_union_collection_add">
<doc xml:space="preserve">Add objects from this collection to the union</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The union collection</doc>
<type name="UnionCollection" c:type="GcrUnionCollection*"/>
</instance-parameter>
<parameter name="collection" transfer-ownership="none">
<doc xml:space="preserve">The collection whose objects to add</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
</parameters>
</method>
<method name="elements" c:identifier="gcr_union_collection_elements">
<doc xml:space="preserve">Get the collections that have been added to this union.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">collections
added to the union</doc>
<type name="GLib.List" c:type="GList*">
<type name="Collection"/>
</type>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the union collection</doc>
<type name="UnionCollection" c:type="GcrUnionCollection*"/>
</instance-parameter>
</parameters>
</method>
<method name="have" c:identifier="gcr_union_collection_have">
<doc xml:space="preserve">Check whether the collection is present in the union.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether present or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the union collection</doc>
<type name="UnionCollection" c:type="GcrUnionCollection*"/>
</instance-parameter>
<parameter name="collection" transfer-ownership="none">
<doc xml:space="preserve">the collection to check</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
</parameters>
</method>
<method name="remove" c:identifier="gcr_union_collection_remove">
<doc xml:space="preserve">Remove an object from the collection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The collection</doc>
<type name="UnionCollection" c:type="GcrUnionCollection*"/>
</instance-parameter>
<parameter name="collection" transfer-ownership="none">
<doc xml:space="preserve">The collection whose objects to remove</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
</parameters>
</method>
<method name="size" c:identifier="gcr_union_collection_size">
<doc xml:space="preserve">Return the number of collections in this union. This does not reflect
the number of objects in the combined collection.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">number of collections inlcuded</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the union collection</doc>
<type name="UnionCollection" c:type="GcrUnionCollection*"/>
</instance-parameter>
</parameters>
</method>
<method name="take" c:identifier="gcr_union_collection_take">
<doc xml:space="preserve">Add objects from this collection to the union. Do not add an additional
reference to the collection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">The union collection</doc>
<type name="UnionCollection" c:type="GcrUnionCollection*"/>
</instance-parameter>
<parameter name="collection" transfer-ownership="none">
<doc xml:space="preserve">The collection whose objects to add</doc>
<type name="Collection" c:type="GcrCollection*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="pv" readable="0" private="1">
<type name="UnionCollectionPrivate" c:type="GcrUnionCollectionPrivate*"/>
</field>
</class>
<record name="UnionCollectionClass" c:type="GcrUnionCollectionClass" glib:is-gtype-struct-for="UnionCollection">
<doc xml:space="preserve">The class for #GcrUnionCollection.</doc>
<field name="parent_class">
<doc xml:space="preserve">The parent class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
<record name="UnionCollectionPrivate" c:type="GcrUnionCollectionPrivate" disguised="1">
</record>
<function name="certificate_compare" c:identifier="gcr_certificate_compare" moved-to="Certificate.compare">
<doc xml:space="preserve">Compare one certificate against another. If the certificates are equal
then zero is returned. If one certificate is %NULL or not a certificate,
then a non-zero value is returned.
The return value is useful in a stable sort, but has no user logical
meaning.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">zero if the certificates match, non-zero otherwise.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="first" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the certificate to compare</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
<parameter name="other" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the certificate to compare against</doc>
<type name="Comparable" c:type="GcrComparable*"/>
</parameter>
</parameters>
</function>
<function name="certificate_get_columns" c:identifier="gcr_certificate_get_columns" moved-to="Certificate.get_columns" introspectable="0">
<doc xml:space="preserve">Get the columns appropriate for a certificate</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the columns</doc>
<type name="Column" c:type="const GcrColumn*"/>
</return-value>
</function>
<function name="certificate_mixin_class_init" c:identifier="gcr_certificate_mixin_class_init" moved-to="Certificate.mixin_class_init" introspectable="0">
<doc xml:space="preserve">Initialize the certificate mixin for the class. This mixin implements the
various required properties for the certificate.
Call this function near the end of your derived class_init function. The
derived class must implement the #GcrCertificate interface.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="object_class" transfer-ownership="none">
<doc xml:space="preserve">The GObjectClass for this class</doc>
<type name="GObject.ObjectClass" c:type="GObjectClass*"/>
</parameter>
</parameters>
</function>
<function name="certificate_mixin_comparable_init" c:identifier="gcr_certificate_mixin_comparable_init" moved-to="Certificate.mixin_comparable_init" introspectable="0">
<doc xml:space="preserve">Initialize a #GcrComparableIface to compare the current certificate.
In general it's easier to use the GCR_CERTIFICATE_MIXIN_IMPLEMENT_COMPARABLE()
macro instead of this function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="iface" transfer-ownership="none">
<doc xml:space="preserve">The interface</doc>
<type name="ComparableIface" c:type="GcrComparableIface*"/>
</parameter>
</parameters>
</function>
<function name="certificate_mixin_get_property" c:identifier="gcr_certificate_mixin_get_property" moved-to="Certificate.mixin_get_property" introspectable="0">
<doc xml:space="preserve">Implementation to get various required certificate properties. This should
be called from your derived class get_property function, or used as a
get_property virtual function.
Example of use as called from derived class get_property function:
<informalexample><programlisting>
static void
my_get_property (GObject *obj, guint prop_id, GValue *value, GParamSpec *pspec)
{
switch (prop_id) {
...
default:
gcr_certificate_mixin_get_property (obj, prop_id, value, pspec);
break;
}
}
</programlisting></informalexample>
Example of use as get_property function:
<informalexample><programlisting>
static void
my_class_init (MyClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->get_property = gcr_certificate_mixin_get_property;
...
}
</programlisting></informalexample></doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="obj" transfer-ownership="none">
<doc xml:space="preserve">The object</doc>
<type name="GObject.Object" c:type="GObject*"/>
</parameter>
<parameter name="prop_id" transfer-ownership="none">
<doc xml:space="preserve">The property id</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="value" transfer-ownership="none">
<doc xml:space="preserve">The value to fill in.</doc>
<type name="GObject.Value" c:type="GValue*"/>
</parameter>
<parameter name="pspec" transfer-ownership="none">
<doc xml:space="preserve">The param specification.</doc>
<type name="GObject.ParamSpec" c:type="GParamSpec*"/>
</parameter>
</parameters>
</function>
<function name="comparable_memcmp" c:identifier="gcr_comparable_memcmp" moved-to="Comparable.memcmp" introspectable="0">
<doc xml:space="preserve">Compare two blocks of memory. The return value can be used to sort
the blocks of memory.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Zero if the blocks are identical, negative if first
less than secend, possitive otherwise.</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="mem1" transfer-ownership="none">
<doc xml:space="preserve">First block of memory</doc>
<array length="1" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="size1" transfer-ownership="none">
<doc xml:space="preserve">Length of first block</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="mem2" transfer-ownership="none">
<doc xml:space="preserve">Second block of memory</doc>
<array length="3" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="size2" transfer-ownership="none">
<doc xml:space="preserve">Length of second block</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</function>
<function name="data_error_get_domain" c:identifier="gcr_data_error_get_domain">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<function name="fingerprint_from_attributes" c:identifier="gcr_fingerprint_from_attributes">
<doc xml:space="preserve">Create a key fingerprint for a certificate, public key or private key.
Note that this is not a fingerprint of certificate data, which you would
use gcr_certificate_get_fingerprint() for.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">the
fingerprint or %NULL if the input was invalid.</doc>
<array length="2" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<parameter name="attrs" transfer-ownership="none">
<doc xml:space="preserve">attributes for key or certificate</doc>
<type name="Gck.Attributes" c:type="GckAttributes*"/>
</parameter>
<parameter name="checksum_type" transfer-ownership="none">
<doc xml:space="preserve">the type of fingerprint to create</doc>
<type name="GLib.ChecksumType" c:type="GChecksumType"/>
</parameter>
<parameter name="n_fingerprint" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">the length of fingerprint returned</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</function>
<function name="fingerprint_from_subject_public_key_info" c:identifier="gcr_fingerprint_from_subject_public_key_info">
<doc xml:space="preserve">Create a key fingerprint for a DER encoded subjectPublicKeyInfo.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">the
fingerprint or %NULL if the input was invalid.</doc>
<array length="3" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</return-value>
<parameters>
<parameter name="key_info" transfer-ownership="none">
<doc xml:space="preserve">DER encoded subjectPublicKeyInfo structure</doc>
<array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</parameter>
<parameter name="n_key_info" transfer-ownership="none">
<doc xml:space="preserve">length of DER encoded structure</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="checksum_type" transfer-ownership="none">
<doc xml:space="preserve">the type of fingerprint to create</doc>
<type name="GLib.ChecksumType" c:type="GChecksumType"/>
</parameter>
<parameter name="n_fingerprint" direction="out" caller-allocates="0" transfer-ownership="full">
<doc xml:space="preserve">the length of fingerprint returned</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</function>
<function name="icon_for_token" c:identifier="gcr_icon_for_token">
<doc xml:space="preserve">Get an appropriate icon for the token</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the icon</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</return-value>
<parameters>
<parameter name="token_info" transfer-ownership="none">
<doc xml:space="preserve">the token info</doc>
<type name="Gck.TokenInfo" c:type="GckTokenInfo*"/>
</parameter>
</parameters>
</function>
<function name="importer_create_for_parsed" c:identifier="gcr_importer_create_for_parsed" moved-to="Importer.create_for_parsed">
<doc xml:space="preserve">Create a set of importers which can import this parsed item.
The parsed item is represented by the state of the GcrParser at the
time of calling this method.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of importers
which can import the parsed item, which should be freed with
g_object_unref(), or %NULL if no types of importers can be created</doc>
<type name="GLib.List" c:type="GList*">
<type name="Importer"/>
</type>
</return-value>
<parameters>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parser with a parsed item to import</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</function>
<function name="importer_queue_and_filter_for_parsed" c:identifier="gcr_importer_queue_and_filter_for_parsed" moved-to="Importer.queue_and_filter_for_parsed">
<doc xml:space="preserve">Queues an additional item to be imported in all compattible importers
in the set. The parsed item is represented by the state of the #GcrParser
at the time of calling this method.
If the parsed item is incompatible with an importer, then that the item
will not be queued on that importer.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new set of importers
that queued the item, which should be freed with gck_list_unref_free()</doc>
<type name="GLib.List" c:type="GList*">
<type name="Importer"/>
</type>
</return-value>
<parameters>
<parameter name="importers" transfer-ownership="none">
<doc xml:space="preserve">a set of importers</doc>
<type name="GLib.List" c:type="GList*">
<type name="Importer"/>
</type>
</parameter>
<parameter name="parsed" transfer-ownership="none">
<doc xml:space="preserve">a parsed item</doc>
<type name="Parsed" c:type="GcrParsed*"/>
</parameter>
</parameters>
</function>
<function name="importer_register" c:identifier="gcr_importer_register" moved-to="Importer.register">
<doc xml:space="preserve">Register an importer to handle parsed items that match the given attributes.
If @attrs are a floating reference, then it is consumed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="importer_type" transfer-ownership="none">
<doc xml:space="preserve">the GType of the importer being registered</doc>
<type name="GType" c:type="GType"/>
</parameter>
<parameter name="attrs" transfer-ownership="none">
<doc xml:space="preserve">the attributes that this importer is compatible with</doc>
<type name="Gck.Attributes" c:type="GckAttributes*"/>
</parameter>
</parameters>
</function>
<function name="importer_register_well_known" c:identifier="gcr_importer_register_well_known" moved-to="Importer.register_well_known">
<doc xml:space="preserve">Register built-in PKCS\#11 and GnuPG importers.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="mock_prompter_disconnect" c:identifier="gcr_mock_prompter_disconnect">
<doc xml:space="preserve">Disconnect the mock prompter</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="mock_prompter_expect_close" c:identifier="gcr_mock_prompter_expect_close">
<doc xml:space="preserve">Queue an expected response on the mock prompter.
Expects any prompt, and closes the prompt when it gets it.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="mock_prompter_expect_confirm_cancel" c:identifier="gcr_mock_prompter_expect_confirm_cancel">
<doc xml:space="preserve">Queue an expected response on the mock prompter.
Expects a confirmation prompt, and then cancels that prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="mock_prompter_expect_confirm_ok" c:identifier="gcr_mock_prompter_expect_confirm_ok" introspectable="0">
<doc xml:space="preserve">Queue an expected response on the mock prompter.
Expects a confirmation prompt, and then confirms that prompt by
simulating a click on the ok button.
Additional property pairs for the prompt can be added in the argument
list, in the same way that you would with g_object_new().
If the "choice-chosen" property is specified then that value will be
set on the prompt as if the user had changed the value.
All other properties will be checked against the prompt, and an error
will occur if they do not match the value set on the prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="first_property_name" transfer-ownership="none">
<doc xml:space="preserve">the first property name in the argument list or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">properties to expect</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="mock_prompter_expect_password_cancel" c:identifier="gcr_mock_prompter_expect_password_cancel">
<doc xml:space="preserve">Queue an expected response on the mock prompter.
Expects a password prompt, and then cancels that prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="mock_prompter_expect_password_ok" c:identifier="gcr_mock_prompter_expect_password_ok" introspectable="0">
<doc xml:space="preserve">Queue an expected response on the mock prompter.
Expects a password prompt, and returns @password as if the user had entered
it and clicked the ok button.
Additional property pairs for the prompt can be added in the argument
list, in the same way that you would with g_object_new().
If the "choice-chosen" property is specified then that value will be
set on the prompt as if the user had changed the value.
All other properties will be checked against the prompt, and an error
will occur if they do not match the value set on the prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="password" transfer-ownership="none">
<doc xml:space="preserve">the password to return from the prompt</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="first_property_name" transfer-ownership="none">
<doc xml:space="preserve">the first property name in the argument list or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="..." transfer-ownership="none">
<doc xml:space="preserve">properties to expect</doc>
<varargs/>
</parameter>
</parameters>
</function>
<function name="mock_prompter_get_delay_msec" c:identifier="gcr_mock_prompter_get_delay_msec">
<doc xml:space="preserve">Get the delay in milliseconds before the mock prompter completes
an expected prompt.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the delay</doc>
<type name="guint" c:type="guint"/>
</return-value>
</function>
<function name="mock_prompter_is_expecting" c:identifier="gcr_mock_prompter_is_expecting">
<doc xml:space="preserve">Check if the mock prompter is expecting a response. This will be %TRUE
when one of the <literal>gcr_mock_prompter_expect_xxx<!-- -->()</literal>
functions have been used to queue an expected prompt, but that prompt
response has not be 'used' yet.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether expecting a prompt</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</function>
<function name="mock_prompter_is_prompting" c:identifier="gcr_mock_prompter_is_prompting">
<doc xml:space="preserve">Check if the mock prompter is showing any prompts.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether prompting</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</function>
<function name="mock_prompter_set_delay_msec" c:identifier="gcr_mock_prompter_set_delay_msec">
<doc xml:space="preserve">Set the delay in milliseconds before the mock prompter completes
an expected prompt.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="delay_msec" transfer-ownership="none">
<doc xml:space="preserve">prompt response delay in milliseconds</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="mock_prompter_start" c:identifier="gcr_mock_prompter_start">
<doc xml:space="preserve">Start the mock prompter. This is often used from the
<literal>setup<!-- -->()</literal> function of tests.
Starts the mock prompter in an additional thread. Use the returned DBus bus
name with gcr_system_prompt_open_for_prompter() to connect to this prompter.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the bus name that the mock prompter is listening on</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
</function>
<function name="mock_prompter_stop" c:identifier="gcr_mock_prompter_stop">
<doc xml:space="preserve">Stop the mock prompter. This is often used from the
<literal>teardown<!-- -->()</literal> function of tests.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
<function name="parsed_unref" c:identifier="gcr_parsed_unref" moved-to="Parsed.unref">
<doc xml:space="preserve">Unreferences a parsed item which was referenced with gcr_parsed_ref()</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="parsed" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">a parsed item</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_add_module" c:identifier="gcr_pkcs11_add_module">
<doc xml:space="preserve">Add a #GckModule to the list of PKCS\#11 modules that are used by the
GCR library.
It is not normally necessary to call this function. The available
PKCS\#11 modules installed on the system are automatically loaded
by the GCR library.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="module" transfer-ownership="none">
<doc xml:space="preserve">a #GckModule</doc>
<type name="Gck.Module" c:type="GckModule*"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_add_module_from_file" c:identifier="gcr_pkcs11_add_module_from_file" throws="1">
<doc xml:space="preserve">Initialize a PKCS\#11 module and add it to the modules that are
used by the GCR library. Note that is an error to initialize the same
PKCS\#11 module twice.
It is not normally necessary to call this function. The available
PKCS\#11 modules installed on the system are automatically loaded
by the GCR library.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the module was sucessfully added.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="module_path" transfer-ownership="none">
<doc xml:space="preserve">the full file path of the PKCS\#11 module</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="unused" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">unused</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_get_modules" c:identifier="gcr_pkcs11_get_modules">
<doc xml:space="preserve">List all the PKCS\#11 modules that are used by the GCR library.
Each module is a #GckModule object.
An empty list of modules will be returned if gcr_pkcs11_set_modules(),
or gcr_pkcs11_initialize() has not yet run.
When done with the list, free it with gck_list_unref_free().</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated list
of #GckModule objects</doc>
<type name="GLib.List" c:type="GList*">
<type name="Gck.Module"/>
</type>
</return-value>
</function>
<function name="pkcs11_get_trust_lookup_slots" c:identifier="gcr_pkcs11_get_trust_lookup_slots">
<doc xml:space="preserve">List all the PKCS\#11 slots that are used by the GCR library for lookup
of trust assertions. Each slot is a #GckSlot object.
This will return an empty list if the gcr_pkcs11_initialize() function has
not yet been called.
When done with the list, free it with gck_list_unref_free().</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of #GckSlot objects
to use for lookup of trust.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Gck.Slot"/>
</type>
</return-value>
</function>
<function name="pkcs11_get_trust_lookup_uris" c:identifier="gcr_pkcs11_get_trust_lookup_uris">
<doc xml:space="preserve">Get the PKCS\#11 URIs that are used to identify which slots to use for
lookup trust assertions.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the uri which identifies trust storage slot</doc>
<array c:type="const gchar**">
<type name="utf8"/>
</array>
</return-value>
</function>
<function name="pkcs11_get_trust_store_slot" c:identifier="gcr_pkcs11_get_trust_store_slot">
<doc xml:space="preserve">Selects an appropriate PKCS\#11 slot to store trust assertions. The slot
to use is normally configured automatically by the system.
This will only return a valid result after the gcr_pkcs11_initialize()
method has been called.
When done with the #GckSlot, use g_object_unref() to release it.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the #GckSlot to use for trust assertions.</doc>
<type name="Gck.Slot" c:type="GckSlot*"/>
</return-value>
</function>
<function name="pkcs11_get_trust_store_uri" c:identifier="gcr_pkcs11_get_trust_store_uri">
<doc xml:space="preserve">Get the PKCS\#11 URI that is used to identify which slot to use for
storing trust storage.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the uri which identifies trust storage slot</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
</function>
<function name="pkcs11_initialize" c:identifier="gcr_pkcs11_initialize" throws="1">
<doc xml:space="preserve">Asynchronously initialize the registered PKCS\#11 modules.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the operation was successful or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable used to cancel the operation</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_initialize_async" c:identifier="gcr_pkcs11_initialize_async">
<doc xml:space="preserve">Asynchronously initialize the registered PKCS\#11 modules.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="cancellable" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">optional cancellable used to cancel the operation</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback" transfer-ownership="none" nullable="1" allow-none="1" scope="async" closure="2">
<doc xml:space="preserve">callback which will be called when the operation completes</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">data passed to the callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_initialize_finish" c:identifier="gcr_pkcs11_initialize_finish" throws="1">
<doc xml:space="preserve">Complete the asynchronous operation to initialize the registered PKCS\#11
modules.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the operation was successful or not.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">the asynchronous result</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_set_modules" c:identifier="gcr_pkcs11_set_modules">
<doc xml:space="preserve">Set the list of PKCS\#11 modules that are used by the GCR library.
Each module in the list is a #GckModule object.
It is not normally necessary to call this function. The available
PKCS\#11 modules installed on the system are automatically loaded
by the GCR library.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="modules" transfer-ownership="none">
<doc xml:space="preserve">a list of #GckModule</doc>
<type name="GLib.List" c:type="GList*">
<type name="Gck.Module"/>
</type>
</parameter>
</parameters>
</function>
<function name="pkcs11_set_trust_lookup_uris" c:identifier="gcr_pkcs11_set_trust_lookup_uris">
<doc xml:space="preserve">Set the PKCS\#11 URIs that are used to identify which slots to use for
lookup of trust assertions.
It is not normally necessary to call this function. The relevant
PKCS\#11 slots are automatically configured by the GCR library.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="pkcs11_uris" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the uris which identifies trust lookup slots</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
</parameters>
</function>
<function name="pkcs11_set_trust_store_uri" c:identifier="gcr_pkcs11_set_trust_store_uri">
<doc xml:space="preserve">Set the PKCS\#11 URI that is used to identify which slot to use for
storing trust assertions.
It is not normally necessary to call this function. The relevant
PKCS\#11 slot is automatically configured by the GCR library.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="pkcs11_uri" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the uri which identifies trust storage slot</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_alloc" c:identifier="gcr_secure_memory_alloc" introspectable="0">
<doc xml:space="preserve">Allocate a block of non-pageable memory.
If non-pageable memory cannot be allocated then normal memory will be
returned.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">new memory block which should be freed
with gcr_secure_memory_free()</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve">The new desired size of the memory block.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_free" c:identifier="gcr_secure_memory_free" introspectable="0">
<doc xml:space="preserve">Free a block of non-pageable memory.
Glib memory is also freed correctly when passed to this function. If called
with a %NULL pointer then no action is taken.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="memory" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">pointer to the beginning of the block of memory to free</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_is_secure" c:identifier="gcr_secure_memory_is_secure" introspectable="0">
<doc xml:space="preserve">Check if a pointer is in non-pageable memory allocated by.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether the memory is secure non-pageable memory allocated by the
Gcr library or not</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="memory" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">pointer to check</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_realloc" c:identifier="gcr_secure_memory_realloc" introspectable="0">
<doc xml:space="preserve">Reallocate a block of non-pageable memory.
Glib memory is also reallocated correctly. If called with a null pointer,
then a new block of memory is allocated. If called with a zero size,
then the block of memory is freed.
If non-pageable memory cannot be allocated then normal memory will be
returned.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">new block, or %NULL if the block was
freed; memory block should be freed with gcr_secure_memory_free()</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="memory" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">pointer to reallocate or %NULL to allocate a new block</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve">new desired size of the memory block, or 0 to free the memory</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_strdup" c:identifier="gcr_secure_memory_strdup" introspectable="0">
<doc xml:space="preserve">Copy a string into non-pageable memory. If the input string is %NULL, then
%NULL will be returned.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">copied string, should be freed with gcr_secure_memory_free()</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="string" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">null terminated string to copy</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_strfree" c:identifier="gcr_secure_memory_strfree" introspectable="0">
<doc xml:space="preserve">Free a string, whether securely allocated using these functions or not.
This will also clear out the contents of the string so they do not
remain in memory.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="string" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">null terminated string to fere</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_try_alloc" c:identifier="gcr_secure_memory_try_alloc" introspectable="0">
<doc xml:space="preserve">Allocate a block of non-pageable memory.
If non-pageable memory cannot be allocated, then %NULL is returned.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">new block, or %NULL if memory cannot be
allocated; memory block should be freed with gcr_secure_memory_free()</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve">new desired size of the memory block</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</function>
<function name="secure_memory_try_realloc" c:identifier="gcr_secure_memory_try_realloc" introspectable="0">
<doc xml:space="preserve">Reallocate a block of non-pageable memory.
Glib memory is also reallocated correctly when passed to this function.
If called with a null pointer, then a new block of memory is allocated.
If called with a zero size, then the block of memory is freed.
If memory cannot be allocated, %NULL is returned and the original block
of memory remains intact.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">the new block, or %NULL if memory cannot be
allocated; the memory block should be freed with gcr_secure_memory_free()</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="memory" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">pointer to reallocate or %NULL to allocate a new block</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve">new desired size of the memory block</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</function>
</namespace>
</repository>
|