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
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
|
This is gnutls.info, produced by makeinfo version 6.8 from gnutls.texi.
This manual is last updated 9 February 2023 for version 3.7.9 of GnuTLS.
Copyright (C) 2001-2023 Free Software Foundation, Inc.\\ Copyright (C)
2001-2023 Nikos Mavrogiannopoulos
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.3 or any later version published by the Free Software
Foundation; with no Invariant Sections, no Front-Cover Texts, and
no Back-Cover Texts. A copy of the license is included in the
section entitled "GNU Free Documentation License".
INFO-DIR-SECTION Software libraries
START-INFO-DIR-ENTRY
* GnuTLS: (gnutls). GNU Transport Layer Security Library.
END-INFO-DIR-ENTRY
INFO-DIR-SECTION System Administration
START-INFO-DIR-ENTRY
* certtool: (gnutls)certtool Invocation. Manipulate certificates and keys.
* gnutls-serv: (gnutls)gnutls-serv Invocation. GnuTLS test server.
* gnutls-cli: (gnutls)gnutls-cli Invocation. GnuTLS test client.
* gnutls-cli-debug: (gnutls)gnutls-cli-debug Invocation. GnuTLS debug client.
* psktool: (gnutls)psktool Invocation. Simple TLS-Pre-Shared-Keys manager.
* srptool: (gnutls)srptool Invocation. Simple SRP password tool.
END-INFO-DIR-ENTRY
File: gnutls.info, Node: OCSP API, Next: PKCS 12 API, Prev: PKCS 7 API, Up: API reference
E.5 OCSP API
============
The following functions are for OCSP certificate status checking. Their
prototypes lie in 'gnutls/ocsp.h'.
gnutls_ocsp_req_add_cert
------------------------
-- Function: int gnutls_ocsp_req_add_cert (gnutls_ocsp_req_t REQ,
gnutls_digest_algorithm_t DIGEST, gnutls_x509_crt_t ISSUER,
gnutls_x509_crt_t CERT)
REQ: should contain a 'gnutls_ocsp_req_t' type
DIGEST: hash algorithm, a 'gnutls_digest_algorithm_t' value
ISSUER: issuer of 'subject' certificate
CERT: certificate to request status for
This function will add another request to the OCSP request for a
particular certificate. The issuer name hash, issuer key hash, and
serial number fields is populated as follows. The issuer name and
the serial number is taken from 'cert' . The issuer key is taken
from 'issuer' . The hashed values will be hashed using the
'digest' algorithm, normally 'GNUTLS_DIG_SHA1' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_req_add_cert_id
---------------------------
-- Function: int gnutls_ocsp_req_add_cert_id (gnutls_ocsp_req_t REQ,
gnutls_digest_algorithm_t DIGEST, const gnutls_datum_t *
ISSUER_NAME_HASH, const gnutls_datum_t * ISSUER_KEY_HASH,
const gnutls_datum_t * SERIAL_NUMBER)
REQ: should contain a 'gnutls_ocsp_req_t' type
DIGEST: hash algorithm, a 'gnutls_digest_algorithm_t' value
ISSUER_NAME_HASH: hash of issuer's DN
ISSUER_KEY_HASH: hash of issuer's public key
SERIAL_NUMBER: serial number of certificate to check
This function will add another request to the OCSP request for a
particular certificate having the issuer name hash of
'issuer_name_hash' and issuer key hash of 'issuer_key_hash' (both
hashed using 'digest' ) and serial number 'serial_number' .
The information needed corresponds to the CertID structure:
<informalexample><programlisting> CertID ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier, issuerNameHash OCTET STRING, -
Hash of Issuer's DN issuerKeyHash OCTET STRING, - Hash of Issuers
public key serialNumber CertificateSerialNumber }
</programlisting></informalexample>
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_req_deinit
----------------------
-- Function: void gnutls_ocsp_req_deinit (gnutls_ocsp_req_t REQ)
REQ: The data to be deinitialized
This function will deinitialize a OCSP request structure.
gnutls_ocsp_req_export
----------------------
-- Function: int gnutls_ocsp_req_export (gnutls_ocsp_req_const_t REQ,
gnutls_datum_t * DATA)
REQ: Holds the OCSP request
DATA: newly allocate buffer holding DER encoded OCSP request
This function will export the OCSP request to DER format.
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
gnutls_ocsp_req_get_cert_id
---------------------------
-- Function: int gnutls_ocsp_req_get_cert_id (gnutls_ocsp_req_const_t
REQ, unsigned INDX, gnutls_digest_algorithm_t * DIGEST,
gnutls_datum_t * ISSUER_NAME_HASH, gnutls_datum_t *
ISSUER_KEY_HASH, gnutls_datum_t * SERIAL_NUMBER)
REQ: should contain a 'gnutls_ocsp_req_t' type
INDX: Specifies which extension OID to get. Use (0) to get the
first one.
DIGEST: output variable with 'gnutls_digest_algorithm_t' hash
algorithm
ISSUER_NAME_HASH: output buffer with hash of issuer's DN
ISSUER_KEY_HASH: output buffer with hash of issuer's public key
SERIAL_NUMBER: output buffer with serial number of certificate to
check
This function will return the certificate information of the 'indx'
'ed request in the OCSP request. The information returned
corresponds to the CertID structure:
<informalexample><programlisting> CertID ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier, issuerNameHash OCTET STRING, -
Hash of Issuer's DN issuerKeyHash OCTET STRING, - Hash of Issuers
public key serialNumber CertificateSerialNumber }
</programlisting></informalexample>
Each of the pointers to output variables may be NULL to indicate
that the caller is not interested in that value.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned. If you have reached
the last CertID available 'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE'
will be returned.
gnutls_ocsp_req_get_extension
-----------------------------
-- Function: int gnutls_ocsp_req_get_extension (gnutls_ocsp_req_const_t
REQ, unsigned INDX, gnutls_datum_t * OID, unsigned int *
CRITICAL, gnutls_datum_t * DATA)
REQ: should contain a 'gnutls_ocsp_req_t' type
INDX: Specifies which extension OID to get. Use (0) to get the
first one.
OID: will hold newly allocated buffer with OID of extension, may be
NULL
CRITICAL: output variable with critical flag, may be NULL.
DATA: will hold newly allocated buffer with extension data, may be
NULL
This function will return all information about the requested
extension in the OCSP request. The information returned is the
OID, the critical flag, and the data itself. The extension OID
will be stored as a string. Any of 'oid' , 'critical' , and 'data'
may be NULL which means that the caller is not interested in
getting that information back.
The caller needs to deallocate memory by calling 'gnutls_free()' on
'oid' ->data and 'data' ->data.
Since 3.7.0 'oid' ->size does not account for the terminating null
byte.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned. If you have reached
the last extension available
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
gnutls_ocsp_req_get_nonce
-------------------------
-- Function: int gnutls_ocsp_req_get_nonce (gnutls_ocsp_req_const_t
REQ, unsigned int * CRITICAL, gnutls_datum_t * NONCE)
REQ: should contain a 'gnutls_ocsp_req_t' type
CRITICAL: whether nonce extension is marked critical, or NULL
NONCE: will hold newly allocated buffer with nonce data
This function will return the OCSP request nonce extension data.
The caller needs to deallocate memory by calling 'gnutls_free()' on
'nonce' ->data.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_req_get_version
---------------------------
-- Function: int gnutls_ocsp_req_get_version (gnutls_ocsp_req_const_t
REQ)
REQ: should contain a 'gnutls_ocsp_req_t' type
This function will return the version of the OCSP request.
Typically this is always 1 indicating version 1.
*Returns:* version of OCSP request, or a negative error code on
error.
gnutls_ocsp_req_import
----------------------
-- Function: int gnutls_ocsp_req_import (gnutls_ocsp_req_t REQ, const
gnutls_datum_t * DATA)
REQ: The data to store the parsed request.
DATA: DER encoded OCSP request.
This function will convert the given DER encoded OCSP request to
the native 'gnutls_ocsp_req_t' format. The output will be stored
in 'req' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_req_init
--------------------
-- Function: int gnutls_ocsp_req_init (gnutls_ocsp_req_t * REQ)
REQ: A pointer to the type to be initialized
This function will initialize an OCSP request structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_req_print
---------------------
-- Function: int gnutls_ocsp_req_print (gnutls_ocsp_req_const_t REQ,
gnutls_ocsp_print_formats_t FORMAT, gnutls_datum_t * OUT)
REQ: The data to be printed
FORMAT: Indicate the format to use
OUT: Newly allocated datum with (0) terminated string.
This function will pretty print a OCSP request, suitable for
display to a human.
If the format is 'GNUTLS_OCSP_PRINT_FULL' then all fields of the
request will be output, on multiple lines.
The output 'out' ->data needs to be deallocate using
'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_req_randomize_nonce
-------------------------------
-- Function: int gnutls_ocsp_req_randomize_nonce (gnutls_ocsp_req_t
REQ)
REQ: should contain a 'gnutls_ocsp_req_t' type
This function will add or update an nonce extension to the OCSP
request with a newly generated random value.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_req_set_extension
-----------------------------
-- Function: int gnutls_ocsp_req_set_extension (gnutls_ocsp_req_t REQ,
const char * OID, unsigned int CRITICAL, const gnutls_datum_t
* DATA)
REQ: should contain a 'gnutls_ocsp_req_t' type
OID: buffer with OID of extension as a string.
CRITICAL: critical flag, normally false.
DATA: the extension data
This function will add an extension to the OCSP request. Calling
this function multiple times for the same OID will overwrite values
from earlier calls.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_req_set_nonce
-------------------------
-- Function: int gnutls_ocsp_req_set_nonce (gnutls_ocsp_req_t REQ,
unsigned int CRITICAL, const gnutls_datum_t * NONCE)
REQ: should contain a 'gnutls_ocsp_req_t' type
CRITICAL: critical flag, normally false.
NONCE: the nonce data
This function will add an nonce extension to the OCSP request.
Calling this function multiple times will overwrite values from
earlier calls.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_resp_check_crt
--------------------------
-- Function: int gnutls_ocsp_resp_check_crt (gnutls_ocsp_resp_const_t
RESP, unsigned int INDX, gnutls_x509_crt_t CRT)
RESP: should contain a 'gnutls_ocsp_resp_t' type
INDX: Specifies response number to get. Use (0) to get the first
one.
CRT: The certificate to check
This function will check whether the OCSP response is about the
provided certificate.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
*Since:* 3.1.3
gnutls_ocsp_resp_deinit
-----------------------
-- Function: void gnutls_ocsp_resp_deinit (gnutls_ocsp_resp_t RESP)
RESP: The data to be deinitialized
This function will deinitialize a OCSP response structure.
gnutls_ocsp_resp_export
-----------------------
-- Function: int gnutls_ocsp_resp_export (gnutls_ocsp_resp_const_t
RESP, gnutls_datum_t * DATA)
RESP: Holds the OCSP response
DATA: newly allocate buffer holding DER encoded OCSP response
This function will export the OCSP response to DER format.
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
gnutls_ocsp_resp_export2
------------------------
-- Function: int gnutls_ocsp_resp_export2 (gnutls_ocsp_resp_const_t
RESP, gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FMT)
RESP: Holds the OCSP response
DATA: newly allocate buffer holding DER or PEM encoded OCSP
response
FMT: DER or PEM
This function will export the OCSP response to DER or PEM format.
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
*Since:* 3.6.3
gnutls_ocsp_resp_get_certs
--------------------------
-- Function: int gnutls_ocsp_resp_get_certs (gnutls_ocsp_resp_const_t
RESP, gnutls_x509_crt_t ** CERTS, size_t * NCERTS)
RESP: should contain a 'gnutls_ocsp_resp_t' type
CERTS: newly allocated array with 'gnutls_x509_crt_t' certificates
NCERTS: output variable with number of allocated certs.
This function will extract the X.509 certificates found in the
Basic OCSP Response. The 'certs' output variable will hold a newly
allocated zero-terminated array with X.509 certificates.
Every certificate in the array needs to be de-allocated with
'gnutls_x509_crt_deinit()' and the array itself must be freed using
'gnutls_free()' .
Both the 'certs' and 'ncerts' variables may be NULL. Then the
function will work as normal but will not return the NULL:d
information. This can be used to get the number of certificates
only, or to just get the certificate array without its size.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_get_extension
------------------------------
-- Function: int gnutls_ocsp_resp_get_extension
(gnutls_ocsp_resp_const_t RESP, unsigned INDX, gnutls_datum_t
* OID, unsigned int * CRITICAL, gnutls_datum_t * DATA)
RESP: should contain a 'gnutls_ocsp_resp_t' type
INDX: Specifies which extension OID to get. Use (0) to get the
first one.
OID: will hold newly allocated buffer with OID of extension, may be
NULL
CRITICAL: output variable with critical flag, may be NULL.
DATA: will hold newly allocated buffer with extension data, may be
NULL
This function will return all information about the requested
extension in the OCSP response. The information returned is the
OID, the critical flag, and the data itself. The extension OID
will be stored as a string. Any of 'oid' , 'critical' , and 'data'
may be NULL which means that the caller is not interested in
getting that information back.
The caller needs to deallocate memory by calling 'gnutls_free()' on
'oid' ->data and 'data' ->data.
Since 3.7.0 'oid' ->size does not account for the terminating null
byte.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned. If you have reached
the last extension available
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
gnutls_ocsp_resp_get_nonce
--------------------------
-- Function: int gnutls_ocsp_resp_get_nonce (gnutls_ocsp_resp_const_t
RESP, unsigned int * CRITICAL, gnutls_datum_t * NONCE)
RESP: should contain a 'gnutls_ocsp_resp_t' type
CRITICAL: whether nonce extension is marked critical
NONCE: will hold newly allocated buffer with nonce data
This function will return the Basic OCSP Response nonce extension
data.
The caller needs to deallocate memory by calling 'gnutls_free()' on
'nonce' ->data.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_resp_get_produced
-----------------------------
-- Function: time_t gnutls_ocsp_resp_get_produced
(gnutls_ocsp_resp_const_t RESP)
RESP: should contain a 'gnutls_ocsp_resp_t' type
This function will return the time when the OCSP response was
signed.
*Returns:* signing time, or (time_t)-1 on error.
gnutls_ocsp_resp_get_responder
------------------------------
-- Function: int gnutls_ocsp_resp_get_responder
(gnutls_ocsp_resp_const_t RESP, gnutls_datum_t * DN)
RESP: should contain a 'gnutls_ocsp_resp_t' type
DN: newly allocated buffer with name
This function will extract the name of the Basic OCSP Response in
the provided buffer. The name will be in the form
"C=xxxx,O=yyyy,CN=zzzz" as described in RFC2253. The output string
will be ASCII or UTF-8 encoded, depending on the certificate data.
If the responder ID is not a name but a hash, this function will
return zero and the 'dn' elements will be set to 'NULL' .
The caller needs to deallocate memory by calling 'gnutls_free()' on
'dn' ->data.
This function does not output a fully RFC4514 compliant string, if
that is required see 'gnutls_ocsp_resp_get_responder2()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned. When no data exist it
will return success and set 'dn' elements to zero.
gnutls_ocsp_resp_get_responder2
-------------------------------
-- Function: int gnutls_ocsp_resp_get_responder2
(gnutls_ocsp_resp_const_t RESP, gnutls_datum_t * DN, unsigned
FLAGS)
RESP: should contain a 'gnutls_ocsp_resp_t' type
DN: newly allocated buffer with name
FLAGS: zero or 'GNUTLS_X509_DN_FLAG_COMPAT'
This function will extract the name of the Basic OCSP Response in
the provided buffer. The name will be in the form
"C=xxxx,O=yyyy,CN=zzzz" as described in RFC2253. The output string
will be ASCII or UTF-8 encoded, depending on the certificate data.
If the responder ID is not a name but a hash, this function will
return zero and the 'dn' elements will be set to 'NULL' .
The caller needs to deallocate memory by calling 'gnutls_free()' on
'dn' ->data.
When the flag 'GNUTLS_X509_DN_FLAG_COMPAT' is specified, the output
format will match the format output by previous to 3.5.6 versions
of GnuTLS which was not not fully RFC4514-compliant.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned. When no data exist it
will return 'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' .
gnutls_ocsp_resp_get_responder_raw_id
-------------------------------------
-- Function: int gnutls_ocsp_resp_get_responder_raw_id
(gnutls_ocsp_resp_const_t RESP, unsigned TYPE, gnutls_datum_t
* RAW)
RESP: should contain a 'gnutls_ocsp_resp_t' type
TYPE: should be 'GNUTLS_OCSP_RESP_ID_KEY' or
'GNUTLS_OCSP_RESP_ID_DN'
RAW: newly allocated buffer with the raw ID
This function will extract the raw key (or DN) ID of the Basic OCSP
Response in the provided buffer. If the responder ID is not a key
ID then this function will return
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' .
The caller needs to deallocate memory by calling 'gnutls_free()' on
'dn' ->data.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_ocsp_resp_get_response
-----------------------------
-- Function: int gnutls_ocsp_resp_get_response
(gnutls_ocsp_resp_const_t RESP, gnutls_datum_t *
RESPONSE_TYPE_OID, gnutls_datum_t * RESPONSE)
RESP: should contain a 'gnutls_ocsp_resp_t' type
RESPONSE_TYPE_OID: newly allocated output buffer with response type
OID
RESPONSE: newly allocated output buffer with DER encoded response
This function will extract the response type OID in and the
response data from an OCSP response. Normally the
'response_type_oid' is always "1.3.6.1.5.5.7.48.1.1" which means
the 'response' should be decoded as a Basic OCSP Response, but
technically other response types could be used.
This function is typically only useful when you want to extract the
response type OID of an response for diagnostic purposes.
Otherwise 'gnutls_ocsp_resp_import()' will decode the basic OCSP
response part and the caller need not worry about that aspect.
Since 3.7.0 'response_type_oid' ->size does not account for the
terminating null byte.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_get_signature
------------------------------
-- Function: int gnutls_ocsp_resp_get_signature
(gnutls_ocsp_resp_const_t RESP, gnutls_datum_t * SIG)
RESP: should contain a 'gnutls_ocsp_resp_t' type
SIG: newly allocated output buffer with signature data
This function will extract the signature field of a OCSP response.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_get_signature_algorithm
----------------------------------------
-- Function: int gnutls_ocsp_resp_get_signature_algorithm
(gnutls_ocsp_resp_const_t RESP)
RESP: should contain a 'gnutls_ocsp_resp_t' type
This function will return a value of the 'gnutls_sign_algorithm_t'
enumeration that is the signature algorithm that has been used to
sign the OCSP response.
*Returns:* a 'gnutls_sign_algorithm_t' value, or a negative error
code on error.
gnutls_ocsp_resp_get_single
---------------------------
-- Function: int gnutls_ocsp_resp_get_single (gnutls_ocsp_resp_const_t
RESP, unsigned INDX, gnutls_digest_algorithm_t * DIGEST,
gnutls_datum_t * ISSUER_NAME_HASH, gnutls_datum_t *
ISSUER_KEY_HASH, gnutls_datum_t * SERIAL_NUMBER, unsigned int
* CERT_STATUS, time_t * THIS_UPDATE, time_t * NEXT_UPDATE,
time_t * REVOCATION_TIME, unsigned int * REVOCATION_REASON)
RESP: should contain a 'gnutls_ocsp_resp_t' type
INDX: Specifies response number to get. Use (0) to get the first
one.
DIGEST: output variable with 'gnutls_digest_algorithm_t' hash
algorithm
ISSUER_NAME_HASH: output buffer with hash of issuer's DN
ISSUER_KEY_HASH: output buffer with hash of issuer's public key
SERIAL_NUMBER: output buffer with serial number of certificate to
check
CERT_STATUS: a certificate status, a 'gnutls_ocsp_cert_status_t'
enum.
THIS_UPDATE: time at which the status is known to be correct.
NEXT_UPDATE: when newer information will be available, or
(time_t)-1 if unspecified
REVOCATION_TIME: when 'cert_status' is 'GNUTLS_OCSP_CERT_REVOKED' ,
holds time of revocation.
REVOCATION_REASON: revocation reason, a 'gnutls_x509_crl_reason_t'
enum.
This function will return the certificate information of the 'indx'
'ed response in the Basic OCSP Response 'resp' . The information
returned corresponds to the OCSP SingleResponse structure except
the final singleExtensions.
Each of the pointers to output variables may be NULL to indicate
that the caller is not interested in that value.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned. If you have reached
the last CertID available 'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE'
will be returned.
gnutls_ocsp_resp_get_status
---------------------------
-- Function: int gnutls_ocsp_resp_get_status (gnutls_ocsp_resp_const_t
RESP)
RESP: should contain a 'gnutls_ocsp_resp_t' type
This function will return the status of a OCSP response, an
'gnutls_ocsp_resp_status_t' enumeration.
*Returns:* status of OCSP request as a 'gnutls_ocsp_resp_status_t'
, or a negative error code on error.
gnutls_ocsp_resp_get_version
----------------------------
-- Function: int gnutls_ocsp_resp_get_version (gnutls_ocsp_resp_const_t
RESP)
RESP: should contain a 'gnutls_ocsp_resp_t' type
This function will return the version of the Basic OCSP Response.
Typically this is always 1 indicating version 1.
*Returns:* version of Basic OCSP response, or a negative error code
on error.
gnutls_ocsp_resp_import
-----------------------
-- Function: int gnutls_ocsp_resp_import (gnutls_ocsp_resp_t RESP,
const gnutls_datum_t * DATA)
RESP: The data to store the parsed response.
DATA: DER encoded OCSP response.
This function will convert the given DER encoded OCSP response to
the native 'gnutls_ocsp_resp_t' format. It also decodes the Basic
OCSP Response part, if any. The output will be stored in 'resp' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_import2
------------------------
-- Function: int gnutls_ocsp_resp_import2 (gnutls_ocsp_resp_t RESP,
const gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FMT)
RESP: The data to store the parsed response.
DATA: DER or PEM encoded OCSP response.
FMT: DER or PEM
This function will convert the given OCSP response to the native
'gnutls_ocsp_resp_t' format. It also decodes the Basic OCSP
Response part, if any. The output will be stored in 'resp' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.3
gnutls_ocsp_resp_init
---------------------
-- Function: int gnutls_ocsp_resp_init (gnutls_ocsp_resp_t * RESP)
RESP: A pointer to the type to be initialized
This function will initialize an OCSP response structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_list_import2
-----------------------------
-- Function: int gnutls_ocsp_resp_list_import2 (gnutls_ocsp_resp_t **
OCSPS, unsigned int * SIZE, const gnutls_datum_t * RESP_DATA,
gnutls_x509_crt_fmt_t FORMAT, unsigned int FLAGS)
OCSPS: Will hold the parsed OCSP response list.
SIZE: It will contain the size of the list.
RESP_DATA: The PEM encoded OCSP list.
FORMAT: One of 'GNUTLS_X509_FMT_PEM' or 'GNUTLS_X509_FMT_DER'
FLAGS: must be (0) or an OR'd sequence of
gnutls_certificate_import_flags.
This function will convert the given PEM encoded OCSP response list
to the native gnutls_ocsp_resp_t format. The output will be stored
in 'ocsps' which will be allocated and initialized.
The OCSP responses should have a header of "OCSP RESPONSE".
To deinitialize responses, you need to deinitialize each
'gnutls_ocsp_resp_t' structure independently, and use
'gnutls_free()' at 'ocsps' .
In PEM files, when no OCSP responses are detected
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
*Returns:* the number of responses read or a negative error value.
*Since:* 3.6.3
gnutls_ocsp_resp_print
----------------------
-- Function: int gnutls_ocsp_resp_print (gnutls_ocsp_resp_const_t RESP,
gnutls_ocsp_print_formats_t FORMAT, gnutls_datum_t * OUT)
RESP: The data to be printed
FORMAT: Indicate the format to use
OUT: Newly allocated datum with (0) terminated string.
This function will pretty print a OCSP response, suitable for
display to a human.
If the format is 'GNUTLS_OCSP_PRINT_FULL' then all fields of the
response will be output, on multiple lines.
The output 'out' ->data needs to be deallocate using
'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_verify
-----------------------
-- Function: int gnutls_ocsp_resp_verify (gnutls_ocsp_resp_const_t
RESP, gnutls_x509_trust_list_t TRUSTLIST, unsigned int *
VERIFY, unsigned int FLAGS)
RESP: should contain a 'gnutls_ocsp_resp_t' type
TRUSTLIST: trust anchors as a 'gnutls_x509_trust_list_t' type
VERIFY: output variable with verification status, an
'gnutls_ocsp_verify_reason_t'
FLAGS: verification flags from 'gnutls_certificate_verify_flags'
Verify signature of the Basic OCSP Response against the public key
in the certificate of a trusted signer. The 'trustlist' should be
populated with trust anchors. The function will extract the signer
certificate from the Basic OCSP Response and will verify it against
the 'trustlist' . A trusted signer is a certificate that is either
in 'trustlist' , or it is signed directly by a certificate in
'trustlist' and has the id-ad-ocspSigning Extended Key Usage bit
set.
The output 'verify' variable will hold verification status codes
(e.g., 'GNUTLS_OCSP_VERIFY_SIGNER_NOT_FOUND' ,
'GNUTLS_OCSP_VERIFY_INSECURE_ALGORITHM' ) which are only valid if
the function returned 'GNUTLS_E_SUCCESS' .
Note that the function returns 'GNUTLS_E_SUCCESS' even when
verification failed. The caller must always inspect the 'verify'
variable to find out the verification status.
The 'flags' variable should be 0 for now.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_ocsp_resp_verify_direct
------------------------------
-- Function: int gnutls_ocsp_resp_verify_direct
(gnutls_ocsp_resp_const_t RESP, gnutls_x509_crt_t ISSUER,
unsigned int * VERIFY, unsigned int FLAGS)
RESP: should contain a 'gnutls_ocsp_resp_t' type
ISSUER: certificate believed to have signed the response
VERIFY: output variable with verification status, an
'gnutls_ocsp_verify_reason_t'
FLAGS: verification flags from 'gnutls_certificate_verify_flags'
Verify signature of the Basic OCSP Response against the public key
in the 'issuer' certificate.
The output 'verify' variable will hold verification status codes
(e.g., 'GNUTLS_OCSP_VERIFY_SIGNER_NOT_FOUND' ,
'GNUTLS_OCSP_VERIFY_INSECURE_ALGORITHM' ) which are only valid if
the function returned 'GNUTLS_E_SUCCESS' .
Note that the function returns 'GNUTLS_E_SUCCESS' even when
verification failed. The caller must always inspect the 'verify'
variable to find out the verification status.
The 'flags' variable should be 0 for now.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
File: gnutls.info, Node: PKCS 12 API, Next: PKCS 11 API, Prev: OCSP API, Up: API reference
E.6 PKCS 12 API
===============
The following functions are to be used for PKCS 12 handling. Their
prototypes lie in 'gnutls/pkcs12.h'.
gnutls_pkcs12_bag_decrypt
-------------------------
-- Function: int gnutls_pkcs12_bag_decrypt (gnutls_pkcs12_bag_t BAG,
const char * PASS)
BAG: The bag
PASS: The password used for encryption, must be ASCII.
This function will decrypt the given encrypted bag and return 0 on
success.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_pkcs12_bag_deinit
------------------------
-- Function: void gnutls_pkcs12_bag_deinit (gnutls_pkcs12_bag_t BAG)
BAG: A pointer to the type to be initialized
This function will deinitialize a PKCS12 Bag structure.
gnutls_pkcs12_bag_enc_info
--------------------------
-- Function: int gnutls_pkcs12_bag_enc_info (gnutls_pkcs12_bag_t BAG,
unsigned int * SCHEMA, unsigned int * CIPHER, void * SALT,
unsigned int * SALT_SIZE, unsigned int * ITER_COUNT, char **
OID)
BAG: The bag
SCHEMA: indicate the schema as one of 'gnutls_pkcs_encrypt_flags_t'
CIPHER: the cipher used as 'gnutls_cipher_algorithm_t'
SALT: PBKDF2 salt (if non-NULL then 'salt_size' initially holds its
size)
SALT_SIZE: PBKDF2 salt size
ITER_COUNT: PBKDF2 iteration count
OID: if non-NULL it will contain an allocated null-terminated
variable with the OID
This function will provide information on the encryption algorithms
used in an encrypted bag. If the structure algorithms are unknown
the code 'GNUTLS_E_UNKNOWN_CIPHER_TYPE' will be returned, and only
'oid' , will be set. That is, 'oid' will be set on encrypted bags
whether supported or not. It must be deinitialized using
'gnutls_free()' . The other variables are only set on supported
structures.
*Returns:* 'GNUTLS_E_INVALID_REQUEST' if the provided bag isn't
encrypted, 'GNUTLS_E_UNKNOWN_CIPHER_TYPE' if the structure's
encryption isn't supported, or another negative error code in case
of a failure. Zero on success.
gnutls_pkcs12_bag_encrypt
-------------------------
-- Function: int gnutls_pkcs12_bag_encrypt (gnutls_pkcs12_bag_t BAG,
const char * PASS, unsigned int FLAGS)
BAG: The bag
PASS: The password used for encryption, must be ASCII
FLAGS: should be one of 'gnutls_pkcs_encrypt_flags_t' elements
bitwise or'd
This function will encrypt the given bag.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error code is returned.
gnutls_pkcs12_bag_get_count
---------------------------
-- Function: int gnutls_pkcs12_bag_get_count (gnutls_pkcs12_bag_t BAG)
BAG: The bag
This function will return the number of the elements within the
bag.
*Returns:* Number of elements in bag, or an negative error code on
error.
gnutls_pkcs12_bag_get_data
--------------------------
-- Function: int gnutls_pkcs12_bag_get_data (gnutls_pkcs12_bag_t BAG,
unsigned INDX, gnutls_datum_t * DATA)
BAG: The bag
INDX: The element of the bag to get the data from
DATA: where the bag's data will be. Should be treated as constant.
This function will return the bag's data. The data is a constant
that is stored into the bag. Should not be accessed after the bag
is deleted.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_bag_get_friendly_name
-----------------------------------
-- Function: int gnutls_pkcs12_bag_get_friendly_name
(gnutls_pkcs12_bag_t BAG, unsigned INDX, char ** NAME)
BAG: The bag
INDX: The bag's element to add the id
NAME: will hold a pointer to the name (to be treated as const)
This function will return the friendly name, of the specified bag
element. The key ID is usually used to distinguish the local
private key and the certificate pair.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value. or a negative error code on
error.
gnutls_pkcs12_bag_get_key_id
----------------------------
-- Function: int gnutls_pkcs12_bag_get_key_id (gnutls_pkcs12_bag_t BAG,
unsigned INDX, gnutls_datum_t * ID)
BAG: The bag
INDX: The bag's element to add the id
ID: where the ID will be copied (to be treated as const)
This function will return the key ID, of the specified bag element.
The key ID is usually used to distinguish the local private key and
the certificate pair.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value. or a negative error code on
error.
gnutls_pkcs12_bag_get_type
--------------------------
-- Function: int gnutls_pkcs12_bag_get_type (gnutls_pkcs12_bag_t BAG,
unsigned INDX)
BAG: The bag
INDX: The element of the bag to get the type
This function will return the bag's type.
*Returns:* On error a negative error value or one of the
'gnutls_pkcs12_bag_type_t' enumerations.
gnutls_pkcs12_bag_init
----------------------
-- Function: int gnutls_pkcs12_bag_init (gnutls_pkcs12_bag_t * BAG)
BAG: A pointer to the type to be initialized
This function will initialize a PKCS12 bag structure. PKCS12 Bags
usually contain private keys, lists of X.509 Certificates and X.509
Certificate revocation lists.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_bag_set_crl
-------------------------
-- Function: int gnutls_pkcs12_bag_set_crl (gnutls_pkcs12_bag_t BAG,
gnutls_x509_crl_t CRL)
BAG: The bag
CRL: the CRL to be copied.
This function will insert the given CRL into the bag. This is just
a wrapper over 'gnutls_pkcs12_bag_set_data()' .
*Returns:* the index of the added bag on success, or a negative
error code on failure.
gnutls_pkcs12_bag_set_crt
-------------------------
-- Function: int gnutls_pkcs12_bag_set_crt (gnutls_pkcs12_bag_t BAG,
gnutls_x509_crt_t CRT)
BAG: The bag
CRT: the certificate to be copied.
This function will insert the given certificate into the bag. This
is just a wrapper over 'gnutls_pkcs12_bag_set_data()' .
*Returns:* the index of the added bag on success, or a negative
value on failure.
gnutls_pkcs12_bag_set_data
--------------------------
-- Function: int gnutls_pkcs12_bag_set_data (gnutls_pkcs12_bag_t BAG,
gnutls_pkcs12_bag_type_t TYPE, const gnutls_datum_t * DATA)
BAG: The bag
TYPE: The data's type
DATA: the data to be copied.
This function will insert the given data of the given type into the
bag.
*Returns:* the index of the added bag on success, or a negative
value on error.
gnutls_pkcs12_bag_set_friendly_name
-----------------------------------
-- Function: int gnutls_pkcs12_bag_set_friendly_name
(gnutls_pkcs12_bag_t BAG, unsigned INDX, const char * NAME)
BAG: The bag
INDX: The bag's element to add the id
NAME: the name
This function will add the given key friendly name, to the
specified, by the index, bag element. The name will be encoded as
a 'Friendly name' bag attribute, which is usually used to set a
user name to the local private key and the certificate pair.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value. or a negative error code on
error.
gnutls_pkcs12_bag_set_key_id
----------------------------
-- Function: int gnutls_pkcs12_bag_set_key_id (gnutls_pkcs12_bag_t BAG,
unsigned INDX, const gnutls_datum_t * ID)
BAG: The bag
INDX: The bag's element to add the id
ID: the ID
This function will add the given key ID, to the specified, by the
index, bag element. The key ID will be encoded as a 'Local key
identifier' bag attribute, which is usually used to distinguish the
local private key and the certificate pair.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value. or a negative error code on
error.
gnutls_pkcs12_bag_set_privkey
-----------------------------
-- Function: int gnutls_pkcs12_bag_set_privkey (gnutls_pkcs12_bag_t
BAG, gnutls_x509_privkey_t PRIVKEY, const char * PASSWORD,
unsigned FLAGS)
BAG: The bag
PRIVKEY: the private key to be copied.
PASSWORD: the password to protect the key with (may be 'NULL' )
FLAGS: should be one of 'gnutls_pkcs_encrypt_flags_t' elements
bitwise or'd
This function will insert the given private key into the bag. This
is just a wrapper over 'gnutls_pkcs12_bag_set_data()' .
*Returns:* the index of the added bag on success, or a negative
value on failure.
gnutls_pkcs12_deinit
--------------------
-- Function: void gnutls_pkcs12_deinit (gnutls_pkcs12_t PKCS12)
PKCS12: The type to be initialized
This function will deinitialize a PKCS12 type.
gnutls_pkcs12_export
--------------------
-- Function: int gnutls_pkcs12_export (gnutls_pkcs12_t PKCS12,
gnutls_x509_crt_fmt_t FORMAT, void * OUTPUT_DATA, size_t *
OUTPUT_DATA_SIZE)
PKCS12: A pkcs12 type
FORMAT: the format of output params. One of PEM or DER.
OUTPUT_DATA: will contain a structure PEM or DER encoded
OUTPUT_DATA_SIZE: holds the size of output_data (and will be
replaced by the actual size of parameters)
This function will export the pkcs12 structure to DER or PEM
format.
If the buffer provided is not long enough to hold the output, then
*output_data_size will be updated and GNUTLS_E_SHORT_MEMORY_BUFFER
will be returned.
If the structure is PEM encoded, it will have a header of "BEGIN
PKCS12".
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
gnutls_pkcs12_export2
---------------------
-- Function: int gnutls_pkcs12_export2 (gnutls_pkcs12_t PKCS12,
gnutls_x509_crt_fmt_t FORMAT, gnutls_datum_t * OUT)
PKCS12: A pkcs12 type
FORMAT: the format of output params. One of PEM or DER.
OUT: will contain a structure PEM or DER encoded
This function will export the pkcs12 structure to DER or PEM
format.
The output buffer is allocated using 'gnutls_malloc()' .
If the structure is PEM encoded, it will have a header of "BEGIN
PKCS12".
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
*Since:* 3.1.3
gnutls_pkcs12_generate_mac
--------------------------
-- Function: int gnutls_pkcs12_generate_mac (gnutls_pkcs12_t PKCS12,
const char * PASS)
PKCS12: A pkcs12 type
PASS: The password for the MAC
This function will generate a MAC for the PKCS12 structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_generate_mac2
---------------------------
-- Function: int gnutls_pkcs12_generate_mac2 (gnutls_pkcs12_t PKCS12,
gnutls_mac_algorithm_t MAC, const char * PASS)
PKCS12: A pkcs12 type
MAC: the MAC algorithm to use
PASS: The password for the MAC
This function will generate a MAC for the PKCS12 structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_get_bag
---------------------
-- Function: int gnutls_pkcs12_get_bag (gnutls_pkcs12_t PKCS12, int
INDX, gnutls_pkcs12_bag_t BAG)
PKCS12: A pkcs12 type
INDX: contains the index of the bag to extract
BAG: An initialized bag, where the contents of the bag will be
copied
This function will return a Bag from the PKCS12 structure.
After the last Bag has been read
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_import
--------------------
-- Function: int gnutls_pkcs12_import (gnutls_pkcs12_t PKCS12, const
gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FORMAT, unsigned
int FLAGS)
PKCS12: The data to store the parsed PKCS12.
DATA: The DER or PEM encoded PKCS12.
FORMAT: One of DER or PEM
FLAGS: an ORed sequence of gnutls_privkey_pkcs8_flags
This function will convert the given DER or PEM encoded PKCS12 to
the native gnutls_pkcs12_t format. The output will be stored in
'pkcs12'.
If the PKCS12 is PEM encoded it should have a header of "PKCS12".
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_init
------------------
-- Function: int gnutls_pkcs12_init (gnutls_pkcs12_t * PKCS12)
PKCS12: A pointer to the type to be initialized
This function will initialize a PKCS12 type. PKCS12 structures
usually contain lists of X.509 Certificates and X.509 Certificate
revocation lists.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_mac_info
----------------------
-- Function: int gnutls_pkcs12_mac_info (gnutls_pkcs12_t PKCS12,
unsigned int * MAC, void * SALT, unsigned int * SALT_SIZE,
unsigned int * ITER_COUNT, char ** OID)
PKCS12: A pkcs12 type
MAC: the MAC algorithm used as 'gnutls_mac_algorithm_t'
SALT: the salt used for string to key (if non-NULL then 'salt_size'
initially holds its size)
SALT_SIZE: string to key salt size
ITER_COUNT: string to key iteration count
OID: if non-NULL it will contain an allocated null-terminated
variable with the OID
This function will provide information on the MAC algorithm used in
a PKCS '12' structure. If the structure algorithms are unknown the
code 'GNUTLS_E_UNKNOWN_HASH_ALGORITHM' will be returned, and only
'oid' , will be set. That is, 'oid' will be set on structures with
a MAC whether supported or not. It must be deinitialized using
'gnutls_free()' . The other variables are only set on supported
structures.
*Returns:* 'GNUTLS_E_INVALID_REQUEST' if the provided structure
doesn't contain a MAC, 'GNUTLS_E_UNKNOWN_HASH_ALGORITHM' if the
structure's MAC isn't supported, or another negative error code in
case of a failure. Zero on success.
gnutls_pkcs12_set_bag
---------------------
-- Function: int gnutls_pkcs12_set_bag (gnutls_pkcs12_t PKCS12,
gnutls_pkcs12_bag_t BAG)
PKCS12: should contain a gnutls_pkcs12_t type
BAG: An initialized bag
This function will insert a Bag into the PKCS12 structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs12_simple_parse
--------------------------
-- Function: int gnutls_pkcs12_simple_parse (gnutls_pkcs12_t P12, const
char * PASSWORD, gnutls_x509_privkey_t * KEY,
gnutls_x509_crt_t ** CHAIN, unsigned int * CHAIN_LEN,
gnutls_x509_crt_t ** EXTRA_CERTS, unsigned int *
EXTRA_CERTS_LEN, gnutls_x509_crl_t * CRL, unsigned int FLAGS)
P12: A pkcs12 type
PASSWORD: optional password used to decrypt the structure, bags and
keys.
KEY: a structure to store the parsed private key.
CHAIN: the corresponding to key certificate chain (may be 'NULL' )
CHAIN_LEN: will be updated with the number of additional (may be
'NULL' )
EXTRA_CERTS: optional pointer to receive an array of additional
certificates found in the PKCS12 structure (may be 'NULL' ).
EXTRA_CERTS_LEN: will be updated with the number of additional
certs (may be 'NULL' ).
CRL: an optional structure to store the parsed CRL (may be 'NULL'
).
FLAGS: should be zero or one of GNUTLS_PKCS12_SP_*
This function parses a PKCS12 structure in 'pkcs12' and extracts
the private key, the corresponding certificate chain, any
additional certificates and a CRL. The structures in 'key' ,
'chain' 'crl' , and 'extra_certs' must not be initialized.
The 'extra_certs' and 'extra_certs_len' parameters are optional and
both may be set to 'NULL' . If either is non-'NULL' , then both
must be set. The value for 'extra_certs' is allocated using
'gnutls_malloc()' .
Encrypted PKCS12 bags and PKCS8 private keys are supported, but
only with password based security and the same password for all
operations.
Note that a PKCS12 structure may contain many keys and/or
certificates, and there is no way to identify which key/certificate
pair you want. For this reason this function is useful for PKCS12
files that contain only one key/certificate pair and/or one CRL.
If the provided structure has encrypted fields but no password is
provided then this function returns 'GNUTLS_E_DECRYPTION_FAILED' .
Note that normally the chain constructed does not include self
signed certificates, to comply with TLS' requirements. If,
however, the flag 'GNUTLS_PKCS12_SP_INCLUDE_SELF_SIGNED' is
specified then self signed certificates will be included in the
chain.
Prior to using this function the PKCS '12' structure integrity must
be verified using 'gnutls_pkcs12_verify_mac()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_pkcs12_verify_mac
------------------------
-- Function: int gnutls_pkcs12_verify_mac (gnutls_pkcs12_t PKCS12,
const char * PASS)
PKCS12: should contain a gnutls_pkcs12_t type
PASS: The password for the MAC
This function will verify the MAC for the PKCS12 structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
File: gnutls.info, Node: PKCS 11 API, Next: TPM API, Prev: PKCS 12 API, Up: API reference
E.7 Hardware token via PKCS 11 API
==================================
The following functions are to be used for PKCS 11 handling. Their
prototypes lie in 'gnutls/pkcs11.h'.
gnutls_pkcs11_add_provider
--------------------------
-- Function: int gnutls_pkcs11_add_provider (const char * NAME, const
char * PARAMS)
NAME: The filename of the module
PARAMS: should be NULL or a known string (see description)
This function will load and add a PKCS 11 module to the module list
used in gnutls. After this function is called the module will be
used for PKCS 11 operations.
When loading a module to be used for certificate verification, use
the string 'trusted' as 'params' .
Note that this function is not thread safe.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_copy_attached_extension
-------------------------------------
-- Function: int gnutls_pkcs11_copy_attached_extension (const char *
TOKEN_URL, gnutls_x509_crt_t CRT, gnutls_datum_t * DATA, const
char * LABEL, unsigned int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
CRT: An X.509 certificate object
DATA: the attached extension
LABEL: A name to be used for the attached extension (may be 'NULL'
)
FLAGS: One of GNUTLS_PKCS11_OBJ_FLAG_*
This function will copy an the attached extension in 'data' for the
certificate provided in 'crt' in the PKCS '11' token specified by
the URL (typically a trust module). The extension must be in
RFC5280 Extension format.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.3.8
gnutls_pkcs11_copy_pubkey
-------------------------
-- Function: int gnutls_pkcs11_copy_pubkey (const char * TOKEN_URL,
gnutls_pubkey_t PUBKEY, const char * LABEL, const
gnutls_datum_t * CID, unsigned int KEY_USAGE, unsigned int
FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
PUBKEY: The public key to copy
LABEL: The name to be used for the stored data
CID: The CKA_ID to set for the object -if NULL, the ID will be
derived from the public key
KEY_USAGE: One of GNUTLS_KEY_*
FLAGS: One of GNUTLS_PKCS11_OBJ_FLAG_*
This function will copy a public key object into a PKCS '11' token
specified by a URL. Valid flags to mark the key:
'GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_PRIVATE' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_CA' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_ALWAYS_AUTH' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.6
gnutls_pkcs11_copy_secret_key
-----------------------------
-- Function: int gnutls_pkcs11_copy_secret_key (const char * TOKEN_URL,
gnutls_datum_t * KEY, const char * LABEL, unsigned int
KEY_USAGE, unsigned int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
KEY: The raw key
LABEL: A name to be used for the stored data
KEY_USAGE: One of GNUTLS_KEY_*
FLAGS: One of GNUTLS_PKCS11_OBJ_FLAG_*
This function will copy a raw secret (symmetric) key into a PKCS
'11' token specified by a URL. The key can be marked as sensitive
or not.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_copy_x509_crt
---------------------------
-- Function: int gnutls_pkcs11_copy_x509_crt (const char * TOKEN_URL,
gnutls_x509_crt_t CRT, const char * LABEL, unsigned int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
CRT: A certificate
LABEL: A name to be used for the stored data
FLAGS: One of GNUTLS_PKCS11_OBJ_FLAG_*
This function will copy a certificate into a PKCS '11' token
specified by a URL. The certificate can be marked as trusted or
not.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_copy_x509_crt2
----------------------------
-- Function: int gnutls_pkcs11_copy_x509_crt2 (const char * TOKEN_URL,
gnutls_x509_crt_t CRT, const char * LABEL, const
gnutls_datum_t * CID, unsigned int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
CRT: The certificate to copy
LABEL: The name to be used for the stored data
CID: The CKA_ID to set for the object -if NULL, the ID will be
derived from the public key
FLAGS: One of GNUTLS_PKCS11_OBJ_FLAG_*
This function will copy a certificate into a PKCS '11' token
specified by a URL. Valid flags to mark the certificate:
'GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_PRIVATE' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_CA' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_ALWAYS_AUTH' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_copy_x509_privkey
-------------------------------
-- Function: int gnutls_pkcs11_copy_x509_privkey (const char *
TOKEN_URL, gnutls_x509_privkey_t KEY, const char * LABEL,
unsigned int KEY_USAGE, unsigned int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
KEY: A private key
LABEL: A name to be used for the stored data
KEY_USAGE: One of GNUTLS_KEY_*
FLAGS: One of GNUTLS_PKCS11_OBJ_* flags
This function will copy a private key into a PKCS '11' token
specified by a URL.
Since 3.6.3 the objects are marked as sensitive by default unless
'GNUTLS_PKCS11_OBJ_FLAG_MARK_NOT_SENSITIVE' is specified.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_copy_x509_privkey2
--------------------------------
-- Function: int gnutls_pkcs11_copy_x509_privkey2 (const char *
TOKEN_URL, gnutls_x509_privkey_t KEY, const char * LABEL,
const gnutls_datum_t * CID, unsigned int KEY_USAGE, unsigned
int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
KEY: A private key
LABEL: A name to be used for the stored data
CID: The CKA_ID to set for the object -if NULL, the ID will be
derived from the public key
KEY_USAGE: One of GNUTLS_KEY_*
FLAGS: One of GNUTLS_PKCS11_OBJ_* flags
This function will copy a private key into a PKCS '11' token
specified by a URL.
Since 3.6.3 the objects are marked as sensitive by default unless
'GNUTLS_PKCS11_OBJ_FLAG_MARK_NOT_SENSITIVE' is specified.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_crt_is_known
--------------------------
-- Function: unsigned gnutls_pkcs11_crt_is_known (const char * URL,
gnutls_x509_crt_t CERT, unsigned int FLAGS)
URL: A PKCS 11 url identifying a token
CERT: is the certificate to find issuer for
FLAGS: Use zero or flags from 'GNUTLS_PKCS11_OBJ_FLAG' .
This function will check whether the provided certificate is stored
in the specified token. This is useful in combination with
'GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_TRUSTED' or
'GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_DISTRUSTED' , to check whether a
CA is present or a certificate is blacklisted in a trust PKCS '11'
module.
This function can be used with a 'url' of "pkcs11:", and in that
case all modules will be searched. To restrict the modules to the
marked as trusted in p11-kit use the
'GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE' flag.
Note that the flag 'GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_DISTRUSTED' is
specific to p11-kit trust modules.
*Returns:* If the certificate exists non-zero is returned,
otherwise zero.
*Since:* 3.3.0
gnutls_pkcs11_deinit
--------------------
-- Function: void gnutls_pkcs11_deinit ( VOID)
This function will deinitialize the PKCS 11 subsystem in gnutls.
This function is only needed if you need to deinitialize the
subsystem without calling 'gnutls_global_deinit()' .
*Since:* 2.12.0
gnutls_pkcs11_delete_url
------------------------
-- Function: int gnutls_pkcs11_delete_url (const char * OBJECT_URL,
unsigned int FLAGS)
OBJECT_URL: The URL of the object to delete.
FLAGS: One of GNUTLS_PKCS11_OBJ_* flags
This function will delete objects matching the given URL. Note that
not all tokens support the delete operation.
*Returns:* On success, the number of objects deleted is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_get_pin_function
------------------------------
-- Function: gnutls_pin_callback_t gnutls_pkcs11_get_pin_function (void
** USERDATA)
USERDATA: data to be supplied to callback
This function will return the callback function set using
'gnutls_pkcs11_set_pin_function()' .
*Returns:* The function set or NULL otherwise.
*Since:* 3.1.0
gnutls_pkcs11_get_raw_issuer
----------------------------
-- Function: int gnutls_pkcs11_get_raw_issuer (const char * URL,
gnutls_x509_crt_t CERT, gnutls_datum_t * ISSUER,
gnutls_x509_crt_fmt_t FMT, unsigned int FLAGS)
URL: A PKCS 11 url identifying a token
CERT: is the certificate to find issuer for
ISSUER: Will hold the issuer if any in an allocated buffer.
FMT: The format of the exported issuer.
FLAGS: Use zero or flags from 'GNUTLS_PKCS11_OBJ_FLAG' .
This function will return the issuer of a given certificate, if it
is stored in the token. By default only marked as trusted issuers
are returned. If any issuer should be returned specify
'GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY' in 'flags' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.2.7
gnutls_pkcs11_get_raw_issuer_by_dn
----------------------------------
-- Function: int gnutls_pkcs11_get_raw_issuer_by_dn (const char * URL,
const gnutls_datum_t * DN, gnutls_datum_t * ISSUER,
gnutls_x509_crt_fmt_t FMT, unsigned int FLAGS)
URL: A PKCS 11 url identifying a token
DN: is the DN to search for
ISSUER: Will hold the issuer if any in an allocated buffer.
FMT: The format of the exported issuer.
FLAGS: Use zero or flags from 'GNUTLS_PKCS11_OBJ_FLAG' .
This function will return the certificate with the given DN, if it
is stored in the token. By default only marked as trusted issuers
are returned. If any issuer should be returned specify
'GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY' in 'flags' .
The name of the function includes issuer because it can be used to
discover issuers of certificates.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_get_raw_issuer_by_subject_key_id
----------------------------------------------
-- Function: int gnutls_pkcs11_get_raw_issuer_by_subject_key_id (const
char * URL, const gnutls_datum_t * DN, const gnutls_datum_t *
SPKI, gnutls_datum_t * ISSUER, gnutls_x509_crt_fmt_t FMT,
unsigned int FLAGS)
URL: A PKCS 11 url identifying a token
DN: is the DN to search for (may be 'NULL' )
SPKI: is the subject key ID to search for
ISSUER: Will hold the issuer if any in an allocated buffer.
FMT: The format of the exported issuer.
FLAGS: Use zero or flags from 'GNUTLS_PKCS11_OBJ_FLAG' .
This function will return the certificate with the given DN and
'spki' , if it is stored in the token. By default only marked as
trusted issuers are returned. If any issuer should be returned
specify 'GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY' in 'flags' .
The name of the function includes issuer because it can be used to
discover issuers of certificates.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.2
gnutls_pkcs11_init
------------------
-- Function: int gnutls_pkcs11_init (unsigned int FLAGS, const char *
DEPRECATED_CONFIG_FILE)
FLAGS: An ORed sequence of 'GNUTLS_PKCS11_FLAG_' *
DEPRECATED_CONFIG_FILE: either NULL or the location of a deprecated
configuration file
This function will initialize the PKCS 11 subsystem in gnutls. It
will read configuration files if 'GNUTLS_PKCS11_FLAG_AUTO' is used
or allow you to independently load PKCS 11 modules using
'gnutls_pkcs11_add_provider()' if 'GNUTLS_PKCS11_FLAG_MANUAL' is
specified.
You don't need to call this function since GnuTLS 3.3.0 because it
is being called during the first request PKCS 11 operation. That
call will assume the 'GNUTLS_PKCS11_FLAG_AUTO' flag. If another
flags are required then it must be called independently prior to
any PKCS 11 operation.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_obj_deinit
------------------------
-- Function: void gnutls_pkcs11_obj_deinit (gnutls_pkcs11_obj_t OBJ)
OBJ: The type to be deinitialized
This function will deinitialize a certificate structure.
*Since:* 2.12.0
gnutls_pkcs11_obj_export
------------------------
-- Function: int gnutls_pkcs11_obj_export (gnutls_pkcs11_obj_t OBJ,
void * OUTPUT_DATA, size_t * OUTPUT_DATA_SIZE)
OBJ: Holds the object
OUTPUT_DATA: will contain the object data
OUTPUT_DATA_SIZE: holds the size of output_data (and will be
replaced by the actual size of parameters)
This function will export the PKCS11 object data. It is normal for
data to be inaccessible and in that case 'GNUTLS_E_INVALID_REQUEST'
will be returned.
If the buffer provided is not long enough to hold the output, then
*output_data_size is updated and GNUTLS_E_SHORT_MEMORY_BUFFER will
be returned.
*Returns:* In case of failure a negative error code will be
returned, and 'GNUTLS_E_SUCCESS' (0) on success.
*Since:* 2.12.0
gnutls_pkcs11_obj_export2
-------------------------
-- Function: int gnutls_pkcs11_obj_export2 (gnutls_pkcs11_obj_t OBJ,
gnutls_datum_t * OUT)
OBJ: Holds the object
OUT: will contain the object data
This function will export the PKCS11 object data. It is normal for
data to be inaccessible and in that case 'GNUTLS_E_INVALID_REQUEST'
will be returned.
The output buffer is allocated using 'gnutls_malloc()' .
*Returns:* In case of failure a negative error code will be
returned, and 'GNUTLS_E_SUCCESS' (0) on success.
*Since:* 3.1.3
gnutls_pkcs11_obj_export3
-------------------------
-- Function: int gnutls_pkcs11_obj_export3 (gnutls_pkcs11_obj_t OBJ,
gnutls_x509_crt_fmt_t FMT, gnutls_datum_t * OUT)
OBJ: Holds the object
FMT: The format of the exported data
OUT: will contain the object data
This function will export the PKCS11 object data. It is normal for
data to be inaccessible and in that case 'GNUTLS_E_INVALID_REQUEST'
will be returned.
The output buffer is allocated using 'gnutls_malloc()' .
*Returns:* In case of failure a negative error code will be
returned, and 'GNUTLS_E_SUCCESS' (0) on success.
*Since:* 3.2.7
gnutls_pkcs11_obj_export_url
----------------------------
-- Function: int gnutls_pkcs11_obj_export_url (gnutls_pkcs11_obj_t OBJ,
gnutls_pkcs11_url_type_t DETAILED, char ** URL)
OBJ: Holds the PKCS 11 certificate
DETAILED: non zero if a detailed URL is required
URL: will contain an allocated url
This function will export a URL identifying the given object.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_obj_flags_get_str
-------------------------------
-- Function: char * gnutls_pkcs11_obj_flags_get_str (unsigned int
FLAGS)
FLAGS: holds the flags
This function given an or-sequence of 'GNUTLS_PKCS11_OBJ_FLAG_MARK'
, will return an allocated string with its description. The string
needs to be deallocated using 'gnutls_free()' .
*Returns:* If flags is zero 'NULL' is returned, otherwise an
allocated string.
*Since:* 3.3.7
gnutls_pkcs11_obj_get_exts
--------------------------
-- Function: int gnutls_pkcs11_obj_get_exts (gnutls_pkcs11_obj_t OBJ,
gnutls_x509_ext_st ** EXTS, unsigned int * EXTS_SIZE, unsigned
int FLAGS)
OBJ: should contain a 'gnutls_pkcs11_obj_t' type
EXTS: a pointer to a 'gnutls_x509_ext_st' pointer
EXTS_SIZE: will be updated with the number of 'exts'
FLAGS: Or sequence of 'GNUTLS_PKCS11_OBJ_' * flags
This function will return information about attached extensions
that associate to the provided object (which should be a
certificate). The extensions are the attached p11-kit trust module
extensions.
Each element of 'exts' must be deinitialized using
'gnutls_x509_ext_deinit()' while 'exts' should be deallocated using
'gnutls_free()' .
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 3.3.8
gnutls_pkcs11_obj_get_flags
---------------------------
-- Function: int gnutls_pkcs11_obj_get_flags (gnutls_pkcs11_obj_t OBJ,
unsigned int * OFLAGS)
OBJ: The pkcs11 object
OFLAGS: Will hold the output flags
This function will return the flags of the object. The 'oflags'
will be flags from 'gnutls_pkcs11_obj_flags' . That is, the
'GNUTLS_PKCS11_OBJ_FLAG_MARK_' * flags.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.3.7
gnutls_pkcs11_obj_get_info
--------------------------
-- Function: int gnutls_pkcs11_obj_get_info (gnutls_pkcs11_obj_t OBJ,
gnutls_pkcs11_obj_info_t ITYPE, void * OUTPUT, size_t *
OUTPUT_SIZE)
OBJ: should contain a 'gnutls_pkcs11_obj_t' type
ITYPE: Denotes the type of information requested
OUTPUT: where output will be stored
OUTPUT_SIZE: contains the maximum size of the output buffer and
will be overwritten with the actual size.
This function will return information about the PKCS11 certificate
such as the label, id as well as token information where the key is
stored.
When output is text, a null terminated string is written to
'output' and its string length is written to 'output_size' (without
null terminator). If the buffer is too small, 'output_size' will
contain the expected buffer size (with null terminator for text)
and return 'GNUTLS_E_SHORT_MEMORY_BUFFER' .
In versions previously to 3.6.0 this function included the null
terminator to 'output_size' . After 3.6.0 the output size doesn't
include the terminator character.
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 2.12.0
gnutls_pkcs11_obj_get_ptr
-------------------------
-- Function: int gnutls_pkcs11_obj_get_ptr (gnutls_pkcs11_obj_t OBJ,
void ** PTR, void ** SESSION, void ** OHANDLE, unsigned long *
SLOT_ID, unsigned int FLAGS)
OBJ: should contain a 'gnutls_pkcs11_obj_t' type
PTR: will contain the CK_FUNCTION_LIST_PTR pointer (may be 'NULL' )
SESSION: will contain the CK_SESSION_HANDLE of the object
OHANDLE: will contain the CK_OBJECT_HANDLE of the object
SLOT_ID: the identifier of the slot (may be 'NULL' )
FLAGS: Or sequence of GNUTLS_PKCS11_OBJ_* flags
Obtains the PKCS'11' session handles of an object. 'session' and
'ohandle' must be deinitialized by the caller. The returned
pointers are independent of the 'obj' lifetime.
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 3.6.3
gnutls_pkcs11_obj_get_type
--------------------------
-- Function: gnutls_pkcs11_obj_type_t gnutls_pkcs11_obj_get_type
(gnutls_pkcs11_obj_t OBJ)
OBJ: Holds the PKCS 11 object
This function will return the type of the object being stored in
the structure.
*Returns:* The type of the object
*Since:* 2.12.0
gnutls_pkcs11_obj_import_url
----------------------------
-- Function: int gnutls_pkcs11_obj_import_url (gnutls_pkcs11_obj_t OBJ,
const char * URL, unsigned int FLAGS)
OBJ: The structure to store the object
URL: a PKCS 11 url identifying the key
FLAGS: Or sequence of GNUTLS_PKCS11_OBJ_* flags
This function will "import" a PKCS 11 URL identifying an object
(e.g. certificate) to the 'gnutls_pkcs11_obj_t' type. This does
not involve any parsing (such as X.509 or OpenPGP) since the
'gnutls_pkcs11_obj_t' is format agnostic. Only data are
transferred.
If the flag 'GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT' is
specified any certificate read, will have its extensions
overwritten by any stapled extensions in the trust module.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_obj_init
----------------------
-- Function: int gnutls_pkcs11_obj_init (gnutls_pkcs11_obj_t * OBJ)
OBJ: A pointer to the type to be initialized
This function will initialize a pkcs11 certificate structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_obj_list_import_url3
----------------------------------
-- Function: int gnutls_pkcs11_obj_list_import_url3
(gnutls_pkcs11_obj_t * P_LIST, unsigned int * N_LIST, const
char * URL, unsigned int FLAGS)
P_LIST: An uninitialized object list (may be 'NULL' )
N_LIST: Initially should hold the maximum size of the list. Will
contain the actual size.
URL: A PKCS 11 url identifying a set of objects
FLAGS: Or sequence of GNUTLS_PKCS11_OBJ_* flags
This function will initialize and set values to an object list by
using all objects identified by a PKCS 11 URL.
This function will enumerate all the objects specified by the
PKCS'11' URL provided. It expects an already allocated 'p_list'
which has * 'n_list' elements, and that value will be updated to
the actual number of present objects. The 'p_list' objects will be
initialized and set by this function. To obtain a list of all
available objects use a 'url' of 'pkcs11:'.
All returned objects must be deinitialized using
'gnutls_pkcs11_obj_deinit()' .
The supported in this function 'flags' are
'GNUTLS_PKCS11_OBJ_FLAG_LOGIN' , 'GNUTLS_PKCS11_OBJ_FLAG_LOGIN_SO'
, 'GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE' ,
'GNUTLS_PKCS11_OBJ_FLAG_CRT' , 'GNUTLS_PKCS11_OBJ_FLAG_PUBKEY' ,
'GNUTLS_PKCS11_OBJ_FLAG_PRIVKEY' ,
'GNUTLS_PKCS11_OBJ_FLAG_WITH_PRIVKEY' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_CA' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED' , and since 3.5.1 the
'GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT' .
On versions of GnuTLS prior to 3.4.0 the equivalent function was
'gnutls_pkcs11_obj_list_import_url()' . That is also available on
this version as a macro which maps to this function.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_obj_list_import_url4
----------------------------------
-- Function: int gnutls_pkcs11_obj_list_import_url4
(gnutls_pkcs11_obj_t ** P_LIST, unsigned int * N_LIST, const
char * URL, unsigned int FLAGS)
P_LIST: An uninitialized object list (may be NULL)
N_LIST: It will contain the size of the list.
URL: A PKCS 11 url identifying a set of objects
FLAGS: Or sequence of GNUTLS_PKCS11_OBJ_* flags
This function will enumerate all the objects specified by the
PKCS'11' URL provided. It will initialize and set values to the
object pointer list ( 'p_list' ) provided. To obtain a list of all
available objects use a 'url' of 'pkcs11:'.
All returned objects must be deinitialized using
'gnutls_pkcs11_obj_deinit()' , and 'p_list' must be deinitialized
using 'gnutls_free()' .
The supported in this function 'flags' are
'GNUTLS_PKCS11_OBJ_FLAG_LOGIN' , 'GNUTLS_PKCS11_OBJ_FLAG_LOGIN_SO'
, 'GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE' ,
'GNUTLS_PKCS11_OBJ_FLAG_CRT' , 'GNUTLS_PKCS11_OBJ_FLAG_PUBKEY' ,
'GNUTLS_PKCS11_OBJ_FLAG_PRIVKEY' ,
'GNUTLS_PKCS11_OBJ_FLAG_WITH_PRIVKEY' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_CA' ,
'GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED' , and since 3.5.1 the
'GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT' .
On versions of GnuTLS prior to 3.4.0 the equivalent function was
'gnutls_pkcs11_obj_list_import_url2()' . That is also available on
this version as a macro which maps to this function.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_obj_set_info
--------------------------
-- Function: int gnutls_pkcs11_obj_set_info (gnutls_pkcs11_obj_t OBJ,
gnutls_pkcs11_obj_info_t ITYPE, const void * DATA, size_t
DATA_SIZE, unsigned FLAGS)
OBJ: should contain a 'gnutls_pkcs11_obj_t' type
ITYPE: Denotes the type of information to be set
DATA: the data to set
DATA_SIZE: the size of data
FLAGS: Or sequence of GNUTLS_PKCS11_OBJ_* flags
This function will set attributes on the provided object.
Available options for 'itype' are 'GNUTLS_PKCS11_OBJ_LABEL' ,
'GNUTLS_PKCS11_OBJ_ID_HEX' , and 'GNUTLS_PKCS11_OBJ_ID' .
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 3.4.0
gnutls_pkcs11_obj_set_pin_function
----------------------------------
-- Function: void gnutls_pkcs11_obj_set_pin_function
(gnutls_pkcs11_obj_t OBJ, gnutls_pin_callback_t FN, void *
USERDATA)
OBJ: The object structure
FN: the callback
USERDATA: data associated with the callback
This function will set a callback function to be used when required
to access the object. This function overrides the global set using
'gnutls_pkcs11_set_pin_function()' .
*Since:* 3.1.0
gnutls_pkcs11_privkey_cpy
-------------------------
-- Function: int gnutls_pkcs11_privkey_cpy (gnutls_pkcs11_privkey_t
DST, gnutls_pkcs11_privkey_t SRC)
DST: The destination key, which should be initialized.
SRC: The source key
This function will copy a private key from source to destination
key. Destination has to be initialized.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_privkey_deinit
----------------------------
-- Function: void gnutls_pkcs11_privkey_deinit (gnutls_pkcs11_privkey_t
KEY)
KEY: the key to be deinitialized
This function will deinitialize a private key structure.
gnutls_pkcs11_privkey_export_pubkey
-----------------------------------
-- Function: int gnutls_pkcs11_privkey_export_pubkey
(gnutls_pkcs11_privkey_t PKEY, gnutls_x509_crt_fmt_t FMT,
gnutls_datum_t * DATA, unsigned int FLAGS)
PKEY: The private key
FMT: the format of output params. PEM or DER.
DATA: will hold the public key
FLAGS: should be zero
This function will extract the public key (modulus and public
exponent) from the private key specified by the 'url' private key.
This public key will be stored in 'pubkey' in the format specified
by 'fmt' . 'pubkey' should be deinitialized using 'gnutls_free()'
.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.3.7
gnutls_pkcs11_privkey_export_url
--------------------------------
-- Function: int gnutls_pkcs11_privkey_export_url
(gnutls_pkcs11_privkey_t KEY, gnutls_pkcs11_url_type_t
DETAILED, char ** URL)
KEY: Holds the PKCS 11 key
DETAILED: non zero if a detailed URL is required
URL: will contain an allocated url
This function will export a URL identifying the given key.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs11_privkey_generate
------------------------------
-- Function: int gnutls_pkcs11_privkey_generate (const char * URL,
gnutls_pk_algorithm_t PK, unsigned int BITS, const char *
LABEL, unsigned int FLAGS)
URL: a token URL
PK: the public key algorithm
BITS: the security bits
LABEL: a label
FLAGS: should be zero
This function will generate a private key in the specified by the
'url' token. The private key will be generate within the token and
will not be exportable.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pkcs11_privkey_generate2
-------------------------------
-- Function: int gnutls_pkcs11_privkey_generate2 (const char * URL,
gnutls_pk_algorithm_t PK, unsigned int BITS, const char *
LABEL, gnutls_x509_crt_fmt_t FMT, gnutls_datum_t * PUBKEY,
unsigned int FLAGS)
URL: a token URL
PK: the public key algorithm
BITS: the security bits
LABEL: a label
FMT: the format of output params. PEM or DER
PUBKEY: will hold the public key (may be 'NULL' )
FLAGS: zero or an OR'ed sequence of 'GNUTLS_PKCS11_OBJ_FLAGs'
This function will generate a private key in the specified by the
'url' token. The private key will be generate within the token and
will not be exportable. This function will store the DER-encoded
public key in the SubjectPublicKeyInfo format in 'pubkey' . The
'pubkey' should be deinitialized using 'gnutls_free()' .
Note that when generating an elliptic curve key, the curve can be
substituted in the place of the bits parameter using the
'GNUTLS_CURVE_TO_BITS()' macro.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.5
gnutls_pkcs11_privkey_generate3
-------------------------------
-- Function: int gnutls_pkcs11_privkey_generate3 (const char * URL,
gnutls_pk_algorithm_t PK, unsigned int BITS, const char *
LABEL, const gnutls_datum_t * CID, gnutls_x509_crt_fmt_t FMT,
gnutls_datum_t * PUBKEY, unsigned int KEY_USAGE, unsigned int
FLAGS)
URL: a token URL
PK: the public key algorithm
BITS: the security bits
LABEL: a label
CID: The CKA_ID to use for the new object
FMT: the format of output params. PEM or DER
PUBKEY: will hold the public key (may be 'NULL' )
KEY_USAGE: One of GNUTLS_KEY_*
FLAGS: zero or an OR'ed sequence of 'GNUTLS_PKCS11_OBJ_FLAGs'
This function will generate a private key in the specified by the
'url' token. The private key will be generate within the token and
will not be exportable. This function will store the DER-encoded
public key in the SubjectPublicKeyInfo format in 'pubkey' . The
'pubkey' should be deinitialized using 'gnutls_free()' .
Note that when generating an elliptic curve key, the curve can be
substituted in the place of the bits parameter using the
'GNUTLS_CURVE_TO_BITS()' macro.
Since 3.6.3 the objects are marked as sensitive by default unless
'GNUTLS_PKCS11_OBJ_FLAG_MARK_NOT_SENSITIVE' is specified.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pkcs11_privkey_get_info
------------------------------
-- Function: int gnutls_pkcs11_privkey_get_info
(gnutls_pkcs11_privkey_t PKEY, gnutls_pkcs11_obj_info_t ITYPE,
void * OUTPUT, size_t * OUTPUT_SIZE)
PKEY: should contain a 'gnutls_pkcs11_privkey_t' type
ITYPE: Denotes the type of information requested
OUTPUT: where output will be stored
OUTPUT_SIZE: contains the maximum size of the output and will be
overwritten with actual
This function will return information about the PKCS 11 private key
such as the label, id as well as token information where the key is
stored. When output is text it returns null terminated string
although 'output_size' contains the size of the actual data only.
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
gnutls_pkcs11_privkey_get_pk_algorithm
--------------------------------------
-- Function: int gnutls_pkcs11_privkey_get_pk_algorithm
(gnutls_pkcs11_privkey_t KEY, unsigned int * BITS)
KEY: should contain a 'gnutls_pkcs11_privkey_t' type
BITS: if bits is non null it will hold the size of the parameters'
in bits
This function will return the public key algorithm of a private
key.
*Returns:* a member of the 'gnutls_pk_algorithm_t' enumeration on
success, or a negative error code on error.
gnutls_pkcs11_privkey_import_url
--------------------------------
-- Function: int gnutls_pkcs11_privkey_import_url
(gnutls_pkcs11_privkey_t PKEY, const char * URL, unsigned int
FLAGS)
PKEY: The private key
URL: a PKCS 11 url identifying the key
FLAGS: Or sequence of GNUTLS_PKCS11_OBJ_* flags
This function will "import" a PKCS 11 URL identifying a private key
to the 'gnutls_pkcs11_privkey_t' type. In reality since in most
cases keys cannot be exported, the private key structure is being
associated with the available operations on the token.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs11_privkey_init
--------------------------
-- Function: int gnutls_pkcs11_privkey_init (gnutls_pkcs11_privkey_t *
KEY)
KEY: A pointer to the type to be initialized
This function will initialize an private key structure. This
structure can be used for accessing an underlying PKCS'11' object.
In versions of GnuTLS later than 3.5.11 the object is protected
using locks and a single 'gnutls_pkcs11_privkey_t' can be re-used
by many threads. However, for performance it is recommended to
utilize one object per key per thread.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs11_privkey_set_pin_function
--------------------------------------
-- Function: void gnutls_pkcs11_privkey_set_pin_function
(gnutls_pkcs11_privkey_t KEY, gnutls_pin_callback_t FN, void *
USERDATA)
KEY: The private key
FN: the callback
USERDATA: data associated with the callback
This function will set a callback function to be used when required
to access the object. This function overrides the global set using
'gnutls_pkcs11_set_pin_function()' .
*Since:* 3.1.0
gnutls_pkcs11_privkey_status
----------------------------
-- Function: unsigned gnutls_pkcs11_privkey_status
(gnutls_pkcs11_privkey_t KEY)
KEY: Holds the key
Checks the status of the private key token.
*Returns:* this function will return non-zero if the token holding
the private key is still available (inserted), and zero otherwise.
*Since:* 3.1.9
gnutls_pkcs11_reinit
--------------------
-- Function: int gnutls_pkcs11_reinit ( VOID)
This function will reinitialize the PKCS 11 subsystem in gnutls.
This is required by PKCS 11 when an application uses 'fork()' .
The reinitialization function must be called on the child.
Note that since GnuTLS 3.3.0, the reinitialization of the PKCS '11'
subsystem occurs automatically after fork.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pkcs11_set_pin_function
------------------------------
-- Function: void gnutls_pkcs11_set_pin_function (gnutls_pin_callback_t
FN, void * USERDATA)
FN: The PIN callback, a 'gnutls_pin_callback_t()' function.
USERDATA: data to be supplied to callback
This function will set a callback function to be used when a PIN is
required for PKCS 11 operations. See 'gnutls_pin_callback_t()' on
how the callback should behave.
*Since:* 2.12.0
gnutls_pkcs11_set_token_function
--------------------------------
-- Function: void gnutls_pkcs11_set_token_function
(gnutls_pkcs11_token_callback_t FN, void * USERDATA)
FN: The token callback
USERDATA: data to be supplied to callback
This function will set a callback function to be used when a token
needs to be inserted to continue PKCS 11 operations.
*Since:* 2.12.0
gnutls_pkcs11_token_check_mechanism
-----------------------------------
-- Function: unsigned gnutls_pkcs11_token_check_mechanism (const char *
URL, unsigned long MECHANISM, void * PTR, unsigned PSIZE,
unsigned FLAGS)
URL: should contain a PKCS 11 URL
MECHANISM: The PKCS '11' mechanism ID
PTR: if set it should point to a CK_MECHANISM_INFO struct
PSIZE: the size of CK_MECHANISM_INFO struct (for safety)
FLAGS: must be zero
This function will return whether a mechanism is supported by the
given token. If the mechanism is supported and 'ptr' is set, it
will be updated with the token information.
*Returns:* Non-zero if the mechanism is supported or zero
otherwise.
*Since:* 3.6.0
gnutls_pkcs11_token_get_flags
-----------------------------
-- Function: int gnutls_pkcs11_token_get_flags (const char * URL,
unsigned int * FLAGS)
URL: should contain a PKCS 11 URL
FLAGS: The output flags (GNUTLS_PKCS11_TOKEN_*)
This function will return information about the PKCS 11 token
flags.
The supported flags are: 'GNUTLS_PKCS11_TOKEN_HW' and
'GNUTLS_PKCS11_TOKEN_TRUSTED' .
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 2.12.0
gnutls_pkcs11_token_get_info
----------------------------
-- Function: int gnutls_pkcs11_token_get_info (const char * URL,
gnutls_pkcs11_token_info_t TTYPE, void * OUTPUT, size_t *
OUTPUT_SIZE)
URL: should contain a PKCS 11 URL
TTYPE: Denotes the type of information requested
OUTPUT: where output will be stored
OUTPUT_SIZE: contains the maximum size of the output buffer and
will be overwritten with the actual size.
This function will return information about the PKCS 11 token such
as the label, id, etc.
When output is text, a null terminated string is written to
'output' and its string length is written to 'output_size' (without
null terminator). If the buffer is too small, 'output_size' will
contain the expected buffer size (with null terminator for text)
and return 'GNUTLS_E_SHORT_MEMORY_BUFFER' .
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 2.12.0
gnutls_pkcs11_token_get_mechanism
---------------------------------
-- Function: int gnutls_pkcs11_token_get_mechanism (const char * URL,
unsigned int IDX, unsigned long * MECHANISM)
URL: should contain a PKCS 11 URL
IDX: The index of the mechanism
MECHANISM: The PKCS '11' mechanism ID
This function will return the names of the supported mechanisms by
the token. It should be called with an increasing index until it
return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE.
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 2.12.0
gnutls_pkcs11_token_get_ptr
---------------------------
-- Function: int gnutls_pkcs11_token_get_ptr (const char * URL, void **
PTR, unsigned long * SLOT_ID, unsigned int FLAGS)
URL: should contain a PKCS'11' URL identifying a token
PTR: will contain the CK_FUNCTION_LIST_PTR pointer
SLOT_ID: will contain the slot_id (may be 'NULL' )
FLAGS: should be zero
This function will return the function pointer of the specified
token by the URL. The returned pointers are valid until gnutls is
deinitialized, c.f. '_global_deinit()' .
*Returns:* 'GNUTLS_E_SUCCESS' (0) on success or a negative error
code on error.
*Since:* 3.6.3
gnutls_pkcs11_token_get_random
------------------------------
-- Function: int gnutls_pkcs11_token_get_random (const char *
TOKEN_URL, void * RNDDATA, size_t LEN)
TOKEN_URL: A PKCS '11' URL specifying a token
RNDDATA: A pointer to the memory area to be filled with random data
LEN: The number of bytes of randomness to request
This function will get random data from the given token. It will
store rnddata and fill the memory pointed to by rnddata with len
random bytes from the token.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs11_token_get_url
---------------------------
-- Function: int gnutls_pkcs11_token_get_url (unsigned int SEQ,
gnutls_pkcs11_url_type_t DETAILED, char ** URL)
SEQ: sequence number starting from 0
DETAILED: non zero if a detailed URL is required
URL: will contain an allocated url
This function will return the URL for each token available in
system. The url has to be released using 'gnutls_free()'
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' if the sequence number
exceeds the available tokens, otherwise a negative error value.
*Since:* 2.12.0
gnutls_pkcs11_token_init
------------------------
-- Function: int gnutls_pkcs11_token_init (const char * TOKEN_URL,
const char * SO_PIN, const char * LABEL)
TOKEN_URL: A PKCS '11' URL specifying a token
SO_PIN: Security Officer's PIN
LABEL: A name to be used for the token
This function will initialize (format) a token. If the token is at
a factory defaults state the security officer's PIN given will be
set to be the default. Otherwise it should match the officer's
PIN.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs11_token_set_pin
---------------------------
-- Function: int gnutls_pkcs11_token_set_pin (const char * TOKEN_URL,
const char * OLDPIN, const char * NEWPIN, unsigned int FLAGS)
TOKEN_URL: A PKCS '11' URL specifying a token
OLDPIN: old user's PIN
NEWPIN: new user's PIN
FLAGS: one of 'gnutls_pin_flag_t' .
This function will modify or set a user or administrator's PIN for
the given token. If it is called to set a PIN for first time the
oldpin must be 'NULL' . When setting the admin's PIN with the
'GNUTLS_PIN_SO' flag, the 'oldpin' value must be provided (this
requirement is relaxed after GnuTLS 3.6.5 since which the PIN will
be requested if missing).
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_pkcs11_type_get_name
---------------------------
-- Function: const char * gnutls_pkcs11_type_get_name
(gnutls_pkcs11_obj_type_t TYPE)
TYPE: Holds the PKCS 11 object type, a 'gnutls_pkcs11_obj_type_t' .
This function will return a human readable description of the
PKCS11 object type 'obj' . It will return "Unknown" for unknown
types.
*Returns:* human readable string labeling the PKCS11 object type
'type' .
*Since:* 2.12.0
gnutls_x509_crt_import_pkcs11
-----------------------------
-- Function: int gnutls_x509_crt_import_pkcs11 (gnutls_x509_crt_t CRT,
gnutls_pkcs11_obj_t PKCS11_CRT)
CRT: A certificate of type 'gnutls_x509_crt_t'
PKCS11_CRT: A PKCS 11 object that contains a certificate
This function will import a PKCS 11 certificate to a
'gnutls_x509_crt_t' structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_x509_crt_list_import_pkcs11
----------------------------------
-- Function: int gnutls_x509_crt_list_import_pkcs11 (gnutls_x509_crt_t
* CERTS, unsigned int CERT_MAX, gnutls_pkcs11_obj_t * const
OBJS, unsigned int FLAGS)
CERTS: A list of certificates of type 'gnutls_x509_crt_t'
CERT_MAX: The maximum size of the list
OBJS: A list of PKCS 11 objects
FLAGS: 0 for now
This function will import a PKCS 11 certificate list to a list of
'gnutls_x509_crt_t' type. These must not be initialized.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
File: gnutls.info, Node: TPM API, Next: Abstract key API, Prev: PKCS 11 API, Up: API reference
E.8 TPM API
===========
The following functions are to be used for TPM handling. Their
prototypes lie in 'gnutls/tpm.h'.
gnutls_tpm_get_registered
-------------------------
-- Function: int gnutls_tpm_get_registered (gnutls_tpm_key_list_t *
LIST)
LIST: a list to store the keys
This function will get a list of stored keys in the TPM. The uuid
of those keys
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_tpm_key_list_deinit
--------------------------
-- Function: void gnutls_tpm_key_list_deinit (gnutls_tpm_key_list_t
LIST)
LIST: a list of the keys
This function will deinitialize the list of stored keys in the TPM.
*Since:* 3.1.0
gnutls_tpm_key_list_get_url
---------------------------
-- Function: int gnutls_tpm_key_list_get_url (gnutls_tpm_key_list_t
LIST, unsigned int IDX, char ** URL, unsigned int FLAGS)
LIST: a list of the keys
IDX: The index of the key (starting from zero)
URL: The URL to be returned
FLAGS: should be zero
This function will return for each given index a URL of the
corresponding key. If the provided index is out of bounds then
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' is returned.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_tpm_privkey_delete
-------------------------
-- Function: int gnutls_tpm_privkey_delete (const char * URL, const
char * SRK_PASSWORD)
URL: the URL describing the key
SRK_PASSWORD: a password for the SRK key
This function will unregister the private key from the TPM chip.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_tpm_privkey_generate
---------------------------
-- Function: int gnutls_tpm_privkey_generate (gnutls_pk_algorithm_t PK,
unsigned int BITS, const char * SRK_PASSWORD, const char *
KEY_PASSWORD, gnutls_tpmkey_fmt_t FORMAT,
gnutls_x509_crt_fmt_t PUB_FORMAT, gnutls_datum_t * PRIVKEY,
gnutls_datum_t * PUBKEY, unsigned int FLAGS)
PK: the public key algorithm
BITS: the security bits
SRK_PASSWORD: a password to protect the exported key (optional)
KEY_PASSWORD: the password for the TPM (optional)
FORMAT: the format of the private key
PUB_FORMAT: the format of the public key
PRIVKEY: the generated key
PUBKEY: the corresponding public key (may be null)
FLAGS: should be a list of GNUTLS_TPM_* flags
This function will generate a private key in the TPM chip. The
private key will be generated within the chip and will be exported
in a wrapped with TPM's master key form. Furthermore the wrapped
key can be protected with the provided 'password' .
Note that bits in TPM is quantized value. If the input value is
not one of the allowed values, then it will be quantized to one of
512, 1024, 2048, 4096, 8192 and 16384.
Allowed flags are:
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
File: gnutls.info, Node: Abstract key API, Next: Socket specific API, Prev: TPM API, Up: API reference
E.9 Abstract key API
====================
The following functions are to be used for abstract key handling. Their
prototypes lie in 'gnutls/abstract.h'.
gnutls_certificate_set_key
--------------------------
-- Function: int gnutls_certificate_set_key
(gnutls_certificate_credentials_t RES, const char ** NAMES,
int NAMES_SIZE, gnutls_pcert_st * PCERT_LIST, int
PCERT_LIST_SIZE, gnutls_privkey_t KEY)
RES: is a 'gnutls_certificate_credentials_t' type.
NAMES: is an array of DNS names belonging to the public-key (NULL
if none)
NAMES_SIZE: holds the size of the names list
PCERT_LIST: contains a certificate list (chain) or raw public-key
PCERT_LIST_SIZE: holds the size of the certificate list
KEY: is a 'gnutls_privkey_t' key corresponding to the first
public-key in pcert_list
This function sets a public/private key pair in the
gnutls_certificate_credentials_t type. The given public key may be
encapsulated in a certificate or can be given as a raw key. This
function may be called more than once, in case multiple key pairs
exist for the server. For clients that want to send more than
their own end- entity certificate (e.g., also an intermediate CA
cert), the full certificate chain must be provided in 'pcert_list'
.
Note that the 'key' will become part of the credentials structure
and must not be deallocated. It will be automatically deallocated
when the 'res' structure is deinitialized.
If this function fails, the 'res' structure is at an undefined
state and it must not be reused to load other keys or certificates.
Note that, this function by default returns zero on success and a
negative value on error. Since 3.5.6, when the flag
'GNUTLS_CERTIFICATE_API_V2' is set using
'gnutls_certificate_set_flags()' it returns an index (greater or
equal to zero). That index can be used for other functions to
refer to the added key-pair.
Since GnuTLS 3.6.6 this function also handles raw public keys.
*Returns:* On success this functions returns zero, and otherwise a
negative value on error (see above for modifying that behavior).
*Since:* 3.0
gnutls_certificate_set_retrieve_function2
-----------------------------------------
-- Function: void gnutls_certificate_set_retrieve_function2
(gnutls_certificate_credentials_t CRED,
gnutls_certificate_retrieve_function2 * FUNC)
CRED: is a 'gnutls_certificate_credentials_t' type.
FUNC: is the callback function
This function sets a callback to be called in order to retrieve the
certificate to be used in the handshake. The callback will take
control only if a certificate is requested by the peer.
The callback's function prototype is: int
(*callback)(gnutls_session_t, const gnutls_datum_t* req_ca_dn, int
nreqs, const gnutls_pk_algorithm_t* pk_algos, int pk_algos_length,
gnutls_pcert_st** pcert, unsigned int *pcert_length,
gnutls_privkey_t * pkey);
'req_ca_dn' is only used in X.509 certificates. Contains a list
with the CA names that the server considers trusted. This is a
hint and typically the client should send a certificate that is
signed by one of these CAs. These names, when available, are DER
encoded. To get a more meaningful value use the function
'gnutls_x509_rdn_get()' .
'pk_algos' contains a list with server's acceptable public key
algorithms. The certificate returned should support the server's
given algorithms.
'pcert' should contain a single certificate and public key or a
list of them.
'pcert_length' is the size of the previous list.
'pkey' is the private key.
If the callback function is provided then gnutls will call it, in
the handshake, after the certificate request message has been
received. All the provided by the callback values will not be
released or modified by gnutls.
In server side pk_algos and req_ca_dn are NULL.
The callback function should set the certificate list to be sent,
and return 0 on success. If no certificate was selected then the
number of certificates should be set to zero. The value (-1)
indicates error and the handshake will be terminated. If both
certificates are set in the credentials and a callback is
available, the callback takes predence.
*Since:* 3.0
gnutls_certificate_set_retrieve_function3
-----------------------------------------
-- Function: void gnutls_certificate_set_retrieve_function3
(gnutls_certificate_credentials_t CRED,
gnutls_certificate_retrieve_function3 * FUNC)
CRED: is a 'gnutls_certificate_credentials_t' type.
FUNC: is the callback function
This function sets a callback to be called in order to retrieve the
certificate and OCSP responses to be used in the handshake. 'func'
will be called only if the peer requests a certificate either
during handshake or during post-handshake authentication.
The callback's function prototype is defined in 'abstract.h':
int gnutls_certificate_retrieve_function3( gnutls_session_t, const
struct gnutls_cert_retr_st *info, gnutls_pcert_st **certs, unsigned
int *certs_length, gnutls_ocsp_data_st **ocsp, unsigned int
*ocsp_length, gnutls_privkey_t *privkey, unsigned int *flags);
The info field of the callback contains: 'req_ca_dn' which is a
list with the CA names that the server considers trusted. This is
a hint and typically the client should send a certificate that is
signed by one of these CAs. These names, when available, are DER
encoded. To get a more meaningful value use the function
'gnutls_x509_rdn_get()' . 'pk_algos' contains a list with server's
acceptable public key algorithms. The certificate returned should
support the server's given algorithms.
The callback should fill-in the following values:
'certs' should contain an allocated list of certificates and public
keys. 'certs_length' is the size of the previous list. 'ocsp'
should contain an allocated list of OCSP responses. 'ocsp_length'
is the size of the previous list. 'privkey' is the private key.
If flags in the callback are set to 'GNUTLS_CERT_RETR_DEINIT_ALL'
then all provided values must be allocated using 'gnutls_malloc()'
, and will be released by gnutls; otherwise they will not be
touched by gnutls.
The callback function should set the certificate and OCSP response
list to be sent, and return 0 on success. If no certificates are
available, the 'certs_length' and 'ocsp_length' should be set to
zero. The return value (-1) indicates error and the handshake will
be terminated. If both certificates are set in the credentials and
a callback is available, the callback takes predence.
Raw public-keys: In case raw public-keys are negotiated as
certificate type, certificates that would normally hold the
public-key material are not available. In that case, 'certs'
contains an allocated list with only the public key. Since there
is no certificate, there is also no certificate status. Therefore,
OCSP information should not be set.
*Since:* 3.6.3
gnutls_pcert_deinit
-------------------
-- Function: void gnutls_pcert_deinit (gnutls_pcert_st * PCERT)
PCERT: The structure to be deinitialized
This function will deinitialize a pcert structure.
*Since:* 3.0
gnutls_pcert_export_openpgp
---------------------------
-- Function: int gnutls_pcert_export_openpgp (gnutls_pcert_st * PCERT,
gnutls_openpgp_crt_t * CRT)
PCERT: The pcert structure.
CRT: An initialized 'gnutls_openpgp_crt_t' .
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 3.4.0
gnutls_pcert_export_x509
------------------------
-- Function: int gnutls_pcert_export_x509 (gnutls_pcert_st * PCERT,
gnutls_x509_crt_t * CRT)
PCERT: The pcert structure.
CRT: An initialized 'gnutls_x509_crt_t' .
Converts the given 'gnutls_pcert_t' type into a 'gnutls_x509_crt_t'
. This function only works if the type of 'pcert' is
'GNUTLS_CRT_X509' . When successful, the value written to 'crt'
must be freed with 'gnutls_x509_crt_deinit()' when no longer
needed.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pcert_import_openpgp
---------------------------
-- Function: int gnutls_pcert_import_openpgp (gnutls_pcert_st * PCERT,
gnutls_openpgp_crt_t CRT, unsigned int FLAGS)
PCERT: The pcert structure
CRT: The raw certificate to be imported
FLAGS: zero for now
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 3.0
gnutls_pcert_import_openpgp_raw
-------------------------------
-- Function: int gnutls_pcert_import_openpgp_raw (gnutls_pcert_st *
PCERT, const gnutls_datum_t * CERT, gnutls_openpgp_crt_fmt_t
FORMAT, gnutls_openpgp_keyid_t KEYID, unsigned int FLAGS)
PCERT: The pcert structure
CERT: The raw certificate to be imported
FORMAT: The format of the certificate
KEYID: The key ID to use (NULL for the master key)
FLAGS: zero for now
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 3.0
gnutls_pcert_import_rawpk
-------------------------
-- Function: int gnutls_pcert_import_rawpk (gnutls_pcert_st* PCERT,
gnutls_pubkey_t PUBKEY, unsigned int FLAGS)
PCERT: The pcert structure to import the data into.
PUBKEY: The raw public-key in 'gnutls_pubkey_t' format to be
imported
FLAGS: zero for now
This convenience function will import (i.e. convert) the given raw
public key 'pubkey' into a 'gnutls_pcert_st' structure. The
structure must be deinitialized afterwards using
'gnutls_pcert_deinit()' . The given 'pubkey' must not be
deinitialized because it will be associated with the given 'pcert'
structure and will be deinitialized with it.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.6
gnutls_pcert_import_rawpk_raw
-----------------------------
-- Function: int gnutls_pcert_import_rawpk_raw (gnutls_pcert_st* PCERT,
const gnutls_datum_t* RAWPUBKEY, gnutls_x509_crt_fmt_t FORMAT,
unsigned int KEY_USAGE, unsigned int FLAGS)
PCERT: The pcert structure to import the data into.
RAWPUBKEY: The raw public-key in 'gnutls_datum_t' format to be
imported.
FORMAT: The format of the raw public-key. DER or PEM.
KEY_USAGE: An ORed sequence of 'GNUTLS_KEY_' * flags.
FLAGS: zero for now
This convenience function will import (i.e. convert) the given raw
public key 'rawpubkey' into a 'gnutls_pcert_st' structure. The
structure must be deinitialized afterwards using
'gnutls_pcert_deinit()' . Note that the caller is responsible for
freeing 'rawpubkey' . All necessary values will be copied into
'pcert' .
Key usage (as defined by X.509 extension (2.5.29.15)) can be
explicitly set because there is no certificate structure around the
key to define this value. See for more info
'gnutls_x509_crt_get_key_usage()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.6
gnutls_pcert_import_x509
------------------------
-- Function: int gnutls_pcert_import_x509 (gnutls_pcert_st * PCERT,
gnutls_x509_crt_t CRT, unsigned int FLAGS)
PCERT: The pcert structure
CRT: The certificate to be imported
FLAGS: zero for now
This convenience function will import the given certificate to a
'gnutls_pcert_st' structure. The structure must be deinitialized
afterwards using 'gnutls_pcert_deinit()' ;
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pcert_import_x509_list
-----------------------------
-- Function: int gnutls_pcert_import_x509_list (gnutls_pcert_st *
PCERT_LIST, gnutls_x509_crt_t * CRT, unsigned * NCRT, unsigned
int FLAGS)
PCERT_LIST: The structures to store the certificates; must not
contain initialized 'gnutls_pcert_st' structures.
CRT: The certificates to be imported
NCRT: The number of certificates in 'crt' ; will be updated if
necessary
FLAGS: zero or 'GNUTLS_X509_CRT_LIST_SORT'
This convenience function will import the given certificates to an
already allocated set of 'gnutls_pcert_st' structures. The
structures must be deinitialized afterwards using
'gnutls_pcert_deinit()' . 'pcert_list' should contain space for at
least 'ncrt' elements.
In the case 'GNUTLS_X509_CRT_LIST_SORT' is specified and that
function cannot sort the list, 'GNUTLS_E_CERTIFICATE_LIST_UNSORTED'
will be returned. Currently sorting can fail if the list size
exceeds an internal constraint (16).
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_pcert_import_x509_raw
----------------------------
-- Function: int gnutls_pcert_import_x509_raw (gnutls_pcert_st * PCERT,
const gnutls_datum_t * CERT, gnutls_x509_crt_fmt_t FORMAT,
unsigned int FLAGS)
PCERT: The pcert structure
CERT: The raw certificate to be imported
FORMAT: The format of the certificate
FLAGS: zero for now
This convenience function will import the given certificate to a
'gnutls_pcert_st' structure. The structure must be deinitialized
afterwards using 'gnutls_pcert_deinit()' ;
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pcert_list_import_x509_file
----------------------------------
-- Function: int gnutls_pcert_list_import_x509_file (gnutls_pcert_st *
PCERT_LIST, unsigned * PCERT_LIST_SIZE, const char * FILE,
gnutls_x509_crt_fmt_t FORMAT, gnutls_pin_callback_t PIN_FN,
void * PIN_FN_USERDATA, unsigned int FLAGS)
PCERT_LIST: The structures to store the certificates; must not
contain initialized 'gnutls_pcert_st' structures.
PCERT_LIST_SIZE: Initially must hold the maximum number of certs.
It will be updated with the number of certs available.
FILE: A file or supported URI with the certificates to load
FORMAT: 'GNUTLS_X509_FMT_DER' or 'GNUTLS_X509_FMT_PEM' if a file is
given
PIN_FN: a PIN callback if not globally set
PIN_FN_USERDATA: parameter for the PIN callback
FLAGS: zero or flags from 'gnutls_certificate_import_flags'
This convenience function will import a certificate chain from the
given file or supported URI to 'gnutls_pcert_st' structures. The
structures must be deinitialized afterwards using
'gnutls_pcert_deinit()' .
This function will always return a sorted certificate chain.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value; if the 'pcert' list doesn't have
enough space 'GNUTLS_E_SHORT_MEMORY_BUFFER' will be returned.
*Since:* 3.6.3
gnutls_pcert_list_import_x509_raw
---------------------------------
-- Function: int gnutls_pcert_list_import_x509_raw (gnutls_pcert_st *
PCERT_LIST, unsigned int * PCERT_LIST_SIZE, const
gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FORMAT, unsigned
int FLAGS)
PCERT_LIST: The structures to store the certificates; must not
contain initialized 'gnutls_pcert_st' structures.
PCERT_LIST_SIZE: Initially must hold the maximum number of certs.
It will be updated with the number of certs available.
DATA: The certificates.
FORMAT: One of DER or PEM.
FLAGS: must be (0) or an OR'd sequence of
gnutls_certificate_import_flags.
This function will import the provided DER or PEM encoded
certificates to an already allocated set of 'gnutls_pcert_st'
structures. The structures must be deinitialized afterwards using
'gnutls_pcert_deinit()' . 'pcert_list' should contain space for at
least 'pcert_list_size' elements.
If the Certificate is PEM encoded it should have a header of "X509
CERTIFICATE", or "CERTIFICATE".
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value; if the 'pcert' list doesn't have
enough space 'GNUTLS_E_SHORT_MEMORY_BUFFER' will be returned.
*Since:* 3.0
gnutls_privkey_decrypt_data
---------------------------
-- Function: int gnutls_privkey_decrypt_data (gnutls_privkey_t KEY,
unsigned int FLAGS, const gnutls_datum_t * CIPHERTEXT,
gnutls_datum_t * PLAINTEXT)
KEY: Holds the key
FLAGS: zero for now
CIPHERTEXT: holds the data to be decrypted
PLAINTEXT: will contain the decrypted data, allocated with
'gnutls_malloc()'
This function will decrypt the given data using the algorithm
supported by the private key.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_privkey_decrypt_data2
----------------------------
-- Function: int gnutls_privkey_decrypt_data2 (gnutls_privkey_t KEY,
unsigned int FLAGS, const gnutls_datum_t * CIPHERTEXT,
unsigned char * PLAINTEXT, size_t PLAINTEXT_SIZE)
KEY: Holds the key
FLAGS: zero for now
CIPHERTEXT: holds the data to be decrypted
PLAINTEXT: a preallocated buffer that will be filled with the
plaintext
PLAINTEXT_SIZE: in/out size of the plaintext
This function will decrypt the given data using the algorithm
supported by the private key. Unlike with
'gnutls_privkey_decrypt_data()' this function operates in constant
time and constant memory access.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.5
gnutls_privkey_deinit
---------------------
-- Function: void gnutls_privkey_deinit (gnutls_privkey_t KEY)
KEY: The key to be deinitialized
This function will deinitialize a private key structure.
*Since:* 2.12.0
gnutls_privkey_export_dsa_raw
-----------------------------
-- Function: int gnutls_privkey_export_dsa_raw (gnutls_privkey_t KEY,
gnutls_datum_t * P, gnutls_datum_t * Q, gnutls_datum_t * G,
gnutls_datum_t * Y, gnutls_datum_t * X)
KEY: Holds the public key
P: will hold the p
Q: will hold the q
G: will hold the g
Y: will hold the y
X: will hold the x
This function will export the DSA private key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.3.0
gnutls_privkey_export_dsa_raw2
------------------------------
-- Function: int gnutls_privkey_export_dsa_raw2 (gnutls_privkey_t KEY,
gnutls_datum_t * P, gnutls_datum_t * Q, gnutls_datum_t * G,
gnutls_datum_t * Y, gnutls_datum_t * X, unsigned int FLAGS)
KEY: Holds the public key
P: will hold the p
Q: will hold the q
G: will hold the g
Y: will hold the y
X: will hold the x
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the DSA private key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.0
gnutls_privkey_export_ecc_raw
-----------------------------
-- Function: int gnutls_privkey_export_ecc_raw (gnutls_privkey_t KEY,
gnutls_ecc_curve_t * CURVE, gnutls_datum_t * X, gnutls_datum_t
* Y, gnutls_datum_t * K)
KEY: Holds the public key
CURVE: will hold the curve
X: will hold the x-coordinate
Y: will hold the y-coordinate
K: will hold the private key
This function will export the ECC private key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
In EdDSA curves the 'y' parameter will be 'NULL' and the other
parameters will be in the native format for the curve.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.3.0
gnutls_privkey_export_ecc_raw2
------------------------------
-- Function: int gnutls_privkey_export_ecc_raw2 (gnutls_privkey_t KEY,
gnutls_ecc_curve_t * CURVE, gnutls_datum_t * X, gnutls_datum_t
* Y, gnutls_datum_t * K, unsigned int FLAGS)
KEY: Holds the public key
CURVE: will hold the curve
X: will hold the x-coordinate
Y: will hold the y-coordinate
K: will hold the private key
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the ECC private key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
In EdDSA curves the 'y' parameter will be 'NULL' and the other
parameters will be in the native format for the curve.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.0
gnutls_privkey_export_gost_raw2
-------------------------------
-- Function: int gnutls_privkey_export_gost_raw2 (gnutls_privkey_t KEY,
gnutls_ecc_curve_t * CURVE, gnutls_digest_algorithm_t *
DIGEST, gnutls_gost_paramset_t * PARAMSET, gnutls_datum_t * X,
gnutls_datum_t * Y, gnutls_datum_t * K, unsigned int FLAGS)
KEY: Holds the public key
CURVE: will hold the curve
DIGEST: will hold the digest
PARAMSET: will hold the GOST parameter set ID
X: will hold the x-coordinate
Y: will hold the y-coordinate
K: will hold the private key
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the GOST private key's parameters found
in the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
*Note:* parameters will be stored with least significant byte
first. On version 3.6.3 this was incorrectly returned in
big-endian format.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.3
gnutls_privkey_export_openpgp
-----------------------------
-- Function: int gnutls_privkey_export_openpgp (gnutls_privkey_t PKEY,
gnutls_openpgp_privkey_t * KEY)
PKEY: The private key
KEY: Location for the key to be exported.
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 3.4.0
gnutls_privkey_export_pkcs11
----------------------------
-- Function: int gnutls_privkey_export_pkcs11 (gnutls_privkey_t PKEY,
gnutls_pkcs11_privkey_t * KEY)
PKEY: The private key
KEY: Location for the key to be exported.
Converts the given abstract private key to a
'gnutls_pkcs11_privkey_t' type. The key must be of type
'GNUTLS_PRIVKEY_PKCS11' . The key returned in 'key' must be
deinitialized with 'gnutls_pkcs11_privkey_deinit()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_privkey_export_rsa_raw
-----------------------------
-- Function: int gnutls_privkey_export_rsa_raw (gnutls_privkey_t KEY,
gnutls_datum_t * M, gnutls_datum_t * E, gnutls_datum_t * D,
gnutls_datum_t * P, gnutls_datum_t * Q, gnutls_datum_t * U,
gnutls_datum_t * E1, gnutls_datum_t * E2)
KEY: Holds the certificate
M: will hold the modulus
E: will hold the public exponent
D: will hold the private exponent
P: will hold the first prime (p)
Q: will hold the second prime (q)
U: will hold the coefficient
E1: will hold e1 = d mod (p-1)
E2: will hold e2 = d mod (q-1)
This function will export the RSA private key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum. For
EdDSA keys, the 'y' value should be 'NULL' .
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.3.0
gnutls_privkey_export_rsa_raw2
------------------------------
-- Function: int gnutls_privkey_export_rsa_raw2 (gnutls_privkey_t KEY,
gnutls_datum_t * M, gnutls_datum_t * E, gnutls_datum_t * D,
gnutls_datum_t * P, gnutls_datum_t * Q, gnutls_datum_t * U,
gnutls_datum_t * E1, gnutls_datum_t * E2, unsigned int FLAGS)
KEY: Holds the certificate
M: will hold the modulus
E: will hold the public exponent
D: will hold the private exponent
P: will hold the first prime (p)
Q: will hold the second prime (q)
U: will hold the coefficient
E1: will hold e1 = d mod (p-1)
E2: will hold e2 = d mod (q-1)
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the RSA private key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.0
gnutls_privkey_export_x509
--------------------------
-- Function: int gnutls_privkey_export_x509 (gnutls_privkey_t PKEY,
gnutls_x509_privkey_t * KEY)
PKEY: The private key
KEY: Location for the key to be exported.
Converts the given abstract private key to a
'gnutls_x509_privkey_t' type. The abstract key must be of type
'GNUTLS_PRIVKEY_X509' . The input 'key' must not be initialized.
The key returned in 'key' should be deinitialized using
'gnutls_x509_privkey_deinit()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_privkey_generate
-----------------------
-- Function: int gnutls_privkey_generate (gnutls_privkey_t PKEY,
gnutls_pk_algorithm_t ALGO, unsigned int BITS, unsigned int
FLAGS)
PKEY: An initialized private key
ALGO: is one of the algorithms in 'gnutls_pk_algorithm_t' .
BITS: the size of the parameters to generate
FLAGS: Must be zero or flags from 'gnutls_privkey_flags_t' .
This function will generate a random private key. Note that this
function must be called on an initialized private key.
The flag 'GNUTLS_PRIVKEY_FLAG_PROVABLE' instructs the key
generation process to use algorithms like Shawe-Taylor (from FIPS
PUB186-4) which generate provable parameters out of a seed for RSA
and DSA keys. See 'gnutls_privkey_generate2()' for more
information.
Note that when generating an elliptic curve key, the curve can be
substituted in the place of the bits parameter using the
'GNUTLS_CURVE_TO_BITS()' macro. The input to the macro is any
curve from 'gnutls_ecc_curve_t' .
For DSA keys, if the subgroup size needs to be specified check the
'GNUTLS_SUBGROUP_TO_BITS()' macro.
It is recommended to do not set the number of 'bits' directly, use
'gnutls_sec_param_to_pk_bits()' instead .
See also 'gnutls_privkey_generate2()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.3.0
gnutls_privkey_generate2
------------------------
-- Function: int gnutls_privkey_generate2 (gnutls_privkey_t PKEY,
gnutls_pk_algorithm_t ALGO, unsigned int BITS, unsigned int
FLAGS, const gnutls_keygen_data_st * DATA, unsigned DATA_SIZE)
PKEY: The private key
ALGO: is one of the algorithms in 'gnutls_pk_algorithm_t' .
BITS: the size of the modulus
FLAGS: Must be zero or flags from 'gnutls_privkey_flags_t' .
DATA: Allow specifying 'gnutls_keygen_data_st' types such as the
seed to be used.
DATA_SIZE: The number of 'data' available.
This function will generate a random private key. Note that this
function must be called on an initialized private key.
The flag 'GNUTLS_PRIVKEY_FLAG_PROVABLE' instructs the key
generation process to use algorithms like Shawe-Taylor (from FIPS
PUB186-4) which generate provable parameters out of a seed for RSA
and DSA keys. On DSA keys the PQG parameters are generated using
the seed, while on RSA the two primes. To specify an explicit seed
(by default a random seed is used), use the 'data' with a
'GNUTLS_KEYGEN_SEED' type.
Note that when generating an elliptic curve key, the curve can be
substituted in the place of the bits parameter using the
'GNUTLS_CURVE_TO_BITS()' macro.
To export the generated keys in memory or in files it is
recommended to use the PKCS'8' form as it can handle all key types,
and can store additional parameters such as the seed, in case of
provable RSA or DSA keys. Generated keys can be exported in memory
using 'gnutls_privkey_export_x509()' , and then with
'gnutls_x509_privkey_export2_pkcs8()' .
If key generation is part of your application, avoid setting the
number of bits directly, and instead use
'gnutls_sec_param_to_pk_bits()' . That way the generated keys will
adapt to the security levels of the underlying GnuTLS library.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.5.0
gnutls_privkey_get_pk_algorithm
-------------------------------
-- Function: int gnutls_privkey_get_pk_algorithm (gnutls_privkey_t KEY,
unsigned int * BITS)
KEY: should contain a 'gnutls_privkey_t' type
BITS: If set will return the number of bits of the parameters (may
be NULL)
This function will return the public key algorithm of a private key
and if possible will return a number of bits that indicates the
security parameter of the key.
*Returns:* a member of the 'gnutls_pk_algorithm_t' enumeration on
success, or a negative error code on error.
*Since:* 2.12.0
gnutls_privkey_get_seed
-----------------------
-- Function: int gnutls_privkey_get_seed (gnutls_privkey_t KEY,
gnutls_digest_algorithm_t * DIGEST, void * SEED, size_t *
SEED_SIZE)
KEY: should contain a 'gnutls_privkey_t' type
DIGEST: if non-NULL it will contain the digest algorithm used for
key generation (if applicable)
SEED: where seed will be copied to
SEED_SIZE: originally holds the size of 'seed' , will be updated
with actual size
This function will return the seed that was used to generate the
given private key. That function will succeed only if the key was
generated as a provable key.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.5.0
gnutls_privkey_get_spki
-----------------------
-- Function: int gnutls_privkey_get_spki (gnutls_privkey_t PRIVKEY,
gnutls_x509_spki_t SPKI, unsigned int FLAGS)
PRIVKEY: a public key of type 'gnutls_privkey_t'
SPKI: a SubjectPublicKeyInfo structure of type
'gnutls_privkey_spki_t'
FLAGS: must be zero
This function will return the public key information if available.
The provided 'spki' must be initialized.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_privkey_get_type
-----------------------
-- Function: gnutls_privkey_type_t gnutls_privkey_get_type
(gnutls_privkey_t KEY)
KEY: should contain a 'gnutls_privkey_t' type
This function will return the type of the private key. This is
actually the type of the subsystem used to set this private key.
*Returns:* a member of the 'gnutls_privkey_type_t' enumeration on
success, or a negative error code on error.
*Since:* 2.12.0
gnutls_privkey_import_dsa_raw
-----------------------------
-- Function: int gnutls_privkey_import_dsa_raw (gnutls_privkey_t KEY,
const gnutls_datum_t * P, const gnutls_datum_t * Q, const
gnutls_datum_t * G, const gnutls_datum_t * Y, const
gnutls_datum_t * X)
KEY: The structure to store the parsed key
P: holds the p
Q: holds the q
G: holds the g
Y: holds the y (optional)
X: holds the x
This function will convert the given DSA raw parameters to the
native 'gnutls_privkey_t' format. The output will be stored in
'key' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_privkey_import_ecc_raw
-----------------------------
-- Function: int gnutls_privkey_import_ecc_raw (gnutls_privkey_t KEY,
gnutls_ecc_curve_t CURVE, const gnutls_datum_t * X, const
gnutls_datum_t * Y, const gnutls_datum_t * K)
KEY: The key
CURVE: holds the curve
X: holds the x-coordinate
Y: holds the y-coordinate
K: holds the k (private key)
This function will convert the given elliptic curve parameters to
the native 'gnutls_privkey_t' format. The output will be stored in
'key' .
In EdDSA curves the 'y' parameter should be 'NULL' and the 'x' and
'k' parameters must be in the native format for the curve.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_privkey_import_ext
-------------------------
-- Function: int gnutls_privkey_import_ext (gnutls_privkey_t PKEY,
gnutls_pk_algorithm_t PK, void * USERDATA,
gnutls_privkey_sign_func SIGN_FUNC,
gnutls_privkey_decrypt_func DECRYPT_FUNC, unsigned int FLAGS)
PKEY: The private key
PK: The public key algorithm
USERDATA: private data to be provided to the callbacks
SIGN_FUNC: callback for signature operations
DECRYPT_FUNC: callback for decryption operations
FLAGS: Flags for the import
This function will associate the given callbacks with the
'gnutls_privkey_t' type. At least one of the two callbacks must be
non-null.
Note that the signing function is supposed to "raw" sign data,
i.e., without any hashing or preprocessing. In case of RSA the
DigestInfo will be provided, and the signing function is expected
to do the PKCS '1' 1.5 padding and the exponentiation.
See also 'gnutls_privkey_import_ext3()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_privkey_import_ext2
--------------------------
-- Function: int gnutls_privkey_import_ext2 (gnutls_privkey_t PKEY,
gnutls_pk_algorithm_t PK, void * USERDATA,
gnutls_privkey_sign_func SIGN_FN, gnutls_privkey_decrypt_func
DECRYPT_FN, gnutls_privkey_deinit_func DEINIT_FN, unsigned int
FLAGS)
PKEY: The private key
PK: The public key algorithm
USERDATA: private data to be provided to the callbacks
SIGN_FN: callback for signature operations
DECRYPT_FN: callback for decryption operations
DEINIT_FN: a deinitialization function
FLAGS: Flags for the import
This function will associate the given callbacks with the
'gnutls_privkey_t' type. At least one of the two callbacks must be
non-null. If a deinitialization function is provided then flags is
assumed to contain 'GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE' .
Note that the signing function is supposed to "raw" sign data,
i.e., without any hashing or preprocessing. In case of RSA the
DigestInfo will be provided, and the signing function is expected
to do the PKCS '1' 1.5 padding and the exponentiation.
See also 'gnutls_privkey_import_ext3()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1
gnutls_privkey_import_ext3
--------------------------
-- Function: int gnutls_privkey_import_ext3 (gnutls_privkey_t PKEY,
void * USERDATA, gnutls_privkey_sign_func SIGN_FN,
gnutls_privkey_decrypt_func DECRYPT_FN,
gnutls_privkey_deinit_func DEINIT_FN, gnutls_privkey_info_func
INFO_FN, unsigned int FLAGS)
PKEY: The private key
USERDATA: private data to be provided to the callbacks
SIGN_FN: callback for signature operations
DECRYPT_FN: callback for decryption operations
DEINIT_FN: a deinitialization function
INFO_FN: returns info about the public key algorithm (should not be
'NULL' )
FLAGS: Flags for the import
This function will associate the given callbacks with the
'gnutls_privkey_t' type. At least one of the two callbacks must be
non-null. If a deinitialization function is provided then flags is
assumed to contain 'GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE' .
Note that the signing function is supposed to "raw" sign data,
i.e., without any hashing or preprocessing. In case of RSA the
DigestInfo will be provided, and the signing function is expected
to do the PKCS '1' 1.5 padding and the exponentiation.
The 'info_fn' must provide information on the algorithms supported
by this private key, and should support the flags
'GNUTLS_PRIVKEY_INFO_PK_ALGO' and 'GNUTLS_PRIVKEY_INFO_SIGN_ALGO' .
It must return -1 on unknown flags.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_privkey_import_ext4
--------------------------
-- Function: int gnutls_privkey_import_ext4 (gnutls_privkey_t PKEY,
void * USERDATA, gnutls_privkey_sign_data_func SIGN_DATA_FN,
gnutls_privkey_sign_hash_func SIGN_HASH_FN,
gnutls_privkey_decrypt_func DECRYPT_FN,
gnutls_privkey_deinit_func DEINIT_FN, gnutls_privkey_info_func
INFO_FN, unsigned int FLAGS)
PKEY: The private key
USERDATA: private data to be provided to the callbacks
SIGN_DATA_FN: callback for signature operations (may be 'NULL' )
SIGN_HASH_FN: callback for signature operations (may be 'NULL' )
DECRYPT_FN: callback for decryption operations (may be 'NULL' )
DEINIT_FN: a deinitialization function
INFO_FN: returns info about the public key algorithm (should not be
'NULL' )
FLAGS: Flags for the import
This function will associate the given callbacks with the
'gnutls_privkey_t' type. At least one of the callbacks must be
non-null. If a deinitialization function is provided then flags is
assumed to contain 'GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE' .
Note that in contrast with the signing function of
'gnutls_privkey_import_ext3()' , the signing functions provided to
this function take explicitly the signature algorithm as parameter
and different functions are provided to sign the data and hashes.
The 'sign_hash_fn' is to be called to sign pre-hashed data. The
input to the callback is the output of the hash (such as SHA256)
corresponding to the signature algorithm. For RSA PKCS'1'
signatures, the signature algorithm can be set to
'GNUTLS_SIGN_RSA_RAW' , and in that case the data should be handled
as if they were an RSA PKCS'1' DigestInfo structure.
The 'sign_data_fn' is to be called to sign data. The input data
will be he data to be signed (and hashed), with the provided
signature algorithm. This function is to be used for signature
algorithms like Ed25519 which cannot take pre-hashed data as input.
When both 'sign_data_fn' and 'sign_hash_fn' functions are provided
they must be able to operate on all the supported signature
algorithms, unless prohibited by the type of the algorithm (e.g.,
as with Ed25519).
The 'info_fn' must provide information on the signature algorithms
supported by this private key, and should support the flags
'GNUTLS_PRIVKEY_INFO_PK_ALGO' ,
'GNUTLS_PRIVKEY_INFO_HAVE_SIGN_ALGO' and
'GNUTLS_PRIVKEY_INFO_PK_ALGO_BITS' . It must return -1 on unknown
flags.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_privkey_import_gost_raw
------------------------------
-- Function: int gnutls_privkey_import_gost_raw (gnutls_privkey_t KEY,
gnutls_ecc_curve_t CURVE, gnutls_digest_algorithm_t DIGEST,
gnutls_gost_paramset_t PARAMSET, const gnutls_datum_t * X,
const gnutls_datum_t * Y, const gnutls_datum_t * K)
KEY: The key
CURVE: holds the curve
DIGEST: holds the digest
PARAMSET: holds the GOST parameter set ID
X: holds the x-coordinate
Y: holds the y-coordinate
K: holds the k (private key)
This function will convert the given GOST private key's parameters
to the native 'gnutls_privkey_t' format. The output will be stored
in 'key' . 'digest' should be one of GNUTLS_DIG_GOSR_94,
GNUTLS_DIG_STREEBOG_256 or GNUTLS_DIG_STREEBOG_512. If 'paramset'
is set to GNUTLS_GOST_PARAMSET_UNKNOWN default one will be selected
depending on 'digest' .
*Note:* parameters should be stored with least significant byte
first. On version 3.6.3 big-endian format was used incorrectly.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.3
gnutls_privkey_import_openpgp
-----------------------------
-- Function: int gnutls_privkey_import_openpgp (gnutls_privkey_t PKEY,
gnutls_openpgp_privkey_t KEY, unsigned int FLAGS)
PKEY: The private key
KEY: The private key to be imported
FLAGS: Flags for the import
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 2.12.0
gnutls_privkey_import_openpgp_raw
---------------------------------
-- Function: int gnutls_privkey_import_openpgp_raw (gnutls_privkey_t
PKEY, const gnutls_datum_t * DATA, gnutls_openpgp_crt_fmt_t
FORMAT, const gnutls_openpgp_keyid_t KEYID, const char *
PASSWORD)
PKEY: The private key
DATA: The private key data to be imported
FORMAT: The format of the private key
KEYID: The key id to use (optional)
PASSWORD: A password (optional)
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 3.1.0
gnutls_privkey_import_pkcs11
----------------------------
-- Function: int gnutls_privkey_import_pkcs11 (gnutls_privkey_t PKEY,
gnutls_pkcs11_privkey_t KEY, unsigned int FLAGS)
PKEY: The private key
KEY: The private key to be imported
FLAGS: Flags for the import
This function will import the given private key to the abstract
'gnutls_privkey_t' type.
The 'gnutls_pkcs11_privkey_t' object must not be deallocated during
the lifetime of this structure.
'flags' might be zero or one of
'GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE' and
'GNUTLS_PRIVKEY_IMPORT_COPY' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_privkey_import_pkcs11_url
--------------------------------
-- Function: int gnutls_privkey_import_pkcs11_url (gnutls_privkey_t
KEY, const char * URL)
KEY: A key of type 'gnutls_pubkey_t'
URL: A PKCS 11 url
This function will import a PKCS 11 private key to a
'gnutls_private_key_t' type.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_privkey_import_rsa_raw
-----------------------------
-- Function: int gnutls_privkey_import_rsa_raw (gnutls_privkey_t KEY,
const gnutls_datum_t * M, const gnutls_datum_t * E, const
gnutls_datum_t * D, const gnutls_datum_t * P, const
gnutls_datum_t * Q, const gnutls_datum_t * U, const
gnutls_datum_t * E1, const gnutls_datum_t * E2)
KEY: The structure to store the parsed key
M: holds the modulus
E: holds the public exponent
D: holds the private exponent (optional)
P: holds the first prime (p)
Q: holds the second prime (q)
U: holds the coefficient (optional)
E1: holds e1 = d mod (p-1) (optional)
E2: holds e2 = d mod (q-1) (optional)
This function will convert the given RSA raw parameters to the
native 'gnutls_privkey_t' format. The output will be stored in
'key' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_privkey_import_tpm_raw
-----------------------------
-- Function: int gnutls_privkey_import_tpm_raw (gnutls_privkey_t PKEY,
const gnutls_datum_t * FDATA, gnutls_tpmkey_fmt_t FORMAT,
const char * SRK_PASSWORD, const char * KEY_PASSWORD, unsigned
int FLAGS)
PKEY: The private key
FDATA: The TPM key to be imported
FORMAT: The format of the private key
SRK_PASSWORD: The password for the SRK key (optional)
KEY_PASSWORD: A password for the key (optional)
FLAGS: should be zero
This function will import the given private key to the abstract
'gnutls_privkey_t' type.
With respect to passwords the same as in
'gnutls_privkey_import_tpm_url()' apply.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_privkey_import_tpm_url
-----------------------------
-- Function: int gnutls_privkey_import_tpm_url (gnutls_privkey_t PKEY,
const char * URL, const char * SRK_PASSWORD, const char *
KEY_PASSWORD, unsigned int FLAGS)
PKEY: The private key
URL: The URL of the TPM key to be imported
SRK_PASSWORD: The password for the SRK key (optional)
KEY_PASSWORD: A password for the key (optional)
FLAGS: One of the GNUTLS_PRIVKEY_* flags
This function will import the given private key to the abstract
'gnutls_privkey_t' type.
Note that unless 'GNUTLS_PRIVKEY_DISABLE_CALLBACKS' is specified,
if incorrect (or NULL) passwords are given the PKCS11 callback
functions will be used to obtain the correct passwords. Otherwise
if the SRK password is wrong 'GNUTLS_E_TPM_SRK_PASSWORD_ERROR' is
returned and if the key password is wrong or not provided then
'GNUTLS_E_TPM_KEY_PASSWORD_ERROR' is returned.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_privkey_import_url
-------------------------
-- Function: int gnutls_privkey_import_url (gnutls_privkey_t KEY, const
char * URL, unsigned int FLAGS)
KEY: A key of type 'gnutls_privkey_t'
URL: A PKCS 11 url
FLAGS: should be zero
This function will import a PKCS11 or TPM URL as a private key.
The supported URL types can be checked using
'gnutls_url_is_supported()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_privkey_import_x509
--------------------------
-- Function: int gnutls_privkey_import_x509 (gnutls_privkey_t PKEY,
gnutls_x509_privkey_t KEY, unsigned int FLAGS)
PKEY: The private key
KEY: The private key to be imported
FLAGS: Flags for the import
This function will import the given private key to the abstract
'gnutls_privkey_t' type.
The 'gnutls_x509_privkey_t' object must not be deallocated during
the lifetime of this structure.
'flags' might be zero or one of
'GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE' and
'GNUTLS_PRIVKEY_IMPORT_COPY' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_privkey_import_x509_raw
------------------------------
-- Function: int gnutls_privkey_import_x509_raw (gnutls_privkey_t PKEY,
const gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FORMAT,
const char * PASSWORD, unsigned int FLAGS)
PKEY: The private key
DATA: The private key data to be imported
FORMAT: The format of the private key
PASSWORD: A password (optional)
FLAGS: an ORed sequence of gnutls_pkcs_encrypt_flags_t
This function will import the given private key to the abstract
'gnutls_privkey_t' type.
The supported formats are basic unencrypted key, PKCS8, PKCS12,
TSS2, and the openssl format.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_privkey_init
-------------------
-- Function: int gnutls_privkey_init (gnutls_privkey_t * KEY)
KEY: A pointer to the type to be initialized
This function will initialize a private key object. The object can
be used to generate, import, and perform cryptographic operations
on the associated private key.
Note that when the underlying private key is a PKCS'11' key (i.e.,
when imported with a PKCS'11' URI), the limitations of
'gnutls_pkcs11_privkey_init()' apply to this object as well. In
versions of GnuTLS later than 3.5.11 the object is protected using
locks and a single 'gnutls_privkey_t' can be re-used by many
threads. However, for performance it is recommended to utilize one
object per key per thread.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_privkey_set_flags
------------------------
-- Function: void gnutls_privkey_set_flags (gnutls_privkey_t KEY,
unsigned int FLAGS)
KEY: A key of type 'gnutls_privkey_t'
FLAGS: flags from the 'gnutls_privkey_flags'
This function will set flags for the specified private key, after
it is generated. Currently this is useful for the
'GNUTLS_PRIVKEY_FLAG_EXPORT_COMPAT' to allow exporting a "provable"
private key in backwards compatible way.
*Since:* 3.5.0
gnutls_privkey_set_pin_function
-------------------------------
-- Function: void gnutls_privkey_set_pin_function (gnutls_privkey_t
KEY, gnutls_pin_callback_t FN, void * USERDATA)
KEY: A key of type 'gnutls_privkey_t'
FN: the callback
USERDATA: data associated with the callback
This function will set a callback function to be used when required
to access the object. This function overrides any other global PIN
functions.
Note that this function must be called right after initialization
to have effect.
*Since:* 3.1.0
gnutls_privkey_set_spki
-----------------------
-- Function: int gnutls_privkey_set_spki (gnutls_privkey_t PRIVKEY,
const gnutls_x509_spki_t SPKI, unsigned int FLAGS)
PRIVKEY: a public key of type 'gnutls_privkey_t'
SPKI: a SubjectPublicKeyInfo structure of type
'gnutls_privkey_spki_t'
FLAGS: must be zero
This function will set the public key information. The provided
'spki' must be initialized.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_privkey_sign_data
------------------------
-- Function: int gnutls_privkey_sign_data (gnutls_privkey_t SIGNER,
gnutls_digest_algorithm_t HASH, unsigned int FLAGS, const
gnutls_datum_t * DATA, gnutls_datum_t * SIGNATURE)
SIGNER: Holds the key
HASH: should be a digest algorithm
FLAGS: Zero or one of 'gnutls_privkey_flags_t'
DATA: holds the data to be signed
SIGNATURE: will contain the signature allocated with
'gnutls_malloc()'
This function will sign the given data using a signature algorithm
supported by the private key. Signature algorithms are always used
together with a hash functions. Different hash functions may be
used for the RSA algorithm, but only the SHA family for the DSA
keys.
You may use 'gnutls_pubkey_get_preferred_hash_algorithm()' to
determine the hash algorithm.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_privkey_sign_data2
-------------------------
-- Function: int gnutls_privkey_sign_data2 (gnutls_privkey_t SIGNER,
gnutls_sign_algorithm_t ALGO, unsigned int FLAGS, const
gnutls_datum_t * DATA, gnutls_datum_t * SIGNATURE)
SIGNER: Holds the key
ALGO: The signature algorithm used
FLAGS: Zero or one of 'gnutls_privkey_flags_t'
DATA: holds the data to be signed
SIGNATURE: will contain the signature allocated with
'gnutls_malloc()'
This function will sign the given data using the specified
signature algorithm. This function is an enhancement of
'gnutls_privkey_sign_data()' , as it allows utilizing a alternative
signature algorithm where possible (e.g, use an RSA key with
RSA-PSS).
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_privkey_sign_hash
------------------------
-- Function: int gnutls_privkey_sign_hash (gnutls_privkey_t SIGNER,
gnutls_digest_algorithm_t HASH_ALGO, unsigned int FLAGS, const
gnutls_datum_t * HASH_DATA, gnutls_datum_t * SIGNATURE)
SIGNER: Holds the signer's key
HASH_ALGO: The hash algorithm used
FLAGS: Zero or one of 'gnutls_privkey_flags_t'
HASH_DATA: holds the data to be signed
SIGNATURE: will contain newly allocated signature
This function will sign the given hashed data using a signature
algorithm supported by the private key. Signature algorithms are
always used together with a hash functions. Different hash
functions may be used for the RSA algorithm, but only SHA-XXX for
the DSA keys.
You may use 'gnutls_pubkey_get_preferred_hash_algorithm()' to
determine the hash algorithm.
The flags may be 'GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA' or
'GNUTLS_PRIVKEY_SIGN_FLAG_RSA_PSS' . In the former case this
function will ignore 'hash_algo' and perform a raw PKCS1 signature,
and in the latter an RSA-PSS signature will be generated.
Note that, not all algorithm support signing already hashed data.
When signing with Ed25519, 'gnutls_privkey_sign_data()' should be
used.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_privkey_sign_hash2
-------------------------
-- Function: int gnutls_privkey_sign_hash2 (gnutls_privkey_t SIGNER,
gnutls_sign_algorithm_t ALGO, unsigned int FLAGS, const
gnutls_datum_t * HASH_DATA, gnutls_datum_t * SIGNATURE)
SIGNER: Holds the signer's key
ALGO: The signature algorithm used
FLAGS: Zero or one of 'gnutls_privkey_flags_t'
HASH_DATA: holds the data to be signed
SIGNATURE: will contain newly allocated signature
This function will sign the given hashed data using the specified
signature algorithm. This function is an enhancement of
'gnutls_privkey_sign_hash()' , as it allows utilizing a alternative
signature algorithm where possible (e.g, use an RSA key with
RSA-PSS).
The flags may be 'GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA' . In that
case this function will ignore 'hash_algo' and perform a raw PKCS1
signature. Note that this flag is supported since 3.6.9.
Note also that, not all algorithm support signing already hashed
data. When signing with Ed25519, 'gnutls_privkey_sign_data2()'
should be used instead.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_privkey_status
---------------------
-- Function: int gnutls_privkey_status (gnutls_privkey_t KEY)
KEY: Holds the key
Checks the status of the private key token. This function is an
actual wrapper over 'gnutls_pkcs11_privkey_status()' , and if the
private key is a PKCS '11' token it will check whether it is
inserted or not.
*Returns:* this function will return non-zero if the token holding
the private key is still available (inserted), and zero otherwise.
*Since:* 3.1.10
gnutls_privkey_verify_params
----------------------------
-- Function: int gnutls_privkey_verify_params (gnutls_privkey_t KEY)
KEY: should contain a 'gnutls_privkey_t' type
This function will verify the private key parameters.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.3.0
gnutls_privkey_verify_seed
--------------------------
-- Function: int gnutls_privkey_verify_seed (gnutls_privkey_t KEY,
gnutls_digest_algorithm_t DIGEST, const void * SEED, size_t
SEED_SIZE)
KEY: should contain a 'gnutls_privkey_t' type
DIGEST: it contains the digest algorithm used for key generation
(if applicable)
SEED: the seed of the key to be checked with
SEED_SIZE: holds the size of 'seed'
This function will verify that the given private key was generated
from the provided seed.
*Returns:* In case of a verification failure
'GNUTLS_E_PRIVKEY_VERIFICATION_ERROR' is returned, and zero or
positive code on success.
*Since:* 3.5.0
gnutls_pubkey_deinit
--------------------
-- Function: void gnutls_pubkey_deinit (gnutls_pubkey_t KEY)
KEY: The key to be deinitialized
This function will deinitialize a public key structure.
*Since:* 2.12.0
gnutls_pubkey_encrypt_data
--------------------------
-- Function: int gnutls_pubkey_encrypt_data (gnutls_pubkey_t KEY,
unsigned int FLAGS, const gnutls_datum_t * PLAINTEXT,
gnutls_datum_t * CIPHERTEXT)
KEY: Holds the public key
FLAGS: should be 0 for now
PLAINTEXT: The data to be encrypted
CIPHERTEXT: contains the encrypted data
This function will encrypt the given data, using the public key.
On success the 'ciphertext' will be allocated using
'gnutls_malloc()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pubkey_export
--------------------
-- Function: int gnutls_pubkey_export (gnutls_pubkey_t KEY,
gnutls_x509_crt_fmt_t FORMAT, void * OUTPUT_DATA, size_t *
OUTPUT_DATA_SIZE)
KEY: Holds the certificate
FORMAT: the format of output params. One of PEM or DER.
OUTPUT_DATA: will contain a certificate PEM or DER encoded
OUTPUT_DATA_SIZE: holds the size of output_data (and will be
replaced by the actual size of parameters)
This function will export the public key to DER or PEM format. The
contents of the exported data is the SubjectPublicKeyInfo X.509
structure.
If the buffer provided is not long enough to hold the output, then
*output_data_size is updated and 'GNUTLS_E_SHORT_MEMORY_BUFFER'
will be returned.
If the structure is PEM encoded, it will have a header of "BEGIN
CERTIFICATE".
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
*Since:* 2.12.0
gnutls_pubkey_export2
---------------------
-- Function: int gnutls_pubkey_export2 (gnutls_pubkey_t KEY,
gnutls_x509_crt_fmt_t FORMAT, gnutls_datum_t * OUT)
KEY: Holds the certificate
FORMAT: the format of output params. One of PEM or DER.
OUT: will contain a certificate PEM or DER encoded
This function will export the public key to DER or PEM format. The
contents of the exported data is the SubjectPublicKeyInfo X.509
structure.
The output buffer will be allocated using 'gnutls_malloc()' .
If the structure is PEM encoded, it will have a header of "BEGIN
CERTIFICATE".
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
*Since:* 3.1.3
gnutls_pubkey_export_dsa_raw
----------------------------
-- Function: int gnutls_pubkey_export_dsa_raw (gnutls_pubkey_t KEY,
gnutls_datum_t * P, gnutls_datum_t * Q, gnutls_datum_t * G,
gnutls_datum_t * Y)
KEY: Holds the public key
P: will hold the p (may be 'NULL' )
Q: will hold the q (may be 'NULL' )
G: will hold the g (may be 'NULL' )
Y: will hold the y (may be 'NULL' )
This function will export the DSA public key's parameters found in
the given certificate. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
This function allows for 'NULL' parameters since 3.4.1.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.3.0
gnutls_pubkey_export_dsa_raw2
-----------------------------
-- Function: int gnutls_pubkey_export_dsa_raw2 (gnutls_pubkey_t KEY,
gnutls_datum_t * P, gnutls_datum_t * Q, gnutls_datum_t * G,
gnutls_datum_t * Y, unsigned FLAGS)
KEY: Holds the public key
P: will hold the p (may be 'NULL' )
Q: will hold the q (may be 'NULL' )
G: will hold the g (may be 'NULL' )
Y: will hold the y (may be 'NULL' )
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the DSA public key's parameters found in
the given certificate. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
This function allows for 'NULL' parameters since 3.4.1.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.0
gnutls_pubkey_export_ecc_raw
----------------------------
-- Function: int gnutls_pubkey_export_ecc_raw (gnutls_pubkey_t KEY,
gnutls_ecc_curve_t * CURVE, gnutls_datum_t * X, gnutls_datum_t
* Y)
KEY: Holds the public key
CURVE: will hold the curve (may be 'NULL' )
X: will hold x-coordinate (may be 'NULL' )
Y: will hold y-coordinate (may be 'NULL' )
This function will export the ECC public key's parameters found in
the given key. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
In EdDSA curves the 'y' parameter will be 'NULL' and the other
parameters will be in the native format for the curve.
This function allows for 'NULL' parameters since 3.4.1.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.0
gnutls_pubkey_export_ecc_raw2
-----------------------------
-- Function: int gnutls_pubkey_export_ecc_raw2 (gnutls_pubkey_t KEY,
gnutls_ecc_curve_t * CURVE, gnutls_datum_t * X, gnutls_datum_t
* Y, unsigned int FLAGS)
KEY: Holds the public key
CURVE: will hold the curve (may be 'NULL' )
X: will hold x-coordinate (may be 'NULL' )
Y: will hold y-coordinate (may be 'NULL' )
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the ECC public key's parameters found in
the given key. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
In EdDSA curves the 'y' parameter will be 'NULL' and the other
parameters will be in the native format for the curve.
This function allows for 'NULL' parameters since 3.4.1.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.0
gnutls_pubkey_export_ecc_x962
-----------------------------
-- Function: int gnutls_pubkey_export_ecc_x962 (gnutls_pubkey_t KEY,
gnutls_datum_t * PARAMETERS, gnutls_datum_t * ECPOINT)
KEY: Holds the public key
PARAMETERS: DER encoding of an ANSI X9.62 parameters
ECPOINT: DER encoding of ANSI X9.62 ECPoint
This function will export the ECC public key's parameters found in
the given certificate. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.3.0
gnutls_pubkey_export_gost_raw2
------------------------------
-- Function: int gnutls_pubkey_export_gost_raw2 (gnutls_pubkey_t KEY,
gnutls_ecc_curve_t * CURVE, gnutls_digest_algorithm_t *
DIGEST, gnutls_gost_paramset_t * PARAMSET, gnutls_datum_t * X,
gnutls_datum_t * Y, unsigned int FLAGS)
KEY: Holds the public key
CURVE: will hold the curve (may be 'NULL' )
DIGEST: will hold the curve (may be 'NULL' )
PARAMSET: will hold the parameters id (may be 'NULL' )
X: will hold the x-coordinate (may be 'NULL' )
Y: will hold the y-coordinate (may be 'NULL' )
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the GOST public key's parameters found in
the given key. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
*Note:* parameters will be stored with least significant byte
first. On version 3.6.3 this was incorrectly returned in
big-endian format.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.3
gnutls_pubkey_export_rsa_raw
----------------------------
-- Function: int gnutls_pubkey_export_rsa_raw (gnutls_pubkey_t KEY,
gnutls_datum_t * M, gnutls_datum_t * E)
KEY: Holds the certificate
M: will hold the modulus (may be 'NULL' )
E: will hold the public exponent (may be 'NULL' )
This function will export the RSA public key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
This function allows for 'NULL' parameters since 3.4.1.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.3.0
gnutls_pubkey_export_rsa_raw2
-----------------------------
-- Function: int gnutls_pubkey_export_rsa_raw2 (gnutls_pubkey_t KEY,
gnutls_datum_t * M, gnutls_datum_t * E, unsigned FLAGS)
KEY: Holds the certificate
M: will hold the modulus (may be 'NULL' )
E: will hold the public exponent (may be 'NULL' )
FLAGS: flags from 'gnutls_abstract_export_flags_t'
This function will export the RSA public key's parameters found in
the given structure. The new parameters will be allocated using
'gnutls_malloc()' and will be stored in the appropriate datum.
This function allows for 'NULL' parameters since 3.4.1.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.6.0
gnutls_pubkey_get_key_id
------------------------
-- Function: int gnutls_pubkey_get_key_id (gnutls_pubkey_t KEY,
unsigned int FLAGS, unsigned char * OUTPUT_DATA, size_t *
OUTPUT_DATA_SIZE)
KEY: Holds the public key
FLAGS: should be one of the flags from 'gnutls_keyid_flags_t'
OUTPUT_DATA: will contain the key ID
OUTPUT_DATA_SIZE: holds the size of output_data (and will be
replaced by the actual size of parameters)
This function will return a unique ID that depends on the public
key parameters. This ID can be used in checking whether a
certificate corresponds to the given public key.
If the buffer provided is not long enough to hold the output, then
*output_data_size is updated and 'GNUTLS_E_SHORT_MEMORY_BUFFER'
will be returned. The output will normally be a SHA-1 hash output,
which is 20 bytes.
*Returns:* In case of failure a negative error code will be
returned, and 0 on success.
*Since:* 2.12.0
gnutls_pubkey_get_key_usage
---------------------------
-- Function: int gnutls_pubkey_get_key_usage (gnutls_pubkey_t KEY,
unsigned int * USAGE)
KEY: should contain a 'gnutls_pubkey_t' type
USAGE: If set will return the number of bits of the parameters (may
be NULL)
This function will return the key usage of the public key.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_get_openpgp_key_id
--------------------------------
-- Function: int gnutls_pubkey_get_openpgp_key_id (gnutls_pubkey_t KEY,
unsigned int FLAGS, unsigned char * OUTPUT_DATA, size_t *
OUTPUT_DATA_SIZE, unsigned int * SUBKEY)
KEY: Holds the public key
FLAGS: should be one of the flags from 'gnutls_keyid_flags_t'
OUTPUT_DATA: will contain the key ID
OUTPUT_DATA_SIZE: holds the size of output_data (and will be
replaced by the actual size of parameters)
SUBKEY: ignored
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 2.12.0
gnutls_pubkey_get_pk_algorithm
------------------------------
-- Function: int gnutls_pubkey_get_pk_algorithm (gnutls_pubkey_t KEY,
unsigned int * BITS)
KEY: should contain a 'gnutls_pubkey_t' type
BITS: If set will return the number of bits of the parameters (may
be NULL)
This function will return the public key algorithm of a public key
and if possible will return a number of bits that indicates the
security parameter of the key.
*Returns:* a member of the 'gnutls_pk_algorithm_t' enumeration on
success, or a negative error code on error.
*Since:* 2.12.0
gnutls_pubkey_get_preferred_hash_algorithm
------------------------------------------
-- Function: int gnutls_pubkey_get_preferred_hash_algorithm
(gnutls_pubkey_t KEY, gnutls_digest_algorithm_t * HASH,
unsigned int * MAND)
KEY: Holds the certificate
HASH: The result of the call with the hash algorithm used for
signature
MAND: If non zero it means that the algorithm MUST use this hash.
May be NULL.
This function will read the certificate and return the appropriate
digest algorithm to use for signing with this certificate. Some
certificates (i.e. DSA might not be able to sign without the
preferred algorithm).
To get the signature algorithm instead of just the hash use
'gnutls_pk_to_sign()' with the algorithm of the certificate/key and
the provided 'hash' .
*Returns:* the 0 if the hash algorithm is found. A negative error
code is returned on error.
*Since:* 2.12.0
gnutls_pubkey_get_spki
----------------------
-- Function: int gnutls_pubkey_get_spki (gnutls_pubkey_t PUBKEY,
gnutls_x509_spki_t SPKI, unsigned int FLAGS)
PUBKEY: a public key of type 'gnutls_pubkey_t'
SPKI: a SubjectPublicKeyInfo structure of type
'gnutls_pubkey_spki_t'
FLAGS: must be zero
This function will return the public key information if available.
The provided 'spki' must be initialized.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_pubkey_import
--------------------
-- Function: int gnutls_pubkey_import (gnutls_pubkey_t KEY, const
gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FORMAT)
KEY: The public key.
DATA: The DER or PEM encoded certificate.
FORMAT: One of DER or PEM
This function will import the provided public key in a
SubjectPublicKeyInfo X.509 structure to a native 'gnutls_pubkey_t'
type. The output will be stored in 'key' . If the public key is
PEM encoded it should have a header of "PUBLIC KEY".
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_import_dsa_raw
----------------------------
-- Function: int gnutls_pubkey_import_dsa_raw (gnutls_pubkey_t KEY,
const gnutls_datum_t * P, const gnutls_datum_t * Q, const
gnutls_datum_t * G, const gnutls_datum_t * Y)
KEY: The structure to store the parsed key
P: holds the p
Q: holds the q
G: holds the g
Y: holds the y
This function will convert the given DSA raw parameters to the
native 'gnutls_pubkey_t' format. The output will be stored in
'key' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_import_ecc_raw
----------------------------
-- Function: int gnutls_pubkey_import_ecc_raw (gnutls_pubkey_t KEY,
gnutls_ecc_curve_t CURVE, const gnutls_datum_t * X, const
gnutls_datum_t * Y)
KEY: The structure to store the parsed key
CURVE: holds the curve
X: holds the x-coordinate
Y: holds the y-coordinate
This function will convert the given elliptic curve parameters to a
'gnutls_pubkey_t' . The output will be stored in 'key' .
In EdDSA curves the 'y' parameter should be 'NULL' and the 'x'
parameter must be the value in the native format for the curve.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pubkey_import_ecc_x962
-----------------------------
-- Function: int gnutls_pubkey_import_ecc_x962 (gnutls_pubkey_t KEY,
const gnutls_datum_t * PARAMETERS, const gnutls_datum_t *
ECPOINT)
KEY: The structure to store the parsed key
PARAMETERS: DER encoding of an ANSI X9.62 parameters
ECPOINT: DER encoding of ANSI X9.62 ECPoint
This function will convert the given elliptic curve parameters to a
'gnutls_pubkey_t' . The output will be stored in 'key' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.0
gnutls_pubkey_import_gost_raw
-----------------------------
-- Function: int gnutls_pubkey_import_gost_raw (gnutls_pubkey_t KEY,
gnutls_ecc_curve_t CURVE, gnutls_digest_algorithm_t DIGEST,
gnutls_gost_paramset_t PARAMSET, const gnutls_datum_t * X,
const gnutls_datum_t * Y)
KEY: The structure to store the parsed key
CURVE: holds the curve
DIGEST: holds the digest
PARAMSET: holds the parameters id
X: holds the x-coordinate
Y: holds the y-coordinate
This function will convert the given GOST public key's parameters
to a 'gnutls_pubkey_t' . The output will be stored in 'key' .
'digest' should be one of GNUTLS_DIG_GOSR_94,
GNUTLS_DIG_STREEBOG_256 or GNUTLS_DIG_STREEBOG_512. If 'paramset'
is set to GNUTLS_GOST_PARAMSET_UNKNOWN default one will be selected
depending on 'digest' .
*Note:* parameters should be stored with least significant byte
first. On version 3.6.3 big-endian format was used incorrectly.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.3
gnutls_pubkey_import_openpgp
----------------------------
-- Function: int gnutls_pubkey_import_openpgp (gnutls_pubkey_t KEY,
gnutls_openpgp_crt_t CRT, unsigned int FLAGS)
KEY: The public key
CRT: The certificate to be imported
FLAGS: should be zero
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 2.12.0
gnutls_pubkey_import_openpgp_raw
--------------------------------
-- Function: int gnutls_pubkey_import_openpgp_raw (gnutls_pubkey_t
PKEY, const gnutls_datum_t * DATA, gnutls_openpgp_crt_fmt_t
FORMAT, const gnutls_openpgp_keyid_t KEYID, unsigned int
FLAGS)
PKEY: The public key
DATA: The public key data to be imported
FORMAT: The format of the public key
KEYID: The key id to use (optional)
FLAGS: Should be zero
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
*Since:* 3.1.3
gnutls_pubkey_import_pkcs11
---------------------------
-- Function: int gnutls_pubkey_import_pkcs11 (gnutls_pubkey_t KEY,
gnutls_pkcs11_obj_t OBJ, unsigned int FLAGS)
KEY: The public key
OBJ: The parameters to be imported
FLAGS: should be zero
Imports a public key from a pkcs11 key. This function will import
the given public key to the abstract 'gnutls_pubkey_t' type.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_import_privkey
----------------------------
-- Function: int gnutls_pubkey_import_privkey (gnutls_pubkey_t KEY,
gnutls_privkey_t PKEY, unsigned int USAGE, unsigned int FLAGS)
KEY: The public key
PKEY: The private key
USAGE: GNUTLS_KEY_* key usage flags.
FLAGS: should be zero
Imports the public key from a private. This function will import
the given public key to the abstract 'gnutls_pubkey_t' type.
Note that in certain keys this operation may not be possible, e.g.,
in other than RSA PKCS'11' keys.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_import_rsa_raw
----------------------------
-- Function: int gnutls_pubkey_import_rsa_raw (gnutls_pubkey_t KEY,
const gnutls_datum_t * M, const gnutls_datum_t * E)
KEY: The key
M: holds the modulus
E: holds the public exponent
This function will replace the parameters in the given structure.
The new parameters should be stored in the appropriate
gnutls_datum.
*Returns:* 'GNUTLS_E_SUCCESS' on success, or an negative error
code.
*Since:* 2.12.0
gnutls_pubkey_import_tpm_raw
----------------------------
-- Function: int gnutls_pubkey_import_tpm_raw (gnutls_pubkey_t PKEY,
const gnutls_datum_t * FDATA, gnutls_tpmkey_fmt_t FORMAT,
const char * SRK_PASSWORD, unsigned int FLAGS)
PKEY: The public key
FDATA: The TPM key to be imported
FORMAT: The format of the private key
SRK_PASSWORD: The password for the SRK key (optional)
FLAGS: One of the GNUTLS_PUBKEY_* flags
This function will import the public key from the provided TPM key
structure.
With respect to passwords the same as in
'gnutls_pubkey_import_tpm_url()' apply.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_pubkey_import_tpm_url
----------------------------
-- Function: int gnutls_pubkey_import_tpm_url (gnutls_pubkey_t PKEY,
const char * URL, const char * SRK_PASSWORD, unsigned int
FLAGS)
PKEY: The public key
URL: The URL of the TPM key to be imported
SRK_PASSWORD: The password for the SRK key (optional)
FLAGS: should be zero
This function will import the given private key to the abstract
'gnutls_privkey_t' type.
Note that unless 'GNUTLS_PUBKEY_DISABLE_CALLBACKS' is specified, if
incorrect (or NULL) passwords are given the PKCS11 callback
functions will be used to obtain the correct passwords. Otherwise
if the SRK password is wrong 'GNUTLS_E_TPM_SRK_PASSWORD_ERROR' is
returned.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_pubkey_import_url
------------------------
-- Function: int gnutls_pubkey_import_url (gnutls_pubkey_t KEY, const
char * URL, unsigned int FLAGS)
KEY: A key of type 'gnutls_pubkey_t'
URL: A PKCS 11 url
FLAGS: One of GNUTLS_PKCS11_OBJ_* flags
This function will import a public key from the provided URL.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.0
gnutls_pubkey_import_x509
-------------------------
-- Function: int gnutls_pubkey_import_x509 (gnutls_pubkey_t KEY,
gnutls_x509_crt_t CRT, unsigned int FLAGS)
KEY: The public key
CRT: The certificate to be imported
FLAGS: should be zero
This function will import the given public key to the abstract
'gnutls_pubkey_t' type.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_import_x509_crq
-----------------------------
-- Function: int gnutls_pubkey_import_x509_crq (gnutls_pubkey_t KEY,
gnutls_x509_crq_t CRQ, unsigned int FLAGS)
KEY: The public key
CRQ: The certificate to be imported
FLAGS: should be zero
This function will import the given public key to the abstract
'gnutls_pubkey_t' type.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.5
gnutls_pubkey_import_x509_raw
-----------------------------
-- Function: int gnutls_pubkey_import_x509_raw (gnutls_pubkey_t PKEY,
const gnutls_datum_t * DATA, gnutls_x509_crt_fmt_t FORMAT,
unsigned int FLAGS)
PKEY: The public key
DATA: The public key data to be imported
FORMAT: The format of the public key
FLAGS: should be zero
This function will import the given public key to the abstract
'gnutls_pubkey_t' type.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.3
gnutls_pubkey_init
------------------
-- Function: int gnutls_pubkey_init (gnutls_pubkey_t * KEY)
KEY: A pointer to the type to be initialized
This function will initialize a public key.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_print
-------------------
-- Function: int gnutls_pubkey_print (gnutls_pubkey_t PUBKEY,
gnutls_certificate_print_formats_t FORMAT, gnutls_datum_t *
OUT)
PUBKEY: The data to be printed
FORMAT: Indicate the format to use
OUT: Newly allocated datum with null terminated string.
This function will pretty print public key information, suitable
for display to a human.
Only 'GNUTLS_CRT_PRINT_FULL' and 'GNUTLS_CRT_PRINT_FULL_NUMBERS'
are implemented.
The output 'out' needs to be deallocated using 'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.1.5
gnutls_pubkey_set_key_usage
---------------------------
-- Function: int gnutls_pubkey_set_key_usage (gnutls_pubkey_t KEY,
unsigned int USAGE)
KEY: a certificate of type 'gnutls_x509_crt_t'
USAGE: an ORed sequence of the GNUTLS_KEY_* elements.
This function will set the key usage flags of the public key. This
is only useful if the key is to be exported to a certificate or
certificate request.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_pubkey_set_pin_function
------------------------------
-- Function: void gnutls_pubkey_set_pin_function (gnutls_pubkey_t KEY,
gnutls_pin_callback_t FN, void * USERDATA)
KEY: A key of type 'gnutls_pubkey_t'
FN: the callback
USERDATA: data associated with the callback
This function will set a callback function to be used when required
to access the object. This function overrides any other global PIN
functions.
Note that this function must be called right after initialization
to have effect.
*Since:* 3.1.0
gnutls_pubkey_set_spki
----------------------
-- Function: int gnutls_pubkey_set_spki (gnutls_pubkey_t PUBKEY, const
gnutls_x509_spki_t SPKI, unsigned int FLAGS)
PUBKEY: a public key of type 'gnutls_pubkey_t'
SPKI: a SubjectPublicKeyInfo structure of type
'gnutls_pubkey_spki_t'
FLAGS: must be zero
This function will set the public key information. The provided
'spki' must be initialized.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.6.0
gnutls_pubkey_verify_data2
--------------------------
-- Function: int gnutls_pubkey_verify_data2 (gnutls_pubkey_t PUBKEY,
gnutls_sign_algorithm_t ALGO, unsigned int FLAGS, const
gnutls_datum_t * DATA, const gnutls_datum_t * SIGNATURE)
PUBKEY: Holds the public key
ALGO: The signature algorithm used
FLAGS: Zero or an OR list of 'gnutls_certificate_verify_flags'
DATA: holds the signed data
SIGNATURE: contains the signature
This function will verify the given signed data, using the
parameters from the certificate.
*Returns:* In case of a verification failure
'GNUTLS_E_PK_SIG_VERIFY_FAILED' is returned, and zero or positive
code on success. For known to be insecure signatures this function
will return 'GNUTLS_E_INSUFFICIENT_SECURITY' unless the flag
'GNUTLS_VERIFY_ALLOW_BROKEN' is specified.
*Since:* 3.0
gnutls_pubkey_verify_hash2
--------------------------
-- Function: int gnutls_pubkey_verify_hash2 (gnutls_pubkey_t KEY,
gnutls_sign_algorithm_t ALGO, unsigned int FLAGS, const
gnutls_datum_t * HASH, const gnutls_datum_t * SIGNATURE)
KEY: Holds the public key
ALGO: The signature algorithm used
FLAGS: Zero or an OR list of 'gnutls_certificate_verify_flags'
HASH: holds the hash digest to be verified
SIGNATURE: contains the signature
This function will verify the given signed digest, using the
parameters from the public key. Note that unlike
'gnutls_privkey_sign_hash()' , this function accepts a signature
algorithm instead of a digest algorithm. You can use
'gnutls_pk_to_sign()' to get the appropriate value.
*Returns:* In case of a verification failure
'GNUTLS_E_PK_SIG_VERIFY_FAILED' is returned, and zero or positive
code on success. For known to be insecure signatures this function
will return 'GNUTLS_E_INSUFFICIENT_SECURITY' unless the flag
'GNUTLS_VERIFY_ALLOW_BROKEN' is specified.
*Since:* 3.0
gnutls_pubkey_verify_params
---------------------------
-- Function: int gnutls_pubkey_verify_params (gnutls_pubkey_t KEY)
KEY: should contain a 'gnutls_pubkey_t' type
This function will verify the public key parameters.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.3.0
gnutls_register_custom_url
--------------------------
-- Function: int gnutls_register_custom_url (const gnutls_custom_url_st
* ST)
ST: A 'gnutls_custom_url_st' structure
Register a custom URL. This will affect the following functions:
'gnutls_url_is_supported()' , 'gnutls_privkey_import_url()' ,
gnutls_pubkey_import_url, 'gnutls_x509_crt_import_url()' and all
functions that depend on them, e.g.,
'gnutls_certificate_set_x509_key_file2()' .
The provided structure and callback functions must be valid
throughout the lifetime of the process. The registration of an
existing URL type will fail with 'GNUTLS_E_INVALID_REQUEST' .
Since GnuTLS 3.5.0 this function can be used to override the
builtin URLs.
This function is not thread safe.
*Returns:* returns zero if the given structure was imported or a
negative value otherwise.
*Since:* 3.4.0
gnutls_system_key_add_x509
--------------------------
-- Function: int gnutls_system_key_add_x509 (gnutls_x509_crt_t CRT,
gnutls_x509_privkey_t PRIVKEY, const char * LABEL, char **
CERT_URL, char ** KEY_URL)
CRT: the certificate to be added
PRIVKEY: the key to be added
LABEL: the friendly name to describe the key
CERT_URL: if non-NULL it will contain an allocated value with the
certificate URL
KEY_URL: if non-NULL it will contain an allocated value with the
key URL
This function will added the given key and certificate pair, to the
system list.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_system_key_delete
------------------------
-- Function: int gnutls_system_key_delete (const char * CERT_URL, const
char * KEY_URL)
CERT_URL: the URL of the certificate
KEY_URL: the URL of the key
This function will delete the key and certificate pair.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_system_key_iter_deinit
-----------------------------
-- Function: void gnutls_system_key_iter_deinit
(gnutls_system_key_iter_t ITER)
ITER: an iterator of system keys
This function will deinitialize the iterator.
*Since:* 3.4.0
gnutls_system_key_iter_get_info
-------------------------------
-- Function: int gnutls_system_key_iter_get_info
(gnutls_system_key_iter_t * ITER, unsigned CERT_TYPE, char **
CERT_URL, char ** KEY_URL, char ** LABEL, gnutls_datum_t *
DER, unsigned int FLAGS)
ITER: an iterator of the system keys (must be set to 'NULL'
initially)
CERT_TYPE: A value of gnutls_certificate_type_t which indicates the
type of certificate to look for
CERT_URL: The certificate URL of the pair (may be 'NULL' )
KEY_URL: The key URL of the pair (may be 'NULL' )
LABEL: The friendly name (if any) of the pair (may be 'NULL' )
DER: if non-NULL the DER data of the certificate
FLAGS: should be zero
This function will return on each call a certificate and key pair
URLs, as well as a label associated with them, and the DER-encoded
certificate. When the iteration is complete it will return
'GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE' .
Typically 'cert_type' should be 'GNUTLS_CRT_X509' .
All values set are allocated and must be cleared using
'gnutls_free()' ,
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 3.4.0
gnutls_x509_crl_privkey_sign
----------------------------
-- Function: int gnutls_x509_crl_privkey_sign (gnutls_x509_crl_t CRL,
gnutls_x509_crt_t ISSUER, gnutls_privkey_t ISSUER_KEY,
gnutls_digest_algorithm_t DIG, unsigned int FLAGS)
CRL: should contain a gnutls_x509_crl_t type
ISSUER: is the certificate of the certificate issuer
ISSUER_KEY: holds the issuer's private key
DIG: The message digest to use. GNUTLS_DIG_SHA256 is the safe
choice unless you know what you're doing.
FLAGS: must be 0
This function will sign the CRL with the issuer's private key, and
will copy the issuer's information into the CRL.
This must be the last step in a certificate CRL since all the
previously set parameters are now signed.
A known limitation of this function is, that a newly-signed CRL
will not be fully functional (e.g., for signature verification),
until it is exported an re-imported.
After GnuTLS 3.6.1 the value of 'dig' may be 'GNUTLS_DIG_UNKNOWN' ,
and in that case, a suitable but reasonable for the key algorithm
will be selected.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
Since 2.12.0
gnutls_x509_crq_privkey_sign
----------------------------
-- Function: int gnutls_x509_crq_privkey_sign (gnutls_x509_crq_t CRQ,
gnutls_privkey_t KEY, gnutls_digest_algorithm_t DIG, unsigned
int FLAGS)
CRQ: should contain a 'gnutls_x509_crq_t' type
KEY: holds a private key
DIG: The message digest to use, i.e., 'GNUTLS_DIG_SHA1'
FLAGS: must be 0
This function will sign the certificate request with a private key.
This must be the same key as the one used in
'gnutls_x509_crt_set_key()' since a certificate request is self
signed.
This must be the last step in a certificate request generation
since all the previously set parameters are now signed.
A known limitation of this function is, that a newly-signed request
will not be fully functional (e.g., for signature verification),
until it is exported an re-imported.
After GnuTLS 3.6.1 the value of 'dig' may be 'GNUTLS_DIG_UNKNOWN' ,
and in that case, a suitable but reasonable for the key algorithm
will be selected.
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code. 'GNUTLS_E_ASN1_VALUE_NOT_FOUND' is returned if you
didn't set all information in the certificate request (e.g., the
version using 'gnutls_x509_crq_set_version()' ).
*Since:* 2.12.0
gnutls_x509_crq_set_pubkey
--------------------------
-- Function: int gnutls_x509_crq_set_pubkey (gnutls_x509_crq_t CRQ,
gnutls_pubkey_t KEY)
CRQ: should contain a 'gnutls_x509_crq_t' type
KEY: holds a public key
This function will set the public parameters from the given public
key to the request. The 'key' can be deallocated after that.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
gnutls_x509_crt_privkey_sign
----------------------------
-- Function: int gnutls_x509_crt_privkey_sign (gnutls_x509_crt_t CRT,
gnutls_x509_crt_t ISSUER, gnutls_privkey_t ISSUER_KEY,
gnutls_digest_algorithm_t DIG, unsigned int FLAGS)
CRT: a certificate of type 'gnutls_x509_crt_t'
ISSUER: is the certificate of the certificate issuer
ISSUER_KEY: holds the issuer's private key
DIG: The message digest to use, 'GNUTLS_DIG_SHA256' is a safe
choice
FLAGS: must be 0
This function will sign the certificate with the issuer's private
key, and will copy the issuer's information into the certificate.
This must be the last step in a certificate generation since all
the previously set parameters are now signed.
A known limitation of this function is, that a newly-signed
certificate will not be fully functional (e.g., for signature
verification), until it is exported an re-imported.
After GnuTLS 3.6.1 the value of 'dig' may be 'GNUTLS_DIG_UNKNOWN' ,
and in that case, a suitable but reasonable for the key algorithm
will be selected.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
gnutls_x509_crt_set_pubkey
--------------------------
-- Function: int gnutls_x509_crt_set_pubkey (gnutls_x509_crt_t CRT,
gnutls_pubkey_t KEY)
CRT: should contain a 'gnutls_x509_crt_t' type
KEY: holds a public key
This function will set the public parameters from the given public
key to the certificate. The 'key' can be deallocated after that.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
*Since:* 2.12.0
File: gnutls.info, Node: Socket specific API, Next: DANE API, Prev: Abstract key API, Up: API reference
E.10 Socket specific API
========================
The prototypes for the following functions lie in 'gnutls/socket.h'.
gnutls_transport_is_ktls_enabled
--------------------------------
-- Function: gnutls_transport_ktls_enable_flags_t
gnutls_transport_is_ktls_enabled (gnutls_session_t SESSION)
SESSION: is a 'gnutls_session_t' type.
Checks if KTLS is now enabled and was properly inicialized.
*Returns:* 'GNUTLS_KTLS_RECV' , 'GNUTLS_KTLS_SEND' ,
'GNUTLS_KTLS_DUPLEX' , otherwise 0
*Since:* 3.7.3
gnutls_transport_set_fastopen
-----------------------------
-- Function: void gnutls_transport_set_fastopen (gnutls_session_t
SESSION, int FD, struct sockaddr * CONNECT_ADDR, socklen_t
CONNECT_ADDRLEN, unsigned int FLAGS)
SESSION: is a 'gnutls_session_t' type.
FD: is the session's socket descriptor
CONNECT_ADDR: is the address we want to connect to
CONNECT_ADDRLEN: is the length of 'connect_addr'
FLAGS: must be zero
Enables TCP Fast Open (TFO) for the specified TLS client session.
That means that TCP connection establishment and the transmission
of the first TLS client hello packet are combined. The peer's
address must be specified in 'connect_addr' and 'connect_addrlen' ,
and the socket specified by 'fd' should not be connected.
TFO only works for TCP sockets of type AF_INET and AF_INET6. If
the OS doesn't support TCP fast open this function will result to
gnutls using 'connect()' transparently during the first write.
*Note:* This function overrides all the transport callback
functions. If this is undesirable, TCP Fast Open must be
implemented on the user callback functions without calling this
function. When using this function, transport callbacks must not
be set, and 'gnutls_transport_set_ptr()' or
'gnutls_transport_set_int()' must not be called.
On GNU/Linux TFO has to be enabled at the system layer, that is in
/proc/sys/net/ipv4/tcp_fastopen, bit 0 has to be set.
This function has no effect on server sessions.
*Since:* 3.5.3
File: gnutls.info, Node: DANE API, Next: Cryptographic API, Prev: Socket specific API, Up: API reference
E.11 DANE API
=============
The following functions are to be used for DANE certificate
verification. Their prototypes lie in 'gnutls/dane.h'. Note that you
need to link with the 'libgnutls-dane' library to use them.
dane_cert_type_name
-------------------
-- Function: const char * dane_cert_type_name (dane_cert_type_t TYPE)
TYPE: is a DANE match type
Convert a 'dane_cert_type_t' value to a string.
*Returns:* a string that contains the name of the specified type,
or 'NULL' .
dane_cert_usage_name
--------------------
-- Function: const char * dane_cert_usage_name (dane_cert_usage_t
USAGE)
USAGE: is a DANE certificate usage
Convert a 'dane_cert_usage_t' value to a string.
*Returns:* a string that contains the name of the specified type,
or 'NULL' .
dane_match_type_name
--------------------
-- Function: const char * dane_match_type_name (dane_match_type_t TYPE)
TYPE: is a DANE match type
Convert a 'dane_match_type_t' value to a string.
*Returns:* a string that contains the name of the specified type,
or 'NULL' .
dane_query_data
---------------
-- Function: int dane_query_data (dane_query_t Q, unsigned int IDX,
unsigned int * USAGE, unsigned int * TYPE, unsigned int *
MATCH, gnutls_datum_t * DATA)
Q: The query result structure
IDX: The index of the query response.
USAGE: The certificate usage (see 'dane_cert_usage_t' )
TYPE: The certificate type (see 'dane_cert_type_t' )
MATCH: The DANE matching type (see 'dane_match_type_t' )
DATA: The DANE data.
This function will provide the DANE data from the query response.
*Returns:* On success, 'DANE_E_SUCCESS' (0) is returned, otherwise
a negative error value.
dane_query_deinit
-----------------
-- Function: void dane_query_deinit (dane_query_t Q)
Q: The structure to be deinitialized
This function will deinitialize a DANE query result structure.
dane_query_entries
------------------
-- Function: unsigned int dane_query_entries (dane_query_t Q)
Q: The query result structure
This function will return the number of entries in a query.
*Returns:* The number of entries.
dane_query_status
-----------------
-- Function: dane_query_status_t dane_query_status (dane_query_t Q)
Q: The query result structure
This function will return the status of the query response. See
'dane_query_status_t' for the possible types.
*Returns:* The status type.
dane_query_tlsa
---------------
-- Function: int dane_query_tlsa (dane_state_t S, dane_query_t * R,
const char * HOST, const char * PROTO, unsigned int PORT)
S: The DANE state structure
R: A structure to place the result
HOST: The host name to resolve.
PROTO: The protocol type (tcp, udp, etc.)
PORT: The service port number (eg. 443).
This function will query the DNS server for the TLSA (DANE) data
for the given host.
*Returns:* On success, 'DANE_E_SUCCESS' (0) is returned, otherwise
a negative error value.
dane_query_to_raw_tlsa
----------------------
-- Function: int dane_query_to_raw_tlsa (dane_query_t Q, unsigned int *
DATA_ENTRIES, char *** DANE_DATA, int ** DANE_DATA_LEN, int *
SECURE, int * BOGUS)
Q: The query result structure
DATA_ENTRIES: Pointer set to the number of entries in the query
DANE_DATA: Pointer to contain an array of DNS rdata items,
terminated with a NULL pointer; caller must guarantee that the
referenced data remains valid until 'dane_query_deinit()' is
called.
DANE_DATA_LEN: Pointer to contain the length n bytes of the
dane_data items
SECURE: Pointer set true if the result is validated securely, false
if validation failed or the domain queried has no security info
BOGUS: Pointer set true if the result was not secure due to a
security failure
This function will provide the DANE data from the query response.
The pointers dane_data and dane_data_len are allocated with
'gnutls_malloc()' to contain the data from the query result
structure (individual 'dane_data' items simply point to the
original data and are not allocated separately). The returned
'dane_data' are only valid during the lifetime of 'q' .
*Returns:* On success, 'DANE_E_SUCCESS' (0) is returned, otherwise
a negative error value.
dane_raw_tlsa
-------------
-- Function: int dane_raw_tlsa (dane_state_t S, dane_query_t * R, char
*const * DANE_DATA, const int * DANE_DATA_LEN, int SECURE, int
BOGUS)
S: The DANE state structure
R: A structure to place the result
DANE_DATA: array of DNS rdata items, terminated with a NULL
pointer; caller must guarantee that the referenced data remains
valid until 'dane_query_deinit()' is called.
DANE_DATA_LEN: the length n bytes of the dane_data items
SECURE: true if the result is validated securely, false if
validation failed or the domain queried has no security info
BOGUS: if the result was not secure (secure = 0) due to a security
failure, and the result is due to a security failure, bogus is
true.
This function will fill in the TLSA (DANE) structure from the given
raw DNS record data. The 'dane_data' must be valid during the
lifetime of the query.
*Returns:* On success, 'DANE_E_SUCCESS' (0) is returned, otherwise
a negative error value.
dane_state_deinit
-----------------
-- Function: void dane_state_deinit (dane_state_t S)
S: The structure to be deinitialized
This function will deinitialize a DANE query structure.
dane_state_init
---------------
-- Function: int dane_state_init (dane_state_t * S, unsigned int FLAGS)
S: The structure to be initialized
FLAGS: flags from the 'dane_state_flags' enumeration
This function will initialize the backend resolver. It is intended
to be used in scenarios where multiple resolvings occur, to
optimize against multiple re-initializations.
*Returns:* On success, 'DANE_E_SUCCESS' (0) is returned, otherwise
a negative error value.
dane_state_set_dlv_file
-----------------------
-- Function: int dane_state_set_dlv_file (dane_state_t S, const char *
FILE)
S: The structure to be deinitialized
FILE: The file holding the DLV keys.
This function will set a file with trusted keys for DLV (DNSSEC
Lookaside Validation).
dane_strerror
-------------
-- Function: const char * dane_strerror (int ERROR)
ERROR: is a DANE error code, a negative error code
This function is similar to strerror. The difference is that it
accepts an error number returned by a gnutls function; In case of
an unknown error a descriptive string is sent instead of 'NULL' .
Error codes are always a negative error code.
*Returns:* A string explaining the DANE error message.
dane_verification_status_print
------------------------------
-- Function: int dane_verification_status_print (unsigned int STATUS,
gnutls_datum_t * OUT, unsigned int FLAGS)
STATUS: The status flags to be printed
OUT: Newly allocated datum with (0) terminated string.
FLAGS: should be zero
This function will pretty print the status of a verification
process - eg. the one obtained by 'dane_verify_crt()' .
The output 'out' needs to be deallocated using 'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
dane_verify_crt
---------------
-- Function: int dane_verify_crt (dane_state_t S, const gnutls_datum_t
* CHAIN, unsigned CHAIN_SIZE, gnutls_certificate_type_t
CHAIN_TYPE, const char * HOSTNAME, const char * PROTO,
unsigned int PORT, unsigned int SFLAGS, unsigned int VFLAGS,
unsigned int * VERIFY)
S: A DANE state structure (may be NULL)
CHAIN: A certificate chain
CHAIN_SIZE: The size of the chain
CHAIN_TYPE: The type of the certificate chain
HOSTNAME: The hostname associated with the chain
PROTO: The protocol of the service connecting (e.g. tcp)
PORT: The port of the service connecting (e.g. 443)
SFLAGS: Flags for the initialization of 's' (if NULL)
VFLAGS: Verification flags; an OR'ed list of 'dane_verify_flags_t'
.
VERIFY: An OR'ed list of 'dane_verify_status_t' .
This function will verify the given certificate chain against the
CA constrains and/or the certificate available via DANE. If no
information via DANE can be obtained the flag
'DANE_VERIFY_NO_DANE_INFO' is set. If a DNSSEC signature is not
available for the DANE record then the verify flag
'DANE_VERIFY_NO_DNSSEC_DATA' is set.
Due to the many possible options of DANE, there is no single threat
model countered. When notifying the user about DANE verification
results it may be better to mention: DANE verification did not
reject the certificate, rather than mentioning a successful DANE
verication.
Note that this function is designed to be run in addition to PKIX -
certificate chain - verification. To be run independently the
'DANE_VFLAG_ONLY_CHECK_EE_USAGE' flag should be specified; then the
function will check whether the key of the peer matches the key
advertized in the DANE entry.
*Returns:* a negative error code on error and 'DANE_E_SUCCESS' (0)
when the DANE entries were successfully parsed, irrespective of
whether they were verified (see 'verify' for that information). If
no usable entries were encountered
'DANE_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
dane_verify_crt_raw
-------------------
-- Function: int dane_verify_crt_raw (dane_state_t S, const
gnutls_datum_t * CHAIN, unsigned CHAIN_SIZE,
gnutls_certificate_type_t CHAIN_TYPE, dane_query_t R, unsigned
int SFLAGS, unsigned int VFLAGS, unsigned int * VERIFY)
S: A DANE state structure (may be NULL)
CHAIN: A certificate chain
CHAIN_SIZE: The size of the chain
CHAIN_TYPE: The type of the certificate chain
R: DANE data to check against
SFLAGS: Flags for the initialization of 's' (if NULL)
VFLAGS: Verification flags; an OR'ed list of 'dane_verify_flags_t'
.
VERIFY: An OR'ed list of 'dane_verify_status_t' .
This is the low-level function of 'dane_verify_crt()' . See the
high level function for documentation.
This function does not perform any resolving, it utilizes cached
entries from 'r' .
*Returns:* a negative error code on error and 'DANE_E_SUCCESS' (0)
when the DANE entries were successfully parsed, irrespective of
whether they were verified (see 'verify' for that information). If
no usable entries were encountered
'DANE_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
dane_verify_session_crt
-----------------------
-- Function: int dane_verify_session_crt (dane_state_t S,
gnutls_session_t SESSION, const char * HOSTNAME, const char *
PROTO, unsigned int PORT, unsigned int SFLAGS, unsigned int
VFLAGS, unsigned int * VERIFY)
S: A DANE state structure (may be NULL)
SESSION: A gnutls session
HOSTNAME: The hostname associated with the chain
PROTO: The protocol of the service connecting (e.g. tcp)
PORT: The port of the service connecting (e.g. 443)
SFLAGS: Flags for the initialization of 's' (if NULL)
VFLAGS: Verification flags; an OR'ed list of 'dane_verify_flags_t'
.
VERIFY: An OR'ed list of 'dane_verify_status_t' .
This function will verify session's certificate chain against the
CA constrains and/or the certificate available via DANE. See
'dane_verify_crt()' for more information.
This will not verify the chain for validity; unless the DANE
verification is restricted to end certificates, this must be be
performed separately using 'gnutls_certificate_verify_peers3()' .
*Returns:* a negative error code on error and 'DANE_E_SUCCESS' (0)
when the DANE entries were successfully parsed, irrespective of
whether they were verified (see 'verify' for that information). If
no usable entries were encountered
'DANE_E_REQUESTED_DATA_NOT_AVAILABLE' will be returned.
File: gnutls.info, Node: Cryptographic API, Next: Compatibility API, Prev: DANE API, Up: API reference
E.12 Cryptographic API
======================
The following functions are to be used for low-level cryptographic
operations. Their prototypes lie in 'gnutls/crypto.h'.
Note that due to historic reasons several functions, (e.g. *note
gnutls_mac_list::, *note gnutls_mac_get_name::) of this API are part of
the *note Core TLS API::.
gnutls_aead_cipher_decrypt
--------------------------
-- Function: int gnutls_aead_cipher_decrypt (gnutls_aead_cipher_hd_t
HANDLE, const void * NONCE, size_t NONCE_LEN, const void *
AUTH, size_t AUTH_LEN, size_t TAG_SIZE, const void * CTEXT,
size_t CTEXT_LEN, void * PTEXT, size_t * PTEXT_LEN)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
NONCE: the nonce to set
NONCE_LEN: The length of the nonce
AUTH: additional data to be authenticated
AUTH_LEN: The length of the data
TAG_SIZE: The size of the tag to use (use zero for the default)
CTEXT: the data to decrypt (including the authentication tag)
CTEXT_LEN: the length of data to decrypt (includes tag size)
PTEXT: the decrypted data
PTEXT_LEN: the length of decrypted data (initially must hold the
maximum available size)
This function will decrypt the given data using the algorithm
specified by the context. This function must be provided the
complete data to be decrypted, including the authentication tag.
On several AEAD ciphers, the authentication tag is appended to the
ciphertext, though this is not a general rule. This function will
fail if the tag verification fails.
*Returns:* Zero or a negative error code on verification failure or
other error.
*Since:* 3.4.0
gnutls_aead_cipher_decryptv2
----------------------------
-- Function: int gnutls_aead_cipher_decryptv2 (gnutls_aead_cipher_hd_t
HANDLE, const void * NONCE, size_t NONCE_LEN, const giovec_t *
AUTH_IOV, int AUTH_IOVCNT, const giovec_t * IOV, int IOVCNT,
void * TAG, size_t TAG_SIZE)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
NONCE: the nonce to set
NONCE_LEN: The length of the nonce
AUTH_IOV: additional data to be authenticated
AUTH_IOVCNT: The number of buffers in 'auth_iov'
IOV: the data to decrypt
IOVCNT: The number of buffers in 'iov'
TAG: The authentication tag
TAG_SIZE: The size of the tag to use (use zero for the default)
This is similar to 'gnutls_aead_cipher_decrypt()' , but it performs
in-place encryption on the provided data buffers.
*Returns:* Zero or a negative error code on error.
*Since:* 3.6.10
gnutls_aead_cipher_deinit
-------------------------
-- Function: void gnutls_aead_cipher_deinit (gnutls_aead_cipher_hd_t
HANDLE)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
This function will deinitialize all resources occupied by the given
authenticated-encryption context.
*Since:* 3.4.0
gnutls_aead_cipher_encrypt
--------------------------
-- Function: int gnutls_aead_cipher_encrypt (gnutls_aead_cipher_hd_t
HANDLE, const void * NONCE, size_t NONCE_LEN, const void *
AUTH, size_t AUTH_LEN, size_t TAG_SIZE, const void * PTEXT,
size_t PTEXT_LEN, void * CTEXT, size_t * CTEXT_LEN)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
NONCE: the nonce to set
NONCE_LEN: The length of the nonce
AUTH: additional data to be authenticated
AUTH_LEN: The length of the data
TAG_SIZE: The size of the tag to use (use zero for the default)
PTEXT: the data to encrypt
PTEXT_LEN: The length of data to encrypt
CTEXT: the encrypted data including authentication tag
CTEXT_LEN: the length of encrypted data (initially must hold the
maximum available size, including space for tag)
This function will encrypt the given data using the algorithm
specified by the context. The output data will contain the
authentication tag.
*Returns:* Zero or a negative error code on error.
*Since:* 3.4.0
gnutls_aead_cipher_encryptv
---------------------------
-- Function: int gnutls_aead_cipher_encryptv (gnutls_aead_cipher_hd_t
HANDLE, const void * NONCE, size_t NONCE_LEN, const giovec_t *
AUTH_IOV, int AUTH_IOVCNT, size_t TAG_SIZE, const giovec_t *
IOV, int IOVCNT, void * CTEXT, size_t * CTEXT_LEN)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
NONCE: the nonce to set
NONCE_LEN: The length of the nonce
AUTH_IOV: additional data to be authenticated
AUTH_IOVCNT: The number of buffers in 'auth_iov'
TAG_SIZE: The size of the tag to use (use zero for the default)
IOV: the data to be encrypted
IOVCNT: The number of buffers in 'iov'
CTEXT: the encrypted data including authentication tag
CTEXT_LEN: the length of encrypted data (initially must hold the
maximum available size, including space for tag)
This function will encrypt the provided data buffers using the
algorithm specified by the context. The output data will contain
the authentication tag.
*Returns:* Zero or a negative error code on error.
*Since:* 3.6.3
gnutls_aead_cipher_encryptv2
----------------------------
-- Function: int gnutls_aead_cipher_encryptv2 (gnutls_aead_cipher_hd_t
HANDLE, const void * NONCE, size_t NONCE_LEN, const giovec_t *
AUTH_IOV, int AUTH_IOVCNT, const giovec_t * IOV, int IOVCNT,
void * TAG, size_t * TAG_SIZE)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
NONCE: the nonce to set
NONCE_LEN: The length of the nonce
AUTH_IOV: additional data to be authenticated
AUTH_IOVCNT: The number of buffers in 'auth_iov'
IOV: the data to be encrypted
IOVCNT: The number of buffers in 'iov'
TAG: The authentication tag
TAG_SIZE: The size of the tag to use (use zero for the default)
This is similar to 'gnutls_aead_cipher_encrypt()' , but it performs
in-place encryption on the provided data buffers.
*Returns:* Zero or a negative error code on error.
*Since:* 3.6.10
gnutls_aead_cipher_init
-----------------------
-- Function: int gnutls_aead_cipher_init (gnutls_aead_cipher_hd_t *
HANDLE, gnutls_cipher_algorithm_t CIPHER, const gnutls_datum_t
* KEY)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
CIPHER: the authenticated-encryption algorithm to use
KEY: The key to be used for encryption
This function will initialize an context that can be used for
encryption/decryption of data. This will effectively use the
current crypto backend in use by gnutls or the cryptographic
accelerator in use.
*Returns:* Zero or a negative error code on error.
*Since:* 3.4.0
gnutls_aead_cipher_set_key
--------------------------
-- Function: int gnutls_aead_cipher_set_key (gnutls_aead_cipher_hd_t
HANDLE, const gnutls_datum_t * KEY)
HANDLE: is a 'gnutls_aead_cipher_hd_t' type.
KEY: The key to be used for encryption
This function will set a new key without re-initializing the
context.
*Returns:* Zero or a negative error code on error.
*Since:* 3.7.5
gnutls_cipher_add_auth
----------------------
-- Function: int gnutls_cipher_add_auth (gnutls_cipher_hd_t HANDLE,
const void * PTEXT, size_t PTEXT_SIZE)
HANDLE: is a 'gnutls_cipher_hd_t' type
PTEXT: the data to be authenticated
PTEXT_SIZE: the length of the data
This function operates on authenticated encryption with associated
data (AEAD) ciphers and authenticate the input data. This function
can only be called once and before any encryption operations.
*Returns:* Zero or a negative error code on error.
*Since:* 3.0
gnutls_cipher_decrypt
---------------------
-- Function: int gnutls_cipher_decrypt (gnutls_cipher_hd_t HANDLE, void
* CTEXT, size_t CTEXT_LEN)
HANDLE: is a 'gnutls_cipher_hd_t' type
CTEXT: the data to decrypt
CTEXT_LEN: the length of data to decrypt
This function will decrypt the given data using the algorithm
specified by the context.
Note that in AEAD ciphers, this will not check the tag. You will
need to compare the tag sent with the value returned from
'gnutls_cipher_tag()' .
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_cipher_decrypt2
----------------------
-- Function: int gnutls_cipher_decrypt2 (gnutls_cipher_hd_t HANDLE,
const void * CTEXT, size_t CTEXT_LEN, void * PTEXT, size_t
PTEXT_LEN)
HANDLE: is a 'gnutls_cipher_hd_t' type
CTEXT: the data to decrypt
CTEXT_LEN: the length of data to decrypt
PTEXT: the decrypted data
PTEXT_LEN: the available length for decrypted data
This function will decrypt the given data using the algorithm
specified by the context. For block ciphers the 'ctext_len' must
be a multiple of the block size. For the supported ciphers the
plaintext data length will equal the ciphertext size.
Note that in AEAD ciphers, this will not check the tag. You will
need to compare the tag sent with the value returned from
'gnutls_cipher_tag()' .
*Returns:* Zero or a negative error code on error.
*Since:* 2.12.0
gnutls_cipher_decrypt3
----------------------
-- Function: int gnutls_cipher_decrypt3 (gnutls_cipher_hd_t HANDLE,
const void * CTEXT, size_t CTEXT_LEN, void * PTEXT, size_t *
PTEXT_LEN, unsigned FLAGS)
HANDLE: is a 'gnutls_cipher_hd_t' type
CTEXT: the data to decrypt
CTEXT_LEN: the length of data to decrypt
PTEXT: the decrypted data
PTEXT_LEN: the available length for decrypted data
FLAGS: flags for padding
This function will decrypt the given data using the algorithm
specified by the context. If 'flags' is specified, padding for the
decrypted data will be removed accordingly and 'ptext_len' will be
updated.
*Returns:* Zero or a negative error code on error.
*Since:* 3.7.7
gnutls_cipher_deinit
--------------------
-- Function: void gnutls_cipher_deinit (gnutls_cipher_hd_t HANDLE)
HANDLE: is a 'gnutls_cipher_hd_t' type
This function will deinitialize all resources occupied by the given
encryption context.
*Since:* 2.10.0
gnutls_cipher_encrypt
---------------------
-- Function: int gnutls_cipher_encrypt (gnutls_cipher_hd_t HANDLE, void
* PTEXT, size_t PTEXT_LEN)
HANDLE: is a 'gnutls_cipher_hd_t' type
PTEXT: the data to encrypt
PTEXT_LEN: the length of data to encrypt
This function will encrypt the given data using the algorithm
specified by the context.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_cipher_encrypt2
----------------------
-- Function: int gnutls_cipher_encrypt2 (gnutls_cipher_hd_t HANDLE,
const void * PTEXT, size_t PTEXT_LEN, void * CTEXT, size_t
CTEXT_LEN)
HANDLE: is a 'gnutls_cipher_hd_t' type
PTEXT: the data to encrypt
PTEXT_LEN: the length of data to encrypt
CTEXT: the encrypted data
CTEXT_LEN: the available length for encrypted data
This function will encrypt the given data using the algorithm
specified by the context. For block ciphers the 'ptext_len' must
be a multiple of the block size. For the supported ciphers the
encrypted data length will equal the plaintext size.
*Returns:* Zero or a negative error code on error.
*Since:* 2.12.0
gnutls_cipher_encrypt3
----------------------
-- Function: int gnutls_cipher_encrypt3 (gnutls_cipher_hd_t HANDLE,
const void * PTEXT, size_t PTEXT_LEN, void * CTEXT, size_t *
CTEXT_LEN, unsigned FLAGS)
HANDLE: is a 'gnutls_cipher_hd_t' type
PTEXT: the data to encrypt
PTEXT_LEN: the length of data to encrypt
CTEXT: the encrypted data
CTEXT_LEN: the length of encrypted data (initially must hold the
maximum available size)
FLAGS: flags for padding
This function will encrypt the given data using the algorithm
specified by the context. For block ciphers, 'ptext_len' is
typically a multiple of the block size. If not, the caller can
instruct the function to pad the last block according to 'flags' .
Currently, the only available padding scheme is
'GNUTLS_CIPHER_PADDING_PKCS7' .
If 'ctext' is not 'NULL' , it must hold enough space to store
resulting cipher text. To check the required size, this function
can be called with 'ctext' set to 'NULL' . Then 'ctext_len' will
be updated without performing actual encryption.
*Returns:* Zero or a negative error code on error.
*Since:* 3.7.7
gnutls_cipher_get_block_size
----------------------------
-- Function: unsigned gnutls_cipher_get_block_size
(gnutls_cipher_algorithm_t ALGORITHM)
ALGORITHM: is an encryption algorithm
*Returns:* the block size of the encryption algorithm.
*Since:* 2.10.0
gnutls_cipher_get_iv_size
-------------------------
-- Function: unsigned gnutls_cipher_get_iv_size
(gnutls_cipher_algorithm_t ALGORITHM)
ALGORITHM: is an encryption algorithm
This function returns the size of the initialization vector (IV)
for the provided algorithm. For algorithms with variable size IV
(e.g., AES-CCM), the returned size will be the one used by TLS.
*Returns:* block size for encryption algorithm.
*Since:* 3.2.0
gnutls_cipher_get_tag_size
--------------------------
-- Function: unsigned gnutls_cipher_get_tag_size
(gnutls_cipher_algorithm_t ALGORITHM)
ALGORITHM: is an encryption algorithm
This function returns the tag size of an authenticated encryption
algorithm. For non-AEAD algorithms, it returns zero.
*Returns:* the tag size of the authenticated encryption algorithm.
*Since:* 3.2.2
gnutls_cipher_init
------------------
-- Function: int gnutls_cipher_init (gnutls_cipher_hd_t * HANDLE,
gnutls_cipher_algorithm_t CIPHER, const gnutls_datum_t * KEY,
const gnutls_datum_t * IV)
HANDLE: is a 'gnutls_cipher_hd_t' type
CIPHER: the encryption algorithm to use
KEY: the key to be used for encryption/decryption
IV: the IV to use (if not applicable set NULL)
This function will initialize the 'handle' context to be usable for
encryption/decryption of data. This will effectively use the
current crypto backend in use by gnutls or the cryptographic
accelerator in use.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_cipher_set_iv
--------------------
-- Function: void gnutls_cipher_set_iv (gnutls_cipher_hd_t HANDLE, void
* IV, size_t IVLEN)
HANDLE: is a 'gnutls_cipher_hd_t' type
IV: the IV to set
IVLEN: the length of the IV
This function will set the IV to be used for the next encryption
block.
*Since:* 3.0
gnutls_cipher_tag
-----------------
-- Function: int gnutls_cipher_tag (gnutls_cipher_hd_t HANDLE, void *
TAG, size_t TAG_SIZE)
HANDLE: is a 'gnutls_cipher_hd_t' type
TAG: will hold the tag
TAG_SIZE: the length of the tag to return
This function operates on authenticated encryption with associated
data (AEAD) ciphers and will return the output tag.
*Returns:* Zero or a negative error code on error.
*Since:* 3.0
gnutls_crypto_register_aead_cipher
----------------------------------
-- Function: int gnutls_crypto_register_aead_cipher
(gnutls_cipher_algorithm_t ALGORITHM, int PRIORITY,
gnutls_cipher_init_func INIT, gnutls_cipher_setkey_func
SETKEY, gnutls_cipher_aead_encrypt_func AEAD_ENCRYPT,
gnutls_cipher_aead_decrypt_func AEAD_DECRYPT,
gnutls_cipher_deinit_func DEINIT)
ALGORITHM: is the gnutls AEAD cipher identifier
PRIORITY: is the priority of the algorithm
INIT: A function which initializes the cipher
SETKEY: A function which sets the key of the cipher
AEAD_ENCRYPT: Perform the AEAD encryption
AEAD_DECRYPT: Perform the AEAD decryption
DEINIT: A function which deinitializes the cipher
This function will register a cipher algorithm to be used by
gnutls. Any algorithm registered will override the included
algorithms and by convention kernel implemented algorithms have
priority of 90 and CPU-assisted of 80. The algorithm with the
lowest priority will be used by gnutls.
In the case the registered init or setkey functions return
'GNUTLS_E_NEED_FALLBACK' , GnuTLS will attempt to use the next in
priority registered cipher.
The functions registered will be used with the new AEAD API
introduced in GnuTLS 3.4.0. Internally GnuTLS uses the new AEAD
API.
*Deprecated:* since 3.7.0 it is no longer possible to override
cipher implementation
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.4.0
gnutls_crypto_register_cipher
-----------------------------
-- Function: int gnutls_crypto_register_cipher
(gnutls_cipher_algorithm_t ALGORITHM, int PRIORITY,
gnutls_cipher_init_func INIT, gnutls_cipher_setkey_func
SETKEY, gnutls_cipher_setiv_func SETIV,
gnutls_cipher_encrypt_func ENCRYPT, gnutls_cipher_decrypt_func
DECRYPT, gnutls_cipher_deinit_func DEINIT)
ALGORITHM: is the gnutls algorithm identifier
PRIORITY: is the priority of the algorithm
INIT: A function which initializes the cipher
SETKEY: A function which sets the key of the cipher
SETIV: A function which sets the nonce/IV of the cipher (non-AEAD)
ENCRYPT: A function which performs encryption (non-AEAD)
DECRYPT: A function which performs decryption (non-AEAD)
DEINIT: A function which deinitializes the cipher
This function will register a cipher algorithm to be used by
gnutls. Any algorithm registered will override the included
algorithms and by convention kernel implemented algorithms have
priority of 90 and CPU-assisted of 80. The algorithm with the
lowest priority will be used by gnutls.
In the case the registered init or setkey functions return
'GNUTLS_E_NEED_FALLBACK' , GnuTLS will attempt to use the next in
priority registered cipher.
The functions which are marked as non-AEAD they are not required
when registering a cipher to be used with the new AEAD API
introduced in GnuTLS 3.4.0. Internally GnuTLS uses the new AEAD
API.
*Deprecated:* since 3.7.0 it is no longer possible to override
cipher implementation
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.4.0
gnutls_crypto_register_digest
-----------------------------
-- Function: int gnutls_crypto_register_digest
(gnutls_digest_algorithm_t ALGORITHM, int PRIORITY,
gnutls_digest_init_func INIT, gnutls_digest_hash_func HASH,
gnutls_digest_output_func OUTPUT, gnutls_digest_deinit_func
DEINIT, gnutls_digest_fast_func HASH_FAST)
ALGORITHM: is the gnutls digest identifier
PRIORITY: is the priority of the algorithm
INIT: A function which initializes the digest
HASH: Perform the hash operation
OUTPUT: Provide the output of the digest
DEINIT: A function which deinitializes the digest
HASH_FAST: Perform the digest operation in one go
This function will register a digest algorithm to be used by
gnutls. Any algorithm registered will override the included
algorithms and by convention kernel implemented algorithms have
priority of 90 and CPU-assisted of 80. The algorithm with the
lowest priority will be used by gnutls.
*Deprecated:* since 3.7.0 it is no longer possible to override
cipher implementation
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.4.0
gnutls_crypto_register_mac
--------------------------
-- Function: int gnutls_crypto_register_mac (gnutls_mac_algorithm_t
ALGORITHM, int PRIORITY, gnutls_mac_init_func INIT,
gnutls_mac_setkey_func SETKEY, gnutls_mac_setnonce_func
SETNONCE, gnutls_mac_hash_func HASH, gnutls_mac_output_func
OUTPUT, gnutls_mac_deinit_func DEINIT, gnutls_mac_fast_func
HASH_FAST)
ALGORITHM: is the gnutls MAC identifier
PRIORITY: is the priority of the algorithm
INIT: A function which initializes the MAC
SETKEY: A function which sets the key of the MAC
SETNONCE: A function which sets the nonce for the mac (may be
'NULL' for common MAC algorithms)
HASH: Perform the hash operation
OUTPUT: Provide the output of the MAC
DEINIT: A function which deinitializes the MAC
HASH_FAST: Perform the MAC operation in one go
This function will register a MAC algorithm to be used by gnutls.
Any algorithm registered will override the included algorithms and
by convention kernel implemented algorithms have priority of 90 and
CPU-assisted of 80. The algorithm with the lowest priority will be
used by gnutls.
*Deprecated:* since 3.7.0 it is no longer possible to override
cipher implementation
*Returns:* 'GNUTLS_E_SUCCESS' on success, otherwise a negative
error code.
*Since:* 3.4.0
gnutls_decode_ber_digest_info
-----------------------------
-- Function: int gnutls_decode_ber_digest_info (const gnutls_datum_t *
INFO, gnutls_digest_algorithm_t * HASH, unsigned char *
DIGEST, unsigned int * DIGEST_SIZE)
INFO: an RSA BER encoded DigestInfo structure
HASH: will contain the hash algorithm of the structure
DIGEST: will contain the hash output of the structure
DIGEST_SIZE: will contain the hash size of the structure; initially
must hold the maximum size of 'digest'
This function will parse an RSA PKCS'1' 1.5 DigestInfo structure
and report the hash algorithm used as well as the digest data.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise an error code is returned.
*Since:* 3.5.0
gnutls_decode_gost_rs_value
---------------------------
-- Function: int gnutls_decode_gost_rs_value (const gnutls_datum_t *
SIG_VALUE, gnutls_datum_t * R, gnutls_datum_t * S)
SIG_VALUE: will holds a GOST signature according to RFC 4491
section 2.2.2
R: will contain the r value
S: will contain the s value
This function will decode the provided 'sig_value' , into 'r' and
's' elements. See RFC 4491 section 2.2.2 for the format of
signature value.
The output values may be padded with a zero byte to prevent them
from being interpreted as negative values. The value should be
deallocated using 'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise an error code is returned.
*Since:* 3.6.0
gnutls_decode_rs_value
----------------------
-- Function: int gnutls_decode_rs_value (const gnutls_datum_t *
SIG_VALUE, gnutls_datum_t * R, gnutls_datum_t * S)
SIG_VALUE: holds a Dss-Sig-Value DER or BER encoded structure
R: will contain the r value
S: will contain the s value
This function will decode the provided 'sig_value' , into 'r' and
's' elements. The Dss-Sig-Value is used for DSA and ECDSA
signatures.
The output values may be padded with a zero byte to prevent them
from being interpreted as negative values. The value should be
deallocated using 'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise an error code is returned.
*Since:* 3.6.0
gnutls_encode_ber_digest_info
-----------------------------
-- Function: int gnutls_encode_ber_digest_info
(gnutls_digest_algorithm_t HASH, const gnutls_datum_t *
DIGEST, gnutls_datum_t * OUTPUT)
HASH: the hash algorithm that was used to get the digest
DIGEST: must contain the digest data
OUTPUT: will contain the allocated DigestInfo BER encoded data
This function will encode the provided digest data, and its
algorithm into an RSA PKCS'1' 1.5 DigestInfo structure.
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise an error code is returned.
*Since:* 3.5.0
gnutls_encode_gost_rs_value
---------------------------
-- Function: int gnutls_encode_gost_rs_value (gnutls_datum_t *
SIG_VALUE, const gnutls_datum_t * R, const gnutls_datum_t * S)
SIG_VALUE: will hold a GOST signature according to RFC 4491 section
2.2.2
R: must contain the r value
S: must contain the s value
This function will encode the provided r and s values, into binary
representation according to RFC 4491 section 2.2.2, used for GOST R
34.10-2001 (and thus also for GOST R 34.10-2012) signatures.
The output value should be deallocated using 'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise an error code is returned.
*Since:* 3.6.0
gnutls_encode_rs_value
----------------------
-- Function: int gnutls_encode_rs_value (gnutls_datum_t * SIG_VALUE,
const gnutls_datum_t * R, const gnutls_datum_t * S)
SIG_VALUE: will hold a Dss-Sig-Value DER encoded structure
R: must contain the r value
S: must contain the s value
This function will encode the provided r and s values, into a
Dss-Sig-Value structure, used for DSA and ECDSA signatures.
The output value should be deallocated using 'gnutls_free()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise an error code is returned.
*Since:* 3.6.0
gnutls_hash
-----------
-- Function: int gnutls_hash (gnutls_hash_hd_t HANDLE, const void *
PTEXT, size_t PTEXT_LEN)
HANDLE: is a 'gnutls_hash_hd_t' type
PTEXT: the data to hash
PTEXT_LEN: the length of data to hash
This function will hash the given data using the algorithm
specified by the context.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_hash_copy
----------------
-- Function: gnutls_hash_hd_t gnutls_hash_copy (gnutls_hash_hd_t
HANDLE)
HANDLE: is a 'gnutls_hash_hd_t' type
This function will create a copy of Message Digest context,
containing all its current state. Copying contexts for Message
Digests registered using 'gnutls_crypto_register_digest()' is not
supported and will always result in an error. In addition to that,
some of the Message Digest implementations do not support this
operation. Applications should check the return value and provide
a proper fallback.
*Returns:* new Message Digest context or NULL in case of an error.
*Since:* 3.6.9
gnutls_hash_deinit
------------------
-- Function: void gnutls_hash_deinit (gnutls_hash_hd_t HANDLE, void *
DIGEST)
HANDLE: is a 'gnutls_hash_hd_t' type
DIGEST: is the output value of the hash
This function will deinitialize all resources occupied by the given
hash context.
*Since:* 2.10.0
gnutls_hash_fast
----------------
-- Function: int gnutls_hash_fast (gnutls_digest_algorithm_t ALGORITHM,
const void * PTEXT, size_t PTEXT_LEN, void * DIGEST)
ALGORITHM: the hash algorithm to use
PTEXT: the data to hash
PTEXT_LEN: the length of data to hash
DIGEST: is the output value of the hash
This convenience function will hash the given data and return
output on a single call.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_hash_get_len
-------------------
-- Function: unsigned gnutls_hash_get_len (gnutls_digest_algorithm_t
ALGORITHM)
ALGORITHM: the hash algorithm to use
This function will return the length of the output data of the
given hash algorithm.
*Returns:* The length or zero on error.
*Since:* 2.10.0
gnutls_hash_init
----------------
-- Function: int gnutls_hash_init (gnutls_hash_hd_t * DIG,
gnutls_digest_algorithm_t ALGORITHM)
DIG: is a 'gnutls_hash_hd_t' type
ALGORITHM: the hash algorithm to use
This function will initialize an context that can be used to
produce a Message Digest of data. This will effectively use the
current crypto backend in use by gnutls or the cryptographic
accelerator in use.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_hash_output
------------------
-- Function: void gnutls_hash_output (gnutls_hash_hd_t HANDLE, void *
DIGEST)
HANDLE: is a 'gnutls_hash_hd_t' type
DIGEST: is the output value of the hash
This function will output the current hash value and reset the
state of the hash.
*Since:* 2.10.0
gnutls_hkdf_expand
------------------
-- Function: int gnutls_hkdf_expand (gnutls_mac_algorithm_t MAC, const
gnutls_datum_t * KEY, const gnutls_datum_t * INFO, void *
OUTPUT, size_t LENGTH)
MAC: the mac algorithm used internally
KEY: the pseudorandom key created with HKDF-Extract
INFO: the optional informational data
OUTPUT: the output value of the expand operation
LENGTH: the desired length of the output key
This function will derive a variable length keying material from
the pseudorandom key using the HKDF-Expand function as defined in
RFC 5869.
*Returns:* Zero or a negative error code on error.
*Since:* 3.6.13
gnutls_hkdf_extract
-------------------
-- Function: int gnutls_hkdf_extract (gnutls_mac_algorithm_t MAC, const
gnutls_datum_t * KEY, const gnutls_datum_t * SALT, void *
OUTPUT)
MAC: the mac algorithm used internally
KEY: the initial keying material
SALT: the optional salt
OUTPUT: the output value of the extract operation
This function will derive a fixed-size key using the HKDF-Extract
function as defined in RFC 5869.
*Returns:* Zero or a negative error code on error.
*Since:* 3.6.13
gnutls_hmac
-----------
-- Function: int gnutls_hmac (gnutls_hmac_hd_t HANDLE, const void *
PTEXT, size_t PTEXT_LEN)
HANDLE: is a 'gnutls_hmac_hd_t' type
PTEXT: the data to hash
PTEXT_LEN: the length of data to hash
This function will hash the given data using the algorithm
specified by the context.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_hmac_copy
----------------
-- Function: gnutls_hmac_hd_t gnutls_hmac_copy (gnutls_hmac_hd_t
HANDLE)
HANDLE: is a 'gnutls_hmac_hd_t' type
This function will create a copy of MAC context, containing all its
current state. Copying contexts for MACs registered using
'gnutls_crypto_register_mac()' is not supported and will always
result in an error. In addition to that, some of the MAC
implementations do not support this operation. Applications should
check the return value and provide a proper fallback.
*Returns:* new MAC context or NULL in case of an error.
*Since:* 3.6.9
gnutls_hmac_deinit
------------------
-- Function: void gnutls_hmac_deinit (gnutls_hmac_hd_t HANDLE, void *
DIGEST)
HANDLE: is a 'gnutls_hmac_hd_t' type
DIGEST: is the output value of the MAC
This function will deinitialize all resources occupied by the given
hmac context.
*Since:* 2.10.0
gnutls_hmac_fast
----------------
-- Function: int gnutls_hmac_fast (gnutls_mac_algorithm_t ALGORITHM,
const void * KEY, size_t KEYLEN, const void * PTEXT, size_t
PTEXT_LEN, void * DIGEST)
ALGORITHM: the hash algorithm to use
KEY: the key to use
KEYLEN: the length of the key
PTEXT: the data to hash
PTEXT_LEN: the length of data to hash
DIGEST: is the output value of the hash
This convenience function will hash the given data and return
output on a single call. Note, this call will not work for MAC
algorithms that require nonce (like UMAC or GMAC).
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_hmac_get_key_size
------------------------
-- Function: unsigned gnutls_hmac_get_key_size (gnutls_mac_algorithm_t
ALGORITHM)
ALGORITHM: the mac algorithm to use
This function will return the size of the key to be used with this
algorithm. On the algorithms which may accept arbitrary key sizes,
the returned size is the MAC key size used in the TLS protocol.
*Returns:* The key size or zero on error.
*Since:* 3.6.12
gnutls_hmac_get_len
-------------------
-- Function: unsigned gnutls_hmac_get_len (gnutls_mac_algorithm_t
ALGORITHM)
ALGORITHM: the hmac algorithm to use
This function will return the length of the output data of the
given hmac algorithm.
*Returns:* The length or zero on error.
*Since:* 2.10.0
gnutls_hmac_init
----------------
-- Function: int gnutls_hmac_init (gnutls_hmac_hd_t * DIG,
gnutls_mac_algorithm_t ALGORITHM, const void * KEY, size_t
KEYLEN)
DIG: is a 'gnutls_hmac_hd_t' type
ALGORITHM: the HMAC algorithm to use
KEY: the key to be used for encryption
KEYLEN: the length of the key
This function will initialize an context that can be used to
produce a Message Authentication Code (MAC) of data. This will
effectively use the current crypto backend in use by gnutls or the
cryptographic accelerator in use.
Note that despite the name of this function, it can be used for
other MAC algorithms than HMAC.
*Returns:* Zero or a negative error code on error.
*Since:* 2.10.0
gnutls_hmac_output
------------------
-- Function: void gnutls_hmac_output (gnutls_hmac_hd_t HANDLE, void *
DIGEST)
HANDLE: is a 'gnutls_hmac_hd_t' type
DIGEST: is the output value of the MAC
This function will output the current MAC value and reset the state
of the MAC.
*Since:* 2.10.0
gnutls_hmac_set_nonce
---------------------
-- Function: void gnutls_hmac_set_nonce (gnutls_hmac_hd_t HANDLE, const
void * NONCE, size_t NONCE_LEN)
HANDLE: is a 'gnutls_hmac_hd_t' type
NONCE: the data to set as nonce
NONCE_LEN: the length of data
This function will set the nonce in the MAC algorithm.
*Since:* 3.2.0
gnutls_mac_get_nonce_size
-------------------------
-- Function: size_t gnutls_mac_get_nonce_size (gnutls_mac_algorithm_t
ALGORITHM)
ALGORITHM: is an encryption algorithm
Returns the size of the nonce used by the MAC in TLS.
*Returns:* length (in bytes) of the given MAC nonce size, or 0.
*Since:* 3.2.0
gnutls_pbkdf2
-------------
-- Function: int gnutls_pbkdf2 (gnutls_mac_algorithm_t MAC, const
gnutls_datum_t * KEY, const gnutls_datum_t * SALT, unsigned
ITER_COUNT, void * OUTPUT, size_t LENGTH)
MAC: the mac algorithm used internally
KEY: the initial keying material
SALT: the salt
ITER_COUNT: the iteration count
OUTPUT: the output value
LENGTH: the desired length of the output key
This function will derive a variable length keying material from a
password according to PKCS '5' PBKDF2.
*Returns:* Zero or a negative error code on error.
*Since:* 3.6.13
gnutls_rnd
----------
-- Function: int gnutls_rnd (gnutls_rnd_level_t LEVEL, void * DATA,
size_t LEN)
LEVEL: a security level
DATA: place to store random bytes
LEN: The requested size
This function will generate random data and store it to output
buffer. The value of 'level' should be one of 'GNUTLS_RND_NONCE' ,
'GNUTLS_RND_RANDOM' and 'GNUTLS_RND_KEY' . See the manual and
'gnutls_rnd_level_t' for detailed information.
This function is thread-safe and also fork-safe.
*Returns:* Zero on success, or a negative error code on error.
*Since:* 2.12.0
gnutls_rnd_refresh
------------------
-- Function: void gnutls_rnd_refresh ( VOID)
This function refreshes the random generator state. That is the
current precise time, CPU usage, and other values are input into
its state.
On a slower rate input from /dev/urandom is mixed too.
*Since:* 3.1.7
File: gnutls.info, Node: Compatibility API, Prev: Cryptographic API, Up: API reference
E.13 Compatibility API
======================
The following functions are carried over from old GnuTLS released. They
might be removed at a later version. Their prototypes lie in
'gnutls/compat.h'.
gnutls_compression_get
----------------------
-- Function: gnutls_compression_method_t gnutls_compression_get
(gnutls_session_t SESSION)
SESSION: is a 'gnutls_session_t' type.
Get the currently used compression algorithm.
*Returns:* the currently used compression method, a
'gnutls_compression_method_t' value.
gnutls_compression_get_id
-------------------------
-- Function: gnutls_compression_method_t gnutls_compression_get_id
(const char * NAME)
NAME: is a compression method name
The names are compared in a case insensitive way.
*Returns:* an id of the specified in a string compression method,
or 'GNUTLS_COMP_UNKNOWN' on error.
gnutls_compression_get_name
---------------------------
-- Function: const char * gnutls_compression_get_name
(gnutls_compression_method_t ALGORITHM)
ALGORITHM: is a Compression algorithm
Convert a 'gnutls_compression_method_t' value to a string.
*Returns:* a pointer to a string that contains the name of the
specified compression algorithm, or 'NULL' .
gnutls_compression_list
-----------------------
-- Function: const gnutls_compression_method_t *
gnutls_compression_list ( VOID)
Get a list of compression methods.
*Returns:* a zero-terminated list of 'gnutls_compression_method_t'
integers indicating the available compression methods.
gnutls_global_set_mem_functions
-------------------------------
-- Function: void gnutls_global_set_mem_functions
(gnutls_alloc_function ALLOC_FUNC, gnutls_alloc_function
SECURE_ALLOC_FUNC, gnutls_is_secure_function IS_SECURE_FUNC,
gnutls_realloc_function REALLOC_FUNC, gnutls_free_function
FREE_FUNC)
ALLOC_FUNC: it's the default memory allocation function. Like
'malloc()' .
SECURE_ALLOC_FUNC: This is the memory allocation function that will
be used for sensitive data.
IS_SECURE_FUNC: a function that returns 0 if the memory given is
not secure. May be NULL.
REALLOC_FUNC: A realloc function
FREE_FUNC: The function that frees allocated data. Must accept a
NULL pointer.
*Deprecated:* since 3.3.0 it is no longer possible to replace the
internally used memory allocation functions
This is the function where you set the memory allocation functions
gnutls is going to use. By default the libc's allocation functions
('malloc()' , 'free()' ), are used by gnutls, to allocate both
sensitive and not sensitive data. This function is provided to set
the memory allocation functions to something other than the
defaults
This function must be called before 'gnutls_global_init()' is
called. This function is not thread safe.
gnutls_openpgp_privkey_sign_hash
--------------------------------
-- Function: int gnutls_openpgp_privkey_sign_hash
(gnutls_openpgp_privkey_t KEY, const gnutls_datum_t * HASH,
gnutls_datum_t * SIGNATURE)
KEY: Holds the key
HASH: holds the data to be signed
SIGNATURE: will contain newly allocated signature
This function is no-op.
*Returns:* 'GNUTLS_E_UNIMPLEMENTED_FEATURE' .
gnutls_priority_compression_list
--------------------------------
-- Function: int gnutls_priority_compression_list (gnutls_priority_t
PCACHE, const unsigned int ** LIST)
PCACHE: is a 'gnutls_priority_t' type.
LIST: will point to an integer list
Get a list of available compression method in the priority
structure.
*Returns:* the number of methods, or an error code.
*Since:* 3.0
gnutls_x509_crt_get_preferred_hash_algorithm
--------------------------------------------
-- Function: int gnutls_x509_crt_get_preferred_hash_algorithm
(gnutls_x509_crt_t CRT, gnutls_digest_algorithm_t * HASH,
unsigned int * MAND)
CRT: Holds the certificate
HASH: The result of the call with the hash algorithm used for
signature
MAND: If non-zero it means that the algorithm MUST use this hash.
May be 'NULL' .
This function will read the certificate and return the appropriate
digest algorithm to use for signing with this certificate. Some
certificates (i.e. DSA might not be able to sign without the
preferred algorithm).
*Deprecated:* Please use
'gnutls_pubkey_get_preferred_hash_algorithm()' .
*Returns:* the 0 if the hash algorithm is found. A negative error
code is returned on error.
*Since:* 2.12.0
gnutls_x509_privkey_sign_hash
-----------------------------
-- Function: int gnutls_x509_privkey_sign_hash (gnutls_x509_privkey_t
KEY, const gnutls_datum_t * HASH, gnutls_datum_t * SIGNATURE)
KEY: a key
HASH: holds the data to be signed
SIGNATURE: will contain newly allocated signature
This function will sign the given hash using the private key. Do
not use this function directly unless you know what it is. Typical
signing requires the data to be hashed and stored in special
formats (e.g. BER Digest-Info for RSA).
This API is provided only for backwards compatibility, and thus
restricted to RSA, DSA and ECDSA key types. For other key types
please use 'gnutls_privkey_sign_hash()' and
'gnutls_privkey_sign_data()' .
*Returns:* On success, 'GNUTLS_E_SUCCESS' (0) is returned,
otherwise a negative error value.
Deprecated in: 2.12.0
File: gnutls.info, Node: Copying Information, Next: Bibliography, Prev: API reference, Up: Top
Appendix F Copying Information
******************************
GNU Free Documentation License
==============================
Version 1.3, 3 November 2008
Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
0. PREAMBLE
The purpose of this License is to make a manual, textbook, or other
functional and useful document "free" in the sense of freedom: to
assure everyone the effective freedom to copy and redistribute it,
with or without modifying it, either commercially or
noncommercially. Secondarily, this License preserves for the
author and publisher a way to get credit for their work, while not
being considered responsible for modifications made by others.
This License is a kind of "copyleft", which means that derivative
works of the document must themselves be free in the same sense.
It complements the GNU General Public License, which is a copyleft
license designed for free software.
We have designed this License in order to use it for manuals for
free software, because free software needs free documentation: a
free program should come with manuals providing the same freedoms
that the software does. But this License is not limited to
software manuals; it can be used for any textual work, regardless
of subject matter or whether it is published as a printed book. We
recommend this License principally for works whose purpose is
instruction or reference.
1. APPLICABILITY AND DEFINITIONS
This License applies to any manual or other work, in any medium,
that contains a notice placed by the copyright holder saying it can
be distributed under the terms of this License. Such a notice
grants a world-wide, royalty-free license, unlimited in duration,
to use that work under the conditions stated herein. The
"Document", below, refers to any such manual or work. Any member
of the public is a licensee, and is addressed as "you". You accept
the license if you copy, modify or distribute the work in a way
requiring permission under copyright law.
A "Modified Version" of the Document means any work containing the
Document or a portion of it, either copied verbatim, or with
modifications and/or translated into another language.
A "Secondary Section" is a named appendix or a front-matter section
of the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall
subject (or to related matters) and contains nothing that could
fall directly within that overall subject. (Thus, if the Document
is in part a textbook of mathematics, a Secondary Section may not
explain any mathematics.) The relationship could be a matter of
historical connection with the subject or with related matters, or
of legal, commercial, philosophical, ethical or political position
regarding them.
The "Invariant Sections" are certain Secondary Sections whose
titles are designated, as being those of Invariant Sections, in the
notice that says that the Document is released under this License.
If a section does not fit the above definition of Secondary then it
is not allowed to be designated as Invariant. The Document may
contain zero Invariant Sections. If the Document does not identify
any Invariant Sections then there are none.
The "Cover Texts" are certain short passages of text that are
listed, as Front-Cover Texts or Back-Cover Texts, in the notice
that says that the Document is released under this License. A
Front-Cover Text may be at most 5 words, and a Back-Cover Text may
be at most 25 words.
A "Transparent" copy of the Document means a machine-readable copy,
represented in a format whose specification is available to the
general public, that is suitable for revising the document
straightforwardly with generic text editors or (for images composed
of pixels) generic paint programs or (for drawings) some widely
available drawing editor, and that is suitable for input to text
formatters or for automatic translation to a variety of formats
suitable for input to text formatters. A copy made in an otherwise
Transparent file format whose markup, or absence of markup, has
been arranged to thwart or discourage subsequent modification by
readers is not Transparent. An image format is not Transparent if
used for any substantial amount of text. A copy that is not
"Transparent" is called "Opaque".
Examples of suitable formats for Transparent copies include plain
ASCII without markup, Texinfo input format, LaTeX input format,
SGML or XML using a publicly available DTD, and standard-conforming
simple HTML, PostScript or PDF designed for human modification.
Examples of transparent image formats include PNG, XCF and JPG.
Opaque formats include proprietary formats that can be read and
edited only by proprietary word processors, SGML or XML for which
the DTD and/or processing tools are not generally available, and
the machine-generated HTML, PostScript or PDF produced by some word
processors for output purposes only.
The "Title Page" means, for a printed book, the title page itself,
plus such following pages as are needed to hold, legibly, the
material this License requires to appear in the title page. For
works in formats which do not have any title page as such, "Title
Page" means the text near the most prominent appearance of the
work's title, preceding the beginning of the body of the text.
The "publisher" means any person or entity that distributes copies
of the Document to the public.
A section "Entitled XYZ" means a named subunit of the Document
whose title either is precisely XYZ or contains XYZ in parentheses
following text that translates XYZ in another language. (Here XYZ
stands for a specific section name mentioned below, such as
"Acknowledgements", "Dedications", "Endorsements", or "History".)
To "Preserve the Title" of such a section when you modify the
Document means that it remains a section "Entitled XYZ" according
to this definition.
The Document may include Warranty Disclaimers next to the notice
which states that this License applies to the Document. These
Warranty Disclaimers are considered to be included by reference in
this License, but only as regards disclaiming warranties: any other
implication that these Warranty Disclaimers may have is void and
has no effect on the meaning of this License.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either
commercially or noncommercially, provided that this License, the
copyright notices, and the license notice saying this License
applies to the Document are reproduced in all copies, and that you
add no other conditions whatsoever to those of this License. You
may not use technical measures to obstruct or control the reading
or further copying of the copies you make or distribute. However,
you may accept compensation in exchange for copies. If you
distribute a large enough number of copies you must also follow the
conditions in section 3.
You may also lend copies, under the same conditions stated above,
and you may publicly display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly
have printed covers) of the Document, numbering more than 100, and
the Document's license notice requires Cover Texts, you must
enclose the copies in covers that carry, clearly and legibly, all
these Cover Texts: Front-Cover Texts on the front cover, and
Back-Cover Texts on the back cover. Both covers must also clearly
and legibly identify you as the publisher of these copies. The
front cover must present the full title with all words of the title
equally prominent and visible. You may add other material on the
covers in addition. Copying with changes limited to the covers, as
long as they preserve the title of the Document and satisfy these
conditions, can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit
legibly, you should put the first ones listed (as many as fit
reasonably) on the actual cover, and continue the rest onto
adjacent pages.
If you publish or distribute Opaque copies of the Document
numbering more than 100, you must either include a machine-readable
Transparent copy along with each Opaque copy, or state in or with
each Opaque copy a computer-network location from which the general
network-using public has access to download using public-standard
network protocols a complete Transparent copy of the Document, free
of added material. If you use the latter option, you must take
reasonably prudent steps, when you begin distribution of Opaque
copies in quantity, to ensure that this Transparent copy will
remain thus accessible at the stated location until at least one
year after the last time you distribute an Opaque copy (directly or
through your agents or retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of
the Document well before redistributing any large number of copies,
to give them a chance to provide you with an updated version of the
Document.
4. MODIFICATIONS
You may copy and distribute a Modified Version of the Document
under the conditions of sections 2 and 3 above, provided that you
release the Modified Version under precisely this License, with the
Modified Version filling the role of the Document, thus licensing
distribution and modification of the Modified Version to whoever
possesses a copy of it. In addition, you must do these things in
the Modified Version:
A. Use in the Title Page (and on the covers, if any) a title
distinct from that of the Document, and from those of previous
versions (which should, if there were any, be listed in the
History section of the Document). You may use the same title
as a previous version if the original publisher of that
version gives permission.
B. List on the Title Page, as authors, one or more persons or
entities responsible for authorship of the modifications in
the Modified Version, together with at least five of the
principal authors of the Document (all of its principal
authors, if it has fewer than five), unless they release you
from this requirement.
C. State on the Title page the name of the publisher of the
Modified Version, as the publisher.
D. Preserve all the copyright notices of the Document.
E. Add an appropriate copyright notice for your modifications
adjacent to the other copyright notices.
F. Include, immediately after the copyright notices, a license
notice giving the public permission to use the Modified
Version under the terms of this License, in the form shown in
the Addendum below.
G. Preserve in that license notice the full lists of Invariant
Sections and required Cover Texts given in the Document's
license notice.
H. Include an unaltered copy of this License.
I. Preserve the section Entitled "History", Preserve its Title,
and add to it an item stating at least the title, year, new
authors, and publisher of the Modified Version as given on the
Title Page. If there is no section Entitled "History" in the
Document, create one stating the title, year, authors, and
publisher of the Document as given on its Title Page, then add
an item describing the Modified Version as stated in the
previous sentence.
J. Preserve the network location, if any, given in the Document
for public access to a Transparent copy of the Document, and
likewise the network locations given in the Document for
previous versions it was based on. These may be placed in the
"History" section. You may omit a network location for a work
that was published at least four years before the Document
itself, or if the original publisher of the version it refers
to gives permission.
K. For any section Entitled "Acknowledgements" or "Dedications",
Preserve the Title of the section, and preserve in the section
all the substance and tone of each of the contributor
acknowledgements and/or dedications given therein.
L. Preserve all the Invariant Sections of the Document, unaltered
in their text and in their titles. Section numbers or the
equivalent are not considered part of the section titles.
M. Delete any section Entitled "Endorsements". Such a section
may not be included in the Modified Version.
N. Do not retitle any existing section to be Entitled
"Endorsements" or to conflict in title with any Invariant
Section.
O. Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or
appendices that qualify as Secondary Sections and contain no
material copied from the Document, you may at your option designate
some or all of these sections as invariant. To do this, add their
titles to the list of Invariant Sections in the Modified Version's
license notice. These titles must be distinct from any other
section titles.
You may add a section Entitled "Endorsements", provided it contains
nothing but endorsements of your Modified Version by various
parties--for example, statements of peer review or that the text
has been approved by an organization as the authoritative
definition of a standard.
You may add a passage of up to five words as a Front-Cover Text,
and a passage of up to 25 words as a Back-Cover Text, to the end of
the list of Cover Texts in the Modified Version. Only one passage
of Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity. If the Document
already includes a cover text for the same cover, previously added
by you or by arrangement made by the same entity you are acting on
behalf of, you may not add another; but you may replace the old
one, on explicit permission from the previous publisher that added
the old one.
The author(s) and publisher(s) of the Document do not by this
License give permission to use their names for publicity for or to
assert or imply endorsement of any Modified Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under
this License, under the terms defined in section 4 above for
modified versions, provided that you include in the combination all
of the Invariant Sections of all of the original documents,
unmodified, and list them all as Invariant Sections of your
combined work in its license notice, and that you preserve all
their Warranty Disclaimers.
The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be replaced with a single
copy. If there are multiple Invariant Sections with the same name
but different contents, make the title of each such section unique
by adding at the end of it, in parentheses, the name of the
original author or publisher of that section if known, or else a
unique number. Make the same adjustment to the section titles in
the list of Invariant Sections in the license notice of the
combined work.
In the combination, you must combine any sections Entitled
"History" in the various original documents, forming one section
Entitled "History"; likewise combine any sections Entitled
"Acknowledgements", and any sections Entitled "Dedications". You
must delete all sections Entitled "Endorsements."
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other
documents released under this License, and replace the individual
copies of this License in the various documents with a single copy
that is included in the collection, provided that you follow the
rules of this License for verbatim copying of each of the documents
in all other respects.
You may extract a single document from such a collection, and
distribute it individually under this License, provided you insert
a copy of this License into the extracted document, and follow this
License in all other respects regarding verbatim copying of that
document.
7. AGGREGATION WITH INDEPENDENT WORKS
A compilation of the Document or its derivatives with other
separate and independent documents or works, in or on a volume of a
storage or distribution medium, is called an "aggregate" if the
copyright resulting from the compilation is not used to limit the
legal rights of the compilation's users beyond what the individual
works permit. When the Document is included in an aggregate, this
License does not apply to the other works in the aggregate which
are not themselves derivative works of the Document.
If the Cover Text requirement of section 3 is applicable to these
copies of the Document, then if the Document is less than one half
of the entire aggregate, the Document's Cover Texts may be placed
on covers that bracket the Document within the aggregate, or the
electronic equivalent of covers if the Document is in electronic
form. Otherwise they must appear on printed covers that bracket
the whole aggregate.
8. TRANSLATION
Translation is considered a kind of modification, so you may
distribute translations of the Document under the terms of section
4. Replacing Invariant Sections with translations requires special
permission from their copyright holders, but you may include
translations of some or all Invariant Sections in addition to the
original versions of these Invariant Sections. You may include a
translation of this License, and all the license notices in the
Document, and any Warranty Disclaimers, provided that you also
include the original English version of this License and the
original versions of those notices and disclaimers. In case of a
disagreement between the translation and the original version of
this License or a notice or disclaimer, the original version will
prevail.
If a section in the Document is Entitled "Acknowledgements",
"Dedications", or "History", the requirement (section 4) to
Preserve its Title (section 1) will typically require changing the
actual title.
9. TERMINATION
You may not copy, modify, sublicense, or distribute the Document
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense, or distribute it is void,
and will automatically terminate your rights under this License.
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the
copyright holder fails to notify you of the violation by some
reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from
that copyright holder, and you cure the violation prior to 30 days
after your receipt of the notice.
Termination of your rights under this section does not terminate
the licenses of parties who have received copies or rights from you
under this License. If your rights have been terminated and not
permanently reinstated, receipt of a copy of some or all of the
same material does not give you any rights to use it.
10. FUTURE REVISIONS OF THIS LICENSE
The Free Software Foundation may publish new, revised versions of
the GNU Free Documentation License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns. See
<https://www.gnu.org/licenses/>.
Each version of the License is given a distinguishing version
number. If the Document specifies that a particular numbered
version of this License "or any later version" applies to it, you
have the option of following the terms and conditions either of
that specified version or of any later version that has been
published (not as a draft) by the Free Software Foundation. If the
Document does not specify a version number of this License, you may
choose any version ever published (not as a draft) by the Free
Software Foundation. If the Document specifies that a proxy can
decide which future versions of this License can be used, that
proxy's public statement of acceptance of a version permanently
authorizes you to choose that version for the Document.
11. RELICENSING
"Massive Multiauthor Collaboration Site" (or "MMC Site") means any
World Wide Web server that publishes copyrightable works and also
provides prominent facilities for anybody to edit those works. A
public wiki that anybody can edit is an example of such a server.
A "Massive Multiauthor Collaboration" (or "MMC") contained in the
site means any set of copyrightable works thus published on the MMC
site.
"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
license published by Creative Commons Corporation, a not-for-profit
corporation with a principal place of business in San Francisco,
California, as well as future copyleft versions of that license
published by that same organization.
"Incorporate" means to publish or republish a Document, in whole or
in part, as part of another Document.
An MMC is "eligible for relicensing" if it is licensed under this
License, and if all works that were first published under this
License somewhere other than this MMC, and subsequently
incorporated in whole or in part into the MMC, (1) had no cover
texts or invariant sections, and (2) were thus incorporated prior
to November 1, 2008.
The operator of an MMC Site may republish an MMC contained in the
site under CC-BY-SA on the same site at any time before August 1,
2009, provided the MMC is eligible for relicensing.
ADDENDUM: How to use this License for your documents
====================================================
To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and license
notices just after the title page:
Copyright (C) YEAR YOUR NAME.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license is included in the section entitled ``GNU
Free Documentation License''.
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
replace the "with...Texts." line with this:
with the Invariant Sections being LIST THEIR TITLES, with
the Front-Cover Texts being LIST, and with the Back-Cover Texts
being LIST.
If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.
If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of free
software license, such as the GNU General Public License, to permit
their use in free software.
File: gnutls.info, Node: Bibliography, Next: Function and Data Index, Prev: Copying Information, Up: Top
Bibliography
************
[CBCATT]
Bodo Moeller, "Security of CBC Ciphersuites in SSL/TLS: Problems
and Countermeasures", 2002, available from
<https://www.openssl.org/~bodo/tls-cbc.txt>.
[GPGH]
Mike Ashley, "The GNU Privacy Handbook", 2002, available from
<https://www.gnupg.org/gph/en/manual.pdf>.
[GUTPKI]
Peter Gutmann, "Everything you never wanted to know about PKI but
were forced to find out", Available from
<https://www.cs.auckland.ac.nz/~pgut001/>.
[PRNGATTACKS]
John Kelsey and Bruce Schneier, "Cryptanalytic Attacks on
Pseudorandom Number Generators", Available from
<https://www.schneier.com/academic/paperfiles/paper-prngs.pdf>.
[KEYPIN]
Chris Evans and Chris Palmer, "Public Key Pinning Extension for
HTTP", Available from
<https://tools.ietf.org/html/draft-ietf-websec-key-pinning-01>.
[NISTSP80057]
NIST Special Publication 800-57, "Recommendation for Key Management
- Part 1: General (Revised)", March 2007, available from
<https://csrc.nist.gov/publications/nistpubs/800-57/sp800-57-Part1-revised2_Mar08-2007.pdf>.
[RFC7413]
Y. Cheng and J. Chu and S. Radhakrishnan and A. Jain, "TCP Fast
Open", December 2014, Available from
<https://www.ietf.org/rfc/rfc7413.txt>.
[RFC7918]
A. Langley, N. Modadugu, B. Moeller, "Transport Layer Security
(TLS) False Start", August 2016, Available from
<https://www.ietf.org/rfc/rfc7918.txt>.
[RFC6125]
Peter Saint-Andre and Jeff Hodges, "Representation and Verification
of Domain-Based Application Service Identity within Internet Public
Key Infrastructure Using X.509 (PKIX) Certificates in the Context
of Transport Layer Security (TLS)", March 2011, Available from
<https://www.ietf.org/rfc/rfc6125.txt>.
[RFC7685]
Adam Langley, "A Transport Layer Security (TLS) ClientHello Padding
Extension", October 2015, Available from
<https://www.ietf.org/rfc/rfc7685.txt>.
[RFC7613]
Peter Saint-Andre and Alexey Melnikov, "Preparation, Enforcement,
and Comparison of Internationalized Strings Representing Usernames
and Passwords", August 2015, Available from
<https://www.ietf.org/rfc/rfc7613.txt>.
[RFC2246]
Tim Dierks and Christopher Allen, "The TLS Protocol Version 1.0",
January 1999, Available from
<https://www.ietf.org/rfc/rfc2246.txt>.
[RFC6083]
M. Tuexen and R. Seggelmann and E. Rescorla, "Datagram Transport
Layer Security (DTLS) for Stream Control Transmission Protocol
(SCTP)", January 2011, Available from
<https://www.ietf.org/rfc/rfc6083.txt>.
[RFC4418]
Ted Krovetz, "UMAC: Message Authentication Code using Universal
Hashing", March 2006, Available from
<https://www.ietf.org/rfc/rfc4418.txt>.
[RFC4680]
S. Santesson, "TLS Handshake Message for Supplemental Data",
September 2006, Available from
<https://www.ietf.org/rfc/rfc4680.txt>.
[RFC7633]
P. Hallam-Baker, "X.509v3 Transport Layer Security (TLS) Feature
Extension", October 2015, Available from
<https://www.ietf.org/rfc/rfc7633.txt>.
[RFC7919]
D. Gillmor, "Negotiated Finite Field Diffie-Hellman Ephemeral
Parameters for Transport Layer Security (TLS)", August 2016,
Available from <https://www.ietf.org/rfc/rfc7919.txt>.
[RFC4514]
Kurt D. Zeilenga, "Lightweight Directory Access Protocol (LDAP):
String Representation of Distinguished Names", June 2006, Available
from <https://www.ietf.org/rfc/rfc4513.txt>.
[RFC4346]
Tim Dierks and Eric Rescorla, "The TLS Protocol Version 1.1", Match
2006, Available from <https://www.ietf.org/rfc/rfc4346.txt>.
[RFC4347]
Eric Rescorla and Nagendra Modadugu, "Datagram Transport Layer
Security", April 2006, Available from
<https://www.ietf.org/rfc/rfc4347.txt>.
[RFC5246]
Tim Dierks and Eric Rescorla, "The TLS Protocol Version 1.2",
August 2008, Available from <https://www.ietf.org/rfc/rfc5246.txt>.
[RFC2440]
Jon Callas, Lutz Donnerhacke, Hal Finney and Rodney Thayer,
"OpenPGP Message Format", November 1998, Available from
<https://www.ietf.org/rfc/rfc2440.txt>.
[RFC4880]
Jon Callas, Lutz Donnerhacke, Hal Finney, David Shaw and Rodney
Thayer, "OpenPGP Message Format", November 2007, Available from
<https://www.ietf.org/rfc/rfc4880.txt>.
[RFC4211]
J. Schaad, "Internet X.509 Public Key Infrastructure Certificate
Request Message Format (CRMF)", September 2005, Available from
<https://www.ietf.org/rfc/rfc4211.txt>.
[RFC2817]
Rohit Khare and Scott Lawrence, "Upgrading to TLS Within HTTP/1.1",
May 2000, Available from <https://www.ietf.org/rfc/rfc2817.txt>
[RFC2818]
Eric Rescorla, "HTTP Over TLS", May 2000, Available from
<https://www.ietf/rfc/rfc2818.txt>.
[RFC2945]
Tom Wu, "The SRP Authentication and Key Exchange System", September
2000, Available from <https://www.ietf.org/rfc/rfc2945.txt>.
[RFC7301]
S. Friedl, A. Popov, A. Langley, E. Stephan, "Transport Layer
Security (TLS) Application-Layer Protocol Negotiation Extension",
July 2014, Available from <https://www.ietf.org/rfc/rfc7301.txt>.
[RFC2986]
Magnus Nystrom and Burt Kaliski, "PKCS 10 v1.7: Certification
Request Syntax Specification", November 2000, Available from
<https://www.ietf.org/rfc/rfc2986.txt>.
[PKIX]
D. Cooper, S. Santesson, S. Farrel, S. Boeyen, R. Housley, W. Polk,
"Internet X.509 Public Key Infrastructure Certificate and
Certificate Revocation List (CRL) Profile", May 2008, available
from <https://www.ietf.org/rfc/rfc5280.txt>.
[RFC3749]
Scott Hollenbeck, "Transport Layer Security Protocol Compression
Methods", May 2004, available from
<https://www.ietf.org/rfc/rfc3749.txt>.
[RFC3820]
Steven Tuecke, Von Welch, Doug Engert, Laura Pearlman, and Mary
Thompson, "Internet X.509 Public Key Infrastructure (PKI) Proxy
Certificate Profile", June 2004, available from
<https://www.ietf.org/rfc/rfc3820>.
[RFC6520]
R. Seggelmann, M. Tuexen, and M. Williams, "Transport Layer
Security (TLS) and Datagram Transport Layer Security (DTLS)
Heartbeat Extension", February 2012, available from
<https://www.ietf.org/rfc/rfc6520>.
[RFC5746]
E. Rescorla, M. Ray, S. Dispensa, and N. Oskov, "Transport Layer
Security (TLS) Renegotiation Indication Extension", February 2010,
available from <https://www.ietf.org/rfc/rfc5746>.
[RFC5280]
D. Cooper, S. Santesson, S. Farrell, S. Boeyen, R. Housley, and W.
Polk, "Internet X.509 Public Key Infrastructure Certificate and
Certificate Revocation List (CRL) Profile", May 2008, available
from <https://www.ietf.org/rfc/rfc5280>.
[TLSTKT]
Joseph Salowey, Hao Zhou, Pasi Eronen, Hannes Tschofenig,
"Transport Layer Security (TLS) Session Resumption without
Server-Side State", January 2008, available from
<https://www.ietf.org/rfc/rfc5077>.
[PKCS12]
RSA Laboratories, "PKCS 12 v1.0: Personal Information Exchange
Syntax", June 1999, Available from <https://www.rsa.com>.
[PKCS11]
RSA Laboratories, "PKCS #11 Base Functionality v2.30: Cryptoki –
Draft 4", July 2009, Available from <https://www.rsa.com>.
[RESCORLA]
Eric Rescorla, "SSL and TLS: Designing and Building Secure
Systems", 2001
[SELKEY]
Arjen Lenstra and Eric Verheul, "Selecting Cryptographic Key
Sizes", 2003, available from
<https://www.win.tue.nl/~klenstra/key.pdf>.
[SSL3]
Alan Freier, Philip Karlton and Paul Kocher, "The Secure Sockets
Layer (SSL) Protocol Version 3.0", August 2011, Available from
<https://www.ietf.org/rfc/rfc6101.txt>.
[STEVENS]
Richard Stevens, "UNIX Network Programming, Volume 1", Prentice
Hall PTR, January 1998
[TLSEXT]
Simon Blake-Wilson, Magnus Nystrom, David Hopwood, Jan Mikkelsen
and Tim Wright, "Transport Layer Security (TLS) Extensions", June
2003, Available from <https://www.ietf.org/rfc/rfc3546.txt>.
[TLSPGP]
Nikos Mavrogiannopoulos, "Using OpenPGP keys for TLS
authentication", January 2011. Available from
<https://www.ietf.org/rfc/rfc6091.txt>.
[TLSSRP]
David Taylor, Trevor Perrin, Tom Wu and Nikos Mavrogiannopoulos,
"Using SRP for TLS Authentication", November 2007. Available from
<https://www.ietf.org/rfc/rfc5054.txt>.
[TLSPSK]
Pasi Eronen and Hannes Tschofenig, "Pre-shared key Ciphersuites for
TLS", December 2005, Available from
<https://www.ietf.org/rfc/rfc4279.txt>.
[TOMSRP]
Tom Wu, "The Stanford SRP Authentication Project", Available at
<https://srp.stanford.edu/>.
[WEGER]
Arjen Lenstra and Xiaoyun Wang and Benne de Weger, "Colliding X.509
Certificates", Cryptology ePrint Archive, Report 2005/067,
Available at <https://eprint.iacr.org/>.
[ECRYPT]
European Network of Excellence in Cryptology II, "ECRYPT II Yearly
Report on Algorithms and Keysizes (2009-2010)", Available at
<https://www.ecrypt.eu.org/documents/D.SPA.13.pdf>.
[RFC5056]
N. Williams, "On the Use of Channel Bindings to Secure Channels",
November 2007, available from <https://www.ietf.org/rfc/rfc5056>.
[RFC5764]
D. McGrew, E. Rescorla, "Datagram Transport Layer Security (DTLS)
Extension to Establish Keys for the Secure Real-time Transport
Protocol (SRTP)On the Use of Channel Bindings to Secure Channels",
May 2010, available from <https://www.ietf.org/rfc/rfc5764>.
[RFC5929]
J. Altman, N. Williams, L. Zhu, "Channel Bindings for TLS", July
2010, available from <https://www.ietf.org/rfc/rfc5929>.
[PKCS11URI]
J. Pechanec, D. Moffat, "The PKCS#11 URI Scheme", April 2015,
available from <https://www.ietf.org/rfc/rfc7512>.
[TPMURI]
C. Latze, N. Mavrogiannopoulos, "The TPMKEY URI Scheme", January
2013, Work in progress, available from
<https://tools.ietf.org/html/draft-mavrogiannopoulos-tpmuri-01>.
[ANDERSON]
R. J. Anderson, "Security Engineering: A Guide to Building
Dependable Distributed Systems", John Wiley \& Sons, Inc., 2001.
[RFC4821]
M. Mathis, J. Heffner, "Packetization Layer Path MTU Discovery",
March 2007, available from <https://www.ietf.org/rfc/rfc4821.txt>.
[RFC2560]
M. Myers et al, "X.509 Internet Public Key Infrastructure Online
Certificate Status Protocol - OCSP", June 1999, Available from
<https://www.ietf.org/rfc/rfc2560.txt>.
[RIVESTCRL]
R. L. Rivest, "Can We Eliminate Certificate Revocation Lists?",
Proceedings of Financial Cryptography '98; Springer Lecture Notes
in Computer Science No. 1465 (Rafael Hirschfeld, ed.), February
1998), pages 178-183, available from
<https://people.csail.mit.edu/rivest/Rivest-CanWeEliminateCertificateRevocationLists.pdf>.
[RFC9266]
S. Whited, "Channel Bindings for TLS 1.3", July 2022, available
from <https://www.ietf.org/rfc/rfc9266.txt>.
File: gnutls.info, Node: Function and Data Index, Next: Concept Index, Prev: Bibliography, Up: Top
Function and Data Index
***********************
[index ]
* Menu:
* dane_cert_type_name: DANE API. (line 13)
* dane_cert_usage_name: DANE API. (line 24)
* dane_match_type_name: DANE API. (line 36)
* dane_query_data: DANE API. (line 47)
* dane_query_deinit: DANE API. (line 70)
* dane_query_entries: DANE API. (line 78)
* dane_query_status: DANE API. (line 88)
* dane_query_tlsa: DANE API. (line 99)
* dane_query_to_raw_tlsa: DANE API. (line 120)
* dane_raw_tlsa: DANE API. (line 155)
* dane_state_deinit: DANE API. (line 185)
* dane_state_init: DANE API. (line 193)
* dane_state_set_dlv_file: DANE API. (line 208)
* dane_strerror: DANE API. (line 220)
* dane_verification_status_print: DANE API. (line 234)
* dane_verify_crt: Certificate verification.
(line 181)
* dane_verify_crt <1>: DANE API. (line 253)
* dane_verify_crt_raw: DANE API. (line 307)
* dane_verify_session_crt: DANE API. (line 343)
* gnutls_aead_cipher_decrypt: Cryptographic API. (line 16)
* gnutls_aead_cipher_decryptv2: Cryptographic API. (line 56)
* gnutls_aead_cipher_deinit: Cryptographic API. (line 88)
* gnutls_aead_cipher_encrypt: Cryptographic API. (line 100)
* gnutls_aead_cipher_encryptv: Symmetric algorithms.
(line 146)
* gnutls_aead_cipher_encryptv <1>: Cryptographic API. (line 136)
* gnutls_aead_cipher_encryptv2: Cryptographic API. (line 172)
* gnutls_aead_cipher_init: Cryptographic API. (line 204)
* gnutls_aead_cipher_set_key: Cryptographic API. (line 225)
* gnutls_alert_get: Handling alerts. (line 18)
* gnutls_alert_get <1>: Core TLS API. (line 11)
* gnutls_alert_get_name: Handling alerts. (line 31)
* gnutls_alert_get_name <1>: Core TLS API. (line 27)
* gnutls_alert_get_strname: Core TLS API. (line 40)
* gnutls_alert_send: Handling alerts. (line 45)
* gnutls_alert_send <1>: Core TLS API. (line 54)
* gnutls_alert_send_appropriate: Core TLS API. (line 78)
* gnutls_alert_set_read_function: Core TLS API. (line 104)
* gnutls_alpn_get_selected_protocol: Core TLS API. (line 118)
* gnutls_alpn_set_protocols: Core TLS API. (line 139)
* gnutls_anon_allocate_client_credentials: Core TLS API. (line 165)
* gnutls_anon_allocate_server_credentials: Core TLS API. (line 176)
* gnutls_anon_free_client_credentials: Core TLS API. (line 187)
* gnutls_anon_free_server_credentials: Core TLS API. (line 196)
* gnutls_anon_set_params_function: Core TLS API. (line 205)
* gnutls_anon_set_server_dh_params: Core TLS API. (line 223)
* gnutls_anon_set_server_known_dh_params: Core TLS API. (line 241)
* gnutls_anon_set_server_params_function: Core TLS API. (line 265)
* gnutls_anti_replay_deinit: Core TLS API. (line 283)
* gnutls_anti_replay_enable: Core TLS API. (line 295)
* gnutls_anti_replay_init: Core TLS API. (line 308)
* gnutls_anti_replay_set_add_function: Core TLS API. (line 324)
* gnutls_anti_replay_set_ptr: Core TLS API. (line 351)
* gnutls_anti_replay_set_window: Core TLS API. (line 363)
* gnutls_auth_client_get_type: Core TLS API. (line 383)
* gnutls_auth_get_type: Core TLS API. (line 400)
* gnutls_auth_server_get_type: Core TLS API. (line 421)
* gnutls_base64_decode2: Core TLS API. (line 438)
* gnutls_base64_encode2: Core TLS API. (line 457)
* gnutls_buffer_append_data: Core TLS API. (line 477)
* gnutls_bye: Data transfer and termination.
(line 155)
* gnutls_bye <1>: Core TLS API. (line 495)
* gnutls_certificate_activation_time_peers: Core TLS API. (line 531)
* gnutls_certificate_allocate_credentials: Core TLS API. (line 545)
* gnutls_certificate_client_get_request_status: Core TLS API.
(line 556)
* gnutls_certificate_expiration_time_peers: Core TLS API. (line 569)
* gnutls_certificate_free_cas: Core TLS API. (line 600)
* gnutls_certificate_free_ca_names: Core TLS API. (line 583)
* gnutls_certificate_free_credentials: Core TLS API. (line 611)
* gnutls_certificate_free_crls: Core TLS API. (line 624)
* gnutls_certificate_free_keys: Core TLS API. (line 634)
* gnutls_certificate_get_crt_raw: Core TLS API. (line 646)
* gnutls_certificate_get_issuer: Core TLS API. (line 673)
* gnutls_certificate_get_ocsp_expiration: OCSP stapling. (line 46)
* gnutls_certificate_get_ocsp_expiration <1>: Core TLS API. (line 703)
* gnutls_certificate_get_ours: Core TLS API. (line 735)
* gnutls_certificate_get_peers: Core TLS API. (line 756)
* gnutls_certificate_get_peers_subkey_id: Core TLS API. (line 781)
* gnutls_certificate_get_trust_list: X509 certificate API.
(line 12)
* gnutls_certificate_get_verify_flags: Core TLS API. (line 796)
* gnutls_certificate_get_x509_crt: Core TLS API. (line 810)
* gnutls_certificate_get_x509_key: Core TLS API. (line 851)
* gnutls_certificate_send_x509_rdn_sequence: Certificate credentials.
(line 192)
* gnutls_certificate_send_x509_rdn_sequence <1>: Core TLS API.
(line 887)
* gnutls_certificate_server_set_request: Certificate credentials.
(line 177)
* gnutls_certificate_server_set_request <1>: Core TLS API. (line 905)
* gnutls_certificate_set_dh_params: Core TLS API. (line 923)
* gnutls_certificate_set_flags: Core TLS API. (line 944)
* gnutls_certificate_set_key: Certificate credentials.
(line 69)
* gnutls_certificate_set_key <1>: Abstract key API. (line 12)
* gnutls_certificate_set_known_dh_params: Core TLS API. (line 959)
* gnutls_certificate_set_ocsp_status_request_file: Core TLS API.
(line 983)
* gnutls_certificate_set_ocsp_status_request_file2: Core TLS API.
(line 1026)
* gnutls_certificate_set_ocsp_status_request_function: Core TLS API.
(line 1063)
* gnutls_certificate_set_ocsp_status_request_function2: Core TLS API.
(line 1098)
* gnutls_certificate_set_ocsp_status_request_mem: Core TLS API.
(line 1144)
* gnutls_certificate_set_params_function: Core TLS API. (line 1186)
* gnutls_certificate_set_pin_function: Certificate credentials.
(line 45)
* gnutls_certificate_set_pin_function <1>: Core TLS API. (line 1205)
* gnutls_certificate_set_rawpk_key_file: Core TLS API. (line 1226)
* gnutls_certificate_set_rawpk_key_mem: Core TLS API. (line 1300)
* gnutls_certificate_set_retrieve_function: Core TLS API. (line 1371)
* gnutls_certificate_set_retrieve_function2: Abstract key API.
(line 63)
* gnutls_certificate_set_retrieve_function3: Abstract key API.
(line 117)
* gnutls_certificate_set_trust_list: X509 certificate API.
(line 30)
* gnutls_certificate_set_verify_flags: Core TLS API. (line 1421)
* gnutls_certificate_set_verify_function: Core TLS API. (line 1434)
* gnutls_certificate_set_verify_limits: Core TLS API. (line 1463)
* gnutls_certificate_set_x509_crl: Core TLS API. (line 1482)
* gnutls_certificate_set_x509_crl_file: Core TLS API. (line 1506)
* gnutls_certificate_set_x509_crl_mem: Core TLS API. (line 1528)
* gnutls_certificate_set_x509_key: Core TLS API. (line 1550)
* gnutls_certificate_set_x509_key_file: Core TLS API. (line 1590)
* gnutls_certificate_set_x509_key_file2: Core TLS API. (line 1642)
* gnutls_certificate_set_x509_key_mem: Core TLS API. (line 1699)
* gnutls_certificate_set_x509_key_mem2: Core TLS API. (line 1740)
* gnutls_certificate_set_x509_simple_pkcs12_file: Core TLS API.
(line 1786)
* gnutls_certificate_set_x509_simple_pkcs12_mem: Core TLS API.
(line 1834)
* gnutls_certificate_set_x509_system_trust: Certificate credentials.
(line 232)
* gnutls_certificate_set_x509_system_trust <1>: Core TLS API.
(line 1884)
* gnutls_certificate_set_x509_trust: Core TLS API. (line 1902)
* gnutls_certificate_set_x509_trust_dir: Core TLS API. (line 1929)
* gnutls_certificate_set_x509_trust_file: Core TLS API. (line 1951)
* gnutls_certificate_set_x509_trust_mem: Core TLS API. (line 1981)
* gnutls_certificate_type_get: Core TLS API. (line 2006)
* gnutls_certificate_type_get2: Core TLS API. (line 2027)
* gnutls_certificate_type_get_id: Core TLS API. (line 2059)
* gnutls_certificate_type_get_name: Core TLS API. (line 2071)
* gnutls_certificate_type_list: Core TLS API. (line 2083)
* gnutls_certificate_verification_profile_get_id: X509 certificate API.
(line 51)
* gnutls_certificate_verification_profile_get_name: X509 certificate API.
(line 65)
* gnutls_certificate_verification_status_print: Core TLS API.
(line 2094)
* gnutls_certificate_verify_flags: Verifying a certificate in the context of TLS session.
(line 6)
* gnutls_certificate_verify_flags <1>: Certificate verification.
(line 6)
* gnutls_certificate_verify_peers: Core TLS API. (line 2119)
* gnutls_certificate_verify_peers2: Core TLS API. (line 2180)
* gnutls_certificate_verify_peers3: Core TLS API. (line 2222)
* gnutls_check_version: Core TLS API. (line 2273)
* gnutls_ciphersuite_get: Core TLS API. (line 2409)
* gnutls_cipher_add_auth: Cryptographic API. (line 241)
* gnutls_cipher_decrypt: Cryptographic API. (line 260)
* gnutls_cipher_decrypt2: Cryptographic API. (line 282)
* gnutls_cipher_decrypt3: Cryptographic API. (line 311)
* gnutls_cipher_deinit: Cryptographic API. (line 338)
* gnutls_cipher_encrypt: Cryptographic API. (line 349)
* gnutls_cipher_encrypt2: Cryptographic API. (line 367)
* gnutls_cipher_encrypt3: Cryptographic API. (line 392)
* gnutls_cipher_get: Core TLS API. (line 2292)
* gnutls_cipher_get_block_size: Cryptographic API. (line 427)
* gnutls_cipher_get_id: Core TLS API. (line 2304)
* gnutls_cipher_get_iv_size: Cryptographic API. (line 438)
* gnutls_cipher_get_key_size: Core TLS API. (line 2316)
* gnutls_cipher_get_name: Core TLS API. (line 2328)
* gnutls_cipher_get_tag_size: Cryptographic API. (line 453)
* gnutls_cipher_init: Cryptographic API. (line 467)
* gnutls_cipher_list: Core TLS API. (line 2340)
* gnutls_cipher_set_iv: Cryptographic API. (line 490)
* gnutls_cipher_suite_get_name: Core TLS API. (line 2356)
* gnutls_cipher_suite_info: Core TLS API. (line 2379)
* gnutls_cipher_tag: Cryptographic API. (line 506)
* gnutls_compression_get: Compatibility API. (line 13)
* gnutls_compression_get_id: Compatibility API. (line 25)
* gnutls_compression_get_name: Compatibility API. (line 37)
* gnutls_compression_list: Compatibility API. (line 49)
* gnutls_compress_certificate_get_selected_method: Core TLS API.
(line 2432)
* gnutls_compress_certificate_set_methods: Core TLS API. (line 2449)
* gnutls_credentials_clear: Core TLS API. (line 2490)
* gnutls_credentials_get: Core TLS API. (line 2498)
* gnutls_credentials_set: Session initialization.
(line 150)
* gnutls_credentials_set <1>: Core TLS API. (line 2527)
* gnutls_crypto_register_aead_cipher: Overriding algorithms.
(line 58)
* gnutls_crypto_register_aead_cipher <1>: Cryptographic API. (line 524)
* gnutls_crypto_register_cipher: Overriding algorithms.
(line 13)
* gnutls_crypto_register_cipher <1>: Cryptographic API. (line 569)
* gnutls_crypto_register_digest: Overriding algorithms.
(line 139)
* gnutls_crypto_register_digest <1>: Cryptographic API. (line 617)
* gnutls_crypto_register_mac: Overriding algorithms.
(line 100)
* gnutls_crypto_register_mac <1>: Cryptographic API. (line 653)
* gnutls_db_check_entry: Core TLS API. (line 2562)
* gnutls_db_check_entry_expire_time: Core TLS API. (line 2578)
* gnutls_db_check_entry_time: Core TLS API. (line 2592)
* gnutls_db_get_default_cache_expiration: Core TLS API. (line 2603)
* gnutls_db_get_ptr: Core TLS API. (line 2611)
* gnutls_db_remove_session: Core TLS API. (line 2622)
* gnutls_db_set_cache_expiration: Core TLS API. (line 2636)
* gnutls_db_set_ptr: Core TLS API. (line 2651)
* gnutls_db_set_remove_function: Core TLS API. (line 2663)
* gnutls_db_set_retrieve_function: Core TLS API. (line 2678)
* gnutls_db_set_store_function: Core TLS API. (line 2698)
* gnutls_decode_ber_digest_info: Cryptographic API. (line 695)
* gnutls_decode_gost_rs_value: Cryptographic API. (line 718)
* gnutls_decode_rs_value: Cryptographic API. (line 743)
* gnutls_deinit: Data transfer and termination.
(line 188)
* gnutls_deinit <1>: Core TLS API. (line 2713)
* gnutls_dh_get_group: Core TLS API. (line 2723)
* gnutls_dh_get_peers_public_bits: Core TLS API. (line 2746)
* gnutls_dh_get_prime_bits: Core TLS API. (line 2760)
* gnutls_dh_get_pubkey: Core TLS API. (line 2776)
* gnutls_dh_get_secret_bits: Core TLS API. (line 2796)
* gnutls_dh_params_cpy: Core TLS API. (line 2809)
* gnutls_dh_params_deinit: Core TLS API. (line 2824)
* gnutls_dh_params_export2_pkcs3: Core TLS API. (line 2833)
* gnutls_dh_params_export_pkcs3: Core TLS API. (line 2857)
* gnutls_dh_params_export_raw: Core TLS API. (line 2884)
* gnutls_dh_params_generate2: Core TLS API. (line 2906)
* gnutls_dh_params_import_dsa: Core TLS API. (line 2936)
* gnutls_dh_params_import_pkcs3: Core TLS API. (line 2951)
* gnutls_dh_params_import_raw: Core TLS API. (line 2973)
* gnutls_dh_params_import_raw2: Core TLS API. (line 2992)
* gnutls_dh_params_import_raw3: Core TLS API. (line 3013)
* gnutls_dh_params_init: Core TLS API. (line 3034)
* gnutls_dh_set_prime_bits: Core TLS API. (line 3045)
* gnutls_digest_get_id: Core TLS API. (line 3073)
* gnutls_digest_get_name: Core TLS API. (line 3086)
* gnutls_digest_get_oid: Core TLS API. (line 3098)
* gnutls_digest_list: Core TLS API. (line 3113)
* gnutls_digest_set_secure: Core TLS API. (line 3127)
* gnutls_dtls_cookie_send: Datagram TLS API. (line 11)
* gnutls_dtls_cookie_verify: Datagram TLS API. (line 45)
* gnutls_dtls_get_data_mtu: Datagram TLS API. (line 74)
* gnutls_dtls_get_mtu: Datagram TLS API. (line 89)
* gnutls_dtls_get_timeout: Setting up the transport layer.
(line 193)
* gnutls_dtls_get_timeout <1>: Datagram TLS API. (line 104)
* gnutls_dtls_prestate_set: Datagram TLS API. (line 121)
* gnutls_dtls_set_data_mtu: Datagram TLS API. (line 139)
* gnutls_dtls_set_mtu: Datagram TLS API. (line 165)
* gnutls_dtls_set_timeouts: Datagram TLS API. (line 182)
* gnutls_early_cipher_get: Core TLS API. (line 3143)
* gnutls_early_prf_hash_get: Core TLS API. (line 3157)
* gnutls_ecc_curve_get: Core TLS API. (line 3172)
* gnutls_ecc_curve_get_id: Core TLS API. (line 3186)
* gnutls_ecc_curve_get_name: Core TLS API. (line 3200)
* gnutls_ecc_curve_get_oid: Core TLS API. (line 3214)
* gnutls_ecc_curve_get_pk: Core TLS API. (line 3228)
* gnutls_ecc_curve_get_size: Core TLS API. (line 3240)
* gnutls_ecc_curve_list: Core TLS API. (line 3250)
* gnutls_ecc_curve_set_enabled: Core TLS API. (line 3262)
* gnutls_encode_ber_digest_info: Cryptographic API. (line 767)
* gnutls_encode_gost_rs_value: Cryptographic API. (line 787)
* gnutls_encode_rs_value: Cryptographic API. (line 810)
* gnutls_error_is_fatal: Data transfer and termination.
(line 82)
* gnutls_error_is_fatal <1>: Core TLS API. (line 3287)
* gnutls_error_to_alert: Handling alerts. (line 66)
* gnutls_error_to_alert <1>: Core TLS API. (line 3307)
* gnutls_est_record_overhead_size: Core TLS API. (line 3326)
* gnutls_ext_get_current_msg: Core TLS API. (line 3353)
* gnutls_ext_get_data: Core TLS API. (line 3371)
* gnutls_ext_get_name: Core TLS API. (line 3390)
* gnutls_ext_get_name2: Core TLS API. (line 3401)
* gnutls_ext_raw_parse: Core TLS API. (line 3418)
* gnutls_ext_register: Core TLS API. (line 3449)
* gnutls_ext_set_data: Core TLS API. (line 3496)
* gnutls_fingerprint: Core TLS API. (line 3513)
* gnutls_fips140_context_deinit: Core TLS API. (line 3540)
* gnutls_fips140_context_init: Core TLS API. (line 3551)
* gnutls_fips140_get_operation_state: FIPS140-2 mode. (line 138)
* gnutls_fips140_get_operation_state <1>: Core TLS API. (line 3564)
* gnutls_fips140_mode_enabled: Core TLS API. (line 3578)
* gnutls_fips140_pop_context: Core TLS API. (line 3596)
* gnutls_fips140_push_context: Core TLS API. (line 3615)
* gnutls_fips140_run_self_tests: Core TLS API. (line 3638)
* gnutls_fips140_set_mode: Core TLS API. (line 3656)
* gnutls_get_library_config: Core TLS API. (line 3682)
* gnutls_get_system_config_file: System-wide configuration of the library.
(line 24)
* gnutls_get_system_config_file <1>: Core TLS API. (line 3711)
* gnutls_global_deinit: Core TLS API. (line 3723)
* gnutls_global_init: Core TLS API. (line 3736)
* gnutls_global_set_audit_log_function: Debugging and auditing.
(line 65)
* gnutls_global_set_audit_log_function <1>: Core TLS API. (line 3765)
* gnutls_global_set_log_function: Core TLS API. (line 3784)
* gnutls_global_set_log_level: Core TLS API. (line 3799)
* gnutls_global_set_mem_functions: Compatibility API. (line 60)
* gnutls_global_set_mutex: Core TLS API. (line 3812)
* gnutls_global_set_time_function: Core TLS API. (line 3841)
* gnutls_gost_paramset_get_name: Core TLS API. (line 3855)
* gnutls_gost_paramset_get_oid: Core TLS API. (line 3869)
* gnutls_group_get: Core TLS API. (line 3883)
* gnutls_group_get_id: Core TLS API. (line 3896)
* gnutls_group_get_name: Core TLS API. (line 3909)
* gnutls_group_list: Core TLS API. (line 3922)
* gnutls_handshake: TLS handshake. (line 10)
* gnutls_handshake <1>: Core TLS API. (line 3936)
* gnutls_handshake_description_get_name: Core TLS API. (line 3979)
* gnutls_handshake_get_last_in: Core TLS API. (line 3991)
* gnutls_handshake_get_last_out: Core TLS API. (line 4008)
* gnutls_handshake_set_hook_function: Virtual hosts and credentials.
(line 56)
* gnutls_handshake_set_hook_function <1>: Core TLS API. (line 4025)
* gnutls_handshake_set_max_packet_length: Core TLS API. (line 4062)
* gnutls_handshake_set_post_client_hello_function: Core TLS API.
(line 4083)
* gnutls_handshake_set_private_extensions: Core TLS API. (line 4114)
* gnutls_handshake_set_random: Core TLS API. (line 4133)
* gnutls_handshake_set_read_function: Core TLS API. (line 4155)
* gnutls_handshake_set_secret_function: Core TLS API. (line 4169)
* gnutls_handshake_set_timeout: TLS handshake. (line 50)
* gnutls_handshake_set_timeout <1>: Core TLS API. (line 4183)
* gnutls_handshake_write: Core TLS API. (line 4203)
* gnutls_hash: Cryptographic API. (line 831)
* gnutls_hash_copy: Cryptographic API. (line 849)
* gnutls_hash_deinit: Cryptographic API. (line 868)
* gnutls_hash_fast: Cryptographic API. (line 882)
* gnutls_hash_get_len: Cryptographic API. (line 902)
* gnutls_hash_init: Cryptographic API. (line 916)
* gnutls_hash_output: Cryptographic API. (line 934)
* gnutls_heartbeat_allowed: Core TLS API. (line 4224)
* gnutls_heartbeat_enable: Core TLS API. (line 4241)
* gnutls_heartbeat_get_timeout: Core TLS API. (line 4265)
* gnutls_heartbeat_ping: Core TLS API. (line 4281)
* gnutls_heartbeat_pong: Core TLS API. (line 4313)
* gnutls_heartbeat_set_timeouts: Core TLS API. (line 4329)
* gnutls_hex2bin: Core TLS API. (line 4351)
* gnutls_hex_decode: Core TLS API. (line 4374)
* gnutls_hex_decode2: Core TLS API. (line 4396)
* gnutls_hex_encode: Core TLS API. (line 4411)
* gnutls_hex_encode2: Core TLS API. (line 4430)
* gnutls_hkdf_expand: Cryptographic API. (line 948)
* gnutls_hkdf_extract: Cryptographic API. (line 972)
* gnutls_hmac: Cryptographic API. (line 993)
* gnutls_hmac_copy: Cryptographic API. (line 1011)
* gnutls_hmac_deinit: Cryptographic API. (line 1029)
* gnutls_hmac_fast: Cryptographic API. (line 1043)
* gnutls_hmac_get_key_size: Cryptographic API. (line 1069)
* gnutls_hmac_get_len: Cryptographic API. (line 1084)
* gnutls_hmac_init: Cryptographic API. (line 1098)
* gnutls_hmac_output: Cryptographic API. (line 1124)
* gnutls_hmac_set_nonce: Cryptographic API. (line 1138)
* gnutls_idna_map: Core TLS API. (line 4448)
* gnutls_idna_reverse_map: Core TLS API. (line 4479)
* gnutls_init: Session initialization.
(line 14)
* gnutls_init <1>: Core TLS API. (line 4505)
* gnutls_key_generate: Core TLS API. (line 4528)
* gnutls_kx_get: Core TLS API. (line 4545)
* gnutls_kx_get_id: Core TLS API. (line 4562)
* gnutls_kx_get_name: Core TLS API. (line 4574)
* gnutls_kx_list: Core TLS API. (line 4586)
* gnutls_load_file: Core TLS API. (line 4598)
* gnutls_mac_get: Core TLS API. (line 4621)
* gnutls_mac_get_id: Core TLS API. (line 4633)
* gnutls_mac_get_key_size: Core TLS API. (line 4646)
* gnutls_mac_get_name: Core TLS API. (line 4658)
* gnutls_mac_get_nonce_size: Cryptographic API. (line 1153)
* gnutls_mac_list: Core TLS API. (line 4670)
* gnutls_memcmp: Core TLS API. (line 4682)
* gnutls_memset: Core TLS API. (line 4703)
* gnutls_ocsp_req_add_cert: OCSP API. (line 12)
* gnutls_ocsp_req_add_cert_id: OCSP API. (line 36)
* gnutls_ocsp_req_deinit: OCSP API. (line 69)
* gnutls_ocsp_req_export: OCSP API. (line 77)
* gnutls_ocsp_req_get_cert_id: OCSP API. (line 91)
* gnutls_ocsp_req_get_extension: OCSP API. (line 131)
* gnutls_ocsp_req_get_nonce: OCSP API. (line 168)
* gnutls_ocsp_req_get_version: OCSP API. (line 187)
* gnutls_ocsp_req_import: OCSP API. (line 200)
* gnutls_ocsp_req_init: OCSP API. (line 216)
* gnutls_ocsp_req_print: OCSP API. (line 227)
* gnutls_ocsp_req_randomize_nonce: OCSP API. (line 250)
* gnutls_ocsp_req_set_extension: OCSP API. (line 263)
* gnutls_ocsp_req_set_nonce: OCSP API. (line 284)
* gnutls_ocsp_resp_check_crt: OCSP API. (line 302)
* gnutls_ocsp_resp_deinit: OCSP API. (line 322)
* gnutls_ocsp_resp_export: OCSP API. (line 330)
* gnutls_ocsp_resp_export2: OCSP API. (line 344)
* gnutls_ocsp_resp_get_certs: OCSP API. (line 363)
* gnutls_ocsp_resp_get_extension: OCSP API. (line 390)
* gnutls_ocsp_resp_get_nonce: OCSP API. (line 427)
* gnutls_ocsp_resp_get_produced: OCSP API. (line 447)
* gnutls_ocsp_resp_get_responder: OCSP API. (line 459)
* gnutls_ocsp_resp_get_responder2: OCSP API. (line 486)
* gnutls_ocsp_resp_get_responder_raw_id: OCSP API. (line 517)
* gnutls_ocsp_resp_get_response: OCSP API. (line 541)
* gnutls_ocsp_resp_get_signature: OCSP API. (line 571)
* gnutls_ocsp_resp_get_signature_algorithm: OCSP API. (line 585)
* gnutls_ocsp_resp_get_single: OCSP certificate status checking.
(line 158)
* gnutls_ocsp_resp_get_single <1>: OCSP API. (line 599)
* gnutls_ocsp_resp_get_status: OCSP API. (line 650)
* gnutls_ocsp_resp_get_version: OCSP API. (line 663)
* gnutls_ocsp_resp_import: OCSP API. (line 676)
* gnutls_ocsp_resp_import2: OCSP API. (line 692)
* gnutls_ocsp_resp_init: OCSP API. (line 712)
* gnutls_ocsp_resp_list_import2: OCSP API. (line 723)
* gnutls_ocsp_resp_print: OCSP API. (line 757)
* gnutls_ocsp_resp_verify: OCSP API. (line 780)
* gnutls_ocsp_resp_verify_direct: OCSP API. (line 818)
* gnutls_ocsp_status_request_enable_client: Core TLS API. (line 4718)
* gnutls_ocsp_status_request_get: Core TLS API. (line 4746)
* gnutls_ocsp_status_request_get2: Core TLS API. (line 4765)
* gnutls_ocsp_status_request_is_checked: Core TLS API. (line 4791)
* gnutls_oid_to_digest: Core TLS API. (line 4825)
* gnutls_oid_to_ecc_curve: Core TLS API. (line 4840)
* gnutls_oid_to_gost_paramset: Core TLS API. (line 4852)
* gnutls_oid_to_mac: Core TLS API. (line 4867)
* gnutls_oid_to_pk: Core TLS API. (line 4882)
* gnutls_oid_to_sign: Core TLS API. (line 4896)
* gnutls_openpgp_privkey_sign_hash: Compatibility API. (line 95)
* gnutls_openpgp_send_cert: Core TLS API. (line 4911)
* gnutls_packet_deinit: Core TLS API. (line 4924)
* gnutls_packet_get: Core TLS API. (line 4935)
* gnutls_pbkdf2: Cryptographic API. (line 1166)
* gnutls_pcert_deinit: Abstract key API. (line 176)
* gnutls_pcert_export_openpgp: Abstract key API. (line 186)
* gnutls_pcert_export_x509: Abstract key API. (line 201)
* gnutls_pcert_import_openpgp: Abstract key API. (line 221)
* gnutls_pcert_import_openpgp_raw: Abstract key API. (line 238)
* gnutls_pcert_import_rawpk: Abstract key API. (line 260)
* gnutls_pcert_import_rawpk_raw: Abstract key API. (line 284)
* gnutls_pcert_import_x509: Abstract key API. (line 318)
* gnutls_pcert_import_x509_list: Abstract key API. (line 338)
* gnutls_pcert_import_x509_raw: Abstract key API. (line 370)
* gnutls_pcert_list_import_x509_file: Abstract key API. (line 393)
* gnutls_pcert_list_import_x509_raw: Abstract key API. (line 430)
* gnutls_pem_base64_decode: Core TLS API. (line 4953)
* gnutls_pem_base64_decode2: Core TLS API. (line 4977)
* gnutls_pem_base64_encode: Core TLS API. (line 5005)
* gnutls_pem_base64_encode2: Core TLS API. (line 5028)
* gnutls_perror: Core TLS API. (line 5056)
* gnutls_pkcs11_add_provider: PKCS11 Manual Initialization.
(line 13)
* gnutls_pkcs11_add_provider <1>: PKCS 11 API. (line 12)
* gnutls_pkcs11_copy_attached_extension: PKCS 11 API. (line 35)
* gnutls_pkcs11_copy_pubkey: PKCS 11 API. (line 62)
* gnutls_pkcs11_copy_secret_key: PKCS 11 API. (line 94)
* gnutls_pkcs11_copy_x509_crt: PKCS 11 API. (line 119)
* gnutls_pkcs11_copy_x509_crt2: Writing objects. (line 41)
* gnutls_pkcs11_copy_x509_crt2 <1>: PKCS 11 API. (line 141)
* gnutls_pkcs11_copy_x509_privkey: PKCS 11 API. (line 170)
* gnutls_pkcs11_copy_x509_privkey2: Writing objects. (line 13)
* gnutls_pkcs11_copy_x509_privkey2 <1>: PKCS 11 API. (line 197)
* gnutls_pkcs11_crt_is_known: PKCS 11 API. (line 228)
* gnutls_pkcs11_deinit: PKCS 11 API. (line 259)
* gnutls_pkcs11_delete_url: Writing objects. (line 67)
* gnutls_pkcs11_delete_url <1>: PKCS 11 API. (line 270)
* gnutls_pkcs11_get_pin_function: PKCS 11 API. (line 287)
* gnutls_pkcs11_get_raw_issuer: PKCS 11 API. (line 301)
* gnutls_pkcs11_get_raw_issuer_by_dn: PKCS 11 API. (line 327)
* gnutls_pkcs11_get_raw_issuer_by_subject_key_id: PKCS 11 API.
(line 356)
* gnutls_pkcs11_init: PKCS11 Manual Initialization.
(line 38)
* gnutls_pkcs11_init <1>: PKCS 11 API. (line 388)
* gnutls_pkcs11_obj_deinit: PKCS 11 API. (line 415)
* gnutls_pkcs11_obj_export: PKCS 11 API. (line 425)
* gnutls_pkcs11_obj_export2: PKCS 11 API. (line 450)
* gnutls_pkcs11_obj_export3: PKCS 11 API. (line 470)
* gnutls_pkcs11_obj_export_url: PKCS 11 API. (line 492)
* gnutls_pkcs11_obj_flags_get_str: PKCS 11 API. (line 510)
* gnutls_pkcs11_obj_get_exts: PKCS 11 API. (line 526)
* gnutls_pkcs11_obj_get_flags: PKCS 11 API. (line 554)
* gnutls_pkcs11_obj_get_info: Reading objects. (line 28)
* gnutls_pkcs11_obj_get_info <1>: PKCS 11 API. (line 572)
* gnutls_pkcs11_obj_get_ptr: PKCS11 Low Level Access.
(line 31)
* gnutls_pkcs11_obj_get_ptr <1>: PKCS 11 API. (line 606)
* gnutls_pkcs11_obj_get_type: PKCS 11 API. (line 633)
* gnutls_pkcs11_obj_import_url: PKCS 11 API. (line 647)
* gnutls_pkcs11_obj_init: PKCS 11 API. (line 673)
* gnutls_pkcs11_obj_list_import_url3: PKCS 11 API. (line 686)
* gnutls_pkcs11_obj_list_import_url4: PKCS 11 API. (line 733)
* gnutls_pkcs11_obj_set_info: PKCS 11 API. (line 775)
* gnutls_pkcs11_obj_set_pin_function: PKCS 11 API. (line 800)
* gnutls_pkcs11_privkey_cpy: PKCS 11 API. (line 818)
* gnutls_pkcs11_privkey_deinit: PKCS 11 API. (line 835)
* gnutls_pkcs11_privkey_export_pubkey: PKCS 11 API. (line 844)
* gnutls_pkcs11_privkey_export_url: PKCS 11 API. (line 869)
* gnutls_pkcs11_privkey_generate: PKCS 11 API. (line 886)
* gnutls_pkcs11_privkey_generate2: PKCS 11 API. (line 911)
* gnutls_pkcs11_privkey_generate3: PKCS 11 API. (line 947)
* gnutls_pkcs11_privkey_get_info: PKCS 11 API. (line 991)
* gnutls_pkcs11_privkey_get_pk_algorithm: PKCS 11 API. (line 1014)
* gnutls_pkcs11_privkey_import_url: PKCS 11 API. (line 1030)
* gnutls_pkcs11_privkey_init: PKCS 11 API. (line 1050)
* gnutls_pkcs11_privkey_set_pin_function: PKCS 11 API. (line 1068)
* gnutls_pkcs11_privkey_status: PKCS 11 API. (line 1086)
* gnutls_pkcs11_reinit: PKCS 11 API. (line 1100)
* gnutls_pkcs11_set_pin_function: PKCS 11 API. (line 1117)
* gnutls_pkcs11_set_token_function: PKCS 11 API. (line 1132)
* gnutls_pkcs11_token_check_mechanism: PKCS 11 API. (line 1146)
* gnutls_pkcs11_token_get_flags: PKCS 11 API. (line 1171)
* gnutls_pkcs11_token_get_info: PKCS 11 API. (line 1191)
* gnutls_pkcs11_token_get_mechanism: PKCS 11 API. (line 1220)
* gnutls_pkcs11_token_get_ptr: PKCS11 Low Level Access.
(line 12)
* gnutls_pkcs11_token_get_ptr <1>: PKCS 11 API. (line 1240)
* gnutls_pkcs11_token_get_random: PKCS 11 API. (line 1262)
* gnutls_pkcs11_token_get_url: PKCS 11 API. (line 1280)
* gnutls_pkcs11_token_init: PKCS 11 API. (line 1300)
* gnutls_pkcs11_token_set_pin: PKCS 11 API. (line 1319)
* gnutls_pkcs11_type_get_name: PKCS 11 API. (line 1342)
* gnutls_pkcs12_bag_decrypt: PKCS 12 API. (line 12)
* gnutls_pkcs12_bag_deinit: PKCS 12 API. (line 27)
* gnutls_pkcs12_bag_encrypt: PKCS 12 API. (line 71)
* gnutls_pkcs12_bag_enc_info: PKCS 12 API. (line 35)
* gnutls_pkcs12_bag_get_count: PKCS 12 API. (line 88)
* gnutls_pkcs12_bag_get_data: PKCS 12 API. (line 100)
* gnutls_pkcs12_bag_get_friendly_name: PKCS 12 API. (line 118)
* gnutls_pkcs12_bag_get_key_id: PKCS 12 API. (line 137)
* gnutls_pkcs12_bag_get_type: PKCS 12 API. (line 156)
* gnutls_pkcs12_bag_init: PKCS 12 API. (line 170)
* gnutls_pkcs12_bag_set_crl: PKCS 12 API. (line 183)
* gnutls_pkcs12_bag_set_crt: PKCS 12 API. (line 198)
* gnutls_pkcs12_bag_set_data: PKCS 12 API. (line 213)
* gnutls_pkcs12_bag_set_friendly_name: PKCS 12 API. (line 230)
* gnutls_pkcs12_bag_set_key_id: PKCS 12 API. (line 250)
* gnutls_pkcs12_bag_set_privkey: PKCS 12 API. (line 270)
* gnutls_pkcs12_deinit: PKCS 12 API. (line 291)
* gnutls_pkcs12_export: PKCS 12 API. (line 299)
* gnutls_pkcs12_export2: PKCS 12 API. (line 327)
* gnutls_pkcs12_generate_mac: PKCS 12 API. (line 351)
* gnutls_pkcs12_generate_mac2: PKCS 12 API. (line 365)
* gnutls_pkcs12_get_bag: PKCS 12 API. (line 381)
* gnutls_pkcs12_import: PKCS 12 API. (line 401)
* gnutls_pkcs12_init: PKCS 12 API. (line 424)
* gnutls_pkcs12_mac_info: PKCS 12 API. (line 437)
* gnutls_pkcs12_set_bag: PKCS 12 API. (line 470)
* gnutls_pkcs12_simple_parse: Managing encrypted keys.
(line 159)
* gnutls_pkcs12_simple_parse <1>: PKCS 12 API. (line 484)
* gnutls_pkcs12_verify_mac: PKCS 12 API. (line 551)
* gnutls_pkcs7_add_attr: PKCS 7 API. (line 12)
* gnutls_pkcs7_attrs_deinit: PKCS 7 API. (line 36)
* gnutls_pkcs7_deinit: PKCS 7 API. (line 46)
* gnutls_pkcs7_delete_crl: PKCS 7 API. (line 54)
* gnutls_pkcs7_delete_crt: PKCS 7 API. (line 69)
* gnutls_pkcs7_export: PKCS 7 API. (line 84)
* gnutls_pkcs7_export2: PKCS 7 API. (line 111)
* gnutls_pkcs7_get_attr: PKCS 7 API. (line 134)
* gnutls_pkcs7_get_crl_count: PKCS 7 API. (line 161)
* gnutls_pkcs7_get_crl_raw: PKCS 7 API. (line 173)
* gnutls_pkcs7_get_crl_raw2: PKCS 7 API. (line 194)
* gnutls_pkcs7_get_crt_count: PKCS 7 API. (line 214)
* gnutls_pkcs7_get_crt_raw: PKCS 7 API. (line 226)
* gnutls_pkcs7_get_crt_raw2: PKCS 7 API. (line 251)
* gnutls_pkcs7_get_embedded_data: PKCS 7 API. (line 276)
* gnutls_pkcs7_get_embedded_data_oid: PKCS 7 API. (line 303)
* gnutls_pkcs7_get_signature_count: PKCS 7 API. (line 319)
* gnutls_pkcs7_get_signature_info: PKCS 7 API. (line 334)
* gnutls_pkcs7_import: PKCS 7 API. (line 355)
* gnutls_pkcs7_init: PKCS 7 API. (line 377)
* gnutls_pkcs7_print: PKCS 7 API. (line 390)
* gnutls_pkcs7_print_signature_info: PKCS 7 API. (line 413)
* gnutls_pkcs7_set_crl: PKCS 7 API. (line 439)
* gnutls_pkcs7_set_crl_raw: PKCS 7 API. (line 454)
* gnutls_pkcs7_set_crt: PKCS 7 API. (line 468)
* gnutls_pkcs7_set_crt_raw: PKCS 7 API. (line 484)
* gnutls_pkcs7_sign: Cryptographic Message Syntax / PKCS7.
(line 35)
* gnutls_pkcs7_sign <1>: PKCS 7 API. (line 499)
* gnutls_pkcs7_signature_info_deinit: PKCS 7 API. (line 540)
* gnutls_pkcs7_verify: PKCS 7 API. (line 552)
* gnutls_pkcs7_verify_direct: PKCS 7 API. (line 585)
* gnutls_pkcs8_info: X509 certificate API.
(line 79)
* gnutls_pkcs_schema_get_name: X509 certificate API.
(line 119)
* gnutls_pkcs_schema_get_oid: X509 certificate API.
(line 134)
* gnutls_pk_algorithm_get_name: Core TLS API. (line 5065)
* gnutls_pk_bits_to_sec_param: Selecting cryptographic key sizes.
(line 92)
* gnutls_pk_bits_to_sec_param <1>: Core TLS API. (line 5077)
* gnutls_pk_get_id: Core TLS API. (line 5094)
* gnutls_pk_get_name: Core TLS API. (line 5109)
* gnutls_pk_get_oid: Core TLS API. (line 5123)
* gnutls_pk_list: Core TLS API. (line 5138)
* gnutls_pk_to_sign: Core TLS API. (line 5152)
* gnutls_prf: Core TLS API. (line 5167)
* gnutls_prf_early: Core TLS API. (line 5217)
* gnutls_prf_hash_get: Core TLS API. (line 5262)
* gnutls_prf_raw: Core TLS API. (line 5279)
* gnutls_prf_rfc5705: Deriving keys for other applications/protocols.
(line 16)
* gnutls_prf_rfc5705 <1>: Core TLS API. (line 5324)
* gnutls_priority_certificate_type_list: Core TLS API. (line 5371)
* gnutls_priority_certificate_type_list2: Core TLS API. (line 5392)
* gnutls_priority_cipher_list: Core TLS API. (line 5412)
* gnutls_priority_compression_list: Compatibility API. (line 111)
* gnutls_priority_deinit: Core TLS API. (line 5427)
* gnutls_priority_ecc_curve_list: Core TLS API. (line 5436)
* gnutls_priority_get_cipher_suite_index: Core TLS API. (line 5454)
* gnutls_priority_group_list: Core TLS API. (line 5479)
* gnutls_priority_init: Core TLS API. (line 5494)
* gnutls_priority_init2: Core TLS API. (line 5522)
* gnutls_priority_kx_list: Core TLS API. (line 5630)
* gnutls_priority_mac_list: Core TLS API. (line 5646)
* gnutls_priority_protocol_list: Core TLS API. (line 5661)
* gnutls_priority_set: Core TLS API. (line 5677)
* gnutls_priority_set_direct: Core TLS API. (line 5695)
* gnutls_priority_sign_list: Core TLS API. (line 5719)
* gnutls_priority_string_list: Core TLS API. (line 5735)
* gnutls_privkey_decrypt_data: Operations. (line 144)
* gnutls_privkey_decrypt_data <1>: Abstract key API. (line 465)
* gnutls_privkey_decrypt_data2: Abstract key API. (line 488)
* gnutls_privkey_deinit: Abstract key API. (line 515)
* gnutls_privkey_export_dsa_raw: Abstract key API. (line 525)
* gnutls_privkey_export_dsa_raw2: Abstract key API. (line 552)
* gnutls_privkey_export_ecc_raw: Abstract key API. (line 581)
* gnutls_privkey_export_ecc_raw2: Abstract key API. (line 609)
* gnutls_privkey_export_gost_raw2: Abstract key API. (line 639)
* gnutls_privkey_export_openpgp: Abstract key API. (line 675)
* gnutls_privkey_export_pkcs11: Abstract key API. (line 690)
* gnutls_privkey_export_rsa_raw: Abstract key API. (line 709)
* gnutls_privkey_export_rsa_raw2: Abstract key API. (line 744)
* gnutls_privkey_export_x509: Abstract key API. (line 780)
* gnutls_privkey_generate: Abstract key API. (line 800)
* gnutls_privkey_generate2: Public key algorithms.
(line 43)
* gnutls_privkey_generate2 <1>: Abstract key API. (line 841)
* gnutls_privkey_get_pk_algorithm: Abstract key API. (line 892)
* gnutls_privkey_get_seed: Abstract key API. (line 911)
* gnutls_privkey_get_spki: Abstract key API. (line 936)
* gnutls_privkey_get_type: Abstract key API. (line 956)
* gnutls_privkey_import_dsa_raw: Abstract key API. (line 971)
* gnutls_privkey_import_ecc_raw: Abstract key API. (line 997)
* gnutls_privkey_import_ext: Abstract key API. (line 1025)
* gnutls_privkey_import_ext2: Abstract key API. (line 1060)
* gnutls_privkey_import_ext3: Abstract key API. (line 1099)
* gnutls_privkey_import_ext4: Abstract private keys.
(line 50)
* gnutls_privkey_import_ext4 <1>: Abstract key API. (line 1142)
* gnutls_privkey_import_gost_raw: Abstract key API. (line 1207)
* gnutls_privkey_import_openpgp: Abstract key API. (line 1243)
* gnutls_privkey_import_openpgp_raw: Abstract key API. (line 1260)
* gnutls_privkey_import_pkcs11: Abstract key API. (line 1283)
* gnutls_privkey_import_pkcs11_url: Abstract key API. (line 1309)
* gnutls_privkey_import_rsa_raw: Abstract key API. (line 1326)
* gnutls_privkey_import_tpm_raw: Abstract key API. (line 1359)
* gnutls_privkey_import_tpm_url: Using keys. (line 16)
* gnutls_privkey_import_tpm_url <1>: Abstract key API. (line 1389)
* gnutls_privkey_import_url: Abstract private keys.
(line 24)
* gnutls_privkey_import_url <1>: Abstract key API. (line 1420)
* gnutls_privkey_import_x509: Abstract key API. (line 1440)
* gnutls_privkey_import_x509_raw: Managing encrypted keys.
(line 27)
* gnutls_privkey_import_x509_raw <1>: Abstract key API. (line 1466)
* gnutls_privkey_init: Abstract key API. (line 1493)
* gnutls_privkey_set_flags: Abstract key API. (line 1516)
* gnutls_privkey_set_pin_function: Abstract key API. (line 1532)
* gnutls_privkey_set_spki: Abstract key API. (line 1552)
* gnutls_privkey_sign_data: Operations. (line 80)
* gnutls_privkey_sign_data <1>: Abstract key API. (line 1572)
* gnutls_privkey_sign_data2: Abstract key API. (line 1603)
* gnutls_privkey_sign_hash: Operations. (line 108)
* gnutls_privkey_sign_hash <1>: Abstract key API. (line 1631)
* gnutls_privkey_sign_hash2: Abstract key API. (line 1670)
* gnutls_privkey_status: Abstract key API. (line 1705)
* gnutls_privkey_verify_params: Abstract key API. (line 1721)
* gnutls_privkey_verify_seed: Abstract key API. (line 1734)
* gnutls_protocol_get_id: Core TLS API. (line 5755)
* gnutls_protocol_get_name: Core TLS API. (line 5767)
* gnutls_protocol_get_version: Core TLS API. (line 5779)
* gnutls_protocol_list: Core TLS API. (line 5790)
* gnutls_protocol_set_enabled: Core TLS API. (line 5802)
* gnutls_psk_allocate_client_credentials: Core TLS API. (line 5827)
* gnutls_psk_allocate_server_credentials: Core TLS API. (line 5839)
* gnutls_psk_client_get_hint: Core TLS API. (line 5851)
* gnutls_psk_free_client_credentials: Core TLS API. (line 5870)
* gnutls_psk_free_server_credentials: Core TLS API. (line 5879)
* gnutls_psk_server_get_username: Core TLS API. (line 5888)
* gnutls_psk_server_get_username2: Core TLS API. (line 5908)
* gnutls_psk_set_client_credentials: Core TLS API. (line 5929)
* gnutls_psk_set_client_credentials2: Core TLS API. (line 5955)
* gnutls_psk_set_client_credentials_function: PSK credentials.
(line 22)
* gnutls_psk_set_client_credentials_function <1>: Core TLS API.
(line 5978)
* gnutls_psk_set_client_credentials_function2: Core TLS API. (line 6003)
* gnutls_psk_set_params_function: Core TLS API. (line 6032)
* gnutls_psk_set_server_credentials_file: PSK credentials. (line 59)
* gnutls_psk_set_server_credentials_file <1>: Core TLS API. (line 6050)
* gnutls_psk_set_server_credentials_function: Core TLS API. (line 6072)
* gnutls_psk_set_server_credentials_function2: Core TLS API. (line 6097)
* gnutls_psk_set_server_credentials_hint: Core TLS API. (line 6126)
* gnutls_psk_set_server_dh_params: Core TLS API. (line 6145)
* gnutls_psk_set_server_known_dh_params: Core TLS API. (line 6163)
* gnutls_psk_set_server_params_function: Core TLS API. (line 6187)
* gnutls_pubkey_deinit: Abstract key API. (line 1758)
* gnutls_pubkey_encrypt_data: Operations. (line 60)
* gnutls_pubkey_encrypt_data <1>: Abstract key API. (line 1768)
* gnutls_pubkey_export: Abstract key API. (line 1791)
* gnutls_pubkey_export2: Abstract public keys.
(line 24)
* gnutls_pubkey_export2 <1>: Abstract key API. (line 1822)
* gnutls_pubkey_export_dsa_raw: Abstract key API. (line 1847)
* gnutls_pubkey_export_dsa_raw2: Abstract key API. (line 1874)
* gnutls_pubkey_export_ecc_raw: Abstract key API. (line 1903)
* gnutls_pubkey_export_ecc_raw2: Abstract key API. (line 1931)
* gnutls_pubkey_export_ecc_x962: Abstract key API. (line 1961)
* gnutls_pubkey_export_gost_raw2: Abstract key API. (line 1981)
* gnutls_pubkey_export_rsa_raw: Abstract key API. (line 2015)
* gnutls_pubkey_export_rsa_raw2: Abstract key API. (line 2037)
* gnutls_pubkey_get_key_id: Abstract key API. (line 2061)
* gnutls_pubkey_get_key_usage: Abstract key API. (line 2090)
* gnutls_pubkey_get_openpgp_key_id: Abstract key API. (line 2107)
* gnutls_pubkey_get_pk_algorithm: Abstract key API. (line 2130)
* gnutls_pubkey_get_preferred_hash_algorithm: Abstract key API.
(line 2149)
* gnutls_pubkey_get_spki: Abstract key API. (line 2177)
* gnutls_pubkey_import: Abstract key API. (line 2197)
* gnutls_pubkey_import_dsa_raw: Abstract key API. (line 2218)
* gnutls_pubkey_import_ecc_raw: Abstract key API. (line 2243)
* gnutls_pubkey_import_ecc_x962: Abstract key API. (line 2268)
* gnutls_pubkey_import_gost_raw: Abstract key API. (line 2288)
* gnutls_pubkey_import_openpgp: Abstract key API. (line 2322)
* gnutls_pubkey_import_openpgp_raw: Abstract key API. (line 2339)
* gnutls_pubkey_import_pkcs11: Abstract key API. (line 2362)
* gnutls_pubkey_import_privkey: Abstract key API. (line 2381)
* gnutls_pubkey_import_rsa_raw: Abstract key API. (line 2405)
* gnutls_pubkey_import_tpm_raw: Abstract key API. (line 2425)
* gnutls_pubkey_import_tpm_url: Using keys. (line 44)
* gnutls_pubkey_import_tpm_url <1>: Abstract key API. (line 2452)
* gnutls_pubkey_import_url: Abstract key API. (line 2480)
* gnutls_pubkey_import_x509: Abstract key API. (line 2498)
* gnutls_pubkey_import_x509_crq: Abstract key API. (line 2517)
* gnutls_pubkey_import_x509_raw: Abstract key API. (line 2536)
* gnutls_pubkey_init: Abstract key API. (line 2558)
* gnutls_pubkey_print: Abstract key API. (line 2571)
* gnutls_pubkey_set_key_usage: Abstract key API. (line 2596)
* gnutls_pubkey_set_pin_function: Abstract key API. (line 2614)
* gnutls_pubkey_set_spki: Abstract key API. (line 2634)
* gnutls_pubkey_verify_data2: Operations. (line 9)
* gnutls_pubkey_verify_data2 <1>: Abstract key API. (line 2654)
* gnutls_pubkey_verify_hash2: Operations. (line 33)
* gnutls_pubkey_verify_hash2 <1>: Abstract key API. (line 2681)
* gnutls_pubkey_verify_params: Abstract key API. (line 2711)
* gnutls_random_art: Core TLS API. (line 6205)
* gnutls_range_split: Core TLS API. (line 6232)
* gnutls_reauth: Core TLS API. (line 6258)
* gnutls_record_can_use_length_hiding: Core TLS API. (line 6304)
* gnutls_record_check_corked: Core TLS API. (line 6322)
* gnutls_record_check_pending: Data transfer and termination.
(line 138)
* gnutls_record_check_pending <1>: Core TLS API. (line 6336)
* gnutls_record_cork: Buffered data transfer.
(line 12)
* gnutls_record_cork <1>: Core TLS API. (line 6349)
* gnutls_record_disable_padding: Core TLS API. (line 6363)
* gnutls_record_discard_queued: Core TLS API. (line 6378)
* gnutls_record_get_direction: Asynchronous operation.
(line 65)
* gnutls_record_get_direction <1>: Core TLS API. (line 6397)
* gnutls_record_get_discarded: Datagram TLS API. (line 209)
* gnutls_record_get_max_early_data_size: Core TLS API. (line 6420)
* gnutls_record_get_max_size: Core TLS API. (line 6436)
* gnutls_record_get_state: Core TLS API. (line 6448)
* gnutls_record_overhead_size: Core TLS API. (line 6479)
* gnutls_record_recv: Data transfer and termination.
(line 53)
* gnutls_record_recv <1>: Core TLS API. (line 6492)
* gnutls_record_recv_early_data: Core TLS API. (line 6524)
* gnutls_record_recv_packet: Core TLS API. (line 6552)
* gnutls_record_recv_seq: Data transfer and termination.
(line 108)
* gnutls_record_recv_seq <1>: Core TLS API. (line 6576)
* gnutls_record_send: Data transfer and termination.
(line 12)
* gnutls_record_send <1>: Core TLS API. (line 6603)
* gnutls_record_send2: On Record Padding. (line 23)
* gnutls_record_send2 <1>: Core TLS API. (line 6647)
* gnutls_record_send_early_data: Core TLS API. (line 6680)
* gnutls_record_send_file: Core TLS API. (line 6708)
* gnutls_record_send_range: Core TLS API. (line 6737)
* gnutls_record_set_max_early_data_size: Core TLS API. (line 6766)
* gnutls_record_set_max_recv_size: Core TLS API. (line 6785)
* gnutls_record_set_max_size: Core TLS API. (line 6807)
* gnutls_record_set_state: Core TLS API. (line 6836)
* gnutls_record_set_timeout: Core TLS API. (line 6857)
* gnutls_record_uncork: Buffered data transfer.
(line 23)
* gnutls_record_uncork <1>: Core TLS API. (line 6876)
* gnutls_register_custom_url: Application-specific keys.
(line 69)
* gnutls_register_custom_url <1>: Abstract key API. (line 2724)
* gnutls_rehandshake: TLS 1.2 re-authentication.
(line 70)
* gnutls_rehandshake <1>: Core TLS API. (line 6901)
* gnutls_rnd: Random number generation.
(line 22)
* gnutls_rnd <1>: Cryptographic API. (line 1191)
* gnutls_rnd_refresh: Cryptographic API. (line 1213)
* gnutls_safe_renegotiation_status: TLS 1.2 re-authentication.
(line 44)
* gnutls_safe_renegotiation_status <1>: Core TLS API. (line 6941)
* gnutls_sec_param_get_name: Core TLS API. (line 6956)
* gnutls_sec_param_to_pk_bits: Selecting cryptographic key sizes.
(line 76)
* gnutls_sec_param_to_pk_bits <1>: Core TLS API. (line 6970)
* gnutls_sec_param_to_symmetric_bits: Core TLS API. (line 6989)
* gnutls_server_name_get: Core TLS API. (line 7003)
* gnutls_server_name_set: Core TLS API. (line 7042)
* gnutls_session_channel_binding: Core TLS API. (line 7073)
* gnutls_session_enable_compatibility_mode: Core TLS API. (line 7094)
* gnutls_session_etm_status: Core TLS API. (line 7114)
* gnutls_session_ext_master_secret_status: Core TLS API. (line 7127)
* gnutls_session_ext_register: Core TLS API. (line 7141)
* gnutls_session_force_valid: Core TLS API. (line 7197)
* gnutls_session_get_data: Core TLS API. (line 7208)
* gnutls_session_get_data2: Core TLS API. (line 7228)
* gnutls_session_get_desc: Core TLS API. (line 7276)
* gnutls_session_get_flags: Core TLS API. (line 7293)
* gnutls_session_get_id: Core TLS API. (line 7312)
* gnutls_session_get_id2: Session resumption. (line 49)
* gnutls_session_get_id2 <1>: Core TLS API. (line 7346)
* gnutls_session_get_keylog_function: Core TLS API. (line 7379)
* gnutls_session_get_master_secret: Core TLS API. (line 7393)
* gnutls_session_get_ptr: Core TLS API. (line 7409)
* gnutls_session_get_random: Core TLS API. (line 7421)
* gnutls_session_get_verify_cert_status: Core TLS API. (line 7441)
* gnutls_session_is_resumed: Session resumption. (line 40)
* gnutls_session_is_resumed <1>: Core TLS API. (line 7461)
* gnutls_session_key_update: Core TLS API. (line 7473)
* gnutls_session_resumption_requested: Session resumption. (line 150)
* gnutls_session_resumption_requested <1>: Core TLS API. (line 7500)
* gnutls_session_set_data: Core TLS API. (line 7513)
* gnutls_session_set_id: Core TLS API. (line 7536)
* gnutls_session_set_keylog_function: Core TLS API. (line 7557)
* gnutls_session_set_premaster: Core TLS API. (line 7571)
* gnutls_session_set_ptr: Core TLS API. (line 7606)
* gnutls_session_set_verify_cert: Certificate credentials.
(line 267)
* gnutls_session_set_verify_cert <1>: Core TLS API. (line 7619)
* gnutls_session_set_verify_cert2: Core TLS API. (line 7652)
* gnutls_session_set_verify_function: Core TLS API. (line 7684)
* gnutls_session_set_verify_output_function: X509 certificate API.
(line 149)
* gnutls_session_supplemental_register: Core TLS API. (line 7713)
* gnutls_session_ticket_enable_client: Core TLS API. (line 7749)
* gnutls_session_ticket_enable_server: Session resumption. (line 117)
* gnutls_session_ticket_enable_server <1>: Core TLS API. (line 7765)
* gnutls_session_ticket_key_generate: Session resumption. (line 137)
* gnutls_session_ticket_key_generate <1>: Core TLS API. (line 7788)
* gnutls_session_ticket_send: Session resumption. (line 170)
* gnutls_session_ticket_send <1>: Core TLS API. (line 7804)
* gnutls_set_default_priority: Core TLS API. (line 7822)
* gnutls_set_default_priority_append: Core TLS API. (line 7848)
* gnutls_sign_algorithm_get: Core TLS API. (line 7884)
* gnutls_sign_algorithm_get_client: Core TLS API. (line 7898)
* gnutls_sign_algorithm_get_requested: Core TLS API. (line 7913)
* gnutls_sign_get_hash_algorithm: Core TLS API. (line 7940)
* gnutls_sign_get_id: Core TLS API. (line 7955)
* gnutls_sign_get_name: Core TLS API. (line 7967)
* gnutls_sign_get_oid: Core TLS API. (line 7979)
* gnutls_sign_get_pk_algorithm: Core TLS API. (line 7993)
* gnutls_sign_is_secure: Core TLS API. (line 8011)
* gnutls_sign_is_secure2: Core TLS API. (line 8021)
* gnutls_sign_list: Core TLS API. (line 8033)
* gnutls_sign_set_secure: Core TLS API. (line 8044)
* gnutls_sign_set_secure_for_certs: Core TLS API. (line 8073)
* gnutls_sign_supports_pk_algorithm: Core TLS API. (line 8103)
* gnutls_srp_allocate_client_credentials: Core TLS API. (line 8121)
* gnutls_srp_allocate_server_credentials: Core TLS API. (line 8133)
* gnutls_srp_base64_decode: Core TLS API. (line 8145)
* gnutls_srp_base64_decode2: Core TLS API. (line 8167)
* gnutls_srp_base64_encode: Core TLS API. (line 8187)
* gnutls_srp_base64_encode2: Core TLS API. (line 8209)
* gnutls_srp_free_client_credentials: Core TLS API. (line 8230)
* gnutls_srp_free_server_credentials: Core TLS API. (line 8239)
* gnutls_srp_server_get_username: Core TLS API. (line 8248)
* gnutls_srp_set_client_credentials: Core TLS API. (line 8261)
* gnutls_srp_set_client_credentials_function: SRP credentials.
(line 19)
* gnutls_srp_set_client_credentials_function <1>: Core TLS API.
(line 8284)
* gnutls_srp_set_prime_bits: Core TLS API. (line 8317)
* gnutls_srp_set_server_credentials_file: SRP credentials. (line 56)
* gnutls_srp_set_server_credentials_file <1>: Core TLS API. (line 8338)
* gnutls_srp_set_server_credentials_function: SRP credentials.
(line 72)
* gnutls_srp_set_server_credentials_function <1>: Core TLS API.
(line 8357)
* gnutls_srp_set_server_fake_salt_seed: Core TLS API. (line 8395)
* gnutls_srp_verifier: Authentication using SRP.
(line 45)
* gnutls_srp_verifier <1>: Core TLS API. (line 8432)
* gnutls_srtp_get_keys: SRTP. (line 32)
* gnutls_srtp_get_keys <1>: Core TLS API. (line 8461)
* gnutls_srtp_get_mki: Core TLS API. (line 8499)
* gnutls_srtp_get_profile_id: Core TLS API. (line 8517)
* gnutls_srtp_get_profile_name: Core TLS API. (line 8533)
* gnutls_srtp_get_selected_profile: Core TLS API. (line 8548)
* gnutls_srtp_set_mki: Core TLS API. (line 8564)
* gnutls_srtp_set_profile: Core TLS API. (line 8581)
* gnutls_srtp_set_profile_direct: Core TLS API. (line 8598)
* gnutls_store_commitment: Certificate verification.
(line 115)
* gnutls_store_commitment <1>: Core TLS API. (line 8619)
* gnutls_store_pubkey: Certificate verification.
(line 64)
* gnutls_store_pubkey <1>: Core TLS API. (line 8659)
* gnutls_strerror: Core TLS API. (line 8708)
* gnutls_strerror_name: Core TLS API. (line 8722)
* gnutls_subject_alt_names_deinit: X509 certificate API.
(line 178)
* gnutls_subject_alt_names_get: X509 certificate API.
(line 189)
* gnutls_subject_alt_names_init: X509 certificate API.
(line 218)
* gnutls_subject_alt_names_set: X509 certificate API.
(line 232)
* gnutls_supplemental_get_name: Core TLS API. (line 8737)
* gnutls_supplemental_recv: Core TLS API. (line 8750)
* gnutls_supplemental_register: Core TLS API. (line 8765)
* gnutls_supplemental_send: Core TLS API. (line 8796)
* gnutls_system_key_add_x509: Abstract key API. (line 2750)
* gnutls_system_key_delete: Abstract key API. (line 2776)
* gnutls_system_key_iter_deinit: Abstract key API. (line 2792)
* gnutls_system_key_iter_get_info: Application-specific keys.
(line 20)
* gnutls_system_key_iter_get_info <1>: Abstract key API. (line 2803)
* gnutls_system_recv_timeout: Core TLS API. (line 8810)
* gnutls_tdb_deinit: Core TLS API. (line 8833)
* gnutls_tdb_init: Core TLS API. (line 8842)
* gnutls_tdb_set_store_commitment_func: Core TLS API. (line 8853)
* gnutls_tdb_set_store_func: Core TLS API. (line 8873)
* gnutls_tdb_set_verify_func: Core TLS API. (line 8892)
* gnutls_tpm_get_registered: TPM API. (line 12)
* gnutls_tpm_key_list_deinit: TPM API. (line 27)
* gnutls_tpm_key_list_get_url: TPM API. (line 38)
* gnutls_tpm_privkey_delete: Key generation. (line 52)
* gnutls_tpm_privkey_delete <1>: Using keys. (line 82)
* gnutls_tpm_privkey_delete <2>: TPM API. (line 60)
* gnutls_tpm_privkey_generate: Key generation. (line 9)
* gnutls_tpm_privkey_generate <1>: TPM API. (line 76)
* gnutls_transport_get_int: Core TLS API. (line 8914)
* gnutls_transport_get_int2: Core TLS API. (line 8928)
* gnutls_transport_get_ptr: Core TLS API. (line 8945)
* gnutls_transport_get_ptr2: Core TLS API. (line 8958)
* gnutls_transport_is_ktls_enabled: Socket specific API.
(line 11)
* gnutls_transport_set_errno: Setting up the transport layer.
(line 116)
* gnutls_transport_set_errno <1>: Core TLS API. (line 8974)
* gnutls_transport_set_errno_function: Core TLS API. (line 8997)
* gnutls_transport_set_fastopen: Reducing round-trips.
(line 22)
* gnutls_transport_set_fastopen <1>: Socket specific API.
(line 25)
* gnutls_transport_set_int: Core TLS API. (line 9015)
* gnutls_transport_set_int2: Core TLS API. (line 9033)
* gnutls_transport_set_ptr: Core TLS API. (line 9055)
* gnutls_transport_set_ptr2: Core TLS API. (line 9068)
* gnutls_transport_set_pull_function: Setting up the transport layer.
(line 56)
* gnutls_transport_set_pull_function <1>: Core TLS API. (line 9085)
* gnutls_transport_set_pull_timeout_function: Setting up the transport layer.
(line 71)
* gnutls_transport_set_pull_timeout_function <1>: Setting up the transport layer.
(line 156)
* gnutls_transport_set_pull_timeout_function <2>: Core TLS API.
(line 9103)
* gnutls_transport_set_push_function: Setting up the transport layer.
(line 23)
* gnutls_transport_set_push_function <1>: Core TLS API. (line 9143)
* gnutls_transport_set_vec_push_function: Setting up the transport layer.
(line 40)
* gnutls_transport_set_vec_push_function <1>: Core TLS API. (line 9163)
* gnutls_url_is_supported: Abstract public keys.
(line 57)
* gnutls_url_is_supported <1>: Core TLS API. (line 9182)
* gnutls_utf8_password_normalize: Core TLS API. (line 9196)
* gnutls_verify_stored_pubkey: Certificate verification.
(line 18)
* gnutls_verify_stored_pubkey <1>: Core TLS API. (line 9221)
* gnutls_x509_aia_deinit: X509 certificate API.
(line 259)
* gnutls_x509_aia_get: X509 certificate API.
(line 269)
* gnutls_x509_aia_init: X509 certificate API.
(line 303)
* gnutls_x509_aia_set: X509 certificate API.
(line 316)
* gnutls_x509_aki_deinit: X509 certificate API.
(line 343)
* gnutls_x509_aki_get_cert_issuer: X509 certificate API.
(line 353)
* gnutls_x509_aki_get_id: X509 certificate API.
(line 385)
* gnutls_x509_aki_init: X509 certificate API.
(line 403)
* gnutls_x509_aki_set_cert_issuer: X509 certificate API.
(line 416)
* gnutls_x509_aki_set_id: X509 certificate API.
(line 448)
* gnutls_x509_cidr_to_rfc5280: X509 certificate API.
(line 465)
* gnutls_x509_crl_check_issuer: X509 certificate API.
(line 490)
* gnutls_x509_crl_deinit: X509 certificate API.
(line 505)
* gnutls_x509_crl_dist_points_deinit: X509 certificate API.
(line 513)
* gnutls_x509_crl_dist_points_get: X509 certificate API.
(line 524)
* gnutls_x509_crl_dist_points_init: X509 certificate API.
(line 550)
* gnutls_x509_crl_dist_points_set: X509 certificate API.
(line 564)
* gnutls_x509_crl_export: X509 certificate API.
(line 588)
* gnutls_x509_crl_export2: X509 certificate API.
(line 614)
* gnutls_x509_crl_get_authority_key_gn_serial: X509 certificate API.
(line 637)
* gnutls_x509_crl_get_authority_key_id: X509 certificate API.
(line 674)
* gnutls_x509_crl_get_crt_count: X509 certificate API.
(line 702)
* gnutls_x509_crl_get_crt_serial: PKIX certificate revocation lists.
(line 56)
* gnutls_x509_crl_get_crt_serial <1>: X509 certificate API.
(line 714)
* gnutls_x509_crl_get_dn_oid: X509 certificate API.
(line 740)
* gnutls_x509_crl_get_extension_data: X509 certificate API.
(line 763)
* gnutls_x509_crl_get_extension_data2: X509 certificate API.
(line 793)
* gnutls_x509_crl_get_extension_info: X509 certificate API.
(line 816)
* gnutls_x509_crl_get_extension_oid: X509 certificate API.
(line 850)
* gnutls_x509_crl_get_issuer_dn: X509 certificate API.
(line 875)
* gnutls_x509_crl_get_issuer_dn2: X509 certificate API.
(line 900)
* gnutls_x509_crl_get_issuer_dn3: X509 certificate API.
(line 923)
* gnutls_x509_crl_get_issuer_dn_by_oid: X509 certificate API.
(line 949)
* gnutls_x509_crl_get_next_update: X509 certificate API.
(line 985)
* gnutls_x509_crl_get_number: X509 certificate API.
(line 999)
* gnutls_x509_crl_get_raw_issuer_dn: X509 certificate API.
(line 1021)
* gnutls_x509_crl_get_signature: X509 certificate API.
(line 1037)
* gnutls_x509_crl_get_signature_algorithm: X509 certificate API.
(line 1054)
* gnutls_x509_crl_get_signature_oid: X509 certificate API.
(line 1070)
* gnutls_x509_crl_get_this_update: X509 certificate API.
(line 1090)
* gnutls_x509_crl_get_version: X509 certificate API.
(line 1101)
* gnutls_x509_crl_import: X509 certificate API.
(line 1111)
* gnutls_x509_crl_init: X509 certificate API.
(line 1131)
* gnutls_x509_crl_iter_crt_serial: X509 certificate API.
(line 1146)
* gnutls_x509_crl_iter_deinit: X509 certificate API.
(line 1179)
* gnutls_x509_crl_list_import: X509 certificate API.
(line 1188)
* gnutls_x509_crl_list_import2: X509 certificate API.
(line 1219)
* gnutls_x509_crl_print: X509 certificate API.
(line 1248)
* gnutls_x509_crl_privkey_sign: PKIX certificate revocation lists.
(line 133)
* gnutls_x509_crl_privkey_sign <1>: Abstract key API. (line 2841)
* gnutls_x509_crl_set_authority_key_id: X509 certificate API.
(line 1268)
* gnutls_x509_crl_set_crt: X509 certificate API.
(line 1289)
* gnutls_x509_crl_set_crt_serial: X509 certificate API.
(line 1307)
* gnutls_x509_crl_set_next_update: X509 certificate API.
(line 1327)
* gnutls_x509_crl_set_number: X509 certificate API.
(line 1346)
* gnutls_x509_crl_set_this_update: X509 certificate API.
(line 1366)
* gnutls_x509_crl_set_version: X509 certificate API.
(line 1380)
* gnutls_x509_crl_sign: X509 certificate API.
(line 1396)
* gnutls_x509_crl_sign2: PKIX certificate revocation lists.
(line 102)
* gnutls_x509_crl_sign2 <1>: X509 certificate API.
(line 1415)
* gnutls_x509_crl_verify: X509 certificate API.
(line 1449)
* gnutls_x509_crq_deinit: X509 certificate API.
(line 1482)
* gnutls_x509_crq_export: X509 certificate API.
(line 1491)
* gnutls_x509_crq_export2: X509 certificate API.
(line 1519)
* gnutls_x509_crq_get_attribute_by_oid: X509 certificate API.
(line 1543)
* gnutls_x509_crq_get_attribute_data: X509 certificate API.
(line 1572)
* gnutls_x509_crq_get_attribute_info: X509 certificate API.
(line 1601)
* gnutls_x509_crq_get_basic_constraints: X509 certificate API.
(line 1632)
* gnutls_x509_crq_get_challenge_password: X509 certificate API.
(line 1662)
* gnutls_x509_crq_get_dn: X509 certificate API.
(line 1680)
* gnutls_x509_crq_get_dn2: X509 certificate API.
(line 1704)
* gnutls_x509_crq_get_dn3: X509 certificate API.
(line 1728)
* gnutls_x509_crq_get_dn_by_oid: X509 certificate API.
(line 1755)
* gnutls_x509_crq_get_dn_oid: X509 certificate API.
(line 1789)
* gnutls_x509_crq_get_extension_by_oid: X509 certificate API.
(line 1809)
* gnutls_x509_crq_get_extension_by_oid2: X509 certificate API.
(line 1839)
* gnutls_x509_crq_get_extension_data: X509 certificate API.
(line 1867)
* gnutls_x509_crq_get_extension_data2: X509 certificate API.
(line 1897)
* gnutls_x509_crq_get_extension_info: X509 certificate API.
(line 1922)
* gnutls_x509_crq_get_key_id: X509 certificate API.
(line 1956)
* gnutls_x509_crq_get_key_purpose_oid: X509 certificate API.
(line 1985)
* gnutls_x509_crq_get_key_rsa_raw: X509 certificate API.
(line 2013)
* gnutls_x509_crq_get_key_usage: X509 certificate API.
(line 2033)
* gnutls_x509_crq_get_pk_algorithm: X509 certificate API.
(line 2059)
* gnutls_x509_crq_get_pk_oid: X509 certificate API.
(line 2079)
* gnutls_x509_crq_get_private_key_usage_period: X509 certificate API.
(line 2098)
* gnutls_x509_crq_get_signature_algorithm: X509 certificate API.
(line 2119)
* gnutls_x509_crq_get_signature_oid: X509 certificate API.
(line 2138)
* gnutls_x509_crq_get_spki: X509 certificate API.
(line 2158)
* gnutls_x509_crq_get_subject_alt_name: X509 certificate API.
(line 2174)
* gnutls_x509_crq_get_subject_alt_othername_oid: X509 certificate API.
(line 2211)
* gnutls_x509_crq_get_tlsfeatures: X509 certificate API.
(line 2247)
* gnutls_x509_crq_get_version: X509 certificate API.
(line 2279)
* gnutls_x509_crq_import: X509 certificate API.
(line 2291)
* gnutls_x509_crq_init: X509 certificate API.
(line 2312)
* gnutls_x509_crq_print: X509 certificate API.
(line 2324)
* gnutls_x509_crq_privkey_sign: Abstract key API. (line 2877)
* gnutls_x509_crq_set_attribute_by_oid: X509 certificate API.
(line 2346)
* gnutls_x509_crq_set_basic_constraints: X509 certificate API.
(line 2371)
* gnutls_x509_crq_set_challenge_password: X509 certificate API.
(line 2393)
* gnutls_x509_crq_set_dn: X509 certificate API.
(line 2408)
* gnutls_x509_crq_set_dn_by_oid: X509 certificate API.
(line 2426)
* gnutls_x509_crq_set_extension_by_oid: X509 certificate API.
(line 2455)
* gnutls_x509_crq_set_key: PKCS 10 certificate requests.
(line 31)
* gnutls_x509_crq_set_key <1>: X509 certificate API.
(line 2479)
* gnutls_x509_crq_set_key_purpose_oid: X509 certificate API.
(line 2494)
* gnutls_x509_crq_set_key_rsa_raw: X509 certificate API.
(line 2516)
* gnutls_x509_crq_set_key_usage: X509 certificate API.
(line 2535)
* gnutls_x509_crq_set_private_key_usage_period: X509 certificate API.
(line 2551)
* gnutls_x509_crq_set_pubkey: Operations. (line 168)
* gnutls_x509_crq_set_pubkey <1>: Abstract key API. (line 2914)
* gnutls_x509_crq_set_spki: X509 certificate API.
(line 2568)
* gnutls_x509_crq_set_subject_alt_name: X509 certificate API.
(line 2592)
* gnutls_x509_crq_set_subject_alt_othername: X509 certificate API.
(line 2617)
* gnutls_x509_crq_set_tlsfeatures: X509 certificate API.
(line 2645)
* gnutls_x509_crq_set_version: X509 certificate API.
(line 2663)
* gnutls_x509_crq_sign: X509 certificate API.
(line 2678)
* gnutls_x509_crq_sign2: PKCS 10 certificate requests.
(line 43)
* gnutls_x509_crq_sign2 <1>: X509 certificate API.
(line 2699)
* gnutls_x509_crq_verify: X509 certificate API.
(line 2734)
* gnutls_x509_crt_check_email: X509 certificate API.
(line 2753)
* gnutls_x509_crt_check_hostname: X509 certificate API.
(line 2770)
* gnutls_x509_crt_check_hostname2: X509 certificate API.
(line 2788)
* gnutls_x509_crt_check_ip: X509 certificate API.
(line 2829)
* gnutls_x509_crt_check_issuer: X509 certificate API.
(line 2849)
* gnutls_x509_crt_check_key_purpose: X509 certificate API.
(line 2868)
* gnutls_x509_crt_check_revocation: X509 certificate API.
(line 2889)
* gnutls_x509_crt_cpy_crl_dist_points: X509 certificate API.
(line 2907)
* gnutls_x509_crt_deinit: X509 certificate API.
(line 2923)
* gnutls_x509_crt_equals: X509 certificate API.
(line 2931)
* gnutls_x509_crt_equals2: X509 certificate API.
(line 2946)
* gnutls_x509_crt_export: X509 certificate API.
(line 2962)
* gnutls_x509_crt_export2: X509 certificate API.
(line 2989)
* gnutls_x509_crt_get_activation_time: X509 certificate API.
(line 3011)
* gnutls_x509_crt_get_authority_info_access: X509 certificate API.
(line 3023)
* gnutls_x509_crt_get_authority_key_gn_serial: X509 certificate API.
(line 3101)
* gnutls_x509_crt_get_authority_key_id: X509 certificate API.
(line 3140)
* gnutls_x509_crt_get_basic_constraints: X509 certificate API.
(line 3167)
* gnutls_x509_crt_get_ca_status: X509 certificate API.
(line 3195)
* gnutls_x509_crt_get_crl_dist_points: X509 certificate API.
(line 3218)
* gnutls_x509_crt_get_dn: X509 certificate API.
(line 3251)
* gnutls_x509_crt_get_dn2: X.509 distinguished names.
(line 14)
* gnutls_x509_crt_get_dn2 <1>: X509 certificate API.
(line 3280)
* gnutls_x509_crt_get_dn3: X509 certificate API.
(line 3303)
* gnutls_x509_crt_get_dn_by_oid: X509 certificate API.
(line 3329)
* gnutls_x509_crt_get_dn_oid: X509 certificate API.
(line 3368)
* gnutls_x509_crt_get_expiration_time: X509 certificate API.
(line 3394)
* gnutls_x509_crt_get_extension_by_oid: X509 certificate API.
(line 3406)
* gnutls_x509_crt_get_extension_by_oid2: X509 certificate API.
(line 3434)
* gnutls_x509_crt_get_extension_data: X509 certificate API.
(line 3462)
* gnutls_x509_crt_get_extension_data2: X509 certificate API.
(line 3490)
* gnutls_x509_crt_get_extension_info: X509 certificate API.
(line 3513)
* gnutls_x509_crt_get_extension_oid: X509 certificate API.
(line 3547)
* gnutls_x509_crt_get_fingerprint: X509 certificate API.
(line 3573)
* gnutls_x509_crt_get_inhibit_anypolicy: X509 certificate API.
(line 3597)
* gnutls_x509_crt_get_issuer: X509 certificate API.
(line 3624)
* gnutls_x509_crt_get_issuer_alt_name: X509 certificate API.
(line 3642)
* gnutls_x509_crt_get_issuer_alt_name2: X509 certificate API.
(line 3685)
* gnutls_x509_crt_get_issuer_alt_othername_oid: X509 certificate API.
(line 3723)
* gnutls_x509_crt_get_issuer_dn: X509 certificate API.
(line 3763)
* gnutls_x509_crt_get_issuer_dn2: X509 certificate API.
(line 3790)
* gnutls_x509_crt_get_issuer_dn3: X509 certificate API.
(line 3813)
* gnutls_x509_crt_get_issuer_dn_by_oid: X509 certificate API.
(line 3839)
* gnutls_x509_crt_get_issuer_dn_oid: X509 certificate API.
(line 3878)
* gnutls_x509_crt_get_issuer_unique_id: X509 certificate API.
(line 3904)
* gnutls_x509_crt_get_key_id: X.509 public and private keys.
(line 13)
* gnutls_x509_crt_get_key_id <1>: X509 certificate API.
(line 3933)
* gnutls_x509_crt_get_key_purpose_oid: X509 certificate API.
(line 3960)
* gnutls_x509_crt_get_key_usage: X509 certificate API.
(line 3990)
* gnutls_x509_crt_get_name_constraints: X509 certificate API.
(line 4013)
* gnutls_x509_crt_get_pk_algorithm: X509 certificate API.
(line 4048)
* gnutls_x509_crt_get_pk_dsa_raw: X509 certificate API.
(line 4070)
* gnutls_x509_crt_get_pk_ecc_raw: X509 certificate API.
(line 4093)
* gnutls_x509_crt_get_pk_gost_raw: X509 certificate API.
(line 4119)
* gnutls_x509_crt_get_pk_oid: X509 certificate API.
(line 4147)
* gnutls_x509_crt_get_pk_rsa_raw: X509 certificate API.
(line 4166)
* gnutls_x509_crt_get_policy: X509 certificate API.
(line 4184)
* gnutls_x509_crt_get_preferred_hash_algorithm: Compatibility API.
(line 127)
* gnutls_x509_crt_get_private_key_usage_period: X509 certificate API.
(line 4211)
* gnutls_x509_crt_get_proxy: X509 certificate API.
(line 4233)
* gnutls_x509_crt_get_raw_dn: X509 certificate API.
(line 4260)
* gnutls_x509_crt_get_raw_issuer_dn: X509 certificate API.
(line 4277)
* gnutls_x509_crt_get_serial: X509 certificate API.
(line 4293)
* gnutls_x509_crt_get_signature: X509 certificate API.
(line 4313)
* gnutls_x509_crt_get_signature_algorithm: X509 certificate API.
(line 4330)
* gnutls_x509_crt_get_signature_oid: X509 certificate API.
(line 4347)
* gnutls_x509_crt_get_spki: X509 certificate API.
(line 4367)
* gnutls_x509_crt_get_subject: X509 certificate API.
(line 4383)
* gnutls_x509_crt_get_subject_alt_name: X509 certificate API.
(line 4401)
* gnutls_x509_crt_get_subject_alt_name2: X509 certificate API.
(line 4441)
* gnutls_x509_crt_get_subject_alt_othername_oid: X509 certificate API.
(line 4477)
* gnutls_x509_crt_get_subject_key_id: X509 certificate API.
(line 4515)
* gnutls_x509_crt_get_subject_unique_id: X509 certificate API.
(line 4537)
* gnutls_x509_crt_get_tlsfeatures: X509 certificate API.
(line 4564)
* gnutls_x509_crt_get_version: X509 certificate API.
(line 4596)
* gnutls_x509_crt_import: X509 certificate API.
(line 4607)
* gnutls_x509_crt_import_pkcs11: PKCS 11 API. (line 1358)
* gnutls_x509_crt_import_url: X509 certificate API.
(line 4628)
* gnutls_x509_crt_init: X509 certificate API.
(line 4652)
* gnutls_x509_crt_list_import: X509 certificate API.
(line 4663)
* gnutls_x509_crt_list_import2: X509 certificate API.
(line 4699)
* gnutls_x509_crt_list_import_pkcs11: PKCS 11 API. (line 1375)
* gnutls_x509_crt_list_import_url: X509 certificate API.
(line 4731)
* gnutls_x509_crt_list_verify: X509 certificate API.
(line 4766)
* gnutls_x509_crt_print: X509 certificate API.
(line 4806)
* gnutls_x509_crt_privkey_sign: Abstract key API. (line 2931)
* gnutls_x509_crt_set_activation_time: X509 certificate API.
(line 4831)
* gnutls_x509_crt_set_authority_info_access: X509 certificate API.
(line 4846)
* gnutls_x509_crt_set_authority_key_id: X509 certificate API.
(line 4872)
* gnutls_x509_crt_set_basic_constraints: X509 certificate API.
(line 4890)
* gnutls_x509_crt_set_ca_status: X509 certificate API.
(line 4910)
* gnutls_x509_crt_set_crl_dist_points: X509 certificate API.
(line 4927)
* gnutls_x509_crt_set_crl_dist_points2: X509 certificate API.
(line 4947)
* gnutls_x509_crt_set_crq: X509 certificate API.
(line 4972)
* gnutls_x509_crt_set_crq_extensions: X509 certificate API.
(line 5014)
* gnutls_x509_crt_set_crq_extension_by_oid: X509 certificate API.
(line 4992)
* gnutls_x509_crt_set_dn: X509 certificate API.
(line 5031)
* gnutls_x509_crt_set_dn_by_oid: X509 certificate API.
(line 5054)
* gnutls_x509_crt_set_expiration_time: X509 certificate API.
(line 5083)
* gnutls_x509_crt_set_extension_by_oid: X509 certificate API.
(line 5099)
* gnutls_x509_crt_set_flags: X509 certificate API.
(line 5123)
* gnutls_x509_crt_set_inhibit_anypolicy: X509 certificate API.
(line 5139)
* gnutls_x509_crt_set_issuer_alt_name: X509 certificate API.
(line 5154)
* gnutls_x509_crt_set_issuer_alt_othername: X509 certificate API.
(line 5184)
* gnutls_x509_crt_set_issuer_dn: X509 certificate API.
(line 5215)
* gnutls_x509_crt_set_issuer_dn_by_oid: X509 certificate API.
(line 5233)
* gnutls_x509_crt_set_issuer_unique_id: X509 certificate API.
(line 5266)
* gnutls_x509_crt_set_key: X509 certificate API.
(line 5285)
* gnutls_x509_crt_set_key_purpose_oid: X509 certificate API.
(line 5303)
* gnutls_x509_crt_set_key_usage: X509 certificate API.
(line 5323)
* gnutls_x509_crt_set_name_constraints: X509 certificate API.
(line 5337)
* gnutls_x509_crt_set_pin_function: X509 certificate API.
(line 5358)
* gnutls_x509_crt_set_policy: X509 certificate API.
(line 5378)
* gnutls_x509_crt_set_private_key_usage_period: X509 certificate API.
(line 5402)
* gnutls_x509_crt_set_proxy: X509 certificate API.
(line 5419)
* gnutls_x509_crt_set_proxy_dn: X509 certificate API.
(line 5442)
* gnutls_x509_crt_set_pubkey: Operations. (line 182)
* gnutls_x509_crt_set_pubkey <1>: Abstract key API. (line 2965)
* gnutls_x509_crt_set_serial: X509 certificate API.
(line 5468)
* gnutls_x509_crt_set_spki: X509 certificate API.
(line 5494)
* gnutls_x509_crt_set_subject_alternative_name: X509 certificate API.
(line 5582)
* gnutls_x509_crt_set_subject_alt_name: X509 certificate API.
(line 5518)
* gnutls_x509_crt_set_subject_alt_othername: X509 certificate API.
(line 5551)
* gnutls_x509_crt_set_subject_key_id: X509 certificate API.
(line 5606)
* gnutls_x509_crt_set_subject_unique_id: X509 certificate API.
(line 5623)
* gnutls_x509_crt_set_tlsfeatures: X509 certificate API.
(line 5642)
* gnutls_x509_crt_set_version: X509 certificate API.
(line 5660)
* gnutls_x509_crt_sign: X509 certificate API.
(line 5682)
* gnutls_x509_crt_sign2: X509 certificate API.
(line 5701)
* gnutls_x509_crt_verify: X509 certificate API.
(line 5735)
* gnutls_x509_crt_verify_data2: X509 certificate API.
(line 5762)
* gnutls_x509_ct_sct_get: X509 certificate API.
(line 5792)
* gnutls_x509_ct_sct_get_version: X509 certificate API.
(line 5823)
* gnutls_x509_dn_deinit: X509 certificate API.
(line 5845)
* gnutls_x509_dn_export: X509 certificate API.
(line 5856)
* gnutls_x509_dn_export2: X509 certificate API.
(line 5883)
* gnutls_x509_dn_get_rdn_ava: X.509 distinguished names.
(line 53)
* gnutls_x509_dn_get_rdn_ava <1>: X509 certificate API.
(line 5906)
* gnutls_x509_dn_get_str: X509 certificate API.
(line 5937)
* gnutls_x509_dn_get_str2: X509 certificate API.
(line 5956)
* gnutls_x509_dn_import: X509 certificate API.
(line 5981)
* gnutls_x509_dn_init: X509 certificate API.
(line 6000)
* gnutls_x509_dn_oid_known: X509 certificate API.
(line 6016)
* gnutls_x509_dn_oid_name: X509 certificate API.
(line 6032)
* gnutls_x509_dn_set_str: X509 certificate API.
(line 6049)
* gnutls_x509_ext_ct_export_scts: X509 certificate API.
(line 6069)
* gnutls_x509_ext_ct_import_scts: X509 certificate API.
(line 6087)
* gnutls_x509_ext_ct_scts_deinit: X509 certificate API.
(line 6109)
* gnutls_x509_ext_ct_scts_init: X509 certificate API.
(line 6119)
* gnutls_x509_ext_deinit: X509 certificate API.
(line 6131)
* gnutls_x509_ext_export_aia: X509 certificate API.
(line 6141)
* gnutls_x509_ext_export_authority_key_id: X509 certificate API.
(line 6160)
* gnutls_x509_ext_export_basic_constraints: X509 certificate API.
(line 6179)
* gnutls_x509_ext_export_crl_dist_points: X509 certificate API.
(line 6200)
* gnutls_x509_ext_export_inhibit_anypolicy: X509 certificate API.
(line 6220)
* gnutls_x509_ext_export_key_purposes: X509 certificate API.
(line 6240)
* gnutls_x509_ext_export_key_usage: X509 certificate API.
(line 6259)
* gnutls_x509_ext_export_name_constraints: X509 certificate API.
(line 6278)
* gnutls_x509_ext_export_policies: X509 certificate API.
(line 6297)
* gnutls_x509_ext_export_private_key_usage_period: X509 certificate API.
(line 6317)
* gnutls_x509_ext_export_proxy: X509 certificate API.
(line 6338)
* gnutls_x509_ext_export_subject_alt_names: X509 certificate API.
(line 6367)
* gnutls_x509_ext_export_subject_key_id: X509 certificate API.
(line 6386)
* gnutls_x509_ext_export_tlsfeatures: X509 certificate API.
(line 6405)
* gnutls_x509_ext_import_aia: X509 certificate API.
(line 6424)
* gnutls_x509_ext_import_authority_key_id: X509 certificate API.
(line 6445)
* gnutls_x509_ext_import_basic_constraints: X509 certificate API.
(line 6466)
* gnutls_x509_ext_import_crl_dist_points: X509 certificate API.
(line 6485)
* gnutls_x509_ext_import_inhibit_anypolicy: X509 certificate API.
(line 6505)
* gnutls_x509_ext_import_key_purposes: X509 certificate API.
(line 6529)
* gnutls_x509_ext_import_key_usage: X509 certificate API.
(line 6550)
* gnutls_x509_ext_import_name_constraints: X509 certificate API.
(line 6574)
* gnutls_x509_ext_import_policies: X509 certificate API.
(line 6607)
* gnutls_x509_ext_import_private_key_usage_period: X509 certificate API.
(line 6626)
* gnutls_x509_ext_import_proxy: X509 certificate API.
(line 6646)
* gnutls_x509_ext_import_subject_alt_names: X509 certificate API.
(line 6675)
* gnutls_x509_ext_import_subject_key_id: X509 certificate API.
(line 6699)
* gnutls_x509_ext_import_tlsfeatures: X509 certificate API.
(line 6718)
* gnutls_x509_ext_print: X509 certificate API.
(line 6744)
* gnutls_x509_key_purpose_deinit: X509 certificate API.
(line 6766)
* gnutls_x509_key_purpose_get: X509 certificate API.
(line 6777)
* gnutls_x509_key_purpose_init: X509 certificate API.
(line 6800)
* gnutls_x509_key_purpose_set: X509 certificate API.
(line 6814)
* gnutls_x509_name_constraints_add_excluded: X509 certificate API.
(line 6830)
* gnutls_x509_name_constraints_add_permitted: X509 certificate API.
(line 6856)
* gnutls_x509_name_constraints_check: X509 certificate API.
(line 6881)
* gnutls_x509_name_constraints_check_crt: X509 certificate API.
(line 6906)
* gnutls_x509_name_constraints_deinit: X509 certificate API.
(line 6931)
* gnutls_x509_name_constraints_get_excluded: X509 certificate API.
(line 6942)
* gnutls_x509_name_constraints_get_permitted: X509 certificate API.
(line 6972)
* gnutls_x509_name_constraints_init: X509 certificate API.
(line 7002)
* gnutls_x509_othername_to_virtual: X509 certificate API.
(line 7016)
* gnutls_x509_policies_deinit: X509 certificate API.
(line 7038)
* gnutls_x509_policies_get: X509 certificate API.
(line 7049)
* gnutls_x509_policies_init: X509 certificate API.
(line 7074)
* gnutls_x509_policies_set: X509 certificate API.
(line 7088)
* gnutls_x509_policy_release: X509 certificate API.
(line 7105)
* gnutls_x509_privkey_cpy: X509 certificate API.
(line 7118)
* gnutls_x509_privkey_deinit: X509 certificate API.
(line 7133)
* gnutls_x509_privkey_export: X509 certificate API.
(line 7142)
* gnutls_x509_privkey_export2: X509 certificate API.
(line 7171)
* gnutls_x509_privkey_export2_pkcs8: X509 certificate API.
(line 7197)
* gnutls_x509_privkey_export_dsa_raw: X509 certificate API.
(line 7233)
* gnutls_x509_privkey_export_ecc_raw: X509 certificate API.
(line 7259)
* gnutls_x509_privkey_export_gost_raw: X509 certificate API.
(line 7287)
* gnutls_x509_privkey_export_pkcs8: X509 certificate API.
(line 7322)
* gnutls_x509_privkey_export_rsa_raw: X509 certificate API.
(line 7361)
* gnutls_x509_privkey_export_rsa_raw2: X509 certificate API.
(line 7389)
* gnutls_x509_privkey_fix: X509 certificate API.
(line 7424)
* gnutls_x509_privkey_generate: X509 certificate API.
(line 7436)
* gnutls_x509_privkey_generate2: X509 certificate API.
(line 7476)
* gnutls_x509_privkey_get_key_id: X509 certificate API.
(line 7528)
* gnutls_x509_privkey_get_pk_algorithm: X509 certificate API.
(line 7555)
* gnutls_x509_privkey_get_pk_algorithm2: X509 certificate API.
(line 7568)
* gnutls_x509_privkey_get_seed: X509 certificate API.
(line 7583)
* gnutls_x509_privkey_get_spki: X509 certificate API.
(line 7608)
* gnutls_x509_privkey_import: X509 certificate API.
(line 7624)
* gnutls_x509_privkey_import2: Managing encrypted keys.
(line 51)
* gnutls_x509_privkey_import2 <1>: X509 certificate API.
(line 7646)
* gnutls_x509_privkey_import_dsa_raw: X509 certificate API.
(line 7676)
* gnutls_x509_privkey_import_ecc_raw: X509 certificate API.
(line 7702)
* gnutls_x509_privkey_import_gost_raw: X509 certificate API.
(line 7729)
* gnutls_x509_privkey_import_openssl: Managing encrypted keys.
(line 248)
* gnutls_x509_privkey_import_openssl <1>: X509 certificate API.
(line 7766)
* gnutls_x509_privkey_import_pkcs8: X509 certificate API.
(line 7790)
* gnutls_x509_privkey_import_rsa_raw: X509 certificate API.
(line 7827)
* gnutls_x509_privkey_import_rsa_raw2: X509 certificate API.
(line 7856)
* gnutls_x509_privkey_init: X509 certificate API.
(line 7890)
* gnutls_x509_privkey_sec_param: X509 certificate API.
(line 7901)
* gnutls_x509_privkey_set_flags: X509 certificate API.
(line 7916)
* gnutls_x509_privkey_set_pin_function: X509 certificate API.
(line 7932)
* gnutls_x509_privkey_set_spki: X509 certificate API.
(line 7952)
* gnutls_x509_privkey_sign_data: X509 certificate API.
(line 7968)
* gnutls_x509_privkey_sign_hash: Compatibility API. (line 154)
* gnutls_x509_privkey_verify_params: X509 certificate API.
(line 8003)
* gnutls_x509_privkey_verify_seed: X509 certificate API.
(line 8015)
* gnutls_x509_rdn_get: X509 certificate API.
(line 8040)
* gnutls_x509_rdn_get2: X509 certificate API.
(line 8063)
* gnutls_x509_rdn_get_by_oid: X509 certificate API.
(line 8087)
* gnutls_x509_rdn_get_oid: X509 certificate API.
(line 8115)
* gnutls_x509_spki_deinit: X509 certificate API.
(line 8138)
* gnutls_x509_spki_get_rsa_pss_params: X509 certificate API.
(line 8148)
* gnutls_x509_spki_init: X509 certificate API.
(line 8168)
* gnutls_x509_spki_set_rsa_pss_params: X509 certificate API.
(line 8183)
* gnutls_x509_tlsfeatures_add: X509 certificate API.
(line 8200)
* gnutls_x509_tlsfeatures_check_crt: X509 certificate API.
(line 8217)
* gnutls_x509_tlsfeatures_deinit: X509 certificate API.
(line 8236)
* gnutls_x509_tlsfeatures_get: X509 certificate API.
(line 8248)
* gnutls_x509_tlsfeatures_init: X509 certificate API.
(line 8268)
* gnutls_x509_trust_list_add_cas: Verifying X.509 certificate paths.
(line 9)
* gnutls_x509_trust_list_add_cas <1>: X509 certificate API.
(line 8283)
* gnutls_x509_trust_list_add_crls: Verifying X.509 certificate paths.
(line 73)
* gnutls_x509_trust_list_add_crls <1>: X509 certificate API.
(line 8318)
* gnutls_x509_trust_list_add_named_crt: Verifying X.509 certificate paths.
(line 41)
* gnutls_x509_trust_list_add_named_crt <1>: X509 certificate API.
(line 8358)
* gnutls_x509_trust_list_add_system_trust: Verifying X.509 certificate paths.
(line 293)
* gnutls_x509_trust_list_add_system_trust <1>: X509 certificate API.
(line 8393)
* gnutls_x509_trust_list_add_trust_dir: X509 certificate API.
(line 8417)
* gnutls_x509_trust_list_add_trust_file: Verifying X.509 certificate paths.
(line 238)
* gnutls_x509_trust_list_add_trust_file <1>: X509 certificate API.
(line 8444)
* gnutls_x509_trust_list_add_trust_mem: Verifying X.509 certificate paths.
(line 266)
* gnutls_x509_trust_list_add_trust_mem <1>: X509 certificate API.
(line 8475)
* gnutls_x509_trust_list_deinit: X509 certificate API.
(line 8505)
* gnutls_x509_trust_list_get_issuer: X509 certificate API.
(line 8522)
* gnutls_x509_trust_list_get_issuer_by_dn: X509 certificate API.
(line 8552)
* gnutls_x509_trust_list_get_issuer_by_subject_key_id: X509 certificate API.
(line 8576)
* gnutls_x509_trust_list_get_ptr: X509 certificate API.
(line 8603)
* gnutls_x509_trust_list_init: X509 certificate API.
(line 8619)
* gnutls_x509_trust_list_iter_deinit: X509 certificate API.
(line 8636)
* gnutls_x509_trust_list_iter_get_ca: X509 certificate API.
(line 8647)
* gnutls_x509_trust_list_remove_cas: X509 certificate API.
(line 8679)
* gnutls_x509_trust_list_remove_trust_file: X509 certificate API.
(line 8704)
* gnutls_x509_trust_list_remove_trust_mem: X509 certificate API.
(line 8726)
* gnutls_x509_trust_list_set_getissuer_function: X509 certificate API.
(line 8747)
* gnutls_x509_trust_list_set_ptr: X509 certificate API.
(line 8787)
* gnutls_x509_trust_list_verify_crt: Verifying X.509 certificate paths.
(line 110)
* gnutls_x509_trust_list_verify_crt <1>: X509 certificate API.
(line 8803)
* gnutls_x509_trust_list_verify_crt2: Verifying X.509 certificate paths.
(line 140)
* gnutls_x509_trust_list_verify_crt2 <1>: X509 certificate API.
(line 8836)
* gnutls_x509_trust_list_verify_named_crt: Verifying X.509 certificate paths.
(line 201)
* gnutls_x509_trust_list_verify_named_crt <1>: X509 certificate API.
(line 8900)
|