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
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895
36896
36897
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912
36913
36914
36915
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273
37274
37275
37276
37277
37278
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291
37292
37293
37294
37295
37296
37297
37298
37299
37300
37301
37302
37303
37304
37305
37306
37307
37308
37309
37310
37311
37312
37313
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648
37649
37650
37651
37652
37653
37654
37655
37656
37657
37658
37659
37660
37661
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
37700
37701
37702
37703
37704
37705
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741
37742
37743
37744
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
37785
37786
37787
37788
37789
37790
37791
37792
37793
37794
37795
37796
37797
37798
37799
37800
37801
37802
37803
37804
37805
37806
37807
37808
37809
37810
37811
37812
37813
37814
37815
37816
37817
37818
37819
37820
37821
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896
37897
37898
37899
37900
37901
37902
37903
37904
37905
37906
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999
38000
38001
38002
38003
38004
38005
38006
38007
38008
38009
38010
38011
38012
38013
38014
38015
38016
38017
38018
38019
38020
38021
38022
38023
38024
38025
38026
38027
38028
38029
38030
38031
38032
38033
38034
38035
38036
38037
38038
38039
38040
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050
38051
38052
38053
38054
38055
38056
38057
38058
38059
38060
38061
38062
38063
38064
38065
38066
38067
38068
38069
38070
38071
38072
38073
38074
38075
38076
38077
38078
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088
38089
38090
38091
38092
38093
38094
38095
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105
38106
38107
38108
38109
38110
38111
38112
38113
38114
38115
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198
38199
38200
38201
38202
38203
38204
38205
38206
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219
38220
38221
38222
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234
38235
38236
38237
38238
38239
38240
38241
38242
38243
38244
38245
38246
38247
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258
38259
38260
38261
38262
38263
38264
38265
38266
38267
38268
38269
38270
38271
38272
38273
38274
38275
38276
38277
38278
38279
38280
38281
38282
38283
38284
38285
38286
38287
38288
38289
38290
38291
38292
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302
38303
38304
38305
38306
38307
38308
38309
38310
38311
38312
38313
38314
38315
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420
38421
38422
38423
38424
38425
38426
38427
38428
38429
38430
38431
38432
38433
38434
38435
38436
38437
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468
38469
38470
38471
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494
38495
38496
38497
38498
38499
38500
38501
38502
38503
38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772
38773
38774
38775
38776
38777
38778
38779
38780
38781
38782
38783
38784
38785
38786
38787
38788
38789
38790
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831
38832
38833
38834
38835
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090
39091
39092
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
39188
39189
39190
39191
39192
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316
39317
39318
39319
39320
39321
39322
39323
39324
39325
39326
39327
39328
39329
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351
39352
39353
39354
39355
39356
39357
39358
39359
39360
39361
39362
39363
39364
39365
39366
39367
39368
39369
39370
39371
39372
39373
39374
39375
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393
39394
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413
39414
39415
39416
39417
39418
39419
39420
39421
39422
39423
39424
39425
39426
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
39540
39541
39542
39543
39544
39545
39546
39547
39548
39549
39550
39551
39552
39553
39554
39555
39556
39557
39558
39559
39560
39561
39562
39563
39564
39565
39566
39567
39568
39569
39570
39571
39572
39573
39574
39575
39576
39577
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
39677
39678
39679
39680
39681
39682
39683
39684
39685
39686
39687
39688
39689
39690
39691
39692
39693
39694
39695
39696
39697
39698
39699
39700
39701
39702
39703
39704
39705
39706
39707
39708
39709
39710
39711
39712
39713
39714
39715
39716
39717
39718
39719
39720
39721
39722
39723
39724
39725
39726
39727
39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811
39812
39813
39814
39815
39816
39817
39818
39819
39820
39821
39822
39823
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
39947
39948
39949
39950
39951
39952
39953
39954
39955
39956
39957
39958
39959
39960
39961
39962
39963
39964
39965
39966
39967
39968
39969
39970
39971
39972
39973
39974
39975
39976
39977
39978
39979
39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
39992
39993
39994
39995
39996
39997
39998
39999
40000
40001
40002
40003
40004
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048
40049
40050
40051
40052
40053
40054
40055
40056
40057
40058
40059
40060
40061
40062
40063
40064
40065
40066
40067
40068
40069
40070
40071
40072
40073
40074
40075
40076
40077
40078
40079
40080
40081
40082
40083
40084
40085
40086
40087
40088
40089
40090
40091
40092
40093
40094
40095
40096
40097
40098
40099
40100
40101
40102
40103
40104
40105
40106
40107
40108
40109
40110
40111
40112
40113
40114
40115
40116
40117
40118
40119
40120
40121
40122
40123
40124
40125
40126
40127
40128
40129
40130
40131
40132
40133
40134
40135
40136
40137
40138
40139
40140
40141
40142
40143
40144
40145
40146
40147
40148
40149
40150
40151
40152
40153
40154
40155
40156
40157
40158
40159
40160
40161
40162
40163
40164
40165
40166
40167
40168
40169
40170
40171
40172
40173
40174
40175
40176
40177
40178
40179
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232
40233
40234
40235
40236
40237
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262
40263
40264
40265
40266
40267
40268
40269
40270
40271
40272
40273
40274
40275
40276
40277
40278
40279
40280
40281
40282
40283
40284
40285
40286
40287
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297
40298
40299
40300
40301
40302
40303
40304
40305
40306
40307
40308
40309
40310
40311
40312
40313
40314
40315
40316
40317
40318
40319
40320
40321
40322
40323
40324
40325
40326
40327
40328
40329
40330
40331
40332
40333
40334
40335
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
40348
40349
40350
40351
40352
40353
40354
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394
40395
40396
40397
40398
40399
40400
40401
40402
40403
40404
40405
40406
40407
40408
40409
40410
40411
40412
40413
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474
40475
40476
40477
40478
40479
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
40530
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540
40541
40542
40543
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
40563
40564
40565
40566
40567
40568
40569
40570
40571
40572
40573
40574
40575
40576
40577
40578
40579
40580
40581
40582
40583
40584
40585
40586
40587
40588
40589
40590
40591
40592
40593
40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
40607
40608
40609
40610
40611
40612
40613
40614
40615
40616
40617
40618
40619
40620
40621
40622
40623
40624
40625
40626
40627
40628
40629
40630
40631
40632
40633
40634
40635
40636
40637
40638
40639
40640
40641
40642
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368
41369
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
41392
41393
41394
41395
41396
41397
41398
41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
41490
41491
41492
41493
41494
41495
41496
41497
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507
41508
41509
41510
41511
41512
41513
41514
41515
41516
41517
41518
41519
41520
41521
41522
41523
41524
41525
41526
41527
41528
41529
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
41586
41587
41588
41589
41590
41591
41592
41593
41594
41595
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691
41692
41693
41694
41695
41696
41697
41698
41699
41700
41701
41702
41703
41704
41705
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728
41729
41730
41731
41732
41733
41734
41735
41736
41737
41738
41739
41740
41741
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
41765
41766
41767
41768
41769
41770
41771
41772
41773
41774
41775
41776
41777
41778
41779
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809
41810
41811
41812
41813
41814
41815
41816
41817
41818
41819
41820
41821
41822
41823
41824
41825
41826
41827
41828
41829
41830
41831
41832
41833
41834
41835
41836
41837
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856
41857
41858
41859
41860
41861
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
41991
41992
41993
41994
41995
41996
41997
41998
41999
42000
42001
42002
42003
42004
42005
42006
42007
42008
42009
42010
42011
42012
42013
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046
42047
42048
42049
42050
42051
42052
42053
42054
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
42068
42069
42070
42071
42072
42073
42074
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100
42101
42102
42103
42104
42105
42106
42107
42108
42109
42110
42111
42112
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128
42129
42130
42131
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144
42145
42146
42147
42148
42149
42150
42151
42152
42153
42154
42155
42156
42157
42158
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172
42173
42174
42175
42176
42177
42178
42179
42180
42181
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197
42198
42199
42200
42201
42202
42203
42204
42205
42206
42207
42208
42209
42210
42211
42212
42213
42214
42215
42216
42217
42218
42219
42220
42221
42222
42223
42224
42225
42226
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
42259
42260
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
42281
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
42306
42307
42308
42309
42310
42311
42312
42313
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323
42324
42325
42326
42327
42328
42329
42330
42331
42332
42333
42334
42335
42336
42337
42338
42339
42340
42341
42342
42343
42344
42345
42346
42347
42348
42349
42350
42351
42352
42353
42354
42355
42356
42357
42358
42359
42360
42361
42362
42363
42364
42365
42366
42367
42368
42369
42370
42371
42372
42373
42374
42375
42376
42377
42378
42379
42380
42381
42382
42383
42384
42385
42386
42387
42388
42389
42390
42391
42392
42393
42394
42395
42396
42397
42398
42399
42400
42401
42402
42403
42404
42405
42406
42407
42408
42409
42410
42411
42412
42413
42414
42415
42416
42417
42418
42419
42420
42421
42422
42423
42424
42425
42426
42427
42428
42429
42430
42431
42432
42433
42434
42435
42436
42437
42438
42439
42440
42441
42442
42443
42444
42445
42446
42447
42448
42449
42450
42451
42452
42453
42454
42455
42456
42457
42458
42459
42460
42461
42462
42463
42464
42465
42466
42467
42468
42469
42470
42471
42472
42473
42474
42475
42476
42477
42478
42479
42480
42481
42482
42483
42484
42485
42486
42487
42488
42489
42490
42491
42492
42493
42494
42495
42496
42497
42498
42499
42500
42501
42502
42503
42504
42505
42506
42507
42508
42509
42510
42511
42512
42513
42514
42515
42516
42517
42518
42519
42520
42521
42522
42523
42524
42525
42526
42527
42528
42529
42530
42531
42532
42533
42534
42535
42536
42537
42538
42539
42540
42541
42542
42543
42544
42545
42546
42547
42548
42549
42550
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564
42565
42566
42567
42568
42569
42570
42571
42572
42573
42574
42575
42576
42577
42578
42579
42580
42581
42582
42583
42584
42585
42586
42587
42588
42589
42590
42591
42592
42593
42594
42595
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
42610
42611
42612
42613
42614
42615
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
42631
42632
42633
42634
42635
42636
42637
42638
42639
42640
42641
42642
42643
42644
42645
42646
42647
42648
42649
42650
42651
42652
42653
42654
42655
42656
42657
42658
42659
42660
42661
42662
42663
42664
42665
42666
42667
42668
42669
42670
42671
42672
42673
42674
42675
42676
42677
42678
42679
42680
42681
42682
42683
42684
42685
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695
42696
42697
42698
42699
42700
42701
42702
42703
42704
42705
42706
42707
42708
42709
42710
42711
42712
42713
42714
42715
42716
42717
42718
42719
42720
42721
42722
42723
42724
42725
42726
42727
42728
42729
42730
42731
42732
42733
42734
42735
42736
42737
42738
42739
42740
42741
42742
42743
42744
42745
42746
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
42759
42760
42761
42762
42763
42764
42765
42766
42767
42768
42769
42770
42771
42772
42773
42774
42775
42776
42777
42778
42779
42780
42781
42782
42783
42784
42785
42786
42787
42788
42789
42790
42791
42792
42793
42794
42795
42796
42797
42798
42799
42800
42801
42802
42803
42804
42805
42806
42807
42808
42809
42810
42811
42812
42813
42814
42815
42816
42817
42818
42819
42820
42821
42822
42823
42824
42825
42826
42827
42828
42829
42830
42831
42832
42833
42834
42835
42836
42837
42838
42839
42840
42841
42842
42843
42844
42845
42846
42847
42848
42849
42850
42851
42852
42853
42854
42855
42856
42857
42858
42859
42860
42861
42862
42863
42864
42865
42866
42867
42868
42869
42870
42871
42872
42873
42874
42875
42876
42877
42878
42879
42880
42881
42882
42883
42884
42885
42886
42887
42888
42889
42890
42891
42892
42893
42894
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904
42905
42906
42907
42908
42909
42910
42911
42912
42913
42914
42915
42916
42917
42918
42919
42920
42921
42922
42923
42924
42925
42926
42927
42928
42929
42930
42931
42932
42933
42934
42935
42936
42937
42938
42939
42940
42941
42942
42943
42944
42945
42946
42947
42948
42949
42950
42951
42952
42953
42954
42955
42956
42957
42958
42959
42960
42961
42962
42963
42964
42965
42966
42967
42968
42969
42970
42971
42972
42973
42974
42975
42976
42977
42978
42979
42980
42981
42982
42983
42984
42985
42986
42987
42988
42989
42990
42991
42992
42993
42994
42995
42996
42997
42998
42999
43000
43001
43002
43003
43004
43005
43006
43007
43008
43009
43010
43011
43012
43013
43014
43015
43016
43017
43018
43019
43020
43021
43022
43023
43024
43025
43026
43027
43028
43029
43030
43031
43032
43033
43034
43035
43036
43037
43038
43039
43040
43041
43042
43043
43044
43045
43046
43047
43048
43049
43050
43051
43052
43053
43054
43055
43056
43057
43058
43059
43060
43061
43062
43063
43064
43065
43066
43067
43068
43069
43070
43071
43072
43073
43074
43075
43076
43077
43078
43079
43080
43081
43082
43083
43084
43085
43086
43087
43088
43089
43090
43091
43092
43093
43094
43095
43096
43097
43098
43099
43100
43101
43102
43103
43104
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176
43177
43178
43179
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208
43209
43210
43211
43212
43213
43214
43215
43216
43217
43218
43219
43220
43221
43222
43223
43224
43225
43226
43227
43228
43229
43230
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267
43268
43269
43270
43271
43272
43273
43274
43275
43276
43277
43278
43279
43280
43281
43282
43283
43284
43285
43286
43287
43288
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
43300
43301
43302
43303
43304
43305
43306
43307
43308
43309
43310
43311
43312
43313
43314
43315
43316
43317
43318
43319
43320
43321
43322
43323
43324
43325
43326
43327
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
43356
43357
43358
43359
43360
43361
43362
43363
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377
43378
43379
43380
43381
43382
43383
43384
43385
43386
43387
43388
43389
43390
43391
43392
43393
43394
43395
43396
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410
43411
43412
43413
43414
43415
43416
43417
43418
43419
43420
43421
43422
43423
43424
43425
43426
43427
43428
43429
43430
43431
43432
43433
43434
43435
43436
43437
43438
43439
43440
43441
43442
43443
43444
43445
43446
43447
43448
43449
43450
43451
43452
43453
43454
43455
43456
43457
43458
43459
43460
43461
43462
43463
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473
43474
43475
43476
43477
43478
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488
43489
43490
43491
43492
43493
43494
43495
43496
43497
43498
43499
43500
43501
43502
43503
43504
43505
43506
43507
43508
43509
43510
43511
43512
43513
43514
43515
43516
43517
43518
43519
43520
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538
43539
43540
43541
43542
43543
43544
43545
43546
43547
43548
43549
43550
43551
43552
43553
43554
43555
43556
43557
43558
43559
43560
43561
43562
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
43582
43583
43584
43585
43586
43587
43588
43589
43590
43591
43592
43593
43594
43595
43596
43597
43598
43599
43600
43601
43602
43603
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
43620
43621
43622
43623
43624
43625
43626
43627
43628
43629
43630
43631
43632
43633
43634
43635
43636
43637
43638
43639
43640
43641
43642
43643
43644
43645
43646
43647
43648
43649
43650
43651
43652
43653
43654
43655
43656
43657
43658
43659
43660
43661
43662
43663
43664
43665
43666
43667
43668
43669
43670
43671
43672
43673
43674
43675
43676
43677
43678
43679
43680
43681
43682
43683
43684
43685
43686
43687
43688
43689
43690
43691
43692
43693
43694
43695
43696
43697
43698
43699
43700
43701
43702
43703
43704
43705
43706
43707
43708
43709
43710
43711
43712
43713
43714
43715
43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
43727
43728
43729
43730
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766
43767
43768
43769
43770
43771
43772
43773
43774
43775
43776
43777
43778
43779
43780
43781
43782
43783
43784
43785
43786
43787
43788
43789
43790
43791
43792
43793
43794
43795
43796
43797
43798
43799
43800
43801
43802
43803
43804
43805
43806
43807
43808
43809
43810
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823
43824
43825
43826
43827
43828
43829
43830
43831
43832
43833
43834
43835
43836
43837
43838
43839
43840
43841
43842
43843
43844
43845
43846
43847
43848
43849
43850
43851
43852
43853
43854
43855
43856
43857
43858
43859
43860
43861
43862
43863
43864
43865
43866
43867
43868
43869
43870
43871
43872
43873
43874
43875
43876
43877
43878
43879
43880
43881
43882
43883
43884
43885
43886
43887
43888
43889
43890
43891
43892
43893
43894
43895
43896
43897
43898
43899
43900
43901
43902
43903
43904
43905
43906
43907
43908
43909
43910
43911
43912
43913
43914
43915
43916
43917
43918
43919
43920
43921
43922
43923
43924
43925
43926
43927
43928
43929
43930
43931
43932
43933
43934
43935
43936
43937
43938
43939
43940
43941
43942
43943
43944
43945
43946
43947
43948
43949
43950
43951
43952
43953
43954
43955
43956
43957
43958
43959
43960
43961
43962
43963
43964
43965
43966
43967
43968
43969
43970
43971
43972
43973
43974
43975
43976
43977
43978
43979
43980
43981
43982
43983
43984
43985
43986
43987
43988
43989
43990
43991
43992
43993
43994
43995
43996
43997
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
44016
44017
44018
44019
44020
44021
44022
44023
44024
44025
44026
44027
44028
44029
44030
44031
44032
44033
44034
44035
44036
44037
44038
44039
44040
44041
44042
44043
44044
44045
44046
44047
44048
44049
44050
44051
44052
44053
44054
44055
44056
44057
44058
44059
44060
44061
44062
44063
44064
44065
44066
44067
44068
44069
44070
44071
44072
44073
44074
44075
44076
44077
44078
44079
44080
44081
44082
44083
44084
44085
44086
44087
44088
44089
44090
44091
44092
44093
44094
44095
44096
44097
44098
44099
44100
44101
44102
44103
44104
44105
44106
44107
44108
44109
44110
44111
44112
44113
44114
44115
44116
44117
44118
44119
44120
44121
44122
44123
44124
44125
44126
44127
44128
44129
44130
44131
44132
44133
44134
44135
44136
44137
44138
44139
44140
44141
44142
44143
44144
44145
44146
44147
44148
44149
44150
44151
44152
44153
44154
44155
44156
44157
44158
44159
44160
44161
44162
44163
44164
44165
44166
44167
44168
44169
44170
44171
44172
44173
44174
44175
44176
44177
44178
44179
44180
44181
44182
44183
44184
44185
44186
44187
44188
44189
44190
44191
44192
44193
44194
44195
44196
44197
44198
44199
44200
44201
44202
44203
44204
44205
44206
44207
44208
44209
44210
44211
44212
44213
44214
44215
44216
44217
44218
44219
44220
44221
44222
44223
44224
44225
44226
44227
44228
44229
44230
44231
44232
44233
44234
44235
44236
44237
44238
44239
44240
44241
44242
44243
44244
44245
44246
44247
44248
44249
44250
44251
44252
44253
44254
44255
44256
44257
44258
44259
44260
44261
44262
44263
44264
44265
44266
44267
44268
44269
44270
44271
44272
44273
44274
44275
44276
44277
44278
44279
44280
44281
44282
44283
44284
44285
44286
44287
44288
44289
44290
44291
44292
44293
44294
44295
44296
44297
44298
44299
44300
44301
44302
44303
44304
44305
44306
44307
44308
44309
44310
44311
44312
44313
44314
44315
44316
44317
44318
44319
44320
44321
44322
44323
44324
44325
44326
44327
44328
44329
44330
44331
44332
44333
44334
44335
44336
44337
44338
44339
44340
44341
44342
44343
44344
44345
44346
44347
44348
44349
44350
44351
44352
44353
44354
44355
44356
44357
44358
44359
44360
44361
44362
44363
44364
44365
44366
44367
44368
44369
44370
44371
44372
44373
44374
44375
44376
44377
44378
44379
44380
44381
44382
44383
44384
44385
44386
44387
44388
44389
44390
44391
44392
44393
44394
44395
44396
44397
44398
44399
44400
44401
44402
44403
44404
44405
44406
44407
44408
44409
44410
44411
44412
44413
44414
44415
44416
44417
44418
44419
44420
44421
44422
44423
44424
44425
44426
44427
44428
44429
44430
44431
44432
44433
44434
44435
44436
44437
44438
44439
44440
44441
44442
44443
44444
44445
44446
44447
44448
44449
44450
44451
44452
44453
44454
44455
44456
44457
44458
44459
44460
44461
44462
44463
44464
44465
44466
44467
44468
44469
44470
44471
44472
44473
44474
44475
44476
44477
44478
44479
44480
44481
44482
44483
44484
44485
44486
44487
44488
44489
44490
44491
44492
44493
44494
44495
44496
44497
44498
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511
44512
44513
44514
44515
44516
44517
44518
44519
44520
44521
44522
44523
44524
44525
44526
44527
44528
44529
44530
44531
44532
44533
44534
44535
44536
44537
44538
44539
44540
44541
44542
44543
44544
44545
44546
44547
44548
44549
44550
44551
44552
44553
44554
44555
44556
44557
44558
44559
44560
44561
44562
44563
44564
44565
44566
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579
44580
44581
44582
44583
44584
44585
44586
44587
44588
44589
44590
44591
44592
44593
44594
44595
44596
44597
44598
44599
44600
44601
44602
44603
44604
44605
44606
44607
44608
44609
44610
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
44626
44627
44628
44629
44630
44631
44632
44633
44634
44635
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667
44668
44669
44670
44671
44672
44673
44674
44675
44676
44677
44678
44679
44680
44681
44682
44683
44684
44685
44686
44687
44688
44689
44690
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731
44732
44733
44734
44735
44736
44737
44738
44739
44740
44741
44742
44743
44744
44745
44746
44747
44748
44749
44750
44751
44752
44753
44754
44755
44756
44757
44758
44759
44760
44761
44762
44763
44764
44765
44766
44767
44768
44769
44770
44771
44772
44773
44774
44775
44776
44777
44778
44779
44780
44781
44782
44783
44784
44785
44786
44787
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852
44853
44854
44855
44856
44857
44858
44859
44860
44861
44862
44863
44864
44865
44866
44867
44868
44869
44870
44871
44872
44873
44874
44875
44876
44877
44878
44879
44880
44881
44882
44883
44884
44885
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895
44896
44897
44898
44899
44900
44901
44902
44903
44904
44905
44906
44907
44908
44909
44910
44911
44912
44913
44914
44915
44916
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954
44955
44956
44957
44958
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968
44969
44970
44971
44972
44973
44974
44975
44976
44977
44978
44979
44980
44981
44982
44983
44984
44985
44986
44987
44988
44989
44990
44991
44992
44993
44994
44995
44996
44997
44998
44999
45000
45001
45002
45003
45004
45005
45006
45007
45008
45009
45010
45011
45012
45013
45014
45015
45016
45017
45018
45019
45020
45021
45022
45023
45024
45025
45026
45027
45028
45029
45030
45031
45032
45033
45034
45035
45036
45037
45038
45039
45040
45041
45042
45043
45044
45045
45046
45047
45048
45049
45050
45051
45052
45053
45054
45055
45056
45057
45058
45059
45060
45061
45062
45063
45064
45065
45066
45067
45068
45069
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079
45080
45081
45082
45083
45084
45085
45086
45087
45088
45089
45090
45091
45092
45093
45094
45095
45096
45097
45098
45099
45100
45101
45102
45103
45104
45105
45106
45107
45108
45109
45110
45111
45112
45113
45114
45115
45116
45117
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131
45132
45133
45134
45135
45136
45137
45138
45139
45140
45141
45142
45143
45144
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155
45156
45157
45158
45159
45160
45161
45162
45163
45164
45165
45166
45167
45168
45169
45170
45171
45172
45173
45174
45175
45176
45177
45178
45179
45180
45181
45182
45183
45184
45185
45186
45187
45188
45189
45190
45191
45192
45193
45194
45195
45196
45197
45198
45199
45200
45201
45202
45203
45204
45205
45206
45207
45208
45209
45210
45211
45212
45213
45214
45215
45216
45217
45218
45219
45220
45221
45222
45223
45224
45225
45226
45227
45228
45229
45230
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
45247
45248
45249
45250
45251
45252
45253
45254
45255
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265
45266
45267
45268
45269
45270
45271
45272
45273
45274
45275
45276
45277
45278
45279
45280
45281
45282
45283
45284
45285
45286
45287
45288
45289
45290
45291
45292
45293
45294
45295
45296
45297
45298
45299
45300
45301
45302
45303
45304
45305
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326
45327
45328
45329
45330
45331
45332
45333
45334
45335
45336
45337
45338
45339
45340
45341
45342
45343
45344
45345
45346
45347
45348
45349
45350
45351
45352
45353
45354
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
45374
45375
45376
45377
45378
45379
45380
45381
45382
45383
45384
45385
45386
45387
45388
45389
45390
45391
45392
45393
45394
45395
45396
45397
45398
45399
45400
45401
45402
45403
45404
45405
45406
45407
45408
45409
45410
45411
45412
45413
45414
45415
45416
45417
45418
45419
45420
45421
45422
45423
45424
45425
45426
45427
45428
45429
45430
45431
45432
45433
45434
45435
45436
45437
45438
45439
45440
45441
45442
45443
45444
45445
45446
45447
45448
45449
45450
45451
45452
45453
45454
45455
45456
45457
45458
45459
45460
45461
45462
45463
45464
45465
45466
45467
45468
45469
45470
45471
45472
45473
45474
45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
45494
45495
45496
45497
45498
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508
45509
45510
45511
45512
45513
45514
45515
45516
45517
45518
45519
45520
45521
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
45533
45534
45535
45536
45537
45538
45539
45540
45541
45542
45543
45544
45545
45546
45547
45548
45549
45550
45551
45552
45553
45554
45555
45556
45557
45558
45559
45560
45561
45562
45563
45564
45565
45566
45567
45568
45569
45570
45571
45572
45573
45574
45575
45576
45577
45578
45579
45580
45581
45582
45583
45584
45585
45586
45587
45588
45589
45590
45591
45592
45593
45594
45595
45596
45597
45598
45599
45600
45601
45602
45603
45604
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
45616
45617
45618
45619
45620
45621
45622
45623
45624
45625
45626
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689
45690
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702
45703
45704
45705
45706
45707
45708
45709
45710
45711
45712
45713
45714
45715
45716
45717
45718
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742
45743
45744
45745
45746
45747
45748
45749
45750
45751
45752
45753
45754
45755
45756
45757
45758
45759
45760
45761
45762
45763
45764
45765
45766
45767
45768
45769
45770
45771
45772
45773
45774
45775
45776
45777
45778
45779
45780
45781
45782
45783
45784
45785
45786
45787
45788
45789
45790
45791
45792
45793
45794
45795
45796
45797
45798
45799
45800
45801
45802
45803
45804
45805
45806
45807
45808
45809
45810
45811
45812
45813
45814
45815
45816
45817
45818
45819
45820
45821
45822
45823
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837
45838
45839
45840
45841
45842
45843
45844
45845
45846
45847
45848
45849
45850
45851
45852
45853
45854
45855
45856
45857
45858
45859
45860
45861
45862
45863
45864
45865
45866
45867
45868
45869
45870
45871
45872
45873
45874
45875
45876
45877
45878
45879
45880
45881
45882
45883
45884
45885
45886
45887
45888
45889
45890
45891
45892
45893
45894
45895
45896
45897
45898
45899
45900
45901
45902
45903
45904
45905
45906
45907
45908
45909
45910
45911
45912
45913
45914
45915
45916
45917
45918
45919
45920
45921
45922
45923
45924
45925
45926
45927
45928
45929
45930
45931
45932
45933
45934
45935
45936
45937
45938
45939
45940
45941
45942
45943
45944
45945
45946
45947
45948
45949
45950
45951
45952
45953
45954
45955
45956
45957
45958
45959
45960
45961
45962
45963
45964
45965
45966
45967
45968
45969
45970
45971
45972
45973
45974
45975
45976
45977
45978
45979
45980
45981
45982
45983
45984
45985
45986
45987
45988
45989
45990
45991
45992
45993
45994
45995
45996
45997
45998
45999
46000
46001
46002
46003
46004
46005
46006
46007
46008
46009
46010
46011
46012
46013
46014
46015
46016
46017
46018
46019
46020
46021
46022
46023
46024
46025
46026
46027
46028
46029
46030
46031
46032
46033
46034
46035
46036
46037
46038
46039
46040
46041
46042
46043
46044
46045
46046
46047
46048
46049
46050
46051
46052
46053
46054
46055
46056
46057
46058
46059
46060
46061
46062
46063
46064
46065
46066
46067
46068
46069
46070
46071
46072
46073
46074
46075
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
46108
46109
46110
46111
46112
46113
46114
46115
46116
46117
46118
46119
46120
46121
46122
46123
46124
46125
46126
46127
46128
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138
46139
46140
46141
46142
46143
46144
46145
46146
46147
46148
46149
46150
46151
46152
46153
46154
46155
46156
46157
46158
46159
46160
46161
46162
46163
46164
46165
46166
46167
46168
46169
46170
46171
46172
46173
46174
46175
46176
46177
46178
46179
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189
46190
46191
46192
46193
46194
46195
46196
46197
46198
46199
46200
46201
46202
46203
46204
46205
46206
46207
46208
46209
46210
46211
46212
46213
46214
46215
46216
46217
46218
46219
46220
46221
46222
46223
46224
46225
46226
46227
46228
46229
46230
46231
46232
46233
46234
46235
46236
46237
46238
46239
46240
46241
46242
46243
46244
46245
46246
46247
46248
46249
46250
46251
46252
46253
46254
46255
46256
46257
46258
46259
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295
46296
46297
46298
46299
46300
46301
46302
46303
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314
46315
46316
46317
46318
46319
46320
46321
46322
46323
46324
46325
46326
46327
46328
46329
46330
46331
46332
46333
46334
46335
46336
46337
46338
46339
46340
46341
46342
46343
46344
46345
46346
46347
46348
46349
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
46443
46444
46445
46446
46447
46448
46449
46450
46451
46452
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465
46466
46467
46468
46469
46470
46471
46472
46473
46474
46475
46476
46477
46478
46479
46480
46481
46482
46483
46484
46485
46486
46487
46488
46489
46490
46491
46492
46493
46494
46495
46496
46497
46498
46499
46500
46501
46502
46503
46504
46505
46506
46507
46508
46509
46510
46511
46512
46513
46514
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524
46525
46526
46527
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
46540
46541
46542
46543
46544
46545
46546
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578
46579
46580
46581
46582
46583
46584
46585
46586
46587
46588
46589
46590
46591
46592
46593
46594
46595
46596
46597
46598
46599
46600
46601
46602
46603
46604
46605
46606
46607
46608
46609
46610
46611
46612
46613
46614
46615
46616
46617
46618
46619
46620
46621
46622
46623
46624
46625
46626
46627
46628
46629
46630
46631
46632
46633
46634
46635
46636
46637
46638
46639
46640
46641
46642
46643
46644
46645
46646
46647
46648
46649
46650
46651
46652
46653
46654
46655
46656
46657
46658
46659
46660
46661
46662
46663
46664
46665
46666
46667
46668
46669
46670
46671
46672
46673
46674
46675
46676
46677
46678
46679
46680
46681
46682
46683
46684
46685
46686
46687
46688
46689
46690
46691
46692
46693
46694
46695
46696
46697
46698
46699
46700
46701
46702
46703
46704
46705
46706
46707
46708
46709
46710
46711
46712
46713
46714
46715
46716
46717
46718
46719
46720
46721
46722
46723
46724
46725
46726
46727
46728
46729
46730
46731
46732
46733
46734
46735
46736
46737
46738
46739
46740
46741
46742
46743
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754
46755
46756
46757
46758
46759
46760
46761
46762
46763
46764
46765
46766
46767
46768
46769
46770
46771
46772
46773
46774
46775
46776
46777
46778
46779
46780
46781
46782
46783
46784
46785
46786
46787
46788
46789
46790
46791
46792
46793
46794
46795
46796
46797
46798
46799
46800
46801
46802
46803
46804
46805
46806
46807
46808
46809
46810
46811
46812
46813
46814
46815
46816
46817
46818
46819
46820
46821
46822
46823
46824
46825
46826
46827
46828
46829
46830
46831
46832
46833
46834
46835
46836
46837
46838
46839
46840
46841
46842
46843
46844
46845
46846
46847
46848
46849
46850
46851
46852
46853
46854
46855
46856
46857
46858
46859
46860
46861
46862
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
46907
46908
46909
46910
46911
46912
46913
46914
46915
46916
46917
46918
46919
46920
46921
46922
46923
46924
46925
46926
46927
46928
46929
46930
46931
46932
46933
46934
46935
46936
46937
46938
46939
46940
46941
46942
46943
46944
46945
46946
46947
46948
46949
46950
46951
46952
46953
46954
46955
46956
46957
46958
46959
46960
46961
46962
46963
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
46982
46983
46984
46985
46986
46987
46988
46989
46990
46991
46992
46993
46994
46995
46996
46997
46998
46999
47000
47001
47002
47003
47004
47005
47006
47007
47008
47009
47010
47011
47012
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022
47023
47024
47025
47026
47027
47028
47029
47030
47031
47032
47033
47034
47035
47036
47037
47038
47039
47040
47041
47042
47043
47044
47045
47046
47047
47048
47049
47050
47051
47052
47053
47054
47055
47056
47057
47058
47059
47060
47061
47062
47063
47064
47065
47066
47067
47068
47069
47070
47071
47072
47073
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119
47120
47121
47122
47123
47124
47125
47126
47127
47128
47129
47130
47131
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142
47143
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206
47207
47208
47209
47210
47211
47212
47213
47214
47215
47216
47217
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
47265
47266
47267
47268
47269
47270
47271
47272
47273
47274
47275
47276
47277
47278
47279
47280
47281
47282
47283
47284
47285
47286
47287
47288
47289
47290
47291
47292
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333
47334
47335
47336
47337
47338
47339
47340
47341
47342
47343
47344
47345
47346
47347
47348
47349
47350
47351
47352
47353
47354
47355
47356
47357
47358
47359
47360
47361
47362
47363
47364
47365
47366
47367
47368
47369
47370
47371
47372
47373
47374
47375
47376
47377
47378
47379
47380
47381
47382
47383
47384
47385
47386
47387
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
47399
47400
47401
47402
47403
47404
47405
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422
47423
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435
47436
47437
47438
47439
47440
47441
47442
47443
47444
47445
47446
47447
47448
47449
47450
47451
47452
47453
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463
47464
47465
47466
47467
47468
47469
47470
47471
47472
47473
47474
47475
47476
47477
47478
47479
47480
47481
47482
47483
47484
47485
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495
47496
47497
47498
47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522
47523
47524
47525
47526
47527
47528
47529
47530
47531
47532
47533
47534
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545
47546
47547
47548
47549
47550
47551
47552
47553
47554
47555
47556
47557
47558
47559
47560
47561
47562
47563
47564
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574
47575
47576
47577
47578
47579
47580
47581
47582
47583
47584
47585
47586
47587
47588
47589
47590
47591
47592
47593
47594
47595
47596
47597
47598
47599
47600
47601
47602
47603
47604
47605
47606
47607
47608
47609
47610
47611
47612
47613
47614
47615
47616
47617
47618
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636
47637
47638
47639
47640
47641
47642
47643
47644
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
47677
47678
47679
47680
47681
47682
47683
47684
47685
47686
47687
47688
47689
47690
47691
47692
47693
47694
47695
47696
47697
47698
47699
47700
47701
47702
47703
47704
47705
47706
47707
47708
47709
47710
47711
47712
47713
47714
47715
47716
47717
47718
47719
47720
47721
47722
47723
47724
47725
47726
47727
47728
47729
47730
47731
47732
47733
47734
47735
47736
47737
47738
47739
47740
47741
47742
47743
47744
47745
47746
47747
47748
47749
47750
47751
47752
47753
47754
47755
47756
47757
47758
47759
47760
47761
47762
47763
47764
47765
47766
47767
47768
47769
47770
47771
47772
47773
47774
47775
47776
47777
47778
47779
47780
47781
47782
47783
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793
47794
47795
47796
47797
47798
47799
47800
47801
47802
47803
47804
47805
47806
47807
47808
47809
47810
47811
47812
47813
47814
47815
47816
47817
47818
47819
47820
47821
47822
47823
47824
47825
47826
47827
47828
47829
47830
47831
47832
47833
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859
47860
47861
47862
47863
47864
47865
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875
47876
47877
47878
47879
47880
47881
47882
47883
47884
47885
47886
47887
47888
47889
47890
47891
47892
47893
47894
47895
47896
47897
47898
47899
47900
47901
47902
47903
47904
47905
47906
47907
47908
47909
47910
47911
47912
47913
47914
47915
47916
47917
47918
47919
47920
47921
47922
47923
47924
47925
47926
47927
47928
47929
47930
47931
47932
47933
47934
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945
47946
47947
47948
47949
47950
47951
47952
47953
47954
47955
47956
47957
47958
47959
47960
47961
47962
47963
47964
47965
47966
47967
47968
47969
47970
47971
47972
47973
47974
47975
47976
47977
47978
47979
47980
47981
47982
47983
47984
47985
47986
47987
47988
47989
47990
47991
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001
48002
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014
48015
48016
48017
48018
48019
48020
48021
48022
48023
48024
48025
48026
48027
48028
48029
48030
48031
48032
48033
48034
48035
48036
48037
48038
48039
48040
48041
48042
48043
48044
48045
48046
48047
48048
48049
48050
48051
48052
48053
48054
48055
48056
48057
48058
48059
48060
48061
48062
48063
48064
48065
48066
48067
48068
48069
48070
48071
48072
48073
48074
48075
48076
48077
48078
48079
48080
48081
48082
48083
48084
48085
48086
48087
48088
48089
48090
48091
48092
48093
48094
48095
48096
48097
48098
48099
48100
48101
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
48133
48134
48135
48136
48137
48138
48139
48140
48141
48142
48143
48144
48145
48146
48147
48148
48149
48150
48151
48152
48153
48154
48155
48156
48157
48158
48159
48160
48161
48162
48163
48164
48165
48166
48167
48168
48169
48170
48171
48172
48173
48174
48175
48176
48177
48178
48179
48180
48181
48182
48183
48184
48185
48186
48187
48188
48189
48190
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213
48214
48215
48216
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
48232
48233
48234
48235
48236
48237
48238
48239
48240
48241
48242
48243
48244
48245
48246
48247
48248
48249
48250
48251
48252
48253
48254
48255
48256
48257
48258
48259
48260
48261
48262
48263
48264
48265
48266
48267
48268
48269
48270
48271
48272
48273
48274
48275
48276
48277
48278
48279
48280
48281
48282
48283
48284
48285
48286
48287
48288
48289
48290
48291
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311
48312
48313
48314
48315
48316
48317
48318
48319
48320
48321
48322
48323
48324
48325
48326
48327
48328
48329
48330
48331
48332
48333
48334
48335
48336
48337
48338
48339
48340
48341
48342
48343
48344
48345
48346
48347
48348
48349
48350
48351
48352
48353
48354
48355
48356
48357
48358
48359
48360
48361
48362
48363
48364
48365
48366
48367
48368
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396
48397
48398
48399
48400
48401
48402
48403
48404
48405
48406
48407
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
48447
48448
48449
48450
48451
48452
48453
48454
48455
48456
48457
48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
48468
48469
48470
48471
48472
48473
48474
48475
48476
48477
48478
48479
48480
48481
48482
48483
48484
48485
48486
48487
48488
48489
48490
48491
48492
48493
48494
48495
48496
48497
48498
48499
48500
48501
48502
48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579
48580
48581
48582
48583
48584
48585
48586
48587
48588
48589
48590
48591
48592
48593
48594
48595
48596
48597
48598
48599
48600
48601
48602
48603
48604
48605
48606
48607
48608
48609
48610
48611
48612
48613
48614
48615
48616
48617
48618
48619
48620
48621
48622
48623
48624
48625
48626
48627
48628
48629
48630
48631
48632
48633
48634
48635
48636
48637
48638
48639
48640
48641
48642
48643
48644
48645
48646
48647
48648
48649
48650
48651
48652
48653
48654
48655
48656
48657
48658
48659
48660
48661
48662
48663
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679
48680
48681
48682
48683
48684
48685
48686
48687
48688
48689
48690
48691
48692
48693
48694
48695
48696
48697
48698
48699
48700
48701
48702
48703
48704
48705
48706
48707
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746
48747
48748
48749
48750
48751
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766
48767
48768
48769
48770
48771
48772
48773
48774
48775
48776
48777
48778
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795
48796
48797
48798
48799
48800
48801
48802
48803
48804
48805
48806
48807
48808
48809
48810
48811
48812
48813
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850
48851
48852
48853
48854
48855
48856
48857
48858
48859
48860
48861
48862
48863
48864
48865
48866
48867
48868
48869
48870
48871
48872
48873
48874
48875
48876
48877
48878
48879
48880
48881
48882
48883
48884
48885
48886
48887
48888
48889
48890
48891
48892
48893
48894
48895
48896
48897
48898
48899
48900
48901
48902
48903
48904
48905
48906
48907
48908
48909
48910
48911
48912
48913
48914
48915
48916
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
48928
48929
48930
48931
48932
48933
48934
48935
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945
48946
48947
48948
48949
48950
48951
48952
48953
48954
48955
48956
48957
48958
48959
48960
48961
48962
48963
48964
48965
48966
48967
48968
48969
48970
48971
48972
48973
48974
48975
48976
48977
48978
48979
48980
48981
48982
48983
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
48994
48995
48996
48997
48998
48999
49000
49001
49002
49003
49004
49005
49006
49007
49008
49009
49010
49011
49012
49013
49014
49015
49016
49017
49018
49019
49020
49021
49022
49023
49024
49025
49026
49027
49028
49029
49030
49031
49032
49033
49034
49035
49036
49037
49038
49039
49040
49041
49042
49043
49044
49045
49046
49047
49048
49049
49050
49051
49052
49053
49054
49055
49056
49057
49058
49059
49060
49061
49062
49063
49064
49065
49066
49067
49068
49069
49070
49071
49072
49073
49074
49075
49076
49077
49078
49079
49080
49081
49082
49083
49084
49085
49086
49087
49088
49089
49090
49091
49092
49093
49094
49095
49096
49097
49098
49099
49100
49101
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123
49124
49125
49126
49127
49128
49129
49130
49131
49132
49133
49134
49135
49136
49137
49138
49139
49140
49141
49142
49143
49144
49145
49146
49147
49148
49149
49150
49151
49152
49153
49154
49155
49156
49157
49158
49159
49160
49161
49162
49163
49164
49165
49166
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
49185
49186
49187
49188
49189
49190
49191
49192
49193
49194
49195
49196
49197
49198
49199
49200
49201
49202
49203
49204
49205
49206
49207
49208
49209
49210
49211
49212
49213
49214
49215
49216
49217
49218
49219
49220
49221
49222
49223
49224
49225
49226
49227
49228
49229
49230
49231
49232
49233
49234
49235
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295
49296
49297
49298
49299
49300
49301
49302
49303
49304
49305
49306
49307
49308
49309
49310
49311
49312
49313
49314
49315
49316
49317
49318
49319
49320
49321
49322
49323
49324
49325
49326
49327
49328
49329
49330
49331
49332
49333
49334
49335
49336
49337
49338
49339
49340
49341
49342
49343
49344
49345
49346
49347
49348
49349
49350
49351
49352
49353
49354
49355
49356
49357
49358
49359
49360
49361
49362
49363
49364
49365
49366
49367
49368
49369
49370
49371
49372
49373
49374
49375
49376
49377
49378
49379
49380
49381
49382
49383
49384
49385
49386
49387
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416
49417
49418
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428
49429
49430
49431
49432
49433
49434
49435
49436
49437
49438
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
49493
49494
49495
49496
49497
49498
49499
49500
49501
49502
49503
49504
49505
49506
49507
49508
49509
49510
49511
49512
49513
49514
49515
49516
49517
49518
49519
49520
49521
49522
49523
49524
49525
49526
49527
49528
49529
49530
49531
49532
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542
49543
49544
49545
49546
49547
49548
49549
49550
49551
49552
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567
49568
49569
49570
49571
49572
49573
49574
49575
49576
49577
49578
49579
49580
49581
49582
49583
49584
49585
49586
49587
49588
49589
49590
49591
49592
49593
49594
49595
49596
49597
49598
49599
49600
49601
49602
49603
49604
49605
49606
49607
49608
49609
49610
49611
49612
49613
49614
49615
49616
49617
49618
49619
49620
49621
49622
49623
49624
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636
49637
49638
49639
49640
49641
49642
49643
49644
49645
49646
49647
49648
49649
49650
49651
49652
49653
49654
49655
49656
49657
49658
49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
49670
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680
49681
49682
49683
49684
49685
49686
49687
49688
49689
49690
49691
49692
49693
49694
49695
49696
49697
49698
49699
49700
49701
49702
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736
49737
49738
49739
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776
49777
49778
49779
49780
49781
49782
49783
49784
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850
49851
49852
49853
49854
49855
49856
49857
49858
49859
49860
49861
49862
49863
49864
49865
49866
49867
49868
49869
49870
49871
49872
49873
49874
49875
49876
49877
49878
49879
49880
49881
49882
49883
49884
49885
49886
49887
49888
49889
49890
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
49912
49913
49914
49915
49916
49917
49918
49919
49920
49921
49922
49923
49924
49925
49926
49927
49928
49929
49930
49931
49932
49933
49934
49935
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945
49946
49947
49948
49949
49950
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966
49967
49968
49969
49970
49971
49972
49973
49974
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984
49985
49986
49987
49988
49989
49990
49991
49992
49993
49994
49995
49996
49997
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007
50008
50009
50010
50011
50012
50013
50014
50015
50016
50017
50018
50019
50020
50021
50022
50023
50024
50025
50026
50027
50028
50029
50030
50031
50032
50033
50034
50035
50036
50037
50038
50039
50040
50041
50042
50043
50044
50045
50046
50047
50048
50049
50050
50051
50052
50053
50054
50055
50056
50057
50058
50059
50060
50061
50062
50063
50064
50065
50066
50067
50068
50069
50070
50071
50072
50073
50074
50075
50076
50077
50078
50079
50080
50081
50082
50083
50084
50085
50086
50087
50088
50089
50090
50091
50092
50093
50094
50095
50096
50097
50098
50099
50100
50101
50102
50103
50104
50105
50106
50107
50108
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156
50157
50158
50159
50160
50161
50162
50163
50164
50165
50166
50167
50168
50169
50170
50171
50172
50173
50174
50175
50176
50177
50178
50179
50180
50181
50182
50183
50184
50185
50186
50187
50188
50189
50190
50191
50192
50193
50194
50195
50196
50197
50198
50199
50200
50201
50202
50203
50204
50205
50206
50207
50208
50209
50210
50211
50212
50213
50214
50215
50216
50217
50218
50219
50220
50221
50222
50223
50224
50225
50226
50227
50228
50229
50230
50231
50232
50233
50234
50235
50236
50237
50238
50239
50240
50241
50242
50243
50244
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254
50255
50256
50257
50258
50259
50260
50261
50262
50263
50264
50265
50266
50267
50268
50269
50270
50271
50272
50273
50274
50275
50276
50277
50278
50279
50280
50281
50282
50283
50284
50285
50286
50287
50288
50289
50290
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327
50328
50329
50330
50331
50332
50333
50334
50335
50336
50337
50338
50339
50340
50341
50342
50343
50344
50345
50346
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386
50387
50388
50389
50390
50391
50392
50393
50394
50395
50396
50397
50398
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
50420
50421
50422
50423
50424
50425
50426
50427
50428
50429
50430
50431
50432
50433
50434
50435
50436
50437
50438
50439
50440
50441
50442
50443
50444
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463
50464
50465
50466
50467
50468
50469
50470
50471
50472
50473
50474
50475
50476
50477
50478
50479
50480
50481
50482
50483
50484
50485
50486
50487
50488
50489
50490
50491
50492
50493
50494
50495
50496
50497
50498
50499
50500
50501
50502
50503
50504
50505
50506
50507
50508
50509
50510
50511
50512
50513
50514
50515
50516
50517
50518
50519
50520
50521
50522
50523
50524
50525
50526
50527
50528
50529
50530
50531
50532
50533
50534
50535
50536
50537
50538
50539
50540
50541
50542
50543
50544
50545
50546
50547
50548
50549
50550
50551
50552
50553
50554
50555
50556
50557
50558
50559
50560
50561
50562
50563
50564
50565
50566
50567
50568
50569
50570
50571
50572
50573
50574
50575
50576
50577
50578
50579
50580
50581
50582
50583
50584
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
50597
50598
50599
50600
50601
50602
50603
50604
50605
50606
50607
50608
50609
50610
50611
50612
50613
50614
50615
50616
50617
50618
50619
50620
50621
50622
50623
50624
50625
50626
50627
50628
50629
50630
50631
50632
50633
50634
50635
50636
50637
50638
50639
50640
50641
50642
50643
50644
50645
50646
50647
50648
50649
50650
50651
50652
50653
50654
50655
50656
50657
50658
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671
50672
50673
50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687
50688
50689
50690
50691
50692
50693
50694
50695
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710
50711
50712
50713
50714
50715
50716
50717
50718
50719
50720
50721
50722
50723
50724
50725
50726
50727
50728
50729
50730
50731
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
50762
50763
50764
50765
50766
50767
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781
50782
50783
50784
50785
50786
50787
50788
50789
50790
50791
50792
50793
50794
50795
50796
50797
50798
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
50814
50815
50816
50817
50818
50819
50820
50821
50822
50823
50824
50825
50826
50827
50828
50829
50830
50831
50832
50833
50834
50835
50836
50837
50838
50839
50840
50841
50842
50843
50844
50845
50846
50847
50848
50849
50850
50851
50852
50853
50854
50855
50856
50857
50858
50859
50860
50861
50862
50863
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897
50898
50899
50900
50901
50902
50903
50904
50905
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923
50924
50925
50926
50927
50928
50929
50930
50931
50932
50933
50934
50935
50936
50937
50938
50939
50940
50941
50942
50943
50944
50945
50946
50947
50948
50949
50950
50951
50952
50953
50954
50955
50956
50957
50958
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968
50969
50970
50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982
50983
50984
50985
50986
50987
50988
50989
50990
50991
50992
50993
50994
50995
50996
50997
50998
50999
51000
51001
51002
51003
51004
51005
51006
51007
51008
51009
51010
51011
51012
51013
51014
51015
51016
51017
51018
51019
51020
51021
51022
51023
51024
51025
51026
51027
51028
51029
51030
51031
51032
51033
51034
51035
51036
51037
51038
51039
51040
51041
51042
51043
51044
51045
51046
51047
51048
51049
51050
51051
51052
51053
51054
51055
51056
51057
51058
51059
51060
51061
51062
51063
51064
51065
51066
51067
51068
51069
51070
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090
51091
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127
51128
51129
51130
51131
51132
51133
51134
51135
51136
51137
51138
51139
51140
51141
51142
51143
51144
51145
51146
51147
51148
51149
51150
51151
51152
51153
51154
51155
51156
51157
51158
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173
51174
51175
51176
51177
51178
51179
51180
51181
51182
51183
51184
51185
51186
51187
51188
51189
51190
51191
51192
51193
51194
51195
51196
51197
51198
51199
51200
51201
51202
51203
51204
51205
51206
51207
51208
51209
51210
51211
51212
51213
51214
51215
51216
51217
51218
51219
51220
51221
51222
51223
51224
51225
51226
51227
51228
51229
51230
51231
51232
51233
51234
51235
51236
51237
51238
51239
51240
51241
51242
51243
51244
51245
51246
51247
51248
51249
51250
51251
51252
51253
51254
51255
51256
51257
51258
51259
51260
51261
51262
51263
51264
51265
51266
51267
51268
51269
51270
51271
51272
51273
51274
51275
51276
51277
51278
51279
51280
51281
51282
51283
51284
51285
51286
51287
51288
51289
51290
51291
51292
51293
51294
51295
51296
51297
51298
51299
51300
51301
51302
51303
51304
51305
51306
51307
51308
51309
51310
51311
51312
51313
51314
51315
51316
51317
51318
51319
51320
51321
51322
51323
51324
51325
51326
51327
51328
51329
51330
51331
51332
51333
51334
51335
51336
51337
51338
51339
51340
51341
51342
51343
51344
51345
51346
51347
51348
51349
51350
51351
51352
51353
51354
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365
51366
51367
51368
51369
51370
51371
51372
51373
51374
51375
51376
51377
51378
51379
51380
51381
51382
51383
51384
51385
51386
51387
51388
51389
51390
51391
51392
51393
51394
51395
51396
51397
51398
51399
51400
51401
51402
51403
51404
51405
51406
51407
51408
51409
51410
51411
51412
51413
51414
51415
51416
51417
51418
51419
51420
51421
51422
51423
51424
51425
51426
51427
51428
51429
51430
51431
51432
51433
51434
51435
51436
51437
51438
51439
51440
51441
51442
51443
51444
51445
51446
51447
51448
51449
51450
51451
51452
51453
51454
51455
51456
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472
51473
51474
51475
51476
51477
51478
51479
51480
51481
51482
51483
51484
51485
51486
51487
51488
51489
51490
51491
51492
51493
51494
51495
51496
51497
51498
51499
51500
51501
51502
51503
51504
51505
51506
51507
51508
51509
51510
51511
51512
51513
51514
51515
51516
51517
51518
51519
51520
51521
51522
51523
51524
51525
51526
51527
51528
51529
51530
51531
51532
51533
51534
51535
51536
51537
51538
51539
51540
51541
51542
51543
51544
51545
51546
51547
51548
51549
51550
51551
51552
51553
51554
51555
51556
51557
51558
51559
51560
51561
51562
51563
51564
51565
51566
51567
51568
51569
51570
51571
51572
51573
51574
51575
51576
51577
51578
51579
51580
51581
51582
51583
51584
51585
51586
51587
51588
51589
51590
51591
51592
51593
51594
51595
51596
51597
51598
51599
51600
51601
51602
51603
51604
51605
51606
51607
51608
51609
51610
51611
51612
51613
51614
51615
51616
51617
51618
51619
51620
51621
51622
51623
51624
51625
51626
51627
51628
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654
51655
51656
51657
51658
51659
51660
51661
51662
51663
51664
51665
51666
51667
51668
51669
51670
51671
51672
51673
51674
51675
51676
51677
51678
51679
51680
51681
51682
51683
51684
51685
51686
51687
51688
51689
51690
51691
51692
51693
51694
51695
51696
51697
51698
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728
51729
51730
51731
51732
51733
51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770
51771
51772
51773
51774
51775
51776
51777
51778
51779
51780
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831
51832
51833
51834
51835
51836
51837
51838
51839
51840
51841
51842
51843
51844
51845
51846
51847
51848
51849
51850
51851
51852
51853
51854
51855
51856
51857
51858
51859
51860
51861
51862
51863
51864
51865
51866
51867
51868
51869
51870
51871
51872
51873
51874
51875
51876
51877
51878
51879
51880
51881
51882
51883
51884
51885
51886
51887
51888
51889
51890
51891
51892
51893
51894
51895
51896
51897
51898
51899
51900
51901
51902
51903
51904
51905
51906
51907
51908
51909
51910
51911
51912
51913
51914
51915
51916
51917
51918
51919
51920
51921
51922
51923
51924
51925
51926
51927
51928
51929
51930
51931
51932
51933
51934
51935
51936
51937
51938
51939
51940
51941
51942
51943
51944
51945
51946
51947
51948
51949
51950
51951
51952
51953
51954
51955
51956
51957
51958
51959
51960
51961
51962
51963
51964
51965
51966
51967
51968
51969
51970
51971
51972
51973
51974
51975
51976
51977
51978
51979
51980
51981
51982
51983
51984
51985
51986
51987
51988
51989
51990
51991
51992
51993
51994
51995
51996
51997
51998
51999
52000
52001
52002
52003
52004
52005
52006
52007
52008
52009
52010
52011
52012
52013
52014
52015
52016
52017
52018
52019
52020
52021
52022
52023
52024
52025
52026
52027
52028
52029
52030
52031
52032
52033
52034
52035
52036
52037
52038
52039
52040
52041
52042
52043
52044
52045
52046
52047
52048
52049
52050
52051
52052
52053
52054
52055
52056
52057
52058
52059
52060
52061
52062
52063
52064
52065
52066
52067
52068
52069
52070
52071
52072
52073
52074
52075
52076
52077
52078
52079
52080
52081
52082
52083
52084
52085
52086
52087
52088
52089
52090
52091
52092
52093
52094
52095
52096
52097
52098
52099
52100
52101
52102
52103
52104
52105
52106
52107
52108
52109
52110
52111
52112
52113
52114
52115
52116
52117
52118
52119
52120
52121
52122
52123
52124
52125
52126
52127
52128
52129
52130
52131
52132
52133
52134
52135
52136
52137
52138
52139
52140
52141
52142
52143
52144
52145
52146
52147
52148
52149
52150
52151
52152
52153
52154
52155
52156
52157
52158
52159
52160
52161
52162
52163
52164
52165
52166
52167
52168
52169
52170
52171
52172
52173
52174
52175
52176
52177
52178
52179
52180
52181
52182
52183
52184
52185
52186
52187
52188
52189
52190
52191
52192
52193
52194
52195
52196
52197
52198
52199
52200
52201
52202
52203
52204
52205
52206
52207
52208
52209
52210
52211
52212
52213
52214
52215
52216
52217
52218
52219
52220
52221
52222
52223
52224
52225
52226
52227
52228
52229
52230
52231
52232
52233
52234
52235
52236
52237
52238
52239
52240
52241
52242
52243
52244
52245
52246
52247
52248
52249
52250
52251
52252
52253
52254
52255
52256
52257
52258
52259
52260
52261
52262
52263
52264
52265
52266
52267
52268
52269
52270
52271
52272
52273
52274
52275
52276
52277
52278
52279
52280
52281
52282
52283
52284
52285
52286
52287
52288
52289
52290
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300
52301
52302
52303
52304
52305
52306
52307
52308
52309
52310
52311
52312
52313
52314
52315
52316
52317
52318
52319
52320
52321
52322
52323
52324
52325
52326
52327
52328
52329
52330
52331
52332
52333
52334
52335
52336
52337
52338
52339
52340
52341
52342
52343
52344
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357
52358
52359
52360
52361
52362
52363
52364
52365
52366
52367
52368
52369
52370
52371
52372
52373
52374
52375
52376
52377
52378
52379
52380
52381
52382
52383
52384
52385
52386
52387
52388
52389
52390
52391
52392
52393
52394
52395
52396
52397
52398
52399
52400
52401
52402
52403
52404
52405
52406
52407
52408
52409
52410
52411
52412
52413
52414
52415
52416
52417
52418
52419
52420
52421
52422
52423
52424
52425
52426
52427
52428
52429
52430
52431
|
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu Feb 9 09:39:41 2023 +0100
Release 3.7.9
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Tue Jan 3 09:06:01 2023 +0100
Update year of copyright notices in doc/gnutls.texi
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Hubert Kario <hkario@redhat.com>
Date: Wed Feb 8 14:43:45 2023 +0100
document the CVE fix
Signed-off-by: Hubert Kario <hkario@redhat.com>
Author: Hubert Kario <hkario@redhat.com>
Date: Wed Feb 8 14:32:09 2023 +0100
rsa: remove dead code
since the `ok` variable isn't used any more, we can remove all code
used to calculate it
Signed-off-by: Hubert Kario <hkario@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Aug 9 16:05:53 2022 +0200
auth/rsa: side-step potential side-channel
Remove branching that depends on secret data.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Signed-off-by: Hubert Kario <hkario@redhat.com>
Tested-by: Hubert Kario <hkario@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Sep 21 14:56:49 2022 +0200
Release 3.7.8
Not bumping LT_CURRENT / LT_AGE since abi-check reports no changes.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Sep 21 14:26:55 2022 +0200
NEWS: add an entry for allowlisting-relaxing functions restriction
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 19 07:40:01 2022 +0900
accelerated: avoid symbol export mismatch with _gnutls_x86_cpuid_s
If the LD doesn't have support for version scripts,
_gnutls_x86_cpuid_s is exported through libtool's
--export-symbols-regex and that causes link error with clang:
libtool: link: nmedit -s .libs/libgnutls-symbols.expsym .libs/libgnutls.30.dylib
/Library/Developer/CommandLineTools/usr/bin/nmedit: error: symbols names listed in: .libs/libgnutls-symbols.expsym not in: /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_devel_gnutls/gnutls-devel/work/gnutls-3.7.5/lib/.libs/libgnutls.30.dylib
__gnutls_x86_cpuid_s
make[4]: *** [libgnutls.la] Error 1
This patch renames _gnutls_x86_cpuid_s to GNUTLS_x86_cpuid_s to avoid
the issue.
Problem investigated and fix suggested by Clemens Lang in:
https://gitlab.com/gnutls/gnutls/-/issues/1370#note_967832583
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 18 17:38:46 2022 +0900
compress-cert: support compression of client certificates
Previously the compress_certificate extension was sent by the server
as part of ServerHello, which violates RFC 8879. This patch instead
send it as an extension of CertificateRequest.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Fri Sep 9 13:32:16 2022 +0200
Report system config file location via gnutls-cli
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Aug 20 11:06:07 2022 +0900
src: request tls-exporter only when unique master secrets are used
This is to comply with RFC9266 4.2.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Aug 29 06:41:46 2022 +0900
gnutls_session_channel_binding: perform check on "tls-exporter"
According to RFC9622 4.2, the "tls-exporter" channel binding is only
usable when the handshake is bound to a unique master secret. This
adds a check whether either TLS 1.3 or extended master secret
extension is negotiated.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Aug 20 10:58:23 2022 +0900
doc: mention GNUTLS_CB_TLS_EXPORTER
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Doug Nazar <nazard@nazar.ca>
Date: Tue Aug 16 01:47:49 2022 -0400
cipher: Ensure correct alignment
Unsigned math is required to calculate the current alignment.
Signed-off-by: Doug Nazar <nazard@nazar.ca>
Author: Tobias Heider <tobias.heider@canonical.com>
Date: Tue Aug 23 13:47:38 2022 +0200
Unload custom allocators in gnutls_crypto_deinit()
Closes #1398
Signed-off-by: Tobias Heider <tobias.heider@canonical.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Aug 15 09:39:18 2022 +0900
accelerated: clear AVX bits if it cannot be queried through XSAVE
The algorithm to detect AVX is described in 14.3 of "Intel® 64 and IA-32
Architectures Software Developer’s Manual".
GnuTLS previously only followed that algorithm when registering the
crypto backend, while the CRYPTOGAMS derived SHA code assembly expects
that the extension bits are propagated to _gnutls_x86_cpuid_s.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 18 09:01:20 2022 +0900
srptool: resurrect default value for -i
The default option value for -i (--index) was dropped during the
cligen conversion. This adds it back for compatibility with the
existing command line usage.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 18 09:00:44 2022 +0900
cligen: update git submodule
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Aug 16 10:34:05 2022 +0200
tests: add fips-rsa-sizes
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Feb 16 14:36:48 2022 +0100
update documentation on allowlisting API
(in a separate commit so that it's easier to compare)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Feb 16 14:28:18 2022 +0100
plumb allowlisting API through the config, restrict usage to early times
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Martin Storsjo <martin@martin.st>
Date: Mon Aug 15 23:50:16 2022 +0300
windows: Avoid -Wint-conversion errors
Clang 15 made "incompatible pointer to integer conversion" an error
instead of a plain warning. This fixes errors like these:
system/keys-win.c:257:13: error: incompatible pointer to integer conversion initializing 'HCRYPTHASH' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
HCRYPTHASH hHash = NULL;
^ ~~~~
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Feb 15 16:26:52 2022 +0100
lib/priority: extract parts of cfg_apply into cfg_*_set_array*
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Feb 14 18:00:25 2022 +0100
lib/priority: move sigalgs filtering to set_ciphersuite_list
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 3 16:39:47 2022 +0900
nettle: mark RSA SigVer operation approved for known modulus sizes
SP800-131A rev2 suggests certain RSA modulus sizes under 2048
bits (1024, 1280, 1536, and 1792) may continue to be used for
signature verification but not for signature generation. This loosen
the current service indicator report to approve them.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 9 12:55:04 2022 +0900
nettle: check RSA modulus size in bits rather than bytes
Previously we checked RSA modulus size clamped to byte unit instead of
bits. This makes the check stricter by explicitly calculating the
modulus size in bits.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Aug 9 12:08:24 2022 +0200
fips: disable GNUTLS_CIPHER_3DES_CBC self-test
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Aug 8 13:54:13 2022 +0900
.gitlab-ci.yml: mark all CI jobs interruptible
This allows previous pipelines to be cancelled if a new job is
submitted subsequently:
https://docs.gitlab.com/ee/ci/yaml/#interruptible
Suggested-by: Zoltán Fridrich <zfridric@redhat.com>
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Stanislav Zidek <szidek@redhat.com>
Date: Mon Aug 8 23:07:21 2022 +0200
Moved TLS interoperability tests to submodule.
Signed-off-by: Stanislav Zidek <szidek@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Jul 31 10:28:15 2022 +0200
Avoid &> redirection bashism in testsuite
Broken by 7b700dbcd5907944a7dd2f74cd26ad8586cd4bac
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Stanislav Zidek <szidek@redhat.com>
Date: Thu Feb 11 13:57:27 2021 +0100
interoperability testing with openssl
GitLab CI extended to run 2way interoperability tests with openssl on
Fedora. Also prepared for adding further interoperability tests once
they are in better shape.
Signed-off-by: Stanislav Zidek <szidek@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 4 16:37:51 2022 +0900
_gnutls_decrypt_pbes1_des_md5_data: use public crypto API
This is a follow-up of e7f9267342bc2231149a640163c82b63c86f1dfd. In
the decryption code path with PBES1, algorithm checks for FIPS was not
applied, because it used internal functions that bypass those checks.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Simon Josefsson <jas@josefsson.org>
Date: Sat Jul 30 21:06:42 2022 +0200
Update doc for GNUTLS_CB_TLS_EXPORTER towards RFC9266.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Fri Jul 29 10:38:42 2022 +0200
KTLS: hotfix
session->internals.pull_func is set to system_read during gnutls_init()
so check for user set pull/push function added in commit mentioned
bellow will never pass.
source: 2d3cba6bb21acb40141180298f3924c73c7de8f8
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu Jul 28 12:49:59 2022 +0200
Release 3.7.7
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jul 26 11:39:57 2022 +0900
socket: only set pull/push functions when --save-*-trace is used
This allows gnutls-cli to use KTLS for the transport, unless either
--save-client-trace or --save-server-trace is used.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jul 26 11:38:41 2022 +0900
handshake: do not enable KTLS if custom pull/push functions are set
If gnutls_transport_set_pull_function or
gnutls_transport_set_push_function is used, we can't assume the
underlying transport handle is an FD.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Fri Jul 22 12:00:11 2022 +0200
Fix double free during gnutls_pkcs7_verify
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jul 27 20:23:26 2022 +0900
guile: revert gnutls/build/tests.scm to use use-modules
This partially reverts e727eb7901a3f1754de970c8529925ae3d591b90. For
some reason, the usage of #:use-module causes some behavioral
difference that affects reauth.scm test.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Mon Jul 25 16:07:54 2022 +0200
Fix memory leak in gnutls_pkcs7_import
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jul 14 15:19:23 2022 +0900
crypto-api: add block cipher API with automatic padding
This adds a couple of functions gnutls_cipher_encrypt3 and
gnutls_cipher_decrypt3, which add or remove padding as necessary if
the length of the plaintext is not a multiple of the block size.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 22 11:54:29 2022 +0900
tests: temporarily disable checking against unresolvable hosts
*.dane.verisignlabs.com and fedoraproject.org are no longer
resolvable.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jul 20 15:00:10 2022 +0900
src: add __attribute__((malloc)) to safe_open_rw
This silences -Wsuggest-attribute=malloc warning with GCC 12. While
we could use ATTRIBUTE_DEALLOC(fclose, 1), it is currently not
possible to use it until Gnulib is updated.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jul 20 14:54:48 2022 +0900
src: add NULL check on return value of realloc used in tests
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jun 30 21:24:23 2022 +0900
tests: resume-with-previous-stek: initialize session data
Spotted by gcc-analyzer 12.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jun 30 21:23:31 2022 +0900
tests: add __attribute__((__noreturn__)) to _fail and fail_ignore
To suppress warnings with gcc-analyzer 12.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jun 30 21:13:53 2022 +0900
crypto-selftests: fix decryption check condition in test_cipher_aead
Spotted by gcc-analyzer 12.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jun 30 20:57:30 2022 +0900
x509, tpm2: use asn1_node instead of deprecated ASN1_TYPE
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sun Jul 10 23:41:26 2022 +0200
guile: Allow session record ports to have a 'close' procedure.
This addition makes it easy to close the backing file descriptor or port
of a session when its record port is closed.
* guile/src/core.c (SCM_GNUTLS_SESSION_RECORD_PORT_SESSION): Add SCM_CAR.
(SCM_GNUTLS_SESSION_RECORD_PORT_CLOSE_PROCEDURE)
(SCM_GNUTLS_SET_SESSION_RECORD_PORT_CLOSE)
(SCM_GNUTLS_SESSION_RECORD_PORT_P)
(SCM_VALIDATE_SESSION_RECORD_PORT): New macros.
(make_session_record_port): Change "stream" argument to a pair.
(close_session_record_port): New function.
(scm_gnutls_session_record_port): Add optional 'close' parameter and
honor it.
(scm_gnutls_set_session_record_port_close_x): New function.
(scm_init_gnutls_session_record_port_type): Add call to
'scm_set_port_close' and 'scm_set_port_needs_close_on_gc'.
* guile/tests/session-record-port.scm: Test it.
* NEWS: Update.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sun Jul 10 17:03:03 2022 +0200
guile: Remove support for the 1.8.x series.
The last Guile 1.8.x release dates back to 2010.
* configure.ac: Remove 1.8 from 'GUILE_PKG'.
* doc/gnutls-guile.texi (Guile Preparations): Remove mention of Guile 1.8.
* guile/src/core.c (mark_session_record_port)
(free_session_record_port): Remove.
(scm_init_gnutls_session_record_port_type): Remove corresponding
'scm_set_port_mark' and 'scm_set_port_free' calls.
* guile/modules/gnutls.in: Remove top-level 'cond-expand' forms for
Guile 1.8.
* guile/modules/gnutls/build/tests.scm: Likewise.
* NEWS: Update.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sun Jul 10 17:02:17 2022 +0200
maint: Update guile.m4.
* m4/guile.m4: Update from Guile 3.0.7.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Brad Smith <brad@comstyle.com>
Date: Fri Jul 15 22:44:03 2022 -0400
accelerated: aarch64: add OpenBSD/aarch64 support
Signed-off-by: Brad Smith <brad@comstyle.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 27 11:14:50 2022 +0900
cipher: limit plaintext length supplied to AES-GCM
According to SP800-38D 5.2.1.1, input data length of AES-GCM
encryption function must be less than or equal to 2^39-256 bits.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sun Jul 10 18:54:54 2022 +0200
guile: Session record port treats premature termination as EOF.
* guile/src/core.c (do_fill_port) [USING_GUILE_BEFORE_2_2]: Treat
GNUTLS_E_PREMATURE_TERMINATION as EOF.
(read_from_session_record_port) [!USING_GUILE_BEFORE_2_2]: Likewise.
* guile/tests/premature-termination.scm: New file.
* guile/Makefile.am (TESTS): Add it.
* NEWS: Update.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Richard Costa <richard.costa@suse.com>
Date: Sat Jul 9 00:50:21 2022 +0000
Add self-test code inside a FIPS context
Self-test code exercise lots of different FIPS-related code with
side-effects. So, in order to prevent it from losing information when
executing inside another context, we create an appropriated one.
If the self-test fails, then the library is placed in error state, so it
doesn't matter for other contexts.
Signed-off-by: Richard Maciel Costa <richard.costa@suse.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Tue May 10 15:20:45 2022 +0200
Increase the limit of TLS PSK usernames from 128 to 65535 characters
Co-authored-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 1 08:04:57 2022 +0200
fips: make service indicator logging louder
Previously, the only way to monitor the FIPS context transtion was to
increase logging level to debug (2), which produces unrelated output.
This changes the minimum logging level to audit (1) for when the
transition happens.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 27 09:29:13 2022 +0900
nettle: restrict output size of HKDF-Expand to 255 * HashLen
RFC 5869 2.3 requires that requested output length of HKDF-Expand to
be equal to or less than 255 times hash output size.
Inspired by the report by Guido Vranken in:
https://lists.gnupg.org/pipermail/gcrypt-devel/2022-June/005328.html
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Jun 28 17:22:36 2022 +0200
tests/fips-test: minor extension
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 28 13:46:44 2022 +0900
.gitlab-ci.yml: add fedora-ktls pipeline
This is to ensure that the same testsuite succeeds even if we compile
the library with --enable-ktls and KTLS is enabled with a run-time
configuration.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 28 10:53:55 2022 +0900
ktls: _gnutls_ktls_enable: fix GNUTLS_KTLS_SEND calculation
Previously, if the first setsockopt for GNUTLS_KTLS_RECV fails and the
same socket is used for both sending and receiving, GNUTLS_KTLS_SEND
was unconditionally set. This fixes the conditions and also adds more
logging.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 28 10:23:33 2022 +0900
handshake: do not reset KTLS enablement in gnutls_handshake
As gnutls_handshake can be repeatedly called upon non-blocking setup,
we shouldn't try to call setsockopt for KTLS upon every call.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 28 09:37:22 2022 +0900
tests: enable KTLS config while running gnutls_ktls test
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Gregor Jasny <gjasny@googlemail.com>
Date: Tue Jun 21 11:18:16 2022 +0200
README.md: explicitly install libtasn1-bin
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Tue Jun 14 16:16:11 2022 +0200
KTLS: disable by default enable by config
KTLS will be disabled by default when build with `--enable-ktls` to
enable it, use config file option `ktls = true` in [global] section.
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 3 15:43:00 2022 +0900
fips: provide function to manually run FIPS self-tests
FIPS140-3 IG 10.3.E Periodic Self-Testing says:
At security levels 1 and 2, acceptable means for initiating the
periodic self-tests include a provided service, resetting, rebooting
or power cycling.
Neither resetting, rebooting, nor power-cycling is suitable because
those involve operations outside of the module. Therefore this patch
adds a new API to manually run the substance of FIPS140 self-tests.
Suggeested by Richard Costa and Stephan Mueller in:
https://gitlab.com/gnutls/gnutls/-/issues/1364
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed May 18 15:38:21 2022 +0200
tests/suite/tls-fuzzer: remove most of the -n limiters...
... since tlsfuzzer now sets reasonable (~<10s/script) limits
for most of the scripts by default
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed May 18 13:41:18 2022 +0200
tests/suite/tls-fuzzer: pin current error messages with -X
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun May 29 10:54:48 2022 +0900
build: Revert "Disable test scripts on windows"
This reverts commit d2b99e3b3429e9b9a6fbff46598fd4c6a0910f65.
It turned out that the test failures under mingw were caused by a
regression in wine 7.5, possibly:
https://bugs.winehq.org/show_bug.cgi?id=52743
Now that the latest wine package based on wine 7.9 has no issues with
running those test scripts, this enables them again in the build
process.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Fri May 27 09:17:55 2022 +0200
Release 3.7.6
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Asad Mehmood <asad78611@googlemail.com>
Date: Mon May 23 14:35:46 2022 +0000
libdane: fix typo in Makefile.am
Signed-off-by: Asad Mehmood <asad78611@googlemail.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Fri May 13 14:37:05 2022 +0200
Add release steps for windows builds
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Wed May 18 11:43:26 2022 +0200
Fix out-of-bounds memcpy in gnutls_realloc_zero()
Co-authored-by: Tobias Heider <tobias.heider@canonical.com>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu May 19 10:27:51 2022 +0200
Disable test scripts on windows
This is a temporary solution to avoid failures
of test scripts when ran on windows
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu May 12 10:38:23 2022 +0200
Release 3.7.5
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 10 09:52:26 2022 +0200
cligen: update git submodule
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Fri Apr 29 12:28:50 2022 +0200
Improve certificate sanity checks
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Mon Mar 28 17:49:22 2022 +0200
Fix psk_ke_modes_recv_params() wrongly setting HSK_PSK_KE_MODE_INVALID
If the preferred side (as per session->internals.priorities->server_precedence)
only supports one algorithm and if it is not the first in the other side's list
of algorithms, then psk_ke_modes_recv_params did wrongly set
session->internals.hsk_flags to HSK_PSK_KE_MODE_INVALID.
Fixes #1303
This issue was originally discovered while analyzing
https://forum.filezilla-project.org/viewtopic.php?t=54333
Signed-off-by: Tim Kosse <tim.kosse@filezilla-project.org>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat May 7 10:07:01 2022 +0200
tests/cmocka-common.h: include <stdarg.h> before <cmocka.h>
As documented in <https://api.cmocka.org/group__cmocka.html#details>,
<stdarg.h> must be included before <cmocka.h>.
Suggested by Brad Smith in:
https://gitlab.com/gnutls/gnutls/-/issues/1360
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 29 12:01:53 2022 +0200
configure.ac: check if compiler supports -Wa,-march=all
Clang from LLVM 13.0.0 caused a segumentation fault if an unknown
architecture is supplied through -march. While this has been fixed in
13.0.1, until it is widely deployed this adds a configure check as a
safeguard:
https://github.com/llvm/llvm-project/commit/d31f8cc6884ba3cc3e088fd57c4c533868e8a8b2
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 15 11:27:20 2022 +0100
gnutls_aead_cipher_set_key: new function
This adds gnutls_aead_cipher_set_key, which enables to reuse the same
handle but reset the context and key, without releasing the memory.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 17 11:48:39 2022 +0100
crypto-api: support AES-SIV with scatter-gather API
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 17 11:17:46 2022 +0100
crypto-api: refactor iov_store_st operations
This replaces copy_from_iov to more generic append_from_iov.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 17 10:36:44 2022 +0100
crypto-api: split scatter-gather AEAD implementation to helper funcs
These _encryptv, _encryptv2, and _decryptv2 functions take orthogonal
code paths depending on whether the underlying AEAD implementation
supports message based API. This patch split the implementation to
dedicated helper functions.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 17 10:07:02 2022 +0100
crypto-api: add integer overflow checks around copying IOV
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu May 5 12:10:46 2022 +0200
Extend fipshmac to take a path to libgnutls.so
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 4 15:27:16 2022 +0200
.github/workflows/macos.yml: display tests/cert-tests/*.log
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 4 15:23:49 2022 +0200
lib/fips.c: suppress -Wdiscarded-qualifiers warning
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 4 15:22:16 2022 +0200
.gitignore: ignore tests/tls13/compress-cert*
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 4 15:19:17 2022 +0200
tests/cert-tests/pkcs12.sh: use portable sed invocations
The BSD sed doesn't recognize '\|' as the alternative operator, and
the last '}' must be preceded with a newline.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 21 08:07:25 2021 +0200
tls: add flag to disable session ticket in TLS 1.2
The existing GNUTLS_NO_TICKETS flag affects all versions of TLS, where
PFS is assured in TLS 1.3, while it is not in TLS 1.2. This adds a
new flag GNUTLS_NO_TICKETS_TLS12 to allow applications to disable
session tickets only in TLS 1.2.
As the only means of resumption in TLS 1.3 is using session tickets,
we could repurpose the GNUTLS_NO_TICKETS flag make it no-op in TLS
1.3. However it would break backward compatibility, so we defer it to
the next major release.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 28 11:31:30 2021 +0100
session_ticket: avoid invalid free on error path
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 21 11:08:06 2021 +0200
_gnutls_version_max: return NULL if priorities are not populated
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 2 07:41:12 2022 +0200
m4: update from autoconf-archive
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 17 10:56:35 2022 +0200
.github/workflows/macos.yml: pull in gtk-doc
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu Apr 28 12:17:16 2022 +0200
gnutls-cli, gnutls-serv: print supported channel binding
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Sep 4 07:16:18 2021 +0200
.gitlab-ci.yml: replace valgrind checks with ASan
Running the full test suite under valgrind wastes a lot of time and
may cause intermittent failures due to timeout. We have them mainly
for VALGRIND_MAKE_MEM_UNDEFINED client request, though the ASan tests
now cover the equivalent after
f23c3a6cba43706a6ebb3f9b0018cd658dcc0a72.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu Apr 14 11:29:26 2022 +0200
Use packit to automate fedora upstream release
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Sun Apr 24 17:03:18 2022 +0900
Preserve mbuffer type when linearized
Signed-off-by: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Author: Brian Wickman <bwickman97@outlook.com>
Date: Thu Apr 21 05:52:36 2022 +0000
Fix for #1132
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 11 14:00:16 2022 +0200
.gitignore: ignore files generated by asn1Parser
These files are no longer maintained in the repository, after commit
16061937.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 8 10:23:51 2022 +0200
cligen: update git submodule
This also reverts commit fd0e28a3 and changes how the cligen python
files are included in the distribution.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Tue Apr 12 16:34:52 2022 +0200
Small fips-test refactoring
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Mon Apr 11 16:04:38 2022 +0200
Add zeroization of some critical security parameters
to comply with FIPS-140-3 requirements
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Apr 10 13:22:22 2022 +0200
Document C++ soname bump in NEWS.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Wed Mar 30 18:26:36 2022 +0200
Add missing gtk-doc for GNUTLS_COMP_BROTLI/ZSTD.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Wed Mar 30 18:18:12 2022 +0200
Add missing copyright header
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Tue Apr 5 16:28:41 2022 +0200
Add missing FIPS service indicator transitions
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Wed Apr 6 15:33:32 2022 +0200
Remove 3DES from FIPS approved algorithms.
According to the section 2 of SP800-131A Rev.2, 3DES algorithm
will be disallowed for encryption after December 31, 2023:
https://csrc.nist.gov/publications/detail/sp/800-131a/rev-2/final
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Fri Apr 1 12:34:12 2022 +0200
Mark HKDF and AES-GCM as approved when used in TLS
Co-authored-by: Pedro Monreal <pmgdeb@gmail.com>
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Mar 31 15:50:51 2022 +0200
bootstrap.conf: use install-sh to copy cligen files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 19 10:01:09 2022 +0100
lib/{gnutls,pkix}_asn1_tab.c: remove autogenerated files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 19 10:00:08 2022 +0100
devel/README-ci.freebsd.md: stop mentioning autogen
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 19 09:59:58 2022 +0100
.github/workflows/macos.yml: stop installing autogen
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 19 09:53:54 2022 +0100
configure.ac: always assume GTK_DOC_CHECK macro
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Mar 31 14:28:32 2022 +0200
fips: simplify library integrity checking
This removes code duplication by grouping the path and hmac fields in
hmac_file structure.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu Mar 31 10:13:06 2022 +0200
Increase length limit of PKCS#12 passwords
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Fri Mar 25 11:31:05 2022 +0100
ktls config documentation
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: Thu Mar 31 08:57:07 2022 +1100
Fix off-by one exit condition in pkcs#11 priv keys lookup
In function find_privkeys(), the list-> array is allocated to be of size
lists->key_ids_size. "current" is the index where the next found key will
be written (starts at 0).
The current exit condition is thus incorrect:
if (current > list->key_ids_size)
break;
This will allow "current" to be equal to list->key_ids_size which will
potentially cause an overflow if more keys are returned by the loop than
was originally found when calculating that size.
This is very unlikely, but incorrect nonetheless.
Fix this by using the more classic construct of testing for the array bound
in the loop exit condition, as suggested by Daiki Ueno.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Author: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: Mon Mar 21 13:45:11 2022 +1100
Fix matching of last key of a pkcs#11 token
Retrieving the cert for the last key of a token fails due to an
off-by-one bug in find_privkeys():
In the loop that iterates the keys, "current" contains the index
of the "next" key slot, which is also the active "count" of populated
slots in the output struct find_pkey_list_st.
The current statement:
list->key_ids_size = current - 1;
Means we return a "key_ids_size" of the current count minus one, ie 0
for 1 key etc... However, this isn't what the callers expect, for example:
find_multi_objs_cb() does:
ret = find_privkeys(sinfo, tinfo, &plist);
if (ret < 0) {
gnutls_assert();
return ret;
}
if (plist.key_ids_size == 0) {
gnutls_assert();
return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
}
So a slot with a single key will fail when trying to find a certificate
Subsequent uses of "plist" in that function also show that it's expected
to contain the real slot count:
for (i = 0; i < plist.key_ids_size; i++) {
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Wed Mar 23 16:55:51 2022 +0100
Consolidate FIPS .hmac files
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Fri Mar 18 11:37:10 2022 +0100
system config disable KTLS
Added option for system config `ktls = false` to disable ktls
system-wide
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Pedro Monreal <pmgdeb@gmail.com>
Date: Tue Mar 22 13:01:53 2022 +0100
lib/crypto-selftests.c: Add a selftest for PBKDF2 that complies with FIPS 140-3.
Signed-off-by: Pedro Monreal <pmgdeb@gmail.com>
Author: Tobias Heider <tobias.heider@canonical.com>
Date: Mon Mar 14 16:17:28 2022 +0100
Use custom allocators for GMP to make sure temporary secrets
from cryptographic operations in nettle are deleted safely.
Signed-off-by: Tobias Heider <tobias.heider@canonical.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Mar 18 08:10:12 2022 +0100
devel/release-steps.md: expand steps to generate tarball [ci-skip]
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Mar 18 07:54:06 2022 +0100
NEWS: mention couple more changes in 3.7.4 release [ci-skip]
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Sam James <sam@gentoo.org>
Date: Fri Mar 18 05:51:29 2022 +0000
configure.ac: fix zstd detection
Fixes typo in zstd detection.
None of the used autoconf macros will define `has_zstd_h` so
configure will (AFAICT) always fail to find zstd, even if it succeeded
via pkg-config moments before.
Drop it and rely solely on pkg-config as that's the only search
we're actually doing.
Fixes: https://gitlab.com/gnutls/gnutls/-/issues/1343
Signed-off-by: Sam James <sam@gentoo.org>
Author: Sam James <sam@gentoo.org>
Date: Fri Mar 18 05:40:28 2022 +0000
configure.ac: fix brotli/zstd configure argument name
The old `./configure` arguments for brotli and zstd respectively
were inconsistent with the `./configure --help` output.
Old: --without-libbrotli --without-libzstd (also --with-*)
New: --without-brotli --without-zstd (also --with-*)
Fixes: https://gitlab.com/gnutls/gnutls/-/issues/1342
Signed-off-by: Sam James <sam@gentoo.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 16 11:19:29 2022 +0100
cligen: update git submodule
To avoid emitting empty "list" substruct in header files, as well as
assuming the Python pwd module is always available.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Wed Mar 16 15:42:40 2022 +0100
Release 3.7.4
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Tue Mar 8 18:01:37 2022 +0100
Make gnutls compliant to RFC5280
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 14 16:03:07 2022 +0100
cli, serv: allow multiple --compress-cert options
This eliminates the need of parsing the comma separated list manually.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Tobias Heider <tobias.heider@canonical.com>
Date: Sun Mar 13 23:58:42 2022 +0100
Handle all cases of calloc returning NULL.
Signed-off-by: Tobias Heider <tobias.heider@canonical.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Fri Mar 11 18:22:18 2022 +0100
Fix global-ini-handler
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 10 15:58:08 2022 +0100
Make option specification type-safe
This switches the CLI code and documentation generation to the
external cligen module, which provides more type-safe specification.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Tobias Heider <tobias.heider@canonical.com>
Date: Wed Mar 9 01:18:20 2022 +0100
fips: use GNUTLS_FIPS140_STRICT instead of magic number.
Signed-off-by: Tobias Heider <tobias.heider@canonical.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 9 08:07:58 2022 +0100
locks: define lock functions as a macro
When threads are not supported, glthread_* functions are defined as
no-op and thus dereferencing lock variables in inline functions will
cause compilation error. This change fixes it by redefining our lock
functions as a macro so it will also be compiled out.
Reported by Fabrice Fontaine in:
https://gitlab.com/gnutls/gnutls/-/issues/1330
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 9 07:25:01 2022 +0100
.gitlab-ci.yml: prolong timeout for slow CI jobs
Suggested by Marvin Scholz in:
https://gitlab.com/gnutls/gnutls/-/merge_requests/1543#note_859825412
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 23 19:48:52 2022 +0100
tpm2: dynamically load tss2 libraries as needed
libtss2-esys links to OpenSSL or mbed TLS for cryptography, which may
cause packaging issues. This instead dlopen's tss2 libraries as
needed so non-TPM applications continue working without loading
multiple crypto libraries.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Wed Jan 12 14:57:42 2022 +0100
Add compress_certificate extension (RFC8879)
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Craig Gallek <cgallek@gmail.com>
Date: Sun Feb 27 10:39:07 2022 -0500
x509: fix return error code for failed decryption without key
Decrypting an encrypted private key previously returned
GNUTLS_E_DECRYPTION_FAILED when no password was supplied. This changed when
decryption via pin callbacks was added in d31b89de.
That change should have included a check for callback existence in order to
preserve the error path of the no-password case.
This adds the check and a test for the previous behavior.
Resolves bug #1321
Signed-off-by: Craig Gallek <cgallek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 24 09:55:01 2022 +0100
gnutls_record_send_file: make it work with non-blocking I/O
When either read() or gnutls_record_send() returns EAGAIN, just return
to the caller so it can call this function again, instead of retrying
internally.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Marvin Scholz <epirat07@gmail.com>
Date: Wed Feb 23 19:03:51 2022 +0100
configure.ac: add missing Libs.private for macOS
On macOS the CoreFoundation and Security frameworks are used by
GnuTLS, however those were missing in the Libs.private in the .pc
resulting in link failures with static builds when relying on the
output of pkg-config --static.
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Wed Feb 16 11:25:11 2022 +0100
non-KTLS sendfile test
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Wed Feb 16 11:23:36 2022 +0100
non-KTLS sendfile
Added: sendfile API functionality for non KTLS enabled builds.
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 22 17:09:46 2022 +0100
algorithms: ensure _list() exclude non-existing algorithms
This aligns the behavior of _list() function for sign/pk to the one
for cipher/mac: the former previously returned all the algorithms
defined, while the latter returns only algorithms compiled in.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 22 17:25:26 2022 +0100
Revert "algorithms: compile out GOST algorithm IDs if they are disabled"
This reverts commit aa94bcbdaa55899f4f4ae13dc3e9a8c559354676.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Wed Feb 16 11:22:47 2022 +0100
auto-generated files update
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Tue Nov 16 12:05:53 2021 +0100
ktls: sendfile
added API function: gnutls_record_send_file().
added: _gnutls_ktls_send_file() function which increases the performance
by offloading the file encryption to kernel, thus the data never goes
to userspace.
updated tests/gnutls_ktls to cover new API
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 21 16:36:32 2022 +0100
algorithms: compile out GOST algorithm IDs if they are disabled
When compiled with --disable-gost, gnutls-cli --list still prints GOST
algorithms for public key systems and signatures. This change adds
compile time checks to suppress them.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Feb 21 18:19:25 2022 +0100
lib/algorithms: add UB warnings on late allowlisting API invocations
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Feb 14 13:48:37 2022 +0100
lib/priority: defer setting system-wide priority string
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Feb 14 12:44:57 2022 +0100
lib/priority: split up update_system_wide_priority_string
This is done in preparation for deferring priority string evaluation.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 21 16:28:49 2022 +0100
priority: compile out GOST algorithms IDs if they are disabled
When compiled with --disable-gost, gnutls-cli --priority NORMAL --list
still prints GOST algorithms for ciphers, MACs, and signatures. This
change adds compile time checks to suppress them.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Fri Feb 18 11:05:15 2022 +0100
bump GNUTLS_MAX_ALGORITHM_NUM / MAX_ALGOS
Fedora 36 LEGACY crypto-policy uses allowlisting format
and is long enough to blow past the 64 priority string
elements mark, causing, effectively, priority string truncation.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Dimitris Apostolou <dimitris.apostolou@icloud.com>
Date: Thu Feb 17 17:35:59 2022 +0200
Fix typos
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
Author: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu Feb 17 11:46:29 2022 +0100
Disable some tests in fips mode
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 10 17:35:13 2022 +0100
_gnutls_pkcs_raw_{decrypt,encrypt}_data: use public crypto API
These functions previously used the internal crypto
API (_gnutls_cipher_*) which does not have algorithm checks for FIPS.
This change switches the code to use the public crypto
API (gnutls_cipher_*) to trigger proper state transitions under FIPS
mode.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 10 16:43:08 2022 +0100
pkcs12: mark MAC generation and verification as FIPS non-approved
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 15 17:38:20 2022 +0100
gnutls_transport_is_ktls_enabled: fix return value of stub
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 12 10:37:53 2022 +0100
gnutls_ciphersuite_get: new function to get unique ciphersuite name
The existing method to obtain the name of the currently negotiated TLS
ciphersuite is as follows:
- call gnutls_cipher_get, gnutls_mac_get, gnutls_kx_get
- call gnutls_cipher_suite_get_name with the value from the above functions
This process is cumbersome and only works with TLS 1.2 or earlier;
moreover the returned names are GnuTLS specific.
This change adds a new function gnutls_ciphersuite_get to eliminate
those limitations. It returns the "canonical" name of the
ciphersuite, which is mostly identical to the ones registered in IANA,
with an exception for compatibility.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 20 09:28:10 2021 +0100
tls-fuzzer: prolong timeout for FFDHE tests
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 26 20:03:15 2021 +0100
.gitlab-ci.yml: prolong timeout for fedora-nettle-minigmp/test
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 26 09:37:58 2021 +0100
.gitlab-ci.yml: fix nettle installation path
.fedora-nettle/build clones the nettle into "nettle-git" and
temporarily change the working directory while buidling it. After
moving back to the original working directory, the installation path
should be prefixed with "${PWD}/nettle-git/".
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 1 15:19:52 2022 +0100
certtool --generate-privkey: update warnings on RSA key sizes
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 27 18:17:43 2022 +0100
rsa_generate_fips186_4_keypair: accept a few more modulus sizes
While _rsa_generate_fips186_4_keypair was modified to accept modulus
sizes other than 2048 and 3076, rsa_generate_fips186_4_keypair, which
calls that function, was not updated to accept such modulus sizes.
Spotted by Alexander Sosedkin.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 7 11:24:36 2022 +0100
.gitlab-ci.yml: update Fedora images to Fedora 35
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Seppo Yli-Olli <seppo.yliolli@gmail.com>
Date: Mon Jan 31 18:32:28 2022 +0200
Bump libgnutlsxx soname due to ABI break
db_check_entry and db_check_entry now have const parameters
Signed-off-by: Seppo Yli-Olli <seppo.yliolli@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 28 07:49:42 2022 +0100
configure.ac: make --with-tpm and --with-tpm2 independent
These features are not mutually exclusive, so it doesn't make sense to
disable the TPM 1.2 support with TPM 2.0 support.
Reported by Jan Palus in:
https://gitlab.com/gnutls/gnutls/-/issues/1313
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 28 12:50:56 2022 +0100
gen-getopt.py: avoid struct member name clash with C keywords
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 28 07:55:25 2022 +0100
tests: tcp_connect: avoid resource leak on error path
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 28 08:48:47 2022 +0100
README.md: fix versions in build status and add 3.6.x
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Jan Palus <jpalus@fastmail.com>
Date: Fri Jan 28 11:07:02 2022 +0100
ktls: fix _gnutls_ktls_send_control_msg return value
always returned 0 on success while contract mandates to return number of
bytes sent
Fixes #1314
Signed-off-by: Jan Palus <jpalus@fastmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 28 06:35:45 2022 +0100
release-steps: fix markup
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Thu Jan 27 13:54:21 2022 +0100
KTLS: hotfix
fixed: keys will be set only when both sockets were enabled for ktls
fixed: session->internals.ktls_enabled left uninitialized for non
ktls-enabled build
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Jan 26 16:25:01 2022 +0100
lib/accelerated: use unlikely on buffer length checks more consistently
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Jan 26 16:15:36 2022 +0100
lib/accelerated: rearranged several size checks to avoid overflow
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Jan 25 12:32:59 2022 +0100
tests/scripts/common: fix skipping over x86-specific tests
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Jan 25 13:37:55 2022 +0100
tests/slow/test-hash-large: output GNUTLS_CPUID_OVERRIDE hints
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Jan 25 13:46:46 2022 +0100
tests/slow/cipher-api-test: add happy paths, specific error checks etc
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Tue Jan 25 13:36:19 2022 +0100
lib/accelerated: report GNUTLS_E_SHORT_MEMORY_BUFFER in many places
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Jan 24 17:37:24 2022 +0100
.gitlab-ci.yml: enable hardware acceleration in UB+ASAN jobs
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Jan 24 17:34:35 2022 +0100
tests/slow/cipher-api-test: actually test for short buffer...
... avoiding the case when different failures mask the intended one
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Jan 24 17:33:48 2022 +0100
lib/accelerated/x86/aes-gcm-x86-pclmul-avx: add short buffer checks
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Jan 23 13:40:17 2022 +0100
testsuite: Fix endless loop on /bin/sh without $RANDOM
Closes #1315
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Jan 23 07:52:21 2022 +0100
testsuite: Fix missed instances of &> redirection
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Fri Jan 21 18:25:52 2022 +0100
Avoid &> redirection bashism in testsuite
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 17 16:48:10 2022 +0100
Release 3.7.3
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 18 06:43:07 2022 +0100
tests: privkey-keygen: fix memory leak
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Oct 30 08:56:07 2021 +0200
x509: fix thread-safety in gnutls_x509_trust_list_verify_crt2
This function previously used gnutls_x509_trust_list_get_issuer
without GNUTLS_TL_GET_COPY flag, which is required when the function
is called from multi-threaded application and PKCS #11 trust store is
in use.
Reported and the change suggested by Remi Gacogne in:
https://gitlab.com/gnutls/gnutls/-/issues/1277
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 16 07:57:02 2022 +0100
cli: add --list-config option
With this option gnutls-cli prints the build-time configuration of the
library, retrieved through gnutls_get_library_config.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 11 07:36:27 2022 +0100
fips: add build option to embed FIPS module info in library config
This adds a couple of configure options, --with-fips140-module-name
and --with-fips140-module-version, which packagers can use to embed
FIPS module information in the library.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 11 07:34:59 2022 +0100
global: add API to retrieve library configuration at run time
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 16 12:17:39 2022 +0100
configure.ac: emit feature summary as C macro
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 16 16:19:53 2022 +0100
tests: suppress GCC -fanalyzer warnings
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 16 16:00:10 2022 +0100
.gitignore: ignore more files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 16 15:59:01 2022 +0100
src: avoid overriding noinst_PROGRAMS
In src, we now have two helper programs: systemkey and dumpcfg.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 13 14:30:02 2022 +0100
build: hide maintainer tool invocation behind AM_V_GEN
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Thu Jan 13 14:35:07 2022 +0100
tests: use more aliases in tests for better alias testing coverage
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 7 10:02:32 2022 +0100
.gitlab-ci.yml: run static analyzers on Python files
This runs a couple of code analysis on the Python scripts added to
remove AutoGen dependency.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 7 09:58:11 2022 +0100
.gitlab-ci.yml: bump cache key for python3 detection
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 5 08:09:36 2022 +0100
README.md: mention Python as requirement instead of AutoGen
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 5 07:39:10 2022 +0100
src: remove AutoGen .def files
As neither the tools nor documentation depends on AutoGen, we don't
need to include the AutoGen definition files.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 5 07:24:03 2022 +0100
doc: generate man-pages from JSON
This replaces man-pages generation previously provided by the autogen
-Tagman.tpl command with a Python script (gen-cmd-man.py).
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 4 09:06:21 2022 +0100
doc: generate texinfo files from JSON
This replaces texinfo generation previously provided by the autogen
-Tagtexi.tpl command with a Python script (gen-cmd-texi.py).
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 3 11:02:43 2022 +0100
src: remove included copy of libopts
As no tools link with libopts anymore, we don't need to include it in
the distribution.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 3 10:30:34 2022 +0100
src: replace autoopts/libopts with minimal config parser
This replaces configuration file parsing code previously provided by
<autoopts/options.h>, with a minimal compatible implementation.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Dec 31 18:13:58 2021 +0100
src: generate option handling code from JSON
This replaces AutoGen based command-line parser with a Python
script (gen-getopt.py), which takes JSON description as the input.
The included JSON files were converted one-off using the parse-autogen
program: https://gitlab.com/dueno/parse-autogen.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 4 15:18:26 2022 +0100
python: add library for handling JSON-based option description
This adds the jsonopts Python module used by the command-line parser
generator and documentation generators in the following commits. This
also bumps the required Python interpreter version to 3.6.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 13 09:36:52 2022 +0100
pkcs12: use the correct MAC algorithm for GOST key generation
According to the latest TC-26 requirements, the MAC algorithm used for
PBKDF2 should always be HMAC_GOSTR3411_2012_512.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 12 08:15:24 2022 +0100
tests: simple: check if the digest algorithm is compiled in
When the library is built with --disable-gost, gnutls_digest_get_id
returns GNUTLS_DIG_UNKNOWN for GOST algorithms.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 11 14:07:56 2022 +0100
x509: fix potential wrong usage of memcpy
Spotted by GCC analyzer:
common.c:552:17: warning: use of NULL 'out.data' where non-null expected [CWE-476] [-Wanalyzer-null-argument]
552 | memcpy(output_data, out.data, (size_t) out.size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 9 08:34:52 2022 +0100
cert-auth: suppress false-positive warnings with GCC analyzer
When compiled with gcc -fanalyzer, it reports:
cert.c: In function '_gnutls_pcert_to_auth_info':
cert.c:85:17: error: dereference of NULL 'info' [CWE-476] [-Werror=analyzer-null-dereference]
85 | if (info->raw_certificate_list != NULL) {
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 7 17:48:22 2022 +0100
gnutls_pkcs12_generate_mac: use SHA256 by default
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 20 16:16:23 2021 +0100
.gitlab-ci.yml: reduce PKCS#12 iteration count while testing
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 21 15:02:45 2021 +0100
tests: check algorithms for generating PKCS#12 file
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Dec 26 17:40:42 2021 +0100
cipher-api-test: mention why it is written using fork
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 23 15:23:34 2021 +0100
fips: plumb service indicator to symmetric key crypto operations
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Pedro Monreal <pmonrealgonzalez@suse.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 31 13:29:45 2021 +0200
fips: plumb service indicator to public key crypto operations
This installs service indicator state transitions in certain public
key operations in gnutls_crypto_pk_st, namely:
* fallible operations
- encrypt
- sign
- generate_keys
- derive
* infallible operations
- decrypt, decrypt2
- verify
other operations, such as generate_params, are not considered as
crypto operation. Note that fallible operations above mean that those
return value could indicate error, while infallible operations do not
have distinction between errors and failures: decrypt/verify failures
are treated as a successful completion of the operation.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Pedro Monreal <pmonrealgonzalez@suse.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 21 15:17:55 2021 +0100
_gnutls_pkcs_generate_key: use HMAC-SHA256 for PBKDF2
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 20 16:34:30 2021 +0100
pkcs12: determine iteration count for MAC at build time
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 20 16:13:06 2021 +0100
pkcs7: determine iteration count for PBKDF2 at build time
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 20 15:56:24 2021 +0100
certtool: --to-p12: use modern algorithms by default
Currently certtool uses PKCS12-3DES-SHA1 for encrypting keys in
PKCS#12, while it is suggested to migrate to more modern algorithms,
namely AES-128-CBC with PBKDF2 and SHA-256:
https://bugzilla.redhat.com/show_bug.cgi?id=1759982
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 23 10:31:08 2021 +0200
fips: add functions to inspect thread-local FIPS operation state
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Thu Jan 6 07:17:01 2022 +0100
Drop unquoted angle brackets in gtk-doc comment.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Thu Jan 6 07:15:31 2022 +0100
Fix gtk-doc build, use http URI in sgml master.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sat Jan 1 21:12:51 2022 +0200
p11tool: add --mark-always-authenticate option
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jan 2 19:31:33 2022 +0200
doc: updated copyrights for 2022
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 18 19:02:03 2021 +0100
accelerated: fix CPU feature detection for Intel CPUs
This fixes read_cpuid_vals to correctly read the CPUID quadruple, as
well as to set the bit the ustream CRYPTOGAMS uses to identify Intel
CPUs.
Suggested by Rafael Gieschke in:
https://gitlab.com/gnutls/gnutls/-/issues/1282
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Dec 22 17:00:03 2021 +0100
padlock: reset _gnutls_x86_cpuid_s only after padlock check succeeds
Otherwise it clears _gnutls_x86_cpuid_s which may already hold valid
CPUID detected for Intel and AMD CPUs.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Dec 22 09:12:25 2021 +0100
wrap_nettle_hash_fast: avoid calling _update with zero-length input
As Nettle's hash update functions internally call memcpy, providing
zero-length input may cause undefined behavior.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Dec 22 08:22:04 2021 +0100
gnutls_{hash,hmac}_copy: mention the functions do not always work
It is known that some built-in accelerated implementation, such as
AF_ALG, does not support copying hash/hmac contexts. This expands the
documentation to suggest checking the return value of those functions.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Dec 20 17:47:36 2021 +0100
tests: extend system-override-curves-allowlist with key generation
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Dec 20 16:50:59 2021 +0100
tests: tweak system-override-curves-allowlist insignificantly
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Fri Dec 17 18:49:27 2021 +0100
README: document tpm2-tss-engine test dependency
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Thu Dec 16 12:46:38 2021 +0100
use sha384_digest in lib/accelerated/aarch64/sha-aarch64.c sha384
Mirrors https://gitlab.com/gnutls/gnutls/-/merge_requests/1466
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Thu Dec 2 16:35:31 2021 +0100
ktls: flags
ktls enum flags API
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Fri Oct 15 15:00:17 2021 +0200
KTLS: API
ktls is enabled by default, we can check if inicialization was
succesfull with gnutls_transport_is_ktls_enabled
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Dec 9 11:22:14 2021 +0100
.gitignore: ignore tests/x509cert-ct
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Dec 9 11:03:50 2021 +0100
X509 CT: defer filling in the length field
This eliminates the need of precalculating the payload size, to make
it easier to adapt to new format.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Fri Dec 10 13:47:21 2021 +0100
tests: fix out of tree builds with ASAN
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Thu Nov 11 14:05:40 2021 +0100
tests: add protocol-set-allowlist
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Thu Nov 11 14:04:54 2021 +0100
tests: add tcp_connect to utils
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Dec 9 10:48:58 2021 +0100
X509 CT: use size_t for array index instead of unsigned
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ander Juaristi <a@juaristi.eus>
Date: Fri Nov 26 18:20:44 2021 +0100
Update symbols
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Ander Juaristi <a@juaristi.eus>
Date: Wed Nov 17 19:28:50 2021 +0100
devel: Suppress new API functions
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Ander Juaristi <a@juaristi.eus>
Date: Sat Nov 28 19:04:35 2020 +0100
x509 CT: Add tests
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Ander Juaristi <a@juaristi.eus>
Date: Mon Nov 15 20:03:12 2021 +0100
x509 CT: implement new public API
This commit implements import and export functions for the X.509
Certificate Transparency Signed Certificate Timestamp (SCT) extension
(RFC 6962).
A new constant GNUTLS_X509EXT_OID_CT_SCT is introduced
with the value "1.3.6.1.4.1.11129.2.4.2".
The following new public API functions are introduced:
- gnutls_x509_ext_ct_scts_init
- gnutls_x509_ext_ct_scts_deinit
- gnutls_x509_ext_ct_import_scts
- gnutls_x509_ext_ct_export_scts
- gnutls_x509_ct_sct_get_version
- gnutls_x509_ct_sct_get
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 30 14:33:33 2021 +0100
devel/libgnutls.abignore: ignore drbg_aes_* functions
These functions are only defined when compiled with
--enable-fips140-mode.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 6 12:41:40 2021 +0200
priority: support allowlisting in configuration file
This adds a new mode of interpreting the [overrides] section. If
"override-mode" is set to "allowlisting" in the [global] section, all
the algorithms (hashes, signature algorithms, curves, and versions)
are initially marked as insecure/disabled. Then the user can enable
them by specifying allowlisting keywords such as "secure-hash" in the
[overrides] section.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Nov 27 16:48:51 2021 +0100
CONTRIBUTING.md: clarify how to introduce new API
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Nov 27 16:39:41 2021 +0100
release-steps: "make abi-dump-latest" at release time
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Nov 27 16:36:17 2021 +0100
build: stop running abi-dump-latest at "make files-update"
The procedure of registering ABI updates has changed in
bd3c78b9d10937adb1855b85bca1864972a1c986.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 24 18:44:13 2021 +0100
build: update to use the latest valgrind-tests module from Gnulib
This adjust the existing valgrind invocations in the test suite with:
https://www.gnu.org/software/gnulib/manual/html_node/Valgrind-options.html
- make --suppressions option to per directory, using AM_VALGRINDFLAGS
- use LOG_VALGRIND for LOG_COMPILER
- quote '$(LOG_VALGRIND)' in TESTS_ENVIRONMENT
- move gl_VALGRIND_TESTS_DEFAULT_NO call before gl_INIT
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Evgeny Grin <k2k@narod.ru>
Date: Fri Nov 26 14:08:22 2021 +0300
sockets: fixed compiler warning on Windows x32
Signed-off-by: Evgeny Grin <k2k@narod.ru>
Author: Evgeny Grin <k2k@narod.ru>
Date: Fri Nov 26 13:50:52 2021 +0300
sockets: fixed building for Windows with compilers without VLA support
Signed-off-by: Evgeny Grin <k2k@narod.ru>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 5 16:27:55 2021 +0200
priority: refactor config file parsing
This adds the following refactoring:
- avoid side-effects during parsing the config file, by separating
application phase; the parsed configuration can be applied globally
with cfg_apply, after validation
- make _gnutls_*_mark_{disabled,insecure} take an ID instead of the
name
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 16 18:46:41 2021 +0100
locks: deprecate gnutls_global_set_mutex
As the library now uses static mutexes, rwlocks, and onces, it doesn't
make much sense to only replace dynamic mutex usage.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 14 14:57:15 2021 +0100
locks: use once execution for on-demand initialization of globals
This makes sure that the global variables are initialized only once.
Most of those variables are initialized at ELF constructor, though a
couple of occasions they are initialized on-demand: the global keylog
file pointer and TPM2 TCTI context. To properly protect the
initialization this patch uses gl_once provided by Gnulib.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 14 16:39:29 2021 +0100
locks: rework rwlock primitives
Remove GNUTLS_STATIC_RWLOCK_*LOCK macros and respect return values of
rwlock primitives.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 16 18:20:24 2021 +0100
pkcs11: switch to using static mutex
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 16 18:00:12 2021 +0100
verify-tofu: switch to using static mutex for locking
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 14 14:04:59 2021 +0100
locks: replace custom mutex wrappers with "glthread/lock.h"
As Gnulib provides portability wrappers of mutex implementations, we
don't need to provide similar wrappers by ourselves.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 22 14:52:10 2019 +0100
Port openconnect TPM2 code
This introduces transparent loading of TPM2 keys which are in PEM
form by gnutls_privkey_import_x509_raw() and higher level functions
which wrap it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Co-authored-by: David Woodhouse <dwmw2@infradead.org>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Nov 8 19:07:28 2021 +0100
tests: set $abs_top_builddir in more places
`$abs_top_builddir` has been used all across tests' subdirectories
(through tests/scripts/common.sh)
but has only been defined for tests/suite/ ones.
Defining it in other Makefiles where `top_builddir` is being passed.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Oct 30 17:17:47 2021 +0200
priority: rework config reloading logic and locking
The previous reloading logic relied on the existence of [priority]
section (in the initial loading) as an indicator whether the file is
loaded. This didn't work well in the following cases:
- when the section didn't exist initially and then is added later
- when the section existed initially and then is removed later
To handle these cases, this change adds a new flag
system_priority_file_loaded which can be used together with the mtime
check.
This also adds an rwlock to protect global configuration.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 1 16:46:50 2021 +0100
Revert "priority: fix potential race in reloading system-wide config"
This reverts commit 890c6937a3cfb4a0704bc815324221ec4cb89840.
Considering the entire logic around reloading the config file, the fix
was suboptimal.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Oct 28 18:55:26 2021 +0200
priority: fix potential race in reloading system-wide config
_gnutls_update_system_priorities is called from gnutls_priority_set*
functions every time when the SYSTEM keyword is used and updates a
global variable system_wide_priority_strings if the configuration
changes. Although the critical path is protected with mtime check, it
should also hold a lock to avoid occasional race condition in
multi-thread programs. This also clears
system_wide_priority_strings_init upon unloading and before reloading
the config file (thanks to Alexander Sosedkin).
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Thu Oct 21 12:46:56 2021 +0200
.gitlab-ci.yml: add caching to cppcheck
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Oct 26 07:50:16 2021 +0200
devel: update release procedure taking into account of abi-dump
As the *.abi files have been moved into a separate repository, we need
an extra step to update the repository for new release.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Oct 20 17:49:56 2021 +0200
NEWS: add a notice of insecure-hash filtering ciphersuites on PRF
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Oct 20 14:37:07 2021 +0200
tests: add system-override-hash-influences-prf
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Oct 20 14:36:44 2021 +0200
priority: filter out ciphersuites with prf blocked by insecure-hash
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Wed Oct 20 14:34:58 2021 +0200
priority: refactor ciphersuite filtering
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Fri May 14 15:56:06 2021 +0200
ktls: basic implementation of SW mode
ktls enables us to offload encryption/decryption to the kernel
prerequisites:
- configured with `--enable-ktls`
- tls module `modprobe tls` check with 'lsmod | grep tls'
- per connection:
gnutls_transport_set_int{2} must be set
When prerequisities are met then ktls is used by default.
If GnuTLS encounters a error during KTLS initialization, it will
not use ktls and fallback to userspace.
Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 18 16:27:46 2021 +0200
devel: make use of abidw --drop-private-types
This will produce more compact abixml output.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 18 11:49:46 2021 +0200
devel: move .abi files into a separate repository
Changes to the .abi files are a bit too noisy to track in the main
repository. This moves the files out of this repository and embed it
as a git submodule.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Thu Sep 23 09:03:50 2021 +0200
fix mingw64 detection
__MINGW64__ is only defined for 64 bits builds of mingw64 [1].
The intended test what to only use the CertEnumCRLsInStoreFunc via LoadLibrary
for some ancient mingw32 build and never for mingw64.
__MINGW64_VERSION_MAJOR is a proper define to identify mingw64 against mingw32.
[1] https://sourceforge.net/p/predef/wiki/Compilers/
Co-authored-by: Johannes Kauffmann <johanneskauffmann@hotmail.com>
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Sep 17 11:03:25 2021 +0200
wrap_nettle_hash_exists: add missing hash algorithms
This adds SHAKE-128, SHAKE-256, and RIPEMD-160 to the supported
algorithms by nettle. While SHAKEs are not a hash algorithm but an
XOF, it would be consistent to report they are implemented.
The simple test is expanded to exercise the code
path (gnutls_digest_get_id → wrap_nettle_hash_exists).
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Sep 18 07:18:59 2021 +0200
fuzz: explicitly supply LDFLAGS to clang++ command line
This prevented fuzzer programs being linked in Ubuntu 20.03, used in
oss-fuzz.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri Sep 17 16:37:24 2021 -0400
lib/x509: Avoid memcpy when string is empty
This fixes an ASAN warning in fuzz/gnutls_private_key_parser_fuzzer
when run against the malformed private key
fuzz/gnutls_private_key_parser_fuzzer.in/10a5c92fa30ddb6cbb4286d7699b2b7a7e032b17
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed Aug 11 17:31:40 2021 -0400
NEWS: added news about certtool handling x448 and x25519
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed Aug 11 15:59:21 2021 -0400
tests: add test for generating x25519 and x448 certificates
These certs should work just fine for the purposes of cryptographic
e-mail (S/MIME).
These usage flags are also used in the end-entity certificates found
in https://datatracker.ietf.org/doc/draft-ietf-lamps-samples/
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 14 17:14:41 2021 -0400
tests: update details about sample X25519 certificate
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 20:14:53 2021 -0400
certtool: add x448 and x25519 for --key-type
This is a simple extension of the certtool command-line interface.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 22:25:41 2021 -0400
certtool: when making X25519 or X448 certs, always use "key agreement"
This is related to #1227 -- but in this case, it's enforcing a
requirement of RFC 8410 §5.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 21:53:47 2021 -0400
x509: handle X25519 and X448 in read_pubkey
_gnutls_x509_read_ecdh_pubkey is basically a clone of
_gnutls_x509_read_eddsa_pubkey. Another form of implementation
would be to collapse these two static functions into a common
function for all "CFRG" curves.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 21:30:53 2021 -0400
nettle: handle X25519 and X448 in pk_fixup
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 20:23:41 2021 -0400
x509: enable importing secret keys for X448 and X25519.
_decode_pkcs8_modern_ecdh_key is virtually the same as
_decode_pkcs8_eddsa_key. Another implementation would be
to collapse these two functions into one, since their structure
is identical.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 19:53:28 2021 -0400
Enable X25519 and X448 everywhere that EdDSA is supported.
These are just trivial extension points where the codepath is the same
for the ECDH scheme as it is for the EdDSA scheme.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 20:14:07 2021 -0400
x509: handle X448 and X25519 in write_pubkey
This uses the same structure as _gnutls_x509_write_eddsa_pubkey.
Another way to write this would be to combine those two functions,
despite X448 and X25519 not being EdDSA at all.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 20:12:15 2021 -0400
pubkey: handle X25519 and X448 in gnutls_pubkey_import_pkcs11
I am not confident in the strings I chose to match on in
ASN1_ETYPE_PRINTABLE_STRING, in that I do not know what registry
I should look this up in.
The *parse_ecc_ecdh_params and *import_ecc_ecdh functions are tweaked
analogs to the eddsa versions of those functions.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 19:48:10 2021 -0400
nettle: extend pk_verify_priv_params to handle X25519 and X448
This is basically a copy of the EdDSA case in the switch statement.
Another way to implement it would be to augment the EdDSA case (and
the functions it uses) to have that case also handle ECDH use of the
CFRG curves.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 19:36:14 2021 -0400
lib/pk: treat modern ECDH octet streams the same way as eddsa streams.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 7 19:34:59 2021 -0400
lib/algorithms: add modern ecdh functions comparable to curve_is_eddsa
This is useful for the so-called CFRG curves used in ECDH, x25519 and x448.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Thu May 6 14:10:46 2021 -0400
algorithms: Explicitly name ECDH_X448_OID and ECDH_X25519_OID
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Sep 10 17:08:52 2021 +0200
.gitlab-ci.yml: new ASan job with -DAGGRESSIVE_REALLOC
This would exercise the same logic currently covered with
fedora-valgrind-aggressive in each MR.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 9 18:36:46 2021 +0200
fuzz: allow multiple definitions of gnutls_rnd in oss-fuzz
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 9 09:46:04 2021 +0200
build: remove tautological if conditions
Spotted by LGTM.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 9 09:38:21 2021 +0200
ext/{client,server}_cert_type: use proper types for integers
Spotted by LGTM.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 6 15:51:41 2021 +0200
tests: use PYTHONPATH instead of creating symlinks in srcdir
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 7 17:56:02 2021 +0200
tls-fuzzer: update submodules to the latest
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Miroslav Lichvar <mlichvar@redhat.com>
Date: Wed Sep 1 15:48:27 2021 +0200
fix SSSE3 SHA384 to work more than once
The output function called sha512_digest() instead of sha384_digest(),
which caused the hash context to be reinitialized for SHA512 instead of
SHA384 and all following digests using the hash handle were wrong.
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Sep 4 10:38:23 2021 +0200
testcompat-openssl-tls13-cli.sh: disable early data testing
This test is causing intermittent failure quite often in the CI.
Let's temporarily disable it until the cause is properly investigated.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 5 18:48:09 2021 +0200
testcompat-openssl-tls13-cli.sh: use different tmpdirs for sub-tests
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 5 17:28:43 2021 +0200
tests: rework port locking
This makes the locking logic per port, not per entire make process.
It also makes use of absolute paths for locking directory, so that
tlsfuzzer tests can use it.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Aug 30 19:26:49 2021 +0200
tests/tls13/post-handshake-with-cert: avoid a race condition
A server tries to close connection and kill the client after reauth.
Client, in turn, attempts to send data in some cases.
This patch makes the server wait for the client to terminate first.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Aug 30 19:38:03 2021 +0200
tests: remove unused `terminate` from 2 tests
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Fri Aug 27 17:10:37 2021 +0200
tests: add a safeguard to terminate()
Add a safeguard to `terminate()` so that we don't kill whole pgroups.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Fri Aug 27 17:02:51 2021 +0200
tests: don't kill whole pgroups
`terminate()` executed from the child process results in a `kill(0, SIGTERM)`,
bringing the whole pgroup down. `exit(1)` should be called instead.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Nick Child <nick.child@ibm.com>
Date: Wed Aug 25 15:13:07 2021 -0400
INSTALL.md: Update documentation on building static library [skip ci]
As of commit a88eb79d88c53531c49d7cedfce2207f36ac8a9d, building a
static archive (libgnutls.a) is off by default. This commit updates the
documentation for building a static library in INSTALL.md .
Signed-off-by: Nick Child <nick.child@ibm.com>
Author: Simon South <simon@simonsouth.net>
Date: Sun Aug 22 08:41:36 2021 +0200
guile: Add 'GNUTLS_DIG_SHA256' enum value.
* guile/modules/gnutls/build/enums.scm (%digest-enum): Add 'sha256'.
* guile/modules/gnutls.in: Export 'digest/sha256'.
* guile/tests/x509-certificates.scm: Test 'digest/sha256' with
'x509-certificate-fingerprint'.
(%sha256-fingerprint): New constant.
Signed-off-by: Simon South <simon@simonsouth.net>
Author: Simon South <simon@simonsouth.net>
Date: Sun Aug 22 08:40:14 2021 +0200
guile: Add binding for 'gnutls_x509_crt_get_fingerprint'.
* guile/src/core.c (MAX_HASH_SIZE): New constant.
(scm_gnutls_x509_certificate_fingerprint): New function.
* guile/modules/gnutls.in: Export 'x509-certificate-fingerprint'.
* guile/tests/x509-certificates.scm: Test 'x509-certificate-fingerprint'.
(%sha1-fingerprint): New constant.
(u8vector->hex-string): New procedure.
Signed-off-by: Simon South <simon@simonsouth.net>
Author: Craig Gallek <cgallek@gmail.com>
Date: Wed Aug 11 12:54:37 2021 -0400
x509: pin/password callback support for openssl encrypted private keys
This attempts to use the registered pin callback when the password for
an encrypted openssl private key is not supplied. This matches the
functionality for PKCS8 sealed keys above and is similar to what openssl
does in this situation.
Signed-off-by: Craig Gallek <cgallek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Aug 7 09:16:50 2021 +0200
mem: instrument with ASan memory poisoning as well as valgrind
This makes it possible to catch undefined memory access in the more
lightweight CI runs.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Aug 2 18:32:28 2021 +0200
pk: add flags to force RSA-PSS salt length to match digest length
This adds a couple of flags to RSA-PSS signing and verification, to
enforce that the salt length matches the digest length. That is not
only recommended in RFC 4055, but also mandated in RFC 8446 in the TLS
1.3 context.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jul 21 10:34:23 2021 +0200
fips: allow more RSA modulus sizes
Previously, we restricted RSA modulus size to be either 2048 or 3072
bits in FIPS mode, following FIPS 186-4. On the other hand, FIPS
140-2 IG A.14 and FIPS 140-3 IG C.F updates it to allow arbitrary
modulus sizes equal to or larger than 2048 bits under certain
conditions.
This change reflects the guidance, though it only allows known sizes
due to the complexity of calculating the approximate security strength
using the formula in FIPS 140-2 IG 7.5.
Suggested-by: Stephan Mueller
Reviewed-by: Stephan Mueller
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 3 14:17:41 2021 +0200
tests: tls13/key_share: rewrite as single process
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 4 06:45:30 2021 +0200
.gitlab-ci.yml: cppcheck: disable style checks
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 3 11:44:52 2021 +0200
devel: suppress cppcheck 2.5 false-positives
This fixes errors and warnings as well as some style issues spotted by
cppcheck 2.5. Others are recorded in the suppressions file.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Tue Jul 13 23:53:12 2021 +0200
gnutls_ocsp_resp_verify: Check key purpose if signer not on trust list
According to [1] the id-kp-OCSPSigning key purpose is only needed for
delegated signers, not signers explicitly set as trusted. The previous
code would reject a signature directly from a CA on the trust list
(without delegation) because the CA certificate didn't contain the
id-kp-OCSPSigning key purpose.
The tests included in this commit check:
1. Is a signature directly from a CA on the trust list accepted?
2. Is a signature from a delegated signer issued by a CA on the trust
list accepted?
3. Is a signature from a certificate without id-kp-OCSPSigning issued
by a CA on the trust list rejected?
Note that the CA in these tests is also the one that issued the
certificate the OCSP response is for, but the code (current and
previous) doesn't enforce this.
[1] https://datatracker.ietf.org/doc/html/rfc6960#section-4.2.2.2
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 28 07:04:55 2021 +0200
tests: set SH_LOG_COMPILER so sh tests run under $(SHELL)
This omits the need of setting executable bits on shell script tests.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 25 08:39:12 2021 +0200
key_share: treat X25519 and X448 as same PK type when advertising
Previously, if both X25519 and X448 groups were enabled in the
priority string, the client sent both algorithms in a key_share
extension, while it was only capable of handling one algorithm from
the same (Edwards curve) category. This adds an extra check so the
client should send either X25519 or X448.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Michael Catanzaro <mcatanzaro@redhat.com>
Date: Tue Jun 22 14:12:09 2021 -0500
Fix gnutls_certificate_set_trust_list() return value documentation
This function is documented to return an error code, but in fact it has
no return value and never fails. Fix this.
Signed-off-by: Michael Catanzaro <mcatanzaro@redhat.com>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Apr 24 22:02:14 2021 +0200
guile: Writes to record ports handle EAGAIN/EINTR transparently.
Reported at <https://issues.guix.gnu.org/47867>
by Florian Pelz <pelzflorian@pelzflorian.de>.
This is a followup to a229bb36c9592b151f6feb277238c41ab39f40a9.
* guile/src/core.c (write_to_session_record_port) [USING_GUILE_BEFORE_2_2]:
Keep looping upon GNUTLS_E_AGAIN and GNUTLS_E_INTERRUPTED.
(write_to_session_record_port) [!USING_GUILE_BEFORE_2_2]: Loop on
GNUTLS_E_INTERRUPTED and return -1 on GNUTLS_E_AGAIN if C_SESSION is
backed by a file descriptor.
* NEWS: Update.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 11 06:58:43 2021 +0200
priority: reflect system wide config when constructing sigalgs
Otherwise the client would advertise signature algorithms which it
cannot use and cause handshake to fail.
Reported by Philip Schaten in:
https://lists.gnupg.org/pipermail/gnutls-help/2021-June/004711.html
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 9 14:29:11 2021 +0200
p11tool: mention how CKA_IDs of certs are calculated upon --write
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat May 29 07:18:17 2021 +0200
Release 3.7.2
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat May 29 07:09:07 2021 +0200
release-steps: remove unnecessary steps
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat May 29 06:56:57 2021 +0200
AUTHORS: take into account of Co-authored-by:
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat May 29 06:52:42 2021 +0200
.mailmap: update
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Tue May 18 16:32:55 2021 -0400
certtool: order DN components by scale.
DN components are expected to be ordered by scale, with the wire format
representing larger-scale components (like country or organization) before
smaller-scale components (like state or organizationalUnit).
The bulk of the changes here of course are changes to the target
certificates in the test suite.
Note that a change was necessary in tests/cert-tests/crq.sh because it
tests the "interactive" mode of certtool. If any user is scripting
certtool in this way, this change will cause a backwards-incompatible
break. However, I think this is OK -- the supported scripted/batch
mode for certtool should use a template file, and I don't think it's
important to maintain a strict api on the interactive mode.
The main change here is to order the DN from least-specific-to-most,
in particular:
country, state, locality, org, orgunit, cn, uid
But I've also made an additional arbitrary choice, which is that DC
(domain component) comes *after* uid. This was already the case in
certificate generation, but in *request* generation, it was the other
way around. I've changed request generation to match this ordering
from certificate generation.
Closes: #1243
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 27 10:00:22 2021 +0200
build: fix interface version dependencies in libgnutls.map
Previously, the predecessor of GNUTLS_3_7_0 was mistakenly set to
GNUTLS_3_4 instead of GNUTLS_3_6_14. This fix shouldn't have any
impact on ABI, given the dynamic loader doesn't take into account of
ordering of versions. See also the first paragraph on:
https://www.akkadia.org/drepper/dsohowto.pdf#page=38
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 27 09:34:50 2021 +0200
build: require libkcapi 1.3.0 or later if --enable-afalg
The libkcapi 1.3.0 brings a couple of changes needed for GnuTLS:
* fix: remove prctl PR_SET_DUMPABLE to allow library to be debugged
* fix: ensure that sendmsg is always used as fallback when vmsplice cannot be used
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 28 17:05:56 2021 +0200
tlsfuzzer: update git submodules
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 28 08:51:27 2021 +0200
nettle: update git submodule to 3.7.2 release
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 28 08:50:19 2021 +0200
gnulib: update git submodule
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 27 08:10:30 2021 +0200
devel: update libtasn1 submodule
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Leonardo Bras <leobras.c@gmail.com>
Date: Fri May 21 03:40:03 2021 -0300
guile: Fix implicit conversion warning
When building, the following warning may be printing:
CC guile_gnutls_v_2_la-utils.lo
core.c: In function 'scm_gnutls_set_server_session_certificate_request_x':
core.c:545:13: warning: implicit conversion from 'gnutls_certificate_request_t' to 'gnutls_certificate_status_t' [-Wenum-conversion]
545 | c_request = scm_to_gnutls_certificate_request (request, 2, FUNC_NAME);
| ^
core.c:547:53: warning: implicit conversion from 'gnutls_certificate_status_t' to 'gnutls_certificate_request_t' [-Wenum-conversion]
547 | gnutls_certificate_server_set_request (c_session, c_request);
|
Fix this warning by changing c_request type to gnutls_certificate_request_t.
Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Author: Leonardo Bras <leobras.c@gmail.com>
Date: Fri May 21 03:11:29 2021 -0300
ASN1 : Remove warnings related to old libtasn1 namings
While compiling gnutls, some warnings related to deprecated names can be
printed, such as:
./../x509/x509_int.h:392:13: warning: 'ASN1_TYPE' macro is deprecated, use 'asn1_node' instead.
392 | int _gnutls_x509_write_key_int_le(ASN1_TYPE node, const char *value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To avoid that, rename types as show in devel/libtasn1/NEWS (release 3.1):
ASN1_DATA_NODE -> asn1_data_node_st
ASN1_ARRAY_TYPE -> asn1_static_node (was asn1_static_node_t)
ASN1_TYPE -> asn1_node
ASN1_TYPE_EMPTY -> NULL
static_struct_asn -> asn1_static_node_st
node_asn_struct -> asn1_node_st
node_asn -> asn1_node_st
Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Mon May 17 13:33:28 2021 -0400
git: Do not ignore certtool templates.
This effectively reverts part of
dc85966364994006f9337e4749d1487e4b8e16a1 in order to ensure that
tests/cert-tests/templates/*.tmpl are not ignored by git.
Closes: #1242
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Mon May 17 13:20:26 2021 -0400
tests/cert-tests: test a policy without any policyQualifiers.
Ensure that a policy without policyQualifiers gets created with an
omitted sequence of qualifiers, rather than an empty sequence of
qualifiers.
We use NIST's test policy OID for this test.
This tests the fix for #1238.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri May 14 17:57:54 2021 -0400
x509: Omit empty sequences of policyQualifiers.
When a certificate has a policy attached but no policyQualifiers,
`certtool` should omit the policyQualifiers sequence entirely, rather
than emitting an empty sequence.
Closes: #1238
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 14 15:59:37 2021 +0200
cert auth: filter out unsupported cert types from TLS 1.2 CR
When the server is advertising signature algorithms in TLS 1.2
CertificateRequest, it shouldn't send certificate_types not backed by
any of those algorithms.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 17 07:58:43 2021 +0200
pre_shared_key: limit 0-RTT to resumption connections
While RFC 8446 allows 0-RTT data in a non-resumption connection
established with external PSK, it requires a mechanism to associate
encryption parameters with PSK. Until we provide a new API for that,
let's limit the 0-RTT use to resumption connections only.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed May 12 20:49:20 2021 -0400
x509: Write keyUsage extension with minimal BIT STRING
Avoid embedding trailing cleared bits in the BIT STRING for the
keyUsage extension.
The overwhelming majority of this changeset is correcting the
artifacts in the test suite, most of which had keyUsage with a
non-minimal encoding. The only functional code change is in
lib/x509/x509_ext.c.
Closes: #1236
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 14 08:48:24 2021 +0200
.gitlab-ci.yml: add bootstrap stage
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 14 08:26:37 2021 +0200
serv: stop setting AI_ADDRCONFIG on getaddrinfo
AI_ADDRCONFIG is only useful when the NODE argument is given in the
getaddrinfo call, as described in RFC 3493 6.1. Suggested by Andreas
Metzler in:
https://gitlab.com/gnutls/gnutls/-/issues/1007#note_356637206
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 13 15:03:10 2021 +0200
configure.ac: specify -ladvapi32 in mingw builds
This library needs to be linked for CryptAcquireContextW, used in
lib/system/keys-win.c. Suggested by Tim Kosse in:
https://gitlab.com/gnutls/gnutls/-/issues/1232
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 09:50:22 2021 +0200
tests: don't install crypt32.dll and ncrypt.dll replacement
Reported by Tim Kosse in:
https://gitlab.com/gnutls/gnutls/-/issues/1232
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 18:44:28 2021 +0200
gnutls_early_{cipher,prf_hash}_get: new functions
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 11:50:00 2021 +0200
tests: rework tls13-early-data to check key scheduling
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 18:25:55 2021 +0200
tests: tls13-early-data: use TLS_CHACHA20_POLY1305_SHA256
When resuming in TLS 1.3, the negotiated PRF hash must match the one
used in the initial handshake.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 18:09:01 2021 +0200
tests: remove shell-script wrapper for tls13/prf-early
The wrapper (tls13/prf-early.sh) was merely for running
tls13/prf-early under datefudge. The same thing can now be done with
virt_time_init_at.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 17:56:37 2021 +0200
tests: virt-time: add virt_time_init_at
This allows the tests to set the current time to arbitrary point,
instead of the current time; useful for the tests checking the traces
such as tls13/prf-early.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 08:35:02 2021 +0200
gnutls_init: add flag to omit EndOfEarlyData messages
The message is prohibited in QUIC:
https://tools.ietf.org/html/draft-ietf-quic-tls-34#section-8.3
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 08:26:46 2021 +0200
gnutls_init: redefine GNUTLS_ENABLE_EARLY_DATA flag for client
The flag was only for the server, but it turned out to be useful for
client to explicitly indicate early data, when 0-RTT is handled
out-of-band as in QUIC.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 29 08:23:15 2021 +0200
state: call secret_func on early write key change as well
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 13 08:38:20 2021 +0200
.gitlab-ci.yml: doc-dist.Fedora: invoke "texconfig rehash"
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 13 08:01:27 2021 +0200
systemkey: remove unused --inder and --infile options
While those options have no effect, the command previously tried to
open a file for reading and leaked file descriptor.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 12 16:55:37 2021 +0200
keylog: suppress -Wanalyzer-file-leak warnings
This workarounds the following warnings with gcc analyzer:
kx.c:156:69: error: leak of FILE '<unknown>' [CWE-775] [-Werror=analyzer-file-leak]
156 | _gnutls_bin2hex(session->security_parameters.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
157 | client_random, GNUTLS_RANDOM_SIZE,
| ~~~~~~~~~~~~~
This should be harmless because the keylog file pointer is closed in
the ELF destructor.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 12 14:46:56 2021 +0200
.gitlab-ci.yml: update build images to Fedora 34 and Alpine 3.13
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 12 14:44:37 2021 +0200
devel: regenerate abidw dump files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 15:29:03 2021 +0200
.gitlab-ci.yml: bump cache version
This should fix the nettle_streebog512_update detection.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 14:25:38 2021 +0200
srptool: add missing fclose on error path
Spotted by gcc analyzer:
srptool.c:113:32: warning: leak of FILE 'fp' [CWE-775] [-Wanalyzer-file-leak]
113 | return -1;
| ^
also:
srptool.c:560:32: warning: leak of FILE 'fp' [CWE-775] [-Wanalyzer-file-leak]
560 | return -1;
| ^
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 13 08:40:59 2021 +0200
tests: _check_wait_status: use only async-thread-safe function
As this function shall be called in a signal handler, it shouldn't use
'exit' as it's not async-thread-safe.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 14:23:45 2021 +0200
gnutls-serv: use only async-signal-safe functions in signal handler
Spotted by gcc analyzer:
serv.c:1138:9: warning: call to 'exit' from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler]
1138 | exit(1);
| ^~~~~~~
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 14:13:45 2021 +0200
certtool: tighten allocation check
Spotted by gcc analyzer:
certtool-cfg.c:856:24: warning: use of possibly-NULL 'copy' where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
856 | while (strcmp(pass, copy) != 0
| ^~~~~~~~~~~~~~~~~~
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 14:08:33 2021 +0200
psktool: tighten allocation check
Spotted by gcc analyzer:
psk.c:275:21: warning: use of possibly-NULL '_username.data' where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
275 | if (strncmp(p, (const char *) _username.data,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 13:16:51 2021 +0200
.gitignore: ignore more files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 11:08:59 2021 +0200
_tls13_{derive,expand}_secret2: fix array parameter mismatch
This suppresses the warning with -Warray-parameter
secrets.c:85:40: warning: argument 6 of type 'const uint8_t[64]' {aka 'const unsigned char[64]'} with mismatched bound [-Warray-parameter=]
85 | const uint8_t secret[MAX_HASH_SIZE],
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from secrets.c:28:
secrets.h:43:41: note: previously declared as 'const uint8_t[32]' {aka 'const unsigned char[32]'}
43 | const uint8_t secret[MAX_CIPHER_KEY_SIZE],
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 11 11:04:54 2021 +0200
_gnutls_retrieve_pin: remove array declarator in function argument
This was originally to eliminate the warnings with -Warray-parameter:
pin.c:70:27: warning: argument 5 of type 'char[256]' with mismatched bound [-Warray-parameter=]
70 | char pin[GNUTLS_PKCS11_MAX_PIN_LEN], unsigned pin_size)
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from pin.c:23:
./pin.h:9:48: note: previously declared as 'char *'
9 | unsigned pin_flags, char *pin, unsigned pin_size);
| ~~~~~~^~~
though it turned out to be unnecessary because the function merely
delegate the call to the user-supplied callbacks.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed May 5 18:05:29 2021 -0400
spelling: The possessive pronoun "its" has no apostrophe.
"it's" is for contractions like "it is" or "it has". "its" is a
possessive pronoun, like "his" or "hers" or "theirs", none of which
have an apostrophe in them either.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Tue May 4 15:08:08 2021 -0400
certtool: Align warning about --provable with actual code
If I try to generate an ed25519 key, it is *not* an ECDSA key. But I
see this warning:
0 dkg@host:~$ certtool --generate-privkey --provable --key-type ed25519
Generating a 256 bit EdDSA (Ed25519) private key ...
The --provable parameter cannot be used with ECDSA keys.
1 dkg@host:~$
Looking at the code and documentation, it's clear that --provable only
works for RSA and DSA. This fix aligns the warning message with the
underlying mechanism.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 3 16:35:43 2021 +0200
x509/verify: treat SHA-1 signed CA in the trusted set differently
Suppose there is a certificate chain ending with an intermediate CA:
EE → ICA1 → ICA2. If the system trust store contains a root CA
generated with the same key as ICA2 but signed with a prohibited
algorithm, such as SHA-1, the library previously reported a
verification failure, though the situation is not uncommon during a
transition period of root CA.
This changes the library behavior such that the check on signature
algorithm will be skipped when examining the trusted root CA.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 3 17:27:56 2021 +0200
global: rename GNUTLS_NO_EXPLICIT_INIT to GNUTLS_NO_IMPLICIT_INIT
The old envvar still has effect but has been marked as deprecated.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 3 14:19:22 2021 +0200
certtool: fix parsing of --verify-profile option
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ruslan N. Marchenko <me@ruff.mobi>
Date: Sun May 2 23:29:39 2021 +0200
Add tests for call gnutls_session_channel_binding
Add test unit which executes positive and negative test scenarios
using standard gnutls testing framework.
Signed-off-by: Ruslan N. Marchenko <me@ruff.mobi>
Author: Ruslan N. Marchenko <me@ruff.mobi>
Date: Sat May 1 23:05:54 2021 +0200
Add tls-server-end-point tls channel binding implementation.
Add server-end-point tls channel binding into gnutls_session_channel_binding
method. The implementation extracts session's certificate, its signature
algorithm, and calculates digest of the extracted certificate using
the function based on extracted algorithm, as per RFC5929.
Signed-off-by: Ruslan N. Marchenko <me@ruff.mobi>
Author: Ruslan N. Marchenko <me@ruff.mobi>
Date: Sat May 1 10:16:37 2021 +0200
Restructure gnutls_session_channel_binding and add tls-exporter
The restructure removes explicit pre-check for supported binding
type(s) and instead relies now on catch-all return which returns
UNIMPLEMENTED_FEATURE if no type was handled. In addition to that
it returns UNIMPLEMENTED_FEATURE for tls-unique request on TLSv1.3
session, since that is not supposed to work hence requires explicit
error. Finally new binding type tls-exporter implementation is
added.
Signed-off-by: Ruslan N. Marchenko <me@ruff.mobi>
Author: Ruslan N. Marchenko <me@ruff.mobi>
Date: Sat May 1 10:22:14 2021 +0200
Introduce new tls channel binding types into gnutls_channel_binding_t
This commit adds two new tls channel binding types into enum
gnutls_channel_binding_t:
* tls-server-end-point
* tls-exporter
Signed-off-by: Ruslan N. Marchenko <me@ruff.mobi>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Apr 28 11:04:20 2021 +0200
certtool: don't copy CRL distribution point from CA cert
Suggested by Thomas Karlsson in:
https://gitlab.com/gnutls/gnutls/-/issues/1126
While this changes the default behavior, CDP can always be set through
the template or interactive input.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 25 17:04:46 2021 +0200
gnutls_x509_crt_get_dn: clarify null-termination of the output
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 25 10:48:09 2021 +0200
build: do not install .hmac files
It turned out that distro package building process might perform
post-processing (e.g., strip) of the shared libraries after install,
and that may cause inconsistency with the installed .hmac files.
Let's not try too hard on this but defer the final hmac calculation to
distributions. It is still useful to keep our own fipshmac as it
makes it easier to run FIPS tests.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 25 06:51:20 2021 +0200
tests: fix test script file name in distribution
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 25 06:50:03 2021 +0200
.gitignore: ignore ctags, etags, and GNU global files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 15:36:37 2021 +0200
handshake: fix timing of sending early data
Previously, the client was sending early data after receiving a Server
Hello message, which not only negates the benefit of 0-RTT, but also
was a logic error as it can only be decrypted by the server when the
initial handshake and the resuming handshake agree on the same
ciphersuites. This fixes that behavior in the following ways:
- extend the session data format to include the selected ciphersuites,
even in TLS 1.3
- setup the epoch for early data, right before the client sending
early data (also right after the server deciding to accept early
data).
- extend the test case to use different ciphersuites in the initial
and resuming handshakes
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Apr 23 09:44:20 2021 +0200
guile: Tests show their PID upon uncaught exceptions.
* guile/modules/gnutls/build/tests.scm (run-test): Display the PID when
throwing an exception.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Feb 5 12:28:35 2021 +0100
guile: Avoid the deprecated 'scm_t_uint8' type.
* guile/src/core.c: Use 'uint8_t' instead of 'scm_t_uint8', which is
deprecated in Guile 3.0.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Tue Dec 22 10:30:43 2020 +0100
guile: Avoid potentially missed reference.
There's one case where 'register_weak_reference' is called several times
on the same object, in 'set-certificate-credentials-x509-keys!', where
PRIVKEY could have been GC'd before CRED.
* guile/src/core.c (register_weak_reference): Add TO to the weak
references of FROM instead of overriding them.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 10:28:03 2021 +0200
afalg: use pkg-config to detect libkcapi
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 10:03:47 2021 +0200
afalg: support AES-XTS algorithms
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 09:56:40 2021 +0200
afalg: cleanup header inclusion
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Mon Dec 21 18:22:14 2020 +0100
guile: Remove leftover comment about allocation routines.
This is a followup to 872409857351f28b1e3c21526bfa6606c918b176.
* guile/src/core.c (scm_init_gnutls): Remove leftover comment.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 09:50:16 2021 +0200
afalg: remove unnecessary initialization
That would make it easier to spot any uninitialized memory access with
valgrind.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 09:45:51 2021 +0200
afalg: assert IV size returned from the kernel is in the range
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 23 09:42:03 2021 +0200
NEWS: mention AF_ALG support
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Apr 14 17:27:43 2021 +0200
crypto-selftests: tolerate errors of gnutls_{hash,hmac}_copy
Some hardware accelerated implementations, such as afalg, cannot
support the copy operation. This patch turns it a soft-error, as the
code below is already checking if the copy is non-NULL, before
performing any operation on it.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 22 16:42:01 2021 +0200
handshake: don't regenerate legacy_session_id in second CH after HRR
According to RFC 8446 4.1.2, the client must send the same Client
Hello after Hello Retry Request, except for the certain extensions,
and thus legacy_session_id must be preserved.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Apr 14 16:50:28 2021 +0200
_gnutls_cipher_init: fallback if setiv is not implemented for AEAD
The _gnutls_cipher_init function currently assumes that all the cipher
implementations have .setiv method. This is not the case for
AEAD-only implementations such as afalg.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Stephan Mueller <smueller@chronox.de>
Date: Sat Oct 14 20:46:09 2017 +0200
Add AF_ALG acceleration
The patch set adds the backend implementation to use the Linux kernel
crypto API via the AF_ALG interface. The GnuTLS AF_ALG extension uses
libkcapi [1] as the backend library which implements the actual kernel
communication.
[1] http://www.chronox.de/libkcapi.html
The symmetric cipher support, the hashing and the MAC support are
validated to work correctly using NIST CAVS test vectors.
The AEAD cipher support was tested by connecting to a remote host using
gnutls-cli (the following log strips out unrelated information):
Processed 143 CA certificate(s).
...
- Certificate type: X.509
- Got a certificate list of 1 certificates.
- Certificate[0] info:
...
- Description: (TLS1.2)-(ECDHE-SECP384R1)-(RSA-SHA512)-(AES-256-GCM)
- Session ID: 9E:5E:FC:09:2A:4E:2A:3D:22:44:68:42:C3:F6:2D:AB:F9:67:08:CE:6D:EE:E4:A2:EF:80:43:FE:3B:D9:1E:FE
- Ephemeral EC Diffie-Hellman parameters
- Using curve: SECP384R1
- Curve size: 384 bits
- Version: TLS1.2
- Key Exchange: ECDHE-RSA
- Server Signature: RSA-SHA512
- Cipher: AES-256-GCM
- MAC: AEAD
- Options: extended master secret, safe renegotiation,
- Handshake was completed
- Simple Client Mode:
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Hedgehog5040 <krenzelok.frantisek@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 16 13:56:40 2021 +0200
priority: add option to disable TLS 1.3 middlebox compatibility mode
This adds a new option %DISABLE_TLS13_COMPAT_MODE to disable TLS 1.3
compatibility mode at run-time.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Mar 30 13:39:46 2021 +0200
_gnutls_calloc: remove unused function
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 29 14:09:51 2021 +0200
keys-win: free certificate context in gnutls_system_key_iter_deinit
Suggested by Bjørn Christensen in:
https://gitlab.com/gnutls/gnutls/-/issues/1197
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 29 11:06:37 2021 +0200
build: avoid integer overflow in additions
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 21 08:43:26 2021 +0100
build: avoid potential integer overflow in array allocation
This relies on _gnutls_reallocarray for all occasions of array
allocations, so that they can benefit from the built-in overflow
checks.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 29 13:08:23 2021 +0200
pkcs11x: find_ext_cb: fix error propagation
Use explicit error value, as rv is not set in this code path.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 21 08:42:23 2021 +0100
mem: add _gnutls_reallocarray and _gnutls_reallocarray_fast
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 21 08:34:13 2021 +0100
bootstrap: pull in 'xalloc-oversized' module from Gnulib
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Mar 20 13:52:25 2021 +0100
build: doc: install missing image file gnutls-crypto-layers.png
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 15 11:03:44 2021 +0100
examples: avoid memory leak in ex-verify
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 15 11:03:22 2021 +0100
examples: avoid memory leak in tlsproxy
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 15 10:56:46 2021 +0100
src: avoid file descriptor leak in socket_open2
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 15 10:48:49 2021 +0100
gnutls-cli-debug: avoid resource leak in saving DHE params
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 15 10:47:50 2021 +0100
srptool: avoid FILE pointer leak on error
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 15 09:55:20 2021 +0100
gnulib: update git submodule
This brings in the fix for parse-datetime test failures on NetBSD:
https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00069.html
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=35f8ff2e1162bf3ee60d99b6812f2ae10f3f2898
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 10 16:12:23 2021 +0100
str: suppress -Wunused-function if AGGRESSIVE_REALLOC is defined
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 10 16:11:29 2021 +0100
_gnutls_buffer_resize: account for unused area if AGGRESSIVE_REALLOC
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 10 05:06:13 2021 +0100
Release 3.7.1
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 29 14:06:50 2021 +0100
pre_shared_key: avoid use-after-free around realloc
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 29 14:06:32 2021 +0100
key_share: avoid use-after-free around realloc
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Mar 9 13:41:59 2021 +0100
_gnutls_buffer_resize: add option to use allocation simpler logic
This helps detect common mistakes[1] in realloc usage with valgrind,
where the caller assumes that the original ptr is always returned.
1. https://bugzilla.mozilla.org/show_bug.cgi?id=1377618
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Mar 9 20:29:37 2021 +0100
x86: flip polarity of check_fast_pclmul
Otherwise GCC produces the following warnings as the stub
__get_cpuid() is defined as '#define __get_cpuid(...) 0':
x86-common.c: In function 'register_x86_crypto':
x86-common.c:314:15: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
314 | family = ((a >> 8) & 0x0F);
| ~~~^~~~~
x86-common.c:308:15: note: 'a' was declared here
308 | unsigned int a,b,c,d;
| ^
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Mar 9 13:07:26 2021 +0100
gnutls_buffer_append_data: remove duplicated code
The function shared the same logic as in _gnutls_buffer_resize.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Mar 8 14:56:32 2021 +0100
lib/nettle: get rid of _rnd_system_entropy_check
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Mon Mar 8 11:54:16 2021 +0100
lib/global: don't call now-noop _gnutls_rnd_check
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Thu Mar 4 10:54:44 2021 +0100
sysrng-linux: re-open /dev/urandom every time
Prompted by the following comment of Daiki Ueno:
> I also wonder why we keep the fd open for such a long time in the first
> place. Both OpenSSL and NSS have a similar fallback to /dev/urandom
> if getrandom is not available, but opens the device in one-shot,
> when reseeding is needed (and that's pretty rare).
https://gitlab.com/gnutls/gnutls/-/merge_requests/1383#note_521749519
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Date: Fri Mar 5 12:31:45 2021 +0100
Add unit test for id-on-xmppAddr decoding error
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Mar 5 12:08:25 2021 +0100
gnutls_x509_trust_list_verify_crt2: skip duped certs for PKCS11 too
The commit 09b40be6e0e0a59ba4bd764067eb353241043a70 (part of
gnutls/gnutls!1370) didn't cover the case where the trust store is
backed by PKCS #11, because it used _gnutls_trust_list_get_issuer,
which only works with file based trust store.
This patch replaces the call with more generic
gnutls_x509_trust_list_get_issuer so it also works with other trust
store implementations.
Reported by Michal Ruprich.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Date: Thu Mar 4 16:44:21 2021 +0100
output UTF-8 decoded id-on-xmppAddr SAN's
tls_x509_crt_get_subject_alt_name()` makes a promise [1] "If an
otherName OID is known, the data will be decoded. ... RFC 3920
id-on-xmppAddr SAN is recognized." which it didn't hold.
Before this patch the output was still in DER format, e.g. for a
id-on-xmppAddr which is always UTF-8 (0x0c): `0x0c <len> <xmppAddr>`
This patch fixes the issue and now it returns the decoded string.
[1]
https://www.gnutls.org/manual/gnutls.html#gnutls_005fx509_005fcrt_005fget_005fsubject_005falt_005fname
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sun Feb 28 13:56:21 2021 +0100
Changed _gnutls_session_cert_type_supported prototype and name to follow guidelines for boolean functions.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Feb 25 12:06:55 2021 +0100
Changed certificate retrieval callback prototype parameter name to be in line with the other parameters.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sat Jan 23 19:24:46 2021 +0100
Added documentation for rawpk use in certificate retrieval callback.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Feb 25 15:20:05 2021 +0100
Added extra logging and done some variable refactoring for server cert type extension.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Jan 28 20:05:51 2021 +0100
Added extra logging and done some variable refactoring for client cert type extension.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: JonasZhou <JonasZhou@zhaoxin.com>
Date: Thu Feb 25 15:48:36 2021 +0800
padlock:add support for AES-192-CBC
Padlock code misses support for AES-192. Extend it to support AES-192.
Due to poor performance of padlock-aes-xxx-gcm, only padlock-aes-192-cbc
is added.
Signed-off-by: JonasZhou <JonasZhou@zhaoxin.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Feb 19 15:36:48 2021 +0100
.gitlab-ci.yml: run fedora-valgrind jobs only on upstream branches
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 30 18:35:14 2021 +0100
tests: remove *hello_random_value tests
Those tests are meaningless and merely introduces extra flakiness, now
that the uninitialized random bytes are detected by valgrind.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 30 13:34:40 2021 +0100
.gitlab-ci.yml: use longer handshake timeout for valgrind jobs
Also limit the parallelism to $(nproc) to be less resource intensive.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 30 18:22:18 2021 +0100
tests: make any ad-hoc timeout setting controllable through envvar
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 30 10:49:07 2021 +0100
tests: suffix .sh for all shell-script tests
Otherwise valgrind will run against /bin/sh.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 30 09:23:02 2021 +0100
tests: don't conditionalize valgrind with --disable-full-test-suite
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 29 15:36:44 2021 +0100
tests: don't run shell-script tests under valgrind
https://www.gnu.org/software/gnulib/manual/html_node/Valgrind-and-shell-scripts.html
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 30 09:25:06 2021 +0100
nettle: check lib state early to cope with synthesized error
tests/x509sign-verify-error.c calls _gnutls_lib_simulate_error before
the actual private key operations. That previously resulted in
infloop / conditional jump depending on uninitialized data, because
the random function (gnutls_rnd) was not able to feed sufficient
randomness in that case.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 29 14:09:17 2021 +0100
tests: fix memory leak in tests/tls13/no-auto-send-ticket
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 24 07:49:34 2021 +0100
tests: remove init_fds test
This test does nothing to expose the original problem linked in the comment:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760476
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 23 14:36:57 2021 +0100
safe-memfuncs: rely on explicit_bzero implementation from gnulib
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 17 11:31:23 2021 +0100
.gitlab-ci.yml: remove scriptlet to generate HMAC files for FIPS
This is now generated automatically during the build.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Ondrej Moris <omoris@redhat.com>
Date: Fri Oct 30 20:43:56 2020 +0100
fips: replace fipshmac usage with internal program
This introduces a non-installed program "fipshmac" and uses it for
generating HMAC files required in FIPS 140-2. The generated files are
installed along with the main library.
Resolves issues #1101.
Signed-off-by: Ondrej Moris <omoris@redhat.com>
Co-authored-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 17 07:24:27 2021 +0100
build: don't remove distributed stamp files on "make clean"
Those files are created by the maintainers and should remain after
"make clean" when the distribution tarball is used.
Reported by christian wagner in:
https://gitlab.com/gnutls/gnutls/-/issues/1088
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 16 08:45:23 2021 +0100
fastopen: remove call to abort()
Ideally, this function should have a way to return an error, but
simply not enabling TFO wouldn't hurt.
Reported by Tim Rühsen in:
https://gitlab.com/gnutls/gnutls/-/issues/603
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 16 08:39:17 2021 +0100
hex: use a table to avoid meaningless assertion
Reported by Tim Rühsen in:
https://gitlab.com/gnutls/gnutls/-/issues/604
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 17 06:38:41 2021 +0100
gnutlsxx: add const and explicit specifiers where possible
Flagged by cppcheck.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Dmitriy Tsvettsikh <dmitrycvet@gmail.com>
Date: Wed Feb 17 04:28:47 2021 +0500
configure.ac: fix "nettle_rsa_sec_decrypt" check error
When libhogweed built with external gmplib, then it required explicit
path to gmplib to pass check.
Signed-off-by: Dmitriy Tsvettsikh <dmitrycvet@gmail.com>
Author: Evgeny Grin <k2k@narod.ru>
Date: Sun Jan 10 21:36:18 2021 +0300
Sockets: implement sendmsg()-like functions on Win32
Use WSASend() to send several buffer per one sys-call.
Unified send()/recv() support for POSIX/Win32.
Signed-off-by: Evgeny Grin <k2k@narod.ru>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 16 07:51:10 2021 +0100
gnutlsxx: dh_params, rsa_params: actually assign values in operator=
The previous implementation assigned the value to a temporary variable
and then return it without assigning it to 'this'. That is not only
contradictory to user's expectation but also cppcheck treats it as a
logic error.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 15 15:51:25 2021 +0100
README.md: don't suggest installing lockfile-progs
The dependency has been removed in
5eff2002b0f7ac54b14326f207b5a9e509269555.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 15 14:54:14 2021 +0100
.gitlab-ci.yml: fix typo in cppcheck -I argument
Reported by Tim Rühsen in:
https://gitlab.com/gnutls/gnutls/-/issues/705
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 15 14:53:39 2021 +0100
README.md: fix typo in libev URL
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Feb 13 15:56:22 2021 +0100
.gitlab-ci.yml: bump cache version
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 8 12:24:31 2021 +0100
bootstrap.conf: initialize openssl submodule
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 8 08:46:13 2021 +0100
configure.ac: fix misleading --help output on guile bindings
Reported by Tim Rühsen in:
https://gitlab.com/gnutls/gnutls/-/issues/577
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 7 18:54:45 2021 +0100
bootstrap: update from Gnulib
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 7 17:38:31 2021 +0100
bootstrap.conf: refactor detection of gtk-doc and gnulib sockets
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Feb 13 15:57:36 2021 +0100
.gitignore: ignore more files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Tue Feb 9 14:16:54 2021 +0100
Fix test error with nettle in non-default location
Move #include <nettle/memxor.h> from gnutls_int.h to lib/cipher.c, drop
now superfluous NETTLE_CFLAGS from CPPFLAGS of multiple tests #including
gnutls_int.h.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 11 06:45:47 2021 +0100
.gitlab-ci.yml: remove FreeBSD run
This used to run on a dedicated FreeBSD runner, which is no longer
maintained.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 9 15:26:07 2021 +0100
tests/gnutls-cli-debug.sh: don't unset system priority settings
When the test is exercised, GNUTLS_SYSTEM_PRIORITY_FILE is set in many
places, such as TESTS_ENVIRONMENT tests/Makefile.am or a packaging
system that runs the test in a restricted environment. Unsetting it
after a temporary use forces the remaining part of the test to use the
default system priority, which might not be the intention of the user.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 28 12:14:13 2020 +0100
gnutls_x509_trust_list_verify_crt2: ignore duplicate certificates
The commit ebb19db9165fed30d73c83bab1b1b8740c132dfd caused a
regression, where duplicate certificates in a certificate chain are no
longer ignored but treated as a non-contiguous segment and that
results in calling the issuer callback, or a verification failure.
This adds a mechanism to record certificates already seen in the
chain, and skip them while still allow the caller to inject missing
certificates.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Co-authored-by: Andreas Metzler <ametzler@debian.org>
Author: Dosenpfand <m@sad.bz>
Date: Sun Feb 7 23:17:28 2021 +0100
doc: Add some missing algorithm keywords to priority string table
Signed-off-by: Markus Gasser <m@sad.bz>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 3 16:05:22 2021 +0100
tests: close unused fd opened by socketpair
Otherwise the tests block forever, even if the child exits.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 3 15:56:42 2021 +0100
.gitlab-ci.yml: remove redundant "make check" in build stage
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 24 07:34:24 2021 +0100
handshake: TLS 1.3: don't generate session ID in resumption mode
The commit e0bb98e1f71f94691f600839ff748d3a9f469d3e revealed that the
previous code always generated session ID in the TLS 1.3 middlebox
compatibility mode even when the handshake is being resumed.
This could cause a difference in PSK binder calculation if the server
sends an HRR in the resumption handshake.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 3 15:50:08 2021 +0100
gnutls_session_is_resumed: don't check session ID in TLS 1.3
In middlebox compatibiltiy mode, TLS 1.3 client simulates the TLS 1.2
resumption handshake, so checking session ID for resumption is
pointless. This worked previously because the client always generated
new random value even in a true resumption handshake, but didn't
update the session parameters properly.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 4 08:39:04 2021 +0100
_gnutls_openpgp_send_fingerprint: remove unused declaration
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 4 08:38:16 2021 +0100
_gnutls_session_is_resumable: remove unused internal function
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 4 08:56:33 2021 +0100
handshake: replace TRUE and FALSE with <stdbool.h>
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 4 08:30:30 2021 +0100
handshake: replace RESUME_TRUE and RESUME_FALSE with <stdbool.h>
Having those constants could cause wrong impression that there is a
third possible value.
To reproduce the changes other than lib/gnutls_int.h:
for i in `git ls-files lib`; do
sed -i
-e 's/\(session->internals.\(resumed\|resumable\)\) *\(== *RESUME_FALSE\|!= *RESUME_TRUE\)/!\1/' \
-e 's/\(session->internals.\(resumed\|resumable\)\) *\(== *RESUME_TRUE\|!= *RESUME_FALSE\)/\1/' \
-e 's/RESUME_TRUE/true/' \
-e 's/RESUME_FALSE/false/' \
$i
done
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 29 09:59:06 2020 +0100
testcompat-openssl: run TLS 1.3 client/server tests in parallel
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 29 07:26:16 2020 +0100
testcompat-openssl: remove hand-written parallelism
Previously, the test used to launch multiple tests in background and
then join them using shell primitives. That approach makes the test
slower as it cannot benefit from the automake's parallel test harness,
as well as it makes diagnostic harder because the lines in the log
file mix up.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 29 10:06:50 2020 +0100
testcompat-polarssl: remove hand-written parallelism
Previously, the test used to launch multiple tests in background and
then join them using shell primitives. That approach makes the test
slower as it cannot benefit from the automake's parallel test harness,
as well as it makes diagnostic harder because the lines in the log
file mix up.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 22 14:37:47 2021 +0100
fips: avoid memleak in (EC)DH internal APIs
There were some confusions of gnutls_pk_params_clear and
gnutls_pk_params_release, as well as the number of parameters to scan
in the gnutls_pk_params_st structure.
Flagged by address sanitizer:
==354688==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 192 byte(s) in 12 object(s) allocated from:
#0 0x7f13506163cf in __interceptor_malloc (/lib64/libasan.so.6+0xab3cf)
#1 0x7f13503b94de in wrap_nettle_mpi_init /home/ueno/devel/gnutls/lib/nettle/mpi.c:79
#2 0x7ffcb8495f07 ([stack]+0x1ef07)
Direct leak of 160 byte(s) in 10 object(s) allocated from:
#0 0x7f13506163cf in __interceptor_malloc (/lib64/libasan.so.6+0xab3cf)
#1 0x7f13503b94de in wrap_nettle_mpi_init /home/ueno/devel/gnutls/lib/nettle/mpi.c:79
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Tom Carroll <incentivedesign@gmail.com>
Date: Sun Jan 10 15:28:50 2021 -0800
Deinitialize pcerts array elements during cleanup.
In gnutls_certificate_set_x509_key() cleanup, the pcert elements should
be deinitialized, freeing pcert's pubkey and cert fields.
Signed-off-by: Tom Carroll <incentivedesign@gmail.com>
Author: Tom Carroll <incentivedesign@gmail.com>
Date: Sun Jan 10 21:40:52 2021 -0800
Ensure ca_list != NULL and ca_list_size > 0.
As ca_list_size is used in malloc, ensure that ca_list_size > 0.
If ca_list_size > 0, then ca_list cannot be NULL. Make these
assumptions explicit with argument condition check.
Signed-off-by: Tom Carroll <incentivedesign@gmail.com>
Author: Tom Carroll <incentivedesign@gmail.com>
Date: Sun Jan 10 21:31:19 2021 -0800
Verify that cert_list != NULL and cert_list_size > 0.
gnutls_certificate_set_x509_key() assumes that cert_list != NULL and
cert_list_size > 0. These assumptions are evident as cert_list_size is
used for malloc and cert_list[0] is accessed. Make those assumptions
explicit with argument condition check.
Signed-off-by: Tom Carroll <incentivedesign@gmail.com>
Author: Martin Storsjo <martin@martin.st>
Date: Thu Jan 7 13:41:12 2021 +0200
configure: Remove -no_weak_links from LDFLAGS after detecting function availability
This reverts commit 945a48993dcdd9ead17216e55c59db209923ea5e
and fixes the original issue (#966) differently.
This makes sure that when targeting a version of macOS less than
10.12, we won't pick up and unconditionally use functions that
only appeared later, when building with Xcode 11.4 or newer.
(With Xcode 11.4 or newer, the fix from 945a48993dcdd9 caused
-no_weak_links not be added, affecting the function availability
tests.)
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Thu Jan 7 20:29:54 2021 +0100
Update year of copyright notices in doc/gnutls.texi
Static analysis in CI checks if this is up to date, and fails if
not. This fixes the failure.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sat Jan 2 18:24:18 2021 +0100
Update CI documentation for use of Github Actions
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sat Jan 2 18:22:55 2021 +0100
Remove Travis CI configuration
Replaced by Github Actions workflow added in
9fc73ec96fa5adfc8e9a4bd2ee9e6543ffcfe120.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Tue Dec 29 22:03:53 2020 +0100
Github Actions job for MacOS CI
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 29 19:24:28 2020 +0100
gnulib: update git submodule
This brings in the fix for building with autoconf 2.70:
https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00091.html
Suggested by Jan Palus in:
https://gitlab.com/gnutls/gnutls/-/issues/1138
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Sadie Powell <sadie@witchery.services>
Date: Fri Dec 11 05:39:56 2020 +0000
Fix a common typo of gnutls_priority_t.
Signed-off-by: Sadie Powell <sadie@witchery.services>
Author: Andreas Metzler <ametzler@debian.org>
Date: Tue Dec 8 11:36:57 2020 +0100
libgnutls-openssl: Clean up list of exported symbols
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Dec 29 09:46:36 2020 +0100
testcompat-openssl: specify -sigalgs on s_client command line
This is a left-over of commit
23958322865a8a77c2f924f569484e5fd150a24b. Otherwise the OpenSSL system
configuration may affect algorithm selection.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Dec 28 16:16:53 2020 +0100
testpkcs11: use datefudge to trick certificate expiry
The certificates stored in tests/testpkcs11-certs expired on
2020-12-13. To avoid verification failure due to that, use datefudge
to set custom date when calling gnutls-cli, gnutls-serv, and certtool.
Based on the patch by Andreas Metzler:
https://gitlab.com/gnutls/gnutls/-/issues/1135#note_469682121
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Mon Dec 21 09:36:47 2020 -0500
tests: Fix tpmtool_test due to changes in trousers
Recent changes to trousers now require an ownership of root:tss for
the tcsd config file, older ones requires tss:tss. So, start tcsd
using trial and error with either one of these ownership configurations
until one works.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Norbert Pocs <npocs@redhat.com>
Date: Fri Oct 30 17:18:30 2020 +0100
Fix non-empty session id (TLS13_APPENDIX_D4)
When TLS1.3 is used with middlebox compatible mode, the session id should be filled with random session id,
but remained empty.
Signed-off-by: Norbert Pocs <npocs@redhat.com>
Closes #1074
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Dec 2 10:30:08 2020 +0100
Release 3.7.0
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Dec 2 09:33:21 2020 +0100
NEWS: update for 3.7.0 release
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: ihsinme <ihsinme@gmail.com>
Date: Mon Nov 30 14:56:15 2020 +0000
fix invalid unsigned arithmetic.
Signed-off-by: ihsinme <ihsinme@gmail.com>
Author: Stanislav Zidek <szidek@redhat.com>
Date: Fri Nov 27 13:24:24 2020 +0100
CI pipeline rework - using stages and inheritance
Signed-off-by: Stanislav Zidek <szidek@redhat.com>
Author: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Mon Nov 30 13:08:01 2020 -0600
x509: Improve documentation of new set_getissuer_function
Since gnutls!1354, some of this information is now obsolete. The caller
is no longer responsible for verifying the certificate or adding it to
the trust list. GnuTLS will now handle that. Instead, the callback
should always import the missing certificate and return success if the
certificate was imported, or failure otherwise.
Also, let's point to gnutls_x509_crt_get_authority_info_access(), since
it is useful in combination with this function.
Finally, since this callback is emitted once for each missing
intermediate certificate, it's probably less confusing if we talk about
only a single missing intermediate here. Yes, there could be multiple
missing certificates, but a single invocation of this callback can only
deal with one.
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 29 18:17:54 2020 +0100
fuzz: limit the retry count in handshake fuzzer
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 29 17:44:24 2020 +0100
gnutls_handshake_write: don't enqueue empty Handshake message
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 29 16:51:45 2020 +0100
fuzz: fix undefined behavior on left shift
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Tue Nov 24 11:13:07 2020 +0100
accelerated: Re-generate assembly sources
Re-generate assembly sources from the updated openssl submodule.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 24 10:54:06 2020 +0100
verify-tofu: return errors from store functions if callback fails
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Tue Nov 24 10:46:12 2020 +0100
devel: Update openssl submodule
Update openssl submodule to current OpenSSL_1_1_1-stable branch
(8e813c085a).
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 23 07:49:04 2020 +0100
configure.ac: include <libguile.h> when checking scm_* functions
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 12 06:49:12 2020 +0100
crypto-backend: remove ability of overriding ciphers
Those functions has been deprecated in 3.6.9 as they do not have
active use cases.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 9 10:11:04 2020 +0100
NEWS: add entry for QUIC related API functions
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 9 09:05:05 2020 +0100
fuzz: fuzz gnutls_handshake_write
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Mar 24 17:51:56 2020 +0100
alert: add callback to intercept alert messages
This adds gnutls_alert_set_read_function(), to allow QUIC
implementations to be notified when an alert message is sent.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Feb 21 17:48:37 2020 +0100
handshake: add callback to get notified with traffic secret change
For the use with QUIC, the change of traffic secrets must be notified
_after_ a new epoch is set up for reading or writing, and we can't
simply reuse the keylog mechanism.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 19 14:35:04 2020 +0100
handshake: add functions to read/write handshake messages directly
This adds a couple of functions, gnutls_handshake_set_read_function()
and gnutls_handshake_write(), to allow QUIC implementations to
directly interact with the TLS state machine.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 11 19:15:13 2020 +0100
x509: rework issuer callback
The previous issuer callback API had a drawback: the callback is
supposed to add CA to the trust list by itself. This was error-prone,
because the callback must check the new CA is trusted by the already
added CA. This instead moves the responsibility to the library.
This also rewrites the chain amendment logic in a side-effect free
manner. The application can assume that the trust information stored
on gnutls_x509_trust_list_t shouldn't change after the verification.
The missingissuer test has been extended to cover all the possible
patterns exhaustively.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 12 10:57:21 2020 +0100
_gnutls_cert_log: assume that 'cert' is nonnull
This makes static analyzers happy.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 15 09:57:37 2020 +0100
_gnutls_sort_clist: simplify the calling convention
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Tomas Mraz <tmraz@fedoraproject.org>
Date: Mon Oct 26 15:23:24 2020 +0100
Use proper record version in client hello after hello retry request
Signed-off-by: Tomas Mraz <tmraz@fedoraproject.org>
Fixes: #1053
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 12 07:46:19 2020 +0100
pkcs11: increase the maximum PIN length from 31 to 255
The maximum is chosen from the default configuration of SoftHSMv2:
https://github.com/opendnssec/SoftHSMv2/blob/develop/CMakeLists.txt#L61
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 08:45:03 2020 +0100
_gnutls_x509_read_value: don't count terminating null byte for OIDs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 12 09:19:30 2020 +0100
x509: clarify how to release memory allocated for DN
The application can assume that DNs returned from
_gnutls_x509_get_dn() are allocated with gnutls_malloc() and thus
shall be freed with gnutls_free().
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Mon Oct 12 16:33:54 2020 -0500
pkcs11: fix session leak in error path
gnutls_pkcs11_obj_set_info() fails to call pkcs11_close_session() after
a successful pkcs11_open_session() if called with an invalid itype
parameter. That would be programmer error, of course, but better not
forget to close the session regardless.
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Author: Sahana Prasad <sahana@redhat.com>
Date: Mon Sep 28 10:21:40 2020 +0200
Adds a new API gnutls_session_set_verify_output_function() that allows TLS applications
to have a way to pass the gnutls_verify_output_function() as a callback so that the full
path of the certificate chain to the trusted root can be avaiable as output.
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 5 05:57:01 2020 +0100
.gitlab-ci.yml: temporarily allow failures on Debian.cross.aarch64
qemu is currently causing segmentation fault:
cipher: aes-128-gcm
cipher: aes-192-gcm
cipher: aes-256-gcm
cipher: chacha20-poly1305
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
default cipher tests failed
FAIL test-ciphers-openssl.sh (exit status: 139)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 5 05:56:31 2020 +0100
.gitlab-ci.yml: use nettle git master for FreeBSD.x86_64
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 6 09:54:54 2020 +0100
tls-sig: defer allowed sigalg check to gnutls_pubkey_verify_data2
This reverts 485f2551e68d1b4ee70be2960f0a241b4a2b9fb9. After the new
configuration file has been introduced, the allowed algorithms are
checked after this part.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Remi Olivier <remi_8@hotmail.com>
Date: Wed Oct 28 20:43:25 2020 -0700
Fix memory leak with client certificate auth
Fix memory leak with client certificate auth when rehandshake with ocsp
More info in bug: gnutls/gnutls#1107
Signed-off-by: Remi Olivier <remi_8@hotmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 5 05:51:56 2020 +0100
Revert ".lgtm.yml: no longer bring nettle from master"
This reverts commit bbe93dc315009fe1f9a30426cbe20f4661b8435c.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 4 19:05:58 2020 +0100
gostdsa: fix memleak in _gnutls_gostdsa_unmask_key
Spotted by valgrind:
==5721== 40 bytes in 1 blocks are definitely lost in loss record 1 of 3
==5721== at 0x4839809: malloc (vg_replace_malloc.c:307)
==5721== by 0x4DC3E59: __gmp_default_allocate (in /usr/lib64/libgmp.so.10.4.0)
==5721== by 0x4DD26A3: __gmpz_realloc (in /usr/lib64/libgmp.so.10.4.0)
==5721== by 0x4DD8B9D: __gmpz_set_str (in /usr/lib64/libgmp.so.10.4.0)
==5721== by 0x499339D: _gnutls_gostdsa_unmask_key (gostdsa-mask.c:68)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 4 18:58:25 2020 +0100
testcompat-openssl: use RC4-SHA instead of RC4-MD5 for testing
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 4 11:43:35 2020 +0100
.gitlab-ci.yml: use Fedora 33 with LEGACY policy for SSL 3.0 testing
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 4 09:46:10 2020 +0100
.gitlab-ci.yml: supply -fstack-protector required by latest MinGW
https://sourceforge.net/p/mingw-w64/bugs/818/
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 4 08:56:04 2020 +0100
tls-fuzzer: update submodules
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 12 17:42:15 2020 +0200
.gitlab-ci.yml: avoid using fipshmac
The new fipshmac command provided by libkcapi requires NETLINK_CRYPTO,
which is not enabled on gitlab CI.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 4 14:08:37 2020 +0200
src: remove use of siginterrupt
GCC 10 warns this:
tests.c:702:2: error: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Werror=deprecated-declarations]
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Oct 3 16:15:25 2020 +0200
.gitlab-ci.yml: update build-images for nettle 3.6
Also remove Debian.cross.mips-linux-gnu, as it is no longer supported.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 6 08:56:07 2020 +0200
build: hard require nettle 3.6
This allows us to remove several backports, including XTS, CFB8,
raw-ChaCha, CMAC64, Curve448, and the GOST curves and hashes.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Hans Leidekker <hans@codeweavers.com>
Date: Tue Nov 3 12:31:38 2020 +0100
Make y parameter optional in gnutls_privkey_import_dsa_raw().
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 30 16:53:47 2020 +0100
psktool: Fix hex-encoding logic of username
The previous code didn't modify the pointer to the realloc'ed region
nor check overflow before calling realloc.
Spotted by Anderson Sasaki in:
<https://gitlab.com/gnutls/gnutls/-/merge_requests/1345#note_439063374>.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Sahana Prasad <sahana@redhat.com>
Date: Thu Oct 29 10:18:56 2020 +0100
PKCS#12: switch default encryption to AES-256-CBC
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 26 16:32:59 2020 +0100
srptool: fix FILE pointer leak
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 25 08:36:57 2020 +0100
mini-record-timing: use only async-signal-safe functions in handler
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Oct 24 10:23:03 2020 +0200
psktool: encode username if it contains special character
This also moves the hex encoding of key to write_key for readability
and makes file stream closing robuster.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 26 15:42:22 2020 +0100
bootstrap.conf: exercise more tests from Gnulib
This fixes the build failure with -Werror:
configure:53786: gcc -o conftest -O0 -Wall -Werror -g3 conftest.c -lev >&5
conftest.c:412: error: "GNULIB_STRERROR" redefined [-Werror]
412 | #define GNULIB_STRERROR 1
|
conftest.c:305: note: this is the location of the previous definition
305 | #define GNULIB_STRERROR IN_GNUTLS_GNULIB_TESTS
|
cc1: all warnings being treated as errors
as well as improves code coverage.
Suggested by Bruno Haible in:
<https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00148.html>.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Oct 24 09:48:07 2020 +0200
gnutls_psk_set_server_credentials_file: document the file format
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 18 17:58:49 2020 +0200
serv: use only async-signal-safe functions in signal handlers
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 18 09:50:46 2020 +0200
_gnutls_asn2err: define as static inline
This pacifies -fanalyzer false-positive:
common.c:552:3: warning: use of NULL '<unknown>' where non-null expected [CWE-690] [-Wanalyzer-null-argument]
Ideally, the function should be defined as 'extern inline' to avoid
code bloat by being copied across multiple translation units.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 18 07:19:29 2020 +0200
doc/examples/ex-ocsp-client.c: check malloc return value
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 18 07:25:42 2020 +0200
serv: peer_print_info: add overflow check on realloc
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 18 07:17:38 2020 +0200
serv: replace our own list implementation with Gnulib's gl_list
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 5 17:59:46 2020 +0200
fips: run CMAC self-tests
FIPS140-2 IG D.8 mandates self-tests on CMAC.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 5 17:44:30 2020 +0200
fips: add self-tests for TLS-PRF
FIPS140-2 IG D.8 mandates self-tests on approved KDF algorithms. As
the guidance only requires to run a single instance of each KDF
mechanism, this only exercises TLS1.2 PRF with HMAC-SHA-256 as the
underlying MAC algorithm.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Oct 6 11:54:21 2020 +0200
fips: use larger prime for DH self-tests
According to FIPS140-2 IG 7.5, the minimum key size of FFC through
2030 is defined as 2048 bits. This updates the relevant self-test
using ffdhe3072 defined in RFC 7919.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 5 16:59:50 2020 +0200
fips: add self-tests for PBKDF2
FIPS140-2 IG D.8 mandates self-tests on approved KDF algorithms. As
the guidance only requires running a single instance of each KDF
mechanism, this only exercises PBKDF2 with HMAC-SHA-256 as the
underlying MAC algorithm.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 5 16:12:46 2020 +0200
fips: add self-tests for HKDF
FIPS140-2 IG D.8 mandates self-test on approved KDF algorithms. As
the guidance only requires running a single instance of each KDF
mechanism, this only exercises HKDF-Extract and HKDF-Expand operations
with HMAC-SHA-256 as the underlying MAC.
Although HKDF is non-approved, it would be sensible to do that as it
will be approved in FIPS140-3.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Oct 3 14:50:26 2020 +0200
tests: add missing ${EXEEXT}
Pointed by Andreas Metzler.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 2 17:23:27 2020 +0200
tests: prolong timeout in wait_for_port
gnutls-serv invocations in cert-tests/dsa can take long time to launch
if valgrind tests are enabled.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 28 19:05:52 2020 +0200
tests: remove unused lock facility using lockfile-create
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Sep 26 11:58:17 2020 +0200
tests: create lock for tests using GETPORT
This fixes a race condition in the timings between when a free port is
detected and when the port is actually used.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 24 11:48:24 2020 +0200
tests: simplify program detection
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 24 10:47:30 2020 +0200
tests: rewrite launch_server using launch_bare_server
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 27 16:11:32 2020 +0200
x509: correct argument of gnutls_verify_output_function
This is a leftover of 52e78f1e. We need to call
gnutls_verify_output_function with the replaced CA cert instead of the
original cert.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Sep 23 09:34:09 2020 +0200
tests: remove launch_pkcs11_server
This function is only used by testpkcs11.sh.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Sep 23 09:12:32 2020 +0200
tests: remove unused first argument from launch_server
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Sep 23 09:09:45 2020 +0200
tests: use ": ${FOO=BAR}" syntax for default handling in shell scripts
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: JonasZhou <JonasZhou@zhaoxin.com>
Date: Wed Sep 23 19:22:50 2020 +0800
x86:Modify variable name
Modify the variables _gnutls_sha_padlock and _gnutls_sha_padlock_nano.
Add a comment for detecting CPU. Modify the indentation. Delete
initialization etc.
Signed-off-by: JonasZhou <JonasZhou@zhaoxin.com>
Author: JonasZhou <JonasZhou@zhaoxin.com>
Date: Tue Sep 15 16:36:57 2020 +0800
x86:add detection of instruction set on Zhaoxin CPU
Add detection of extended instruction set on Zhaoxin cpu,e.g:ssse3,sha,
etc. Set the priority of the algorithm according to the benchmark
test result on Zhaoxin cpu.
Signed-off-by: JonasZhou <JonasZhou@zhaoxin.com>
Author: JonasZhou <JonasZhou@zhaoxin.com>
Date: Wed Sep 16 14:08:21 2020 +0800
x86: fix avx detection
In the case of setting environment variables, AVX cannot be detected
correctly. Because only MOVBE is added to variable _gnutls_x86_cpuid_s,
there is no OSXSAVE. And according to the intel manual, using AVX
does not need to detect FMA.
Signed-off-by: JonasZhou <JonasZhou@zhaoxin.com>
Author: JonasZhou <JonasZhou@zhaoxin.com>
Date: Wed Sep 23 14:19:39 2020 +0800
padlock:fix exception in wrap_padlock_hmac_fast
In function wrap_padlock_hmac_fast, use free to release local variables
ctx. Remove a call to wrap_padlock_hmac_deinit() to fix a crash.
Signed-off-by: JonasZhou <JonasZhou@zhaoxin.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 14 17:59:00 2020 +0200
testcompat-openssl: specify -sigalgs
The default selection of signature schemes is also affected by the
crypto-policies, and needs to be explicitly enabled with -sigalgs.
Suggested by Tomas Mraz.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 14 08:31:17 2020 +0200
inih: remove unused code
This avoids -fanalyzer false-positive in GCC 10:
https://bugzilla.redhat.com/show_bug.cgi?id=1878600
as well as the cppcheck warning:
"variableScope:lib/inih/ini.c:99,style,The scope of the variable 'start' can be reduced."
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 20 17:49:17 2020 +0200
priority: add Ed448 to SECURE192 signing algorithms
Reported Vladimír Čunát in:
https://gitlab.com/gnutls/gnutls/-/merge_requests/984#note_349374656
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Sep 19 10:57:04 2020 +0200
testsuite: Fix $SERV / $GNUTLS_SERV inconsistency
Some tests did not support overriding the PATH to gnutls-serv by setting
the environment variable SERV but used GNUTLS_SERV instead.
Closes #1090
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Fri Sep 18 13:55:06 2020 +0200
In testsuite scripts use "$@" instead of $*.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 13 17:19:32 2020 +0200
build: remove dead assignments
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 8 19:55:14 2020 +0200
spki: work around GCC 10 -Warray-bounds false-positive
Suggested by Martin Sebor in:
https://bugzilla.redhat.com/show_bug.cgi?id=1876801#c1
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 8 19:51:07 2020 +0200
tls13/session_ticket: remove _gnutls13_session_ticket_unset
The function was not really useful because _gnutls_free_datum()
has a NULL check as in free(). This also makes GCC 10 happy if
-Warray-bounds=2 is specified:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96984
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 7 09:52:52 2020 +0200
tests: allow clock_nanosleep in seccomp tests
The nanosleep wrapper in glibc has changed the implementation using
the clock_nanosleep syscall:
https://sourceware.org/git/?p=glibc.git;a=commit;h=3537ecb49cf7177274607004c562d6f9ecc99474
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Sep 7 09:52:09 2020 +0200
.gitlab-ci.yml: bump build environment to Fedora 32
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Wed Sep 16 07:18:51 2020 +0200
testsuite: Run GOST part of tests/gnutls-cli-debug.sh
Closes #1097
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Wed Sep 16 07:13:06 2020 +0200
testsuite: Fix GOST gnutls-cli-debug test
GOST algorithms are not enabled by default, explicitely request them in
priority string.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Sahana Prasad <sahana@redhat.com>
Date: Mon Sep 14 13:09:00 2020 +0200
Modifies P_hash() to hash the seed and label separately
Thereby not restricting the implementation of prf to MAX_SEED_SIZE
MAX_SEED_SIZE is not used anymore
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 17 12:03:20 2020 +0200
build: ignore pointless -Wformat-nonliteral warning
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 17 11:15:43 2020 +0200
configure.ac: don't enable warning only available in decent gcc
-Warith-conversion is new in GCC 10.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Sep 12 20:29:54 2020 +0200
.gitlab-ci.yml: bump cache version
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 13 20:27:05 2020 +0200
build: ignore pointless -Wformat-y2k warning
Printing UTCTime really needs last 2 digits of the year.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Sep 13 17:52:44 2020 +0200
gnulib: update git submodule
This brings in the build fixes of parse-datetime module:
https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00178.html
https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00001.html
https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00046.html
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Sun Sep 6 23:42:33 2020 +0300
Make private exponent optional in gnutls_privkey_import_rsa_raw().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Sun Sep 6 21:18:57 2020 +0300
Use symbols defined for RSA key parameter indices in some more places.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Aug 22 17:19:39 2020 +0200
handshake: reject no_renegotiation alert if handshake is incomplete
If the initial handshake is incomplete and the server sends a
no_renegotiation alert, the client should treat it as a fatal error
even if its level is warning. Otherwise the same handshake
state (e.g., DHE parameters) are reused in the next gnutls_handshake
call, if it is called in the loop idiom:
do {
ret = gnutls_handshake(session);
} while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Wed Sep 2 23:49:14 2020 +0300
Consolidate optional arguments tests for RSA key import, cleanup after each import.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Wed Sep 2 23:14:14 2020 +0300
Move RSA key parameter counter fixup closer to exponent update helper.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Sahana Prasad <sahana@redhat.com>
Date: Tue Sep 1 23:16:53 2020 +0200
src/cli: adds new option '--ca-auto-retrieve' that can be used with gnutls-cli to
automatically download missing intermediate CAs in a certificate chain
lib/cred-cert.c : adds set and get APIs to get user data in the
gnutls_x509_trust_list_set_getissuer_function() callback.
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Tue Sep 1 21:00:18 2020 +0300
Add some tests for optional arguments in gnutls_privkey_import_rsa_raw().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Tue Sep 1 19:29:20 2020 +0300
Fix optional parameters counter when importing RSA private keys.
Currently gnutls_privkey_import_rsa_raw() allows 3 last arguments to be omitted,
key fixup logic however checks for 3 missing arguments when updating coefficient 'u'
but then asserts when updating exponents 'e1' and 'e2' assuming only 2 parameters
are missing at that point.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Nikolay Sivov <nsivov@codeweavers.com>
Date: Tue Sep 1 19:15:02 2020 +0300
Use symbols defined for RSA key parameter indices in more places.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Aug 30 14:40:13 2020 +0200
tests: fix sizeof usage in mini-record-timing
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Aug 30 14:35:47 2020 +0200
padlock: fix partial PHE detection
The xsha1 instruction takes complete SHA-1 blocks (64 bytes) instead
of arbitrary length data when EAX is set to -1.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Albrecht Dreß <albrecht.dress@arcor.de>
Date: Sat Aug 29 14:33:05 2020 +0200
improve gnutls-serv EOL processing
add option `--crlf` to gnutls-serv to disable replacing a received CRLF
by LF in echo mode (fixes #1073).
Signed-off-by: Albrecht Dreß <albrecht.dress@arcor.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 13 18:17:08 2020 +0200
gnutls_aead_cipher_decrypt: check output buffer size before writing
While the documentation of gnutls_aead_cipher_decrypt indicates that
the inout argument ptext_len initially holds the size that
sufficiently fits the expected output size, there was no runtime check
on that. This makes the interface robuster against misuses.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Aug 16 11:43:35 2020 +0200
handshake: check TLS version against modified server priorities
The server needs to take into account of multiple factors when
determining the TLS protocol version actually being used:
- the legacy version
- "supported_versions" extension
- user_hello_func that may modify the server's priorities
Only after that it can check whether the TLS version is enabled in the
server's priorities.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Aug 16 18:23:24 2020 +0200
gnutls_x509_crt_export2: return 0 instead of the length
This aligns the behavior to the documentation.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sun Aug 16 14:05:44 2020 +0200
Fix parser output in tests/cert-tests/data/gost-cert-nogost.pem
When building without GOST support parsing a GOST certificate must
return an "error importing public key" message instead of key
details. This change makes tests/cert-tests/pem-decoding pass for
builds with --disable-gost.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Aug 14 07:27:40 2020 +0200
cert-session: check OCSP error responses
If the OCSP responder returns an error code, such as tryLater, we
can't proceed to examine the response bytes. In that case, just skip
the check unless the stapling is mandatory on this certificate.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed Jul 15 09:34:19 2020 +0200
mangle gnutls-built ecc_scalar_random
GNUTLS builds ecc-random.c but ecc_scalar_random() is a public API. So we
mangle the internal version we build.
ecc_mod_random is unaffected as it's an internal API that is mangled by GNUTLS.
Fixes #1016
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 13 15:56:20 2020 +0200
minitasn1: move WARN_CFLAGS setting to configure.ac
Some compilers don't support -Wno-type-limits, while they support
-Wtype-limits.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jun 4 16:42:07 2020 +0200
_gnutls_fips_mode_enabled: treat selftest failure as FIPS disabled
Previously gnutls_fips140_mode_enabled() returned true, even after
selftests have failed and the library state has switched to error.
While later calls to crypto operations fails, it would be more
convenient to have a function to detect that state.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 12 08:10:51 2020 +0200
doc: assorted typo fixes
Spotted by codespell.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 12 07:29:30 2020 +0200
serv, cli: ensure that invalid flag is always set
According to the documentation, the GNUTLS_CERT_INVALID flag must
always be set in case of verification failure, together with the flag
indicating the actual error cause.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 12 07:27:17 2020 +0200
cert-session: fail hard if mandatory stapling is not honored
According to the documentation, the GNUTLS_CERT_INVALID flag must
always be set in case of verification failure, together with the flag
indicating the actual error cause.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Fri Aug 7 13:55:23 2020 -0500
Fix invalid free in missing issuer test case error path
This variable is not initialized in this error path: it's only
initialized if gnutls_x509_crt_get_authority_info_access() succeeds.
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Author: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Fri Aug 7 13:00:22 2020 -0500
Fix typo in API docs
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Author: Petr Pavlu <petr.pavlu@suse.com>
Date: Wed Jul 8 10:12:30 2020 +0200
pubkey: avoid spurious audit messages from _gnutls_pubkey_compatible_with_sig()
When checking in _gnutls_pubkey_compatible_with_sig() whether a public
key is compatible with a signature algorithm, run first
pubkey_supports_sig() before performing weaker checks that can accept
the given algorithm but with an audit-log warning. This avoids an issue
when a weaker check would log an audit message for some signature
algorithm that would then be determined as incompatible by the
pubkey_supports_sig() check anyway.
For instance, a GnuTLS server might have a certificate with a SECP384R1
public key and a client can report that it supports
ECDSA-SECP256R1-SHA256 and ECDSA-SECP384R1-SHA384. In such a case, the
GnuTLS server will eventually find that it must use
ECDSA-SECP384R1-SHA384 with this public key. However, the code would
first run _gnutls_pubkey_compatible_with_sig() to check if SECP384R1 is
compatible with ECDSA-SECP256R1-SHA256. The function would report the
audit warning "The hash size used in signature (32) is less than the
expected (48)" but then reject the signature algorithm in
pubkey_supports_sig() as incompatible because it has a different curve.
Since the algorithm gets rejected it is not necessary to inform about
its hash size difference in the audit log.
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jul 18 08:26:48 2020 +0200
ecdh: perform SP800-56A rev3 full pubkey validation on keygen
This implements full public key validation required in
SP800-56A rev3, section 5.6.2.3.3.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 17 17:47:06 2020 +0200
dh: perform SP800-56A rev3 full pubkey validation on keygen
This implements full public key validation required in SP800-56A rev3,
section 5.6.2.3.1.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 17 17:45:17 2020 +0200
dh-primes: make the FIPS approved check return Q value
This is necessary for full public key validation in
SP800-56A (revision 3), section 5.6.2.3.1.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 10 09:42:30 2020 +0200
ecdh: check validity of P before export
SP800-56A rev3 section 5.7.1.2 step 2 mandates that the validity of
the calculated shared secret is verified before the data is returned
to the caller. This patch adds the validation check.
Suggested by Stephan Mueller.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 10 09:35:49 2020 +0200
dh: check validity of Z before export
SP800-56A rev3 section 5.7.1.1 step 2 mandates that the validity of the
calculated shared secret is verified before the data is returned to the
caller. This patch adds the validation check.
Suggested by Stephan Mueller.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Alexander Sosedkin <asosedkin@redhat.com>
Date: Fri Jul 3 14:54:17 2020 +0200
tests: split up system-override-sig-hash.sh
Split up system-override-sig-hash.sh
so that the errors won't get swallowed or conflated.
Also correct unused `srcdir` to `builddir`,
which I believe was meant to be set there.
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Mon Jun 22 09:09:05 2020 +0200
fix connectx not available on older macOS SDK
Fixes this compilation error:
system/fastopen.c:134:9: error: 'connectx' is only available on macOS 10.11 or newer [-Werror,-Wunguarded-availability]
ret = connectx(fd, &endpoints, SAE_ASSOCID_ANY, CONNECT_RESUME_ON_READ_WRITE | CONNECT_DATA_IDEMPOTENT, NULL, 0, NULL, NULL);
^~~~~~~~
/Applications/Xcode9.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/socket.h:713:5: note: 'connectx' has been marked as being introduced in macOS 10.11 here, but the deployment target is macOS 10.7.0
The detection is the same as found in curl [1].
If HAVE_BUILTIN_AVAILABLE is not available we fallback to the code without
TCP_FASTOPEN_OSX.
The OS values match exactly the values found in
https://opensource.apple.com/source/xnu/xnu-4570.41.2/bsd/sys/socket.h
[1] https://github.com/curl/curl/commit/870d849d48a26b8eeb0d4bb1f4655367a4a191ca
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: James Bottomley <James.Bottomley@HansenPartnership.com>
Date: Sun Jun 28 21:33:09 2020 +0200
build: use $(LIBPTHREAD) rather than non-existent $(LTLIBPTHREAD)
On a very recent openSUSE build, libgnutls is getting built without
libpthread. This caused a thread related error when trying to load a
pkcs11 module that uses threading. The reason is rather convoluted:
glibc actually controls all the pthread_ function calls, but it
returns success without doing anything unless -lpthread is in the link
list. What's happening is that gnutls_system_mutex_init() is being
called on _gnutls_pkcs11_mutex before library pthreading is
initialized, so the pthread_mutex_init ends up being a nop. Then, when
the pkcs11 module is loaded, pthreads get initialized and the call to
pthread_mutex_lock is real, but errors out on the uninitialized mutex.
The problem seems to be that nothing in the gnulib macros gnutls
relies on for threading support detection actually sets LTLIBPTHREAD,
they only set LIBPTHREAD. The fix is to use LIBPTHREAD in
lib/Makefile.in
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jun 21 16:03:54 2020 +0200
safe_memcmp: remove in favor of gnutls_memcmp
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 26 10:21:26 2020 +0200
dhe: check if DH params in SKE match the FIPS approved algorithms
SP800-56A rev. 3 restricts the FIPS compliant clients to use only
approved DH parameters, defined in RFC 7919 and RFC 3526. This adds a
check in the handling of ServerKeyExchange if DHE is negotiated.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 26 09:43:02 2020 +0200
dh-primes: add MODP primes from RFC 3526
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Tue Jun 16 21:23:14 2020 +0200
Update tlsfuzzer to get Python interpreter detection
Tlsfuzzer also assumed the Python interpreter would be called
"python", this update is necessary to get a fixed version (see
https://github.com/tomato42/tlsfuzzer/pull/671).
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Tue Jun 16 20:48:44 2020 +0200
Detect Python interpreter instead of assuming "python"
This makes the extended test suite work one Debian(-ish) systems
without Python 2, where the Python 3 interpreter is called "python3".
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 12 16:50:14 2020 +0200
.gitlab-ci.yml: bump configure cache version
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 12 11:34:38 2020 +0200
.gitignore: ignore more files
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 12 11:32:58 2020 +0200
build: avoid -Wenum-conversion warnings with GCC 10
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jun 14 23:31:27 2020 +0300
.gitlab-ci: disable config.cache for nettle-master builds
Disable usage of config.cache for nettle-master builds. Such
config.cache files can easily become stale, thus resulting in build
failures.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sun Jun 14 12:52:46 2020 +0200
Wipe session ticket keys before releasing the session structure
This includes both a copy of the master key and one or two derived
keys, all of which could be used to decrypt session tickets if
stolen. The derived keys could only be used for tickets issued within
a certain time frame (by default several hours).
The documentation for gnutls_session_ticket_enable_server() already
states that the master key should be wiped before releasing it, and
the same should apply to internal copies.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 9 10:44:57 2020 +0200
tests/cert-test/invalid-sig: use datefudge to test expired certs
Suggested by Andreas Metzler in:
https://gitlab.com/gnutls/gnutls/-/issues/1021
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 9 10:41:18 2020 +0200
tests: check_for_datefudge: don't exit the test programs
This makes check_for_datefudge not to immediately exit the program,
but to return non-zero to allow the tests by themselves to control the
behavior when "datefudge" is not found.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Vitezslav Cizek <vcizek@suse.com>
Date: Tue Jun 9 13:54:04 2020 +0200
configure: improve nettle, gmp, and hogweed soname detection
Some linkers might optimize away the libraries passed on the
command line if they aren't actually needed, such as gnu ld with
--as-needed.
The ldd output then won't list the shared libraries and the
detection will fail.
Make sure nettle and others are really used.
Signed-off-by: Vitezslav Cizek <vcizek@suse.com>
Author: Lei Maohui <leimaohui@cn.fujitsu.com>
Date: Mon Jun 8 16:15:07 2020 +0900
Modied the license to GPLv2.1+ to keep with LICENSE file.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 8 06:45:24 2020 +0200
configure.ac: prefer the latest version of build infrastructure
AM_GNU_GETTEXT_REQUIRE_VERSION tells autopoint to copy the latest
possible build infrastructure installed on the system, rather than the
fixed version from the archive.dir.tar.xz. This makes the
bootstrapping slightly faster and allows us not to stick with the
ancient gettext version.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Sun Jun 7 17:41:21 2020 +0000
CI: fix typo in the Vista target
This resulted in the MinGW64.Vista+ target doing the same thing as the MinGW64
target.
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jun 7 15:46:51 2020 +0200
RELEASES.md: move the release steps to devel/ [ci skip]
As the information is only useful to developers, having it under
devel/ rather than in the tarball is more releavant.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jun 7 15:45:13 2020 +0200
RELEASES.md: mention 3.7.x releases
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jun 7 15:41:59 2020 +0200
RELEASES.md: fix typo in scp command line
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jun 7 15:39:39 2020 +0200
NEWS: add missing API modifications to 3.6.14 entry
Reported by Andreas Metzler in:
https://lists.gnupg.org/pipermail/gnutls-help/2020-June/004650.html
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jan 9 01:42:22 2020 +0300
crypto-selftest: add test vectors for MAGMA/KUZNYECHIK-CTR-ACPKM
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jan 9 01:11:50 2020 +0300
crypto-api: add _gnutls_cipher_set_key wrapper()
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 17 16:38:40 2019 +0300
cipher/mac: enhance handlers with setkey callback
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jan 9 00:58:50 2020 +0300
selftests: add test vectors for MAGMA/KUZNYECHIK-OMAC
Add test vectors for newly added MAC algorithms.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:11:51 2018 +0300
lib: add Magma/Kuznyechik OMAC support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:11:14 2018 +0300
lib: add Magma/Kuznyechik ciphers support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:10:30 2018 +0300
nettle/gost: add ACPKM rekeying code
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:10:03 2018 +0300
nettle/gost: add CMAC-64/Magma/Kuznyechik code
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:09:36 2018 +0300
nettle/gost: add Kuznyechik code
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:09:11 2018 +0300
nettle/gost: add Magma code
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 21 22:08:44 2018 +0300
nettle/gost: export gost28147_decrypt_simple for magma cipher
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Sat Jun 6 14:05:16 2020 +0200
Merge the extra libraries to link dynamically in GNUTLS_LIBS_PRIVATE
This should fix #1020 where bcrypt is missing from thirdparty_libadd.
Ultimately it would be good to add libraries that always need to be linked in
one variable that is shared between the Makefile and the pkg-config file.
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 5 16:26:33 2020 +0200
crypto-api: always allocate memory when serializing iovec_t
The AEAD iov interface falls back to serializing the input buffers if
the low-level cipher doesn't support scatter/gather encryption.
However, there was a bug in the functions used for the serialization,
which causes memory leaks under a certain condition (i.e. the number
of input buffers is 1).
This patch makes the logic of the functions simpler, by removing a
micro-optimization that tries to minimize the number of calls to
malloc/free.
The original problem was reported by Marius Steffen in:
https://bugzilla.samba.org/show_bug.cgi?id=14399
and the cause was investigated by Alexander Haase in:
https://gitlab.com/gnutls/gnutls/-/merge_requests/1277
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: František Krenželok <krenzelok.frantisek@gmail.com>
Date: Thu Jun 4 16:59:33 2020 +0200
tests: updated tlsfuzzer tests to latest version
excluded some tests from test-certificate-malformed.py
Signed-off-by: KrenzelokFrantisek <krenzelok.frantisek@gmail.com>
Author: Sahana Prasad <sahana@redhat.com>
Date: Wed May 27 12:42:24 2020 +0200
devel/libgnutls-latest-x86_64.abi, doc, NEWS, and manpage updates
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Sahana Prasad <sahana@redhat.com>
Date: Fri May 22 15:11:32 2020 +0200
tests: Adds new tests missingissuer and missingissuer_aia
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Sahana Prasad <sahana@redhat.com>
Date: Fri May 22 09:42:47 2020 +0200
Implements a callback function gnutls_x509_trust_list_set_getissuer_function()
Signed-off-by: Sahana Prasad <sahana@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 1 14:18:03 2020 +0200
Release 3.6.14 [ci skip]
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 2 21:45:17 2020 +0200
valgrind: check if session ticket key is used without initialization
This adds a valgrind client request for
session->key.session_ticket_key to make sure that it is not used
without initialization.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 2 20:53:11 2020 +0200
stek: differentiate initial state from valid time window of TOTP
There was a confusion in the TOTP implementation in stek.c. When the
mechanism is initialized at the first time, it records the timestamp
but doesn't initialize the key. This removes the timestamp recording
at the initialization phase, so the key is properly set later.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 2 05:38:28 2020 +0200
gnutls_cipher_init: fix potential memleak
Upon failure this function returns without freeing memory allocated
internally. This makes sure that it is released and do not touch the
output handle argument.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 2 05:34:29 2020 +0200
gnutls_aead_cipher_init: fix potential memleak
When _gnutls_aead_cipher_init() fails, the function returns without
freeing the allocted handle. This was once fixed in commit
502be130493e8ce802cdf60fffdbb5f1885352a5 but regressed after a code
reorganization in commit 2eef509ce5f2d250f8dcaeffa46444dd2b694e91.
Reported by Miroslav Lichvar.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 1 17:23:59 2020 +0200
serv: omit upper bound of --maxearlydata option definition
It turned out that AutoGen treats numbers that exceed INT_MAX in a
platform dependent way. In this case, 4294967295 (UINT_MAX) is
treated as is on 64-bit platforms, while it is interpreted as "-1" on
32-bit platforms. This causes a problem when the program
documentation is compiled under multilib environment.
Reported by Ivan Molodetskikh in:
https://bugzilla.redhat.com/show_bug.cgi?id=1841844
and the cause was identified by Anderson Toshiyuki Sasaki.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun May 31 14:28:48 2020 +0200
tests: add test case for certificate chain superseding
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun May 31 13:59:53 2020 +0200
x509: trigger fallback verification path when cert is expired
gnutls_x509_trust_list_verify_crt2 use the macro SIGNER_OLD_OR_UNKNOWN
to trigger the fallback verification path if the signer of the last
certificate is not in the trust store. Previously, it doesn't take
into account of the condition where the certificate is expired.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun May 31 12:39:14 2020 +0200
_gnutls_pkcs11_verify_crt_status: check validity against system cert
To verify a certificate chain, this function replaces known
certificates with the ones in the system trust store if possible.
However, if it is found, the function checks the validity of the
original certificate rather than the certificate found in the trust
store. That reveals a problem in a scenario that (1) a certificate is
signed by multiple issuers and (2) one of the issuers' certificate has
expired and included in the input chain.
This patch makes it a little robuster by actually retrieving the
certificate from the trust store and perform check against it.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 16 17:16:08 2020 +0100
devel: provide external git diff driver for *.abi files [ci skip]
This adds an external diff driver for *.abi files, that shows only
interesting changes in those files. This would be useful when adding
a new API.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat May 30 11:06:57 2020 +0200
build: write "FILE *fp" instead of "FILE *fd"
This makes it clear that "fd" is not a file descriptor but a FILE
pointer. Suggested by Tim Rühsen.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 25 15:33:49 2020 +0200
gnutls_load_file: document limitation regarding partial failure
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 25 11:21:38 2020 +0200
cert-cred: clear private key data loaded from file
This makes use of the RF_SENSITIVE flag newly added to read_file
function when reading potentially senstive information from a file.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 25 10:09:28 2020 +0200
lib: avoid file descriptor leak when application forks
This makes use of the "e" flag of fopen, provided by the Gnulib's
fopen-gnu module.
Reported by Remi Denis-Courmont in:
https://gitlab.com/gnutls/gnutls/-/issues/985
and fix suggested by Tim Rühsen.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 25 18:37:51 2020 +0200
gnulib: update git submodule
This brings in the new fopen-gnu module and the RF_SENSITIVE flag for
fread_file and read_file. This also adds the following changes to be
consistent with the latest changes in Gnulib:
- the callers of fread_file and read_file to be adjusted for the FLAGS
argument
- "attribute.h" needs to be used extensively
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 28 00:05:35 2020 +0300
p12: do not encrypt encrypt certificate bag with empty password
Do not encrypt certificate bag if the user has specified empty password
(--password ''). Encryption can be turned on by specifying
--empty-password.
Fixes #888
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed Apr 29 10:32:08 2020 +0200
win32: use bcrypt instead of CryptoAPI on Vista+ for random numbers
CryptoAPI is a deprecated API [1] that is forbidden in UWP builds.
Rewrite the CryptoAPI calls in bcrypt.
bcrypt is used instead of CryptoAPI when targeting Windows Vista and above.
https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptdecrypt
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed May 27 23:42:01 2020 +0300
certtool: do not ask for private key password if it was provided
Make pin_callback() use cinfo->password if it is set (via command line
or from template).
Fixes #933
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 28 03:15:55 2020 +0300
.travis.yml: use several different OSX versions
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed May 27 21:14:50 2020 +0000
win32: move the NCRYPT key import into a function
No functional change. The has been simply moved.
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed May 27 21:13:43 2020 +0000
configure.ac: determine if the Vista APIs can be linked statically
If _WIN32_WINNT is higher or equal to 0x0600, Vista API's are allowed during
the build. We can assume that the minimum platform the code will run on is
Vista [1]
In that case there's no need to call API's (ncrypt) dynamically when it can be
done statically.
[1] https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed May 27 00:34:02 2020 +0300
lib: add support for AES-192-GCM
Add support for AES-192 in GCM mode.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue May 26 16:19:59 2020 +0300
configure: check that -no_weak_links works with FD_SET
Several Xcode/SDK versions provide FD_SET implementation that does not
work with -no_weak_links. Check that this option does not break FD_SET
usage.
Fixes #966
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue May 26 13:12:24 2020 +0300
tests: build datefudge-check during make all
Most of the tests depend on datefudge-check. Let's make it during 'make
all' stage to allow running individual tests w/o requiring to build it
separately.
Fixes #920
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue May 26 13:06:03 2020 +0300
configure.ac: add -fno-builtin-strcmp if valgrind is enabled
Recent GCC provides strcmp which makes Valgrind assume that it accesses
uninitialized data. Disable this optimization if Valgrind tests are
enabled.
Fixes #944
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: rrivers2 <5981058-rrivers2@users.noreply.gitlab.com>
Date: Sun May 24 23:11:01 2020 +0000
Update session_ticket.c to add support for zero length session tickets returned from the server
check that ticket_len > 0 prior to calling gnutls_realloc_fast
Signed-off-by: Rod Rivers <5981058-rrivers2@users.noreply.gitlab.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 14 05:54:58 2020 +0300
build: vendor in libtasn1 code
Instead of keeping the minitasn1 source in Git, vendor in it during
bootstrap as we do with Nettle code. This also upgrades included
minitasn1 to latest version (4.16.0).
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Tue May 19 16:23:40 2020 +0200
win32: link with crypt32
Since 5d03564cccd2c10c41252ea468d4a098bd08e9c1 we use CertOpenStore().
To properly link it needs to be linked with the crypt32.dll.
https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certopenstore
This library was missing from the pkg-config library. It exists in
thirdparty_libadd to link gnutls as a DLL.
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 19 16:18:39 2020 +0200
fips: remove FIPS_STARTUP_ONLY_TEST_CASE macro
The macro was intended to avoid non-recoverable errors during library
initialization, but the code path has been removed in commit
3963518d067a64412bbe0aa9ce5fc33ae729c15f.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon May 18 12:25:42 2020 +0200
fips: make FIPS140-2 mode enablement logic simpler
Previously, to enable the FIPS140-2 mode, both /etc/system-fips and
the fips=1 kernel command line need to be set. While this was
designed to be consistent, the convention is not well followed by the
other crypto libraries and the former tends to be ignored. This
aligns the behavior to the latter, i.e. if fips=1 is set, the library
enables the FIPS140-2 mode regardless of the existence of
/etc/system-fips.
Suggested by Alexander Sosedkin.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon May 18 00:13:34 2020 +0300
x509: support commonName extension
Add support for Common Name certificate extension.
Fixes #989
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daniel Lenski <dlenski@gmail.com>
Date: Sun May 17 14:50:47 2020 -0700
refine tests for ancient servers which support both SSL 3.0 and TLS 1.0, but both only with %NO_EXTENSIONS
This is a follow-up to !1221.
See #958 and https://gitlab.com/openconnect/openconnect/-/issues/145 for a
real-world example of ancient Cisco servers with these deficiencies.
With !1221 only, gnutls-cli-debug reports that these ancient servers only support
SSL 3.0 (but without extensions). Information after this point is
largely erroneous:
$ gnutls-cli-debug ***vpn.***.com
GnuTLS debug client 3.6.12
Checking ***vpn.***.com:443
whether the server accepts default record size (512 bytes)... no
whether %ALLOW_SMALL_RECORDS is required... no
for SSL 3.0 (RFC6101) support... yes
for SSL 3.0 with extensions... no
With this additional change, gnutls-cli-debug correctly reports that such a
server also supports TLS 1.0 (but again with extensions disabled). Below
I've marked some of the significant fields that have changed:
$ gnutls-cli-debug ***vpn.***.com
GnuTLS debug client 3.6.12
Checking ***vpn.***.com:443
whether the server accepts default record size (512 bytes)... no
whether %ALLOW_SMALL_RECORDS is required... no
for SSL 3.0 (RFC6101) support... yes
for SSL 3.0 with extensions... no
whether we need to disable TLS 1.2... yes
whether we need to disable TLS 1.1... yes
# This is now correct:
whether we need to disable TLS 1.0... no
# This is now correct:
whether %NO_EXTENSIONS is required... yes
# This is now correct:
for TLS 1.0 (RFC2246) support... yes
for TLS 1.1 (RFC4346) support... no
fallback from TLS 1.1 to... failed
for TLS 1.2 (RFC5246) support... no
# This is now correct:
for known TLS or SSL protocols support... yes
TLS1.2 neg fallback from TLS 1.6 to... failed (server requires fallback dance)
for inappropriate fallback (RFC7507) support... no
for HTTPS server name... ******
for certificate chain order... sorted
for Safe renegotiation support (SCSV)... no
for version rollback bug in RSA PMS... no
for version rollback bug in Client Hello... no
whether the server ignores the RSA PMS version... no
whether small records (512 bytes) are tolerated on handshake... yes
whether cipher suites not in SSL 3.0 spec are accepted... yes
whether a bogus TLS record version in the client hello is accepted... yes
whether the server understands TLS closure alerts... partially
whether the server supports session resumption... yes
for anonymous authentication support... no
for ephemeral Diffie-Hellman support... no
for RFC7919 Diffie-Hellman support... no
for AES-GCM cipher (RFC5288) support... no
for AES-CCM cipher (RFC6655) support... no
for AES-CCM-8 cipher (RFC6655) support... no
for AES-CBC cipher (RFC3268) support... no
for CAMELLIA-GCM cipher (RFC6367) support... no
for CAMELLIA-CBC cipher (RFC5932) support... no
# This is now correct:
for 3DES-CBC cipher (RFC2246) support... yes
# This is now correct:
for ARCFOUR 128 cipher (RFC2246) support... yes
for CHACHA20-POLY1305 cipher (RFC7905) support... no
for GOST28147-CNT cipher (draft-smyshlyaev-tls12-gost-suites) support... no
for MD5 MAC support... yes
for SHA1 MAC support... yes
for SHA256 MAC support... no
for GOST28147-IMIT MAC (draft-smyshlyaev-tls12-gost-suites) support... no
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun May 17 22:01:22 2020 +0300
x509: aki: always print authorityCert info
Always print authorityCertIssuer/SerialNumber. Currently it is output
only if keyIdentifier is not present.
Fixes #991
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon May 11 23:50:40 2020 +0300
output: add Russian security class policies
Add Russian Security Class certificate policies (per
draft-deremin-rfc4491-bis).
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon May 11 23:11:56 2020 +0300
x509: print certificate policiy names
Add ability to print names for several pre-defined Certificate policies.
Currently the list is populated with anyPolicy from X.509 and CA/B
policies.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 14 02:22:05 2020 +0300
certtool: use gnutls_pkcs7_print_signature_info
Use new function to remove code duplication.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 14 02:20:57 2020 +0300
pkcs7: add function to display signature information
Basically export print_pkcs7_info() in a way usable by external
applications.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 14 02:22:20 2020 +0300
pkcs7: decode attribute OIDs when printing
Try printing symbolic names for well-known OIDs when printing PKCS7
signature info.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 14 05:28:20 2020 +0300
devel: add libtasn1 submodule
GnuTLS maintains a part of libtasn1 sources in form of minitasn1 import.
Add libtasn1 submodule to ease synchronization with libtasn1.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 14 02:15:23 2020 +0300
x509: generify oid to str conversions
Make oid to name conversion functions generic enough by allowing caller
to specify a pointer to OID table.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Mon May 4 18:23:45 2020 +0200
accelerated: use AES-NI for AES-XTS when available
This introduces a wrapper for the CRYPTOGAMS AES-XTS implementation
already present in the generated assembly code.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Fri Mar 20 16:37:33 2020 +0100
gnutls-cli: Add option to wait for resumption data
This introduces the --waitresumption command line option which makes the
client to wait for the resumption data until a ticket is received under
TLS1.3. The client will block if no ticket is received. The new option
has no effect if the option --resume is not provided.
This is useful to force the client to wait for the resumption data when
the server takes long to send the ticket, allowing the session
resumption to be tested. This is a common scenario in CI systems where
the testing machines have limited resources.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Tue May 5 19:27:59 2020 +0200
benchmark: enable AES-XTS cipher
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Aug 16 17:01:05 2019 +0200
nettle: disable RSA blinding in FIPS selftests
Nettle's RSA signing, encryption and decryption functions still
require randomness for blinding, so fallback to use a fixed buffer in
selftests where entropy might not be available.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 26 19:27:11 2020 +0200
nettle: expose SIV-CMAC through the AEAD interface
This adds a couple of new cipher algorithms GNUTLS_CIPHER_AES_128_SIV
and GNUTLS_CIPHER_AES_256_SIV, exposing nettle_siv_cmac_aes{128,256}*
functions. Note that they can only used with the AEAD interface and
authentication tags are prepended (not appended) to the ciphertext.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 26 19:27:05 2020 +0200
nettle: vendor in SIV-CMAC implementation
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 26 19:26:57 2020 +0200
nettle: avoid manual backports of CFB8, CMAC, and XTS
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 26 19:26:48 2020 +0200
nettle: rename import-chacha-from-nettle.sh to import-from-nettle.sh
This script will handle other backports except ECC as well.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 26 19:26:36 2020 +0200
configure.ac: fix broken nettle_cfb8_decrypt detection
Given the fixed version of the function will be part of Nettle 3.6,
use pkg-config --atleast-version instead of a manually comparison of
the Nettle version.
Fixes #974.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Apr 29 12:41:52 2020 +0200
New make target 'update-copyright-year'
We don't want to automatically update the copyright year as this
prevents reproducible builds.
Instead, 'make update-copyright-year' has to be executed at the
start of each new year and the changes have to be pushed.
Closes #980
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Apr 29 20:43:23 2020 +0300
tests/prime-check: don't include gmp.h
Do not include gmp.h header, <nettle/bignum.h> conflicts with it in
mini-gmp configuration and includes this header on it's own in
non-mini-gmp config.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Apr 28 17:45:40 2020 +0300
tests/srp: increase timeouts
SRP test times out if running on the GitLab CI with mini-gmp version of
Nettle. Increase timeouts to let the test pass.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Apr 28 15:48:29 2020 +0300
CI: add nettle-mini-gmp test
Wget/Wget2 OSS-Fuzz builders use mini-gmp version of nettle. Check that
we do not break them occasionally.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 30 07:05:19 2020 +0200
doc: expand GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE description on RSA-PSS [ci skip]
For RSA-PSS, this flag alone doens't fully enable reproducible
signatures and the user needs to indicate the fact that a zero-length
salt is used through SPKI upon verification.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Apr 28 03:06:26 2020 +0300
gost: use gostdsa-vko from nettle 3.6rc3
Now as we have upgraded Nettle to 3.6rc3 (which includes gostdsa_vko),
use this function from imported nettle sources.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Apr 28 13:59:15 2020 +0300
nettle: update imported source to nettle 3.6rc3
Update imported nettle version to 3.6rc3. This will bring in updated
gmp-glue code and a possiblity to use gostdsa-vko imported from nettle
sources.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 6 14:37:53 2020 +0200
fips: check library soname during configure
Previously, we hard-coded the sonames of linked libraries for FIPS
integrity checking. That required downstream packagers to manually
adjust the relevant code in lib/fips.c, when a new interface version
of the dependent libraries (nettle, gmp) becomes available and linked
to libgnutls.
This patch automates that process with the configure script.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Mar 27 09:53:38 2020 +0100
gnutls_session_ext_register: keep track of extension name
Previously it discarded the name argument, and that was making the
debug output awkward, e.g., running tests/tls-session-ext-register -v:
client|<4>| EXT[0x9cdc20]: Preparing extension ((null)/242) for 'client hello'
client|<4>| EXT[0x9cdc20]: Preparing extension ((null)/241) for 'client hello'
client|<4>| EXT[0x9cdc20]: Sending extension (null)/241 (2 bytes)
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Feb 16 00:28:43 2020 +0300
gost: update gostdsa_vko to follow Nettle
Update gostdsa_vko() following changes going to be accepted into Nettle.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Apr 21 16:29:41 2020 +0200
gnutls_ext_get_name2: new function
This adds a generalized version of gnutls_ext_get_name, which can
retrieve the name of the extension, even if it is registered per
session.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Apr 16 18:49:22 2020 +0300
build: attempt to fix build issues on FreeBSD
BSD sed does not like \n and \0 in string substitution. Workaround this
by using sed magic.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Apr 15 18:49:26 2020 +0300
gitlab CI: when calling cppcheck ignore lib/nettle/ecc rather than lib/nettle/curve448
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Apr 14 14:17:07 2020 +0300
gitlab-ci: add test for usage of nettle/hogweed internal symbols
Check that GnuTLS does not depend on Nettle/Hogweed internal symbols.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Apr 14 13:47:43 2020 +0300
nettle: vendor in poly1305 code
Nettle's poly1305 code ended up with internal symbol _poly1305_block in
public header. This causes issues on Nettle version changes. Since those
symbols are going to become nettle-internal, vendor in relevant source
file.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 17:54:28 2020 +0300
gost: import _nettle_write_le32 to stop using Nettle's internal symbol
Remove another dependency on nettle internal symbol by vendoring in
_nettle_write_le32 code
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 17:06:06 2020 +0300
nettle: use new imported source files for GOST DSA
Provide GOST support using source files copied by script rather than
manually crafted by me.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 16:11:02 2020 +0300
build: import-curve448 -> import-ecc
As the script now imports not just Curve448, but also gost code, rename
the script, target directory and symbols to follow that.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Apr 11 15:28:29 2020 +0200
xts: check key blocks according to FIPS-140-2 IG A.9
The implementation guidance suggests that a check of key1 != key2
should be done at any place before the keys are used:
https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Module-Validation-Program/documents/fips140-2/FIPS1402IG.pdf
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 16:08:29 2020 +0300
devel: modify curve448 script to import gost sources
Curve448 script already imports several ecc sources into GnuTLS tree.
Modify it to also vendor in GOST-related ecc files.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 12:43:42 2020 +0300
import-chacha: fix several additional symbol clashes
Fix sed script used to rename symbols to remove few additional symbols
sitting in _nettle_FOO namespace.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 12:59:12 2020 +0300
curve448: import write-le64.c which defines internal symbol
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Apr 13 12:43:42 2020 +0300
import-curve448: fix several additional symbol clashes
Fix sed script used to rename symbols to remove few additional symbols
sitting in _nettle_FOO namespace.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 30 11:27:40 2020 +0200
handshake-tls13: add session flag to disable sending session tickets
While GnuTLS by default implicitly sends NewSessionTicket during
handshake, application protocols like QUIC set a clear boundary
between "in handshake" and "post handshake", and NST must be sent in
the post handshake state.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Sun Apr 5 15:09:57 2020 +0200
tests: Fix status-request-revoked after 2020-10-24
included certs expire 2020-10-24 so this test fails after that date.
Fixes #967
This patch was done while working on reproducible builds for openSUSE.
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Mar 31 06:58:48 2020 +0200
build: use valgrind client request to detect undefined memory use
This tightens the check introduced in
ac2f71b892d13a7ab4cc39086eef179042c7e23c, by using the valgrind client
request to explicitly mark the "uninitialized but initialization is
needed before use" regions. With this patch and the
fix (c01011c2d8533dbbbe754e49e256c109cb848d0d) reverted, you will see
the following error when running dtls_hello_random_value under
valgrind:
$ valgrind ./dtls_hello_random_value
testing: default
==520145== Conditional jump or move depends on uninitialised value(s)
==520145== at 0x4025F5: hello_callback (dtls_hello_random_value.c:90)
==520145== by 0x488BF97: _gnutls_call_hook_func (handshake.c:1215)
==520145== by 0x488C1AA: _gnutls_send_handshake2 (handshake.c:1332)
==520145== by 0x488FC7E: send_client_hello (handshake.c:2290)
==520145== by 0x48902A1: handshake_client (handshake.c:2908)
==520145== by 0x48902A1: gnutls_handshake (handshake.c:2740)
==520145== by 0x402CB3: client (dtls_hello_random_value.c:153)
==520145== by 0x402CB3: start (dtls_hello_random_value.c:317)
==520145== by 0x402EFE: doit (dtls_hello_random_value.c:331)
==520145== by 0x4023D4: main (utils.c:254)
==520145==
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Pierre Ossman <ossman@cendio.se>
Date: Tue Mar 24 15:32:13 2020 +0100
Compare DNs by comparing their string representations
A binary comparison will not work in case the contents is the same but
the ASN.1 type differ (e.g. PrintableString vs UTF8String). Such
variations are permitted so we need to handle them.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
Author: Pierre Ossman <ossman@cendio.se>
Date: Tue Mar 24 15:29:34 2020 +0100
Properly compare DNs when checking sorting
We might want to do other things than a simple memcmp() so make sure
we're using the right helper when comparing DNs.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 16:58:07 2020 +0200
IDNA: require libidn2 2.0.0
We require private symbols which dissapear at some point in
IDN2 releases in order to support old versions of libidn2. Simplify
the code by requiring only recent versions and avoid issues such
as #832.
Resolves: #832
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 07:40:21 2020 +0200
NEWS: updated for release
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 20:52:36 2020 +0200
NEWS: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 20:52:27 2020 +0200
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 29 21:30:37 2020 +0200
NEWS: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 29 21:30:37 2020 +0200
tests: added check for random value of client and server hello in TLS
This creates a tests that checks whether the TLS client and server
hello have sufficient non-zero bytes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 29 19:05:30 2020 +0200
tests: added reproducer for client hello random value behavior in DTLS
This adds an equivalent test of tls13/hello_random_value.c for DTLS
and extends the tests for server hello as well.
Relates: #960
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 08:23:03 2020 +0200
psk: added checks to satisfy static analyzers
Added null checks in legacy callbacks to avoid warnings from
static analyzers. The issues do not appear to be reproducible
in real-world use.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Mar 28 02:31:10 2020 +0300
padlock: fix exception in wrap_padlock_hash_fast
wrap_padlock_hash_fast() allocates a context on a stack (via local
variable) then tries to free it by calling wrap_padlock_hash_deinit()
causing a crash. Remove a call to deinit() to fix a crash.
Fixes #930
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Mar 28 02:29:31 2020 +0300
padlock: fix exception in sha code
padlock sha code will segfault (at least on Nano) if it is passed a NULL
data pointer (even if size is 0). Pass digest output buffer as a dummy
data pointer in such case.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Mar 28 02:27:31 2020 +0300
padlock: make cbc code return error properly
If underlying padlock_cbc_en/decrypt return an error, pass this error to
calling code.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Stefan Bühler <stbuehler@web.de>
Date: Fri Mar 27 17:17:57 2020 +0100
dtls client hello: fix zeroed random (fixes #960)
This broke with bcf4de03 "handshake: treat reply to HRR as a reply to
hello verify request", which failed to "De Morgan" properly.
Signed-off-by: Stefan Bühler <stbuehler@web.de>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Tue Mar 24 09:55:08 2020 +0100
gnutls-serv: Do not exit when a message to be echoed is received
Previously, when gnutls-serv was executed with the --echo option, it
would exit when a message to be echoed was received. Moreover, the
server would output "Memory error" although no error occurred.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 11:23:47 2020 +0100
_gnutls_check_id_for_change: ensure that we check the username length
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 10:01:53 2020 +0000
Ensure that an incorrectly formatted password file doesn't cause invalid memory access
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Ander Juaristi <a@juaristi.eus>
Date: Sun Mar 15 23:31:49 2020 +0100
Update NEWS file
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Ander Juaristi <a@juaristi.eus>
Date: Tue Mar 3 11:49:32 2020 +0000
Update files
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Ander Juaristi <a@juaristi.eus>
Date: Mon Mar 2 16:37:10 2020 +0100
psk: Allow non-NULL PSK usernames
This commit closes #586.
Two new functions are introduced: gnutls_psk_server_get_username2()
and gnutls_psk_set_client_username2(), which are identical in behavior
to those named similarly (without the final '2'), but allow arbitrary
gnutls datums (not strings) to be used as usernames.
Two new callback functions are also introduced, with their respective
setters: gnutls_psk_set_server_credentials_function2() and
gnutls_psk_set_client_credentials_function2().
In addition, the password file format is extended so that non-string
usernames can be specified. A leading '#' character tells GnuTLS that the
username should be interpreted as a raw byte string (encoded in HEX).
Example:
#deadbeef:9e32cf7786321a828ef7668f09fb35db
Signed-off-by: Ander Juaristi's avatarAnder Juaristi <a@juaristi.eus>
Author: Daniel Lenski <dlenski@gmail.com>
Date: Sun Mar 22 19:12:44 2020 -0700
add NEWS entry
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Author: Daniel Lenski <dlenski@gmail.com>
Date: Sun Mar 22 19:01:55 2020 -0700
add additional tests of SSL 3.0 (with extensions, and with cipher suites not in SSL 3.0)
See #958
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Author: Daniel Lenski <dlenski@gmail.com>
Date: Sun Mar 22 19:00:32 2020 -0700
test_ssl3: minimize cipher suites to those actually included in SSL 3.0
See #958
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Author: Daniel Lenski <dlenski@gmail.com>
Date: Sun Mar 22 18:58:26 2020 -0700
SSL 3.0 (RFC6101) doesn't actually appear to require extensions, and some servers don't accept them
See #958
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Mar 22 10:44:51 2020 +0100
gnutls_session_get_keylog_function: new function
This adds a way to retrieve the keylog function set by
gnutls_session_set_keylog_function() to allow application protocols to
implement custom logging facility.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Mar 22 16:07:12 2020 +0300
oss-fuzz: return build error if fuzzers have failed to build
Instead of silently ignoring build errors and running fewer fuzzers,
exit on the first build error.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Mar 22 16:05:40 2020 +0300
oss-fuzz: use CC rather than CXX to compile fuzzers
clang++ will choke on several fuzzer sources because C++ is stricter
than C wrt. type conversion:
gnutls_base64_decoder_fuzzer.c:26:63: error: non-constant-expression
cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'unsigned
int' in initializer list [-Wc++11-narrowing]
gnutls_datum_t raw = {.data = (unsigned char *)data, .size = size};
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Mar 19 17:49:11 2020 +0100
fuzz: Update README.md for clang-9 [skip ci]
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Mar 15 11:18:30 2020 +0100
state: add function to get the current hash algorithm
This is particularly useful when the application applies key
derivation function by itself with the same underlying hash algorithm
as the session.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 14 09:53:31 2020 +0100
abi: add enum values for GNUTLS_CIPHER_CHACHA20_*
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 14 06:09:56 2020 +0100
cipher: allow setting ChaCha20 initial block counter
This also introduces GNUTLS_CIPHER_CHACHA20_32, which is a 96-bit
nonce variant of GNUTLS_CIPHER_CHACHA20_64.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Mar 13 17:24:26 2020 +0100
nettle: vendor in ChaCha20 implementation from nettle
This enables to use bundled ChaCha20 implementation if the system
nettle doesn't have nettle_chacha_set_counter.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Mar 14 06:01:49 2020 +0100
cipher: expose raw ChaCha20 cipher
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Wed Mar 18 16:17:39 2020 +0100
global: Load configuration after FIPS POST
Previously, if the loaded configuration file disabled an algorithm
tested during FIPS-140 power-on self-tests, the test would fail. By
loading the configuration file after the test is finished, such failure
is avoided as any algorithm is allowed during the tests.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Jakub Jelen <jjelen@redhat.com>
Date: Wed Mar 11 18:31:49 2020 +0100
Validate EC_PARAMS for EdDSA keys
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Author: Jakub Jelen <jjelen@redhat.com>
Date: Fri Mar 6 13:41:25 2020 +0100
pubkey: Validate input parameters in pubkey_import_ecc_raw
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Author: Jakub Jelen <jjelen@redhat.com>
Date: Fri Feb 28 18:50:53 2020 +0100
tests: Verify writing and reading of ECDSA public keys from PKCS#11
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Author: Jakub Jelen <jjelen@redhat.com>
Date: Fri Feb 28 18:45:14 2020 +0100
tests: Verify writing and reading of EdDSA public keys
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Author: Jakub Jelen <jjelen@redhat.com>
Date: Fri Feb 28 18:40:42 2020 +0100
pkcs11_write: Copy data to avoid double-free crashes and properly encode EC_POINT attribute
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 14 23:15:45 2020 +0100
.lgtm.yml: work around issues in LGTM system
This disables dependency tracking and removes the gnulib
tests to work-around a failure build gl/.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 12 20:46:58 2020 +0100
bootstrap.conf: do not bring tests in gnulib clones (src/unistring)
These tests are not being run, and they can cause issues as
in !1208.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 14 22:39:05 2020 +0100
.lgtm.yml: no longer bring nettle from master
The system used has already a sufficiently recent version.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Thu Apr 4 15:45:02 2019 +0200
crypto-selftests-pk.c: Use deterministic signatures in test_known_sig()
Use deterministic signatures for ECDSA and DSA in test_known_sig(). Do
not call test_known_sig() for non-deterministic algorithms. Do not run
PK_TEST() for algorithms tested with PK_KNOWN_TEST().
The deterministic algorithms are used if in FIPS-140 POST or if FIPS-140
mode is disabled. When called explicitly with FIPS-140 mode enabled,
the pairwise-consistency test (PK_TEST()) is used instead.
test_known_sig() was modified to support only deterministic algorithms.
The "deterministic" parameter was replaced with the "flags" parameter
through which the flags to be used in gnutls_privkey_sign_data() are
passed.
The hard-coded values for the ECDSA and DSA signatures were replaced
with the values corresponding to the deterministic signatures to be used
in known answer tests. The unused values for GOST signatures were
removed.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Thu Mar 5 15:54:06 2020 +0100
crypto-selftests-pk.c: Use specified key in test_sig()
Previously, test_sig() would use the same key regardless the value
provided in bits parameter. The changes introduced make test_sig() to
choose the key according to the value provided in bits.
For RSA, only 2048 bits key is available for testing. The calls were
adjusted accordingly.
Introduced 2048 bits DSA key in test_sig(). Removed unused 512 bits
key, leaving only the 2048 bits key available.
For GOST, use the same keys for test_sig() and test_known_sig(). Remove
the unused keys.
Reorder constant values and change variables names for better
readability.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 16 11:09:29 2020 +0100
tests/sign-is-secure: fix off-by-one error
Reported by Peter Dettman in:
https://gitlab.com/gnutls/gnutls/-/issues/128#note_304892538
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 16 11:03:41 2020 +0100
algorithms: properly calculate hash strength for Ed448
The Ed448 signature scheme internally uses XOF (SHAKE256) as the hash
function with 114-octet output. According to FIPS-202, the strength
against collisions is calculated as:
min(114*8/2, 256) = 256
Reported by Peter Dettman in:
https://gitlab.com/gnutls/gnutls/-/issues/128#note_304892538
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Mar 12 12:56:37 2020 +0300
lib/x509: use common routine for parsing data version
OSS Fuzzer noted an issue in parsing (incorrect) CRL files with
zero-length version field. Certificate parser does not have this issue,
while CRL and OCSP Request and Response parsers shows this problem. To
remove code duplication extract common function and use it from all four
parsers.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Thu Apr 4 17:22:04 2019 +0200
crypto-selftests-pk.c: Fix PK_KNOWN_TEST and PK_TEST
Previously, when multiple tests where declared in sequence using one of
the macros, only the first test would be executed. This happened
because a check for the GNUTLS_SELF_TEST_FLAG_ALL was embedded in the
macro. To allow more than one test to be executed in sequence, the
check for the flag was removed from both macros.
To keep the previous behaviour (execute only the first test) the check
for the flag was moved to be after the first test, except for RSA since
the RSA encryption test must be executed in FIPS mode.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Wed Apr 3 13:40:04 2019 +0200
crypto-selftests-pk.c: Move hardcoded values to the top
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Mar 10 22:42:02 2020 +0300
x509: apply same fix to print_crq
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Mar 10 22:41:54 2020 +0300
x509: apply same fix to print_crl
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Mar 10 12:12:36 2020 +0300
x509: drop endless loop in print_extensions
If crq is malformed in extensions part, print_extensions() might loop
endlessly because gnutls_x509_crq_get_extension_info would return
unhandled GNUTLS_ASN1_DER_ERROR looping over extension index, rather
than bailing out. Fix this by handling this error code properly. Found
thanks to oss-fuzz.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Feb 29 17:01:10 2020 +0100
lib: use static assertion to check enum values
We previously had checks of enum values with '#if', such as below:
#define GNUTLS_EXTENSION_MAX_VALUE 31
typedef enum extensions_t {
...
GNUTLS_EXTENSION_MAX /* not real extension - used for iterators */
} extensions_t;
/* we must provide at least 16 extensions for users to register */
#if GNUTLS_EXTENSION_MAX_VALUE - GNUTLS_EXTENSION_MAX < 16
# error not enough extension types
#endif
This doesn't work as expected; because GNUTLS_EXTENSION_MAX is not
defined as a preprocessor macro, it always expands to 0. To properly
do this check, we need to use static assert as provided as the
'verify' macro in gnulib.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Mar 1 10:16:08 2020 +0100
hello_ext: use 64-bit integer to track extensions
We currently have 26 predefined extensions, allowing the user to
define 5 extra as tested in tests/handshake-large-packet.c. However,
if we introduce one more, session->internals.used_exts exceeds.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Mar 7 01:05:45 2020 +0300
fuzz: add simple x509 certificate requests and revocation lists fuzzers
Add x509 certificate requests and certificate revocation lists fuzzers.
Use data from tests/cert-tests as a starting seed for the corpora.
Fixes #903
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Mar 7 01:09:55 2020 +0300
lib/x509/output.c: remove occasioinal memory leak in print_issuer_sign_tool()
Remove memory leak in error handling in print_issuer_sign_tool() by
moving asn1_delete_structure to the end of the function.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 2 20:28:21 2020 +0100
RELEASES.md: describe the release process
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Jakub Jelen <jjelen@redhat.com>
Date: Fri Feb 28 16:18:58 2020 +0100
Add support for loading EdDSA keys from PKCS#11 and using them
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Author: Ross Nicholson <phunkyfish@gmail.com>
Date: Sun Feb 23 07:55:43 2020 +0000
Adding missing macosx directory for aarch64 acceleration
Signed-off-by: Ross Nicholson <phunkyfish@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Feb 21 16:38:29 2020 +0100
keylogfile: simplify the callback mechanism
This partially reverts commit 97117556 with a simpler interface. The
original intention of having the callback mechanism was to reuse it
for monitoring QUIC encryption changes. However, it turned out to be
insufficient because such changes must be emitted after a new epoch is
ready.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Feb 21 13:14:48 2020 +0100
Add valgrind suppression for fun:decode_complex_string.isra.0
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Feb 21 13:14:03 2020 +0100
Add --gen-suppressions=all to valgrind to iautomatically generate suppression rules
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Feb 18 14:35:37 2020 +0300
lib: drop unused pbkdf2 helpers
Updated pbkdf2 API in GnuTLS removed the need for PBKDF2 helpers, drop
them now.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sat Feb 8 23:47:17 2020 +0100
gnutls-cli: Add option to store all stapled OCSP responses
Note that there's a small modification to the behavior of the existing
--ocsp-save option: If there is no stapled OCSP response the output
file is still created and will be empty.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Feb 8 18:04:27 2020 +0100
TravisCI: Add bison [skip ci]
The latest gnulib needs a newer bison than TravisCI OSX has.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 2 08:13:50 2020 +0100
keylogfile: generalize with a callback
This refactors the keylogfile mechanism by adding a callback to get
notified when a new secret is derived and installed. That way,
consumers can implement custom logging feature per session, which is
particularly useful in QUIC implementation.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Feb 7 16:55:11 2020 +0100
.lgtm.yml: Fix --disable-documentation to --disable-doc [skip ci]
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Feb 6 16:48:48 2020 +0100
cfg.mk: Exclude sc_prohibit_gnu_make_extensions from syntax-check
This new gnulib check does not work with GNU awk 5.0.1 and GNU make 4.2.1.
References:
https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00095.html
https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00040.html
https://lists.gnu.org/archive/html/bug-gnulib/2019-07/msg00046.html
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Feb 6 15:52:50 2020 +0100
Update gnulib to fix building on OSX 10.9
Fixes #926
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Date: Tue Jan 14 15:14:59 2020 +0000
testcompat-openssl: improve testing against secured OpenSSL versions.
In Debian, and soon Ubuntu, OpenSSL is compiled with SECLEVEL=2 and
requiring minimum TLSv1.2. However, smaller hashes/keys/versions are
allowed if one enables SECLEVEL=1. Do so when testing pre v1.2 algos,
and thus enabling testing more compatability combinations.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Feb 5 16:06:30 2020 +0300
nettle/gost: gost28147: require calling set_param before set_key
Require selecting parameter set before setting the key. There is no need
to provide default setting, if a param is always selected anyway.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Feb 3 05:18:29 2020 +0100
tests: skip pkcs12-gost under GNUTLS_FORCE_FIPS_MODE
The MAC algorithm used in the PBKDF2 is actually prohibited in the
FIPS mode and previously there wasn't a check for that.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 2 17:58:56 2020 +0100
privkey_pkcs8: remove unused #include <nettle/pbkdf2.h>
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 2 17:57:37 2020 +0100
pkcs7-crypt: refactor using gnutls_pbkdf2
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 2 16:15:51 2020 +0100
pkcs12: refactor using gnutls_pbkdf2
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 2 16:00:56 2020 +0100
secrets: refactor using gnutls_hkdf_{extract,expand}
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Feb 2 14:44:05 2020 +0100
crypto-api: add generic crypto functions for KDF
This exposes HKDF and PBKDF2 functions from the library. Instead of
defining a single KDF interface as in PKCS #11, this patch defines 3
distinct functions for HKDF-Extract, HKDF-Expand, and PBKDF2
derivation, so that we can take advantage of compile time checking of
necesssary parameters.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Sun Feb 2 09:47:25 2020 -0600
session_pack: fix leak in error path
If called at the wrong time, it allocates the buffer sb and forgets to
clear it.
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 1 23:09:01 2020 +0100
.mailmap: map Dmitry's email to a single name [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 1 23:02:55 2020 +0100
NEWS: fixed issue number for 448
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 1 22:54:13 2020 +0100
NEWS: refactored for release
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 1 22:44:41 2020 +0100
hooks.m4: bumped so-version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 29 20:00:53 2020 +0300
nettle/gost: support use GOST DSA support from master branch
Use GOST DSA and GOST curves provided by Nettle's master branch.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jan 28 13:05:14 2020 +0300
pkcs12: do not go try calculating pbkdf2 with 0 iterations
Nettle will abort on a call to pbkdf2 if iterations is 0. Add check to
GnuTLS PKCS12 GOST code to check that iter is not 0.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Bjoern Jacke <bjacke@samba.org>
Date: Mon Jan 27 19:40:53 2020 +0100
add support for local threads with studio and ibm compilers
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 26 21:45:29 2020 +0100
tlsfuzzer: optimized tests for CI and enabled x448
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 26 21:32:18 2020 +0100
tlsfuzzer: fix test-tls13-large-number-of-extensions.py
This test requires a TLS-1.3-only server as its tests clash with
extensions supported by a TLS-1.2 server. Ensure that the extensions
that overlap with TLS-1.2 are not manipulated as we don't have
a pure TLS-1.3-only implementation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 21 10:32:59 2020 +0100
GOSTR341194: mark as insecure for digital signatures
Although there are no practical attacks known on the algorithm, the practical
strength of the algorithm is weaker than the theoritical. In addition this algorithm
is already considered legacy, and as such mark it as insecure for digital
signatures to reduce the attack surface.
Relates: #909
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Jan 26 18:39:18 2020 +0100
Avoid pushd/popd bashism in testsuite
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jan 20 11:48:50 2020 +0100
tests/key-material-dtls.c: Try again on GNUTLS_E_AGAIN and GNUTLS_E_INTERRUPTED
This fixes issues on the CI cross-runners with 'make -jN', N > 1.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 4 14:37:46 2020 +0100
Use make with crafted -j for CI builds and tests
This speeds up the Gitlab CI runners. E.g. measured timings of the
Debian.x86_64 runner show ~40% speedup (down from 38 to 23 minutes).
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 25 22:28:32 2020 +0100
tests: updated tlsfuzzer tests to latest version
This adds new tests, reduces running time, and removes test-tls13-obsolete-curves.py.
The latter introduced too pendantic tests on curves we don't implement,
and requires significant changes to passing with limited benefit. For example
it requires the server to error on mismatching entries (and we simply ignore
them). As its value is low (we do not target to be a reference implementation
for testing broken clients), it was removed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 25 22:02:48 2020 +0100
key shares: avoid using internal errors
On unknown curves or illegal parameters, make sure we return the
right error code which will translate to the appropriate alert.
Resolves: #907
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 24 23:12:07 2020 +0100
fuzz: fixed Ed448 fuzzer traces
The fuzzer files for ed448 were the reverse for client and server.
Enhanced the fuzzer tools to run a single fuzzer, and added more
clear documentation on how to generate and manually test the fuzzer
outputs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 24 23:11:34 2020 +0100
README-adding-traces.md: updated with more precise information
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 24 22:57:49 2020 +0100
fuzzers: added ed448 keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 25 11:18:09 2020 +0100
Create files in gl/ licenced lgpl2+ instead of lgpl3+
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 24 22:53:50 2020 +0100
fuzzers: when provided with a parameter they will run on a single file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jan 24 22:04:41 2020 +0300
.gitlab-ci.yml: remove --disable-gost from nettle-master test
Remove --disable-gost switch from the test using Nettle's master branch
as GnuTLS is now compatible again with nettle/master.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jan 23 13:07:23 2020 +0300
lib/nettle/gost: restore compatibility with nettle master
Use newer format of ecc curve data if curve448 support is detected.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 24 16:38:15 2020 +0100
.gitlab-ci.yml: force running jobs on linux runners
There are shared windows runners in gitlab, that will fail
running our jobs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 23 16:25:43 2020 +0100
fuzz: import key, certificate, and traces using Ed448
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 22 05:25:19 2020 +0100
tlsfuzzer: enable tests for X448
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 20 11:17:51 2020 +0100
.gitlab-ci.yml: set WINEPATH to allow eccdata run under Wine
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 19 12:13:48 2020 +0100
.gitlab-ci.yml: export LDFLAGS throughout the FreeBSD build
Otherwise the build process wouldn't be able to find -lgmp.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jan 13 11:35:15 2020 +0100
.gitlab-ci.yml: add target to build against nettle master
This is similar to the build/gnutls target in nettle's own gitlab CI.
The only difference is that this will build/test all branches of
GnuTLS against the master branch of nettle.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 22 08:27:43 2019 +0200
algorithms: implement X448 key exchange and Ed448 signature scheme
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Apr 21 21:13:30 2019 +0200
nettle: vendor in Curve448 and Ed448 implementation
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 15 11:05:31 2020 +0100
tls13: request OCSP responses as a server
The TLS1.3 protocol requires the server to advertise an empty
OCSP status request extension on its certificate verify message
for an OCSP response to be sent by the client. We now always
send this extension to allow clients attaching those responses.
Resolves: #876
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jan 20 15:08:04 2020 +0300
x509: add OGRNIP DN entry definition used by qualified GOST certificates
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 6 15:14:48 2019 +0300
x509: include digestParamSet into GOST 512-bit curves A and B params
Old implementations do not understand PublicKeyParams with omitted
digestParamSet. So include the field for old 512-bit curves to improve
compatibility with old implementations.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jan 20 03:16:56 2020 +0300
fuzz in gost pkcs7/8/12 files
Add several examples of PKCS#7/#8/#12 files using GOST keys, ciphers and
digest functions.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jan 20 03:11:08 2020 +0300
pkcs12: use correct key length when using STREEBOG-512
PKCS#12 files using GOST HMAC (GOST R 34.11-94 and Streebog) use special
function to generate MAC key. Pass correct key length (fixed to be 32)
when generating PKCS#12 files protected with Streebog (currently it
incorrectly uses 64 there).
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 17 21:34:45 2020 +0100
gnutls-cli-debug: ignore tests when algorithms are unavailable
When gnutls-cli-debug is run on systems where a particular algorithm
is disabled, ensure that we don't stop the testing; in that case
we ignore the test.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 15 14:44:22 2020 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 15 09:46:38 2020 +0100
tls13: do not send OCSP responses as client without server requesting
In client side ensure we see a request for OCSP from servers before
sending one.
Relates: #876
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Date: Tue Jan 7 11:32:37 2020 +0000
libgnutls: Add system-wide default-priority-string override.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jan 13 01:20:28 2020 +0300
lib: fix _kx_priority_gost termination item
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jan 12 19:24:51 2020 +0300
tests/priorities: add tests for GOST ciphersuites enablement
Add test counting GOST ciphersuites and ciphers available.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sat Jan 11 21:16:50 2020 +0100
gnutls-cli: Log all stapled OCSP responses when running with --verbose
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jan 10 14:17:44 2020 +0300
pk: set generated key algo before calling pct_test
In wrap_nettle_pk_generate_keys() set params->algo before calling
pct_test() as GOST sign/verify use that field.
Reported-by: Daiki Ueno
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jan 10 14:16:56 2020 +0300
CI: FIPS140-2 run make check without enforcing FIPS mode
Some distributions might enable --enable-fips140-mode, without actually
enabling/enforcing FIPS at runtime. Catch issues in such configurations
(reported by Daiki Ueno).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 7 11:24:01 2020 +0100
tests: add test for revoked OCSP response
This adds a test that exercises a failed handshake upon receipt of an
OCSP response with the "revoked" status.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 8 16:01:38 2020 +0100
ocsp: set GNUTLS_CERT_INVALID if OCSP response indicates revocation
This makes the OCSP based certificate verification adhere to the
convention used throughout the library: "The 'GNUTLS_CERT_INVALID'
flag is always set on a verification error and more detailed flags
will also be set when appropriate."
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 22:17:55 2020 +0300
NEWS: expand documentation for GOST priority strings
Use +GOST-ALL shortcut to enable GOST ciphersuites. Also document newly
added GOST shortcuts.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 22:11:51 2020 +0300
priority: make priority matching less error-prone
To remove possibility of using wrong length or using strncasecmp()
instead of c_strncasecmp() define PRIO_MATCH(name) macro taking care
about all details.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 22:07:19 2020 +0300
priority: add new GOST-ALL shortcut
Add GOST-ALL as an alias for CIPHER-GOST-ALL, MAC-GOST-ALL, KX-GOST-ALL,
SIGN-GOST-ALL and GROUP-GOST-ALL.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 22:03:44 2020 +0300
priority: add more GOST shortcuts
Add shortcuts for GOST ciphers, MACs and KXes. For now they contain only
one item, but this list will be expanded as support for GOST-CTR-ACPKM
ciphersuites will be added.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 21:10:55 2020 +0300
lib/priority: add SIGN-GOST-ALL keyword
Add SIGN-GOST-ALL keyword containing all defined GOST signature
algorithms.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 9 13:03:10 2020 +0100
doc: clarify thread safeness in gnutls_global_init()
This documents and clarifies the thread safeness of gnutls_global_init()
and its constraints.
Resolves: #900
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 20:22:11 2020 +0300
lib/priority: use c_strncasecmp() for string comparison
Use c_strncasecmp() instead of just strncasecmp() which can be affected
by locale.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 21:31:32 2020 +0300
doc: document GOST priority options
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 21:37:28 2020 +0300
doc: document GOST cipher and MAC algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 8 22:08:14 2020 +0300
priority: fix GROUP-GOST-ALL comparison length
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 4 13:38:01 2020 +0100
tests: replace invalid extension OIDs with valid ones
libtasn1 4.15.0 or earlier allow encoding and decoding
of invalid OIDs, but more recent versions may stop
accepting them. Ensure that our test suite includes
OIDs which can be decoded by all versions of libtasn1.
Relates:
https://gitlab.com/gnutls/libtasn1/issues/25
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Date: Mon Jan 6 09:41:27 2020 +0000
tests/Makefile.am: use absolute top_srcdir for GNUTLS_PRIORITY_FILE
Some tests, e.g. in suite/tls-fuzzer execute scripts from
sub-directories, making the relative path to system.prio in the
environment pointing to a non-existent file. Export system.prio
testsuite file as an absolute path to avoid this issue.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 3 20:21:07 2020 +0100
doc: updated epub.texi from gnutls.texi
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 3 16:58:04 2020 +0100
.gitlab-ci.yml: identify on runtime to db2epub directory
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jan 3 13:17:28 2020 +0100
Remove && command concatenation in .gitlab-ci.yml
As it turns out, `set -e` doesn't work if one of the commands fail,
maybe except the last command.
Seen, tested and reproduced on Fedora28 image.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 3 13:55:09 2020 +0100
.gitlab-ci.yml: merged ASAN and UBSAN runs
This in addition to merging the two CI runs, it also attempts
to run the fuzz code under SHANI for CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Edward Stangler <estangler@bradmark.com>
Date: Fri Jan 3 10:36:21 2020 +0000
Fixes dummy getrandom() when errno = EAGAIN.
Fixes #892.
Signed-off-by: Edward Stangler <estangler@bradmark.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jan 2 16:15:15 2020 +0100
Fix '-Werror=unused-const-variable=' in fuzz/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Dec 22 13:20:03 2019 +0100
Fix NULL ptr access in _gnutls_iov_iter_next()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Dec 21 19:21:55 2019 +0100
Use check_for_datefudge in tests
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Dec 20 11:00:53 2019 +0100
Fix "left shift cannot be represented in type 'int'" in hello_ext.[ch]
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 19 12:33:34 2019 +0100
Fix 2x -Wunused-function in tests/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 19 12:23:34 2019 +0100
certtool-cfg.c: Silence -Wunused-variable if HAVE_IPV6 not set
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 19 11:48:47 2019 +0100
status_request.c: Silence -Wsign-compare
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 19 11:46:23 2019 +0100
rnd-fuzzer.c: Suppress shift sanitization check
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 19 11:17:43 2019 +0100
handshake.c: Suppress warning in fuzzing build
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Dec 18 19:44:10 2019 +0100
Fix implicit value change in verify-high.c
verify-high.c:284:7: runtime error: implicit conversion from type 'size_t'
(aka 'unsigned long') of value 15421545260338 418178 (64-bit, unsigned) to
type 'uint32_t' (aka 'unsigned int') changed the value to 437555714 (32-bit,
unsigned)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Dec 18 16:39:38 2019 +0100
UBSAN: Fail tests if UB detected
Suppressions are in devel/ubsan.supp.
Suppressions only work on recoverable checks.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 29 21:53:32 2019 +0100
gnutls_x509_crt_get_extension_info: optimize when critical equals NULL
That is, do not perform the look ups necessary to calculate the value
when it will not be used.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 30 05:35:45 2019 +0100
fuzz: import certificate with and without sanity checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 29 22:33:07 2019 +0100
x509: reject certificates having duplicate extensions
According to RFC5280 a certificate must not include more than
one instance of a particular extension. We were previously printing
warnings when such extensions were found, but that is insufficient
to flag such certificates. Instead, refuse to import them.
Resolves: #887
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 3 08:53:55 2020 +0100
tests/suite: do not include scripts into dist
This part of the test suite is only run on CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 2 14:09:50 2020 +0100
ecore cli: updated and rewritten to use libev
That removes a lot of code that was not necessary in the gnutls test
suite.
Resolves: #884
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 2 22:32:43 2020 +0100
.gitlab-ci.yml: use separate images for mingw and fedora builds
This should result to faster image loading for CI builds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 2 14:55:11 2020 +0100
tests: use newer nettle APIs in cipher-override.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 1 21:37:01 2020 +0100
doc: updated copyrights for 2020
This updates the copyright year for documentation
and excludes gnulib files from the copyright check.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Dec 29 12:52:21 2019 +0300
cli: fix building with GOST disabled
Fix building gnutls-cli (benchmark part) with GOST keys support being
disabled.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Dec 29 12:49:16 2019 +0300
cli: support building with OCSP and ANON disabled
Support gnutls-cli when building GnuTLS with OCSP and ANON
authentication API disabled.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Dec 29 12:49:16 2019 +0300
serv: support building with OCSP disabled
Support gnutls-serv when building GnuTLS with OCSP API disabled.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Nov 9 02:29:19 2019 +0300
tls12-server-kx-neg: add tests without GOST signature algorithms
Add tests mimicking SChannel clients which are unable to send proper
SignatureAlgorithms extension.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Nov 9 02:01:22 2019 +0300
SignatureAlgorithms: force-enable GOST signatures for GOST KX
SChannel-based clients can not send GOST identifiers as a part of
SignatureAlgorithms extension. To mitigate this forcefully enable GOST
signature algorithms if client sends GOST ciphersuite.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 24 16:26:27 2019 +0300
benchmark: enable benchmarking of GOST CNT ciphersuite/KX
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 24 02:33:26 2019 +0300
benchmark: support benchmarking GOST ciphers/MACs
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 24 02:32:17 2019 +0300
benchmark: use mac key size instead of block size
Use newly added gnutls_hmac_get_key_size() to get key size instead of
assuming that key size = block size (incorrect for GOST 28147 IMIT).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 24 02:31:30 2019 +0300
crypto-api: add gnutls_hmac_get_key_size() function
Add gnutls_hmac_get_key_size() to retrieve MAC key size.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 24 01:20:24 2019 +0300
nettle/gost: remove gost28147_imit_init
Rewrite gost28147 imit code to clean up state and index on key setup to
be sure that imit context is properly cleaned.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Nov 20 16:10:11 2019 +0100
guile: Arrange to make 'gnutls.scm' architecture-independent.
Fixes #838.
Reported by Andreas Metzler.
* configure.ac: Define and substitute 'maybe_guileextensiondir'.
* guile/Makefile.am (.in.scm): Substitute 'maybe_guileextensiondir'.
* guile/modules/gnutls.in <top level>: Use @maybe_guileextensiondir@.
Check if %LIBDIR is true.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 23 20:20:58 2019 +0100
x509: do not tolerate invalid DER time
This effectively reverts !400 and ensures that we no longer tolerate
invalid DER time. This complements the previous commit by Lili Quan
and ensures we provide the --disable-strict-der-time backwards compatibility
option.
Resolves: #207
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 14 10:51:48 2019 +0100
certtool: always set extensions from template
Previously we would only set these extensions specific with add_extension
when generating using --generate-certificate. The change makes sure these
options are considered even when generating an extension from a certificate
request. Issue reported on the mailing list.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 14 10:44:16 2019 +0100
tests: check certificate generation from certificate request
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 20 20:37:32 2019 +0100
tests: ensure test suite does not apply global config
When running the test suite we do not apply the global
gnutls configration as it may change options that are
tested.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 5 11:40:31 2019 +0100
gnutls-cli: improved output of --benchmark-tls-kx
It is now printed in a way that separates the tests. Example:
```
(TLS1.3)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-128-GCM)
- 179.19 transactions/sec
- avg. handshake time: 5.57 ms
- standard deviation: 0.57
(TLS1.3)-(ECDHE-X25519)-(RSA-PSS-RSAE-SHA256)-(AES-128-GCM)
- 182.24 transactions/sec
- avg. handshake time: 5.48 ms
- standard deviation: 0.64
```
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 4 13:58:21 2019 +0100
gnutls-cli: benchmark-tls-kx can work with sub-ms accuracy
This allows micro and nanoseconds to be reported if necessary,
and it changes reporting of sample variance to standard deviation
giving a possibly better overview as it is in the same units as
the average.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jul 19 15:40:46 2018 +0300
gnutls-cli-debug: add GOST_CNT-related KX/cipher/MAC tests
Add test for VKO-GOST-12, GOST28147-TC26Z-CNT and GOST28147-TC26Z-IMIT
support by the server.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 19 21:13:15 2019 +0100
README.md: updated to list fuzz coverage results [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Date: Sun Dec 15 20:32:02 2019 +0000
doc: update reference to the default configuration file
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 19 20:28:50 2019 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 19 09:37:34 2019 +0100
_gnutls_verify_crt_status: apply algorithm checks to trusted CAs
If a CA is found in the trusted list, check in addition to
time validity, whether the algorithms comply to the expected
level. This addresses the problem of accepting CAs which would
have been marked as insecure otherwise.
Resolves: #877
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 18 14:38:32 2019 +0100
certtool: added option to apply a certificate verification profile
This applies to the --verify and --verify-chain commands.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 18 14:29:21 2019 +0100
Export profile ID/name handling functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 18 14:04:35 2019 +0100
is_level_acceptable: apply the system-wide profile in all verifications
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Lili Quan <13132239506@163.com>
Date: Thu Dec 19 17:14:20 2019 +0100
Introduced check to reject certificates with non-digits in time field
According to RFC5280 we should reject such certificates.
Resolves: #870
Signed-off-by: Lili Quan <13132239506@163.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 13 23:47:16 2019 +0300
abi-check: fix include paths
If GnuTLS is built outside of source tree, abicheck will miss gnutls.h
header which is generated in the build tree. Expand arguments to include
it.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 18 23:28:48 2019 +0300
doc: document GROUP-GOST-ALL keyword
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 27 15:48:57 2019 +0300
NEWS: add news entry, describing TLS 1.3 vs GOST issues
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jul 17 19:41:47 2019 +0300
ext/signature: use GOST signatures for GOST ciphersiuites
draft-smyshlyaev-tls12-gost-suites limits SignatureAndHash algorithms
in CertificateRequest message to GOST values if GOST cipher suite is
selected.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Sep 3 10:48:09 2019 +0300
tls13-server-kx-neg: add test for GOST-enabled server and client
If both client and server have enabled TLS 1.3 and GOST-CNT
ciphersuites, they should correctly negotiate a connection, but using
TLS 1.2 version.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 9 07:17:59 2017 +0300
tests: added testcases for ciphersuite/KX negotiation with VKO-GOST
This verifies whether the ciphersuite negotiation will detect and
reject incompatible data present in credentials.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 23 21:37:38 2017 +0300
tests: add tests for KX-GOST-VKO using different key variants
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 27 03:31:49 2016 +0300
Add GOST cipher suites
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Feb 10 12:18:40 2019 +0300
priority: add GROUP-GOST-ALL keyword
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 30 13:11:28 2016 +0300
Support GOST certificate request values
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 23 21:56:23 2017 +0300
lib: fix group selection in case of GOST cipher suites
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Dec 17 20:09:54 2019 +0100
Sync with fuzzers from OSS-Fuzz
Only lots of corpora removed (by merge step). Not sure why.
But there are several new UBs detected.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Dec 17 19:52:58 2019 +0100
Amend fuzz scripts and README for clang-8
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Dec 17 19:52:05 2019 +0100
Add fuzz corpora for gnutls_ext_raw_parse_fuzzer
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 16 12:54:23 2019 +0100
fuzzer: added fuzzer for gnutls_ext_raw_parse()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 16 12:45:06 2019 +0100
gnutls_ocsp_status_request_is_checked: mark explicitly as unsigned the return type
Also some documentation updates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 16 11:35:48 2019 +0100
README.md: updated CI build badge [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 14 15:41:17 2019 +0100
Provide flag to identify sessions that an OCSP response was requested
That adds the flag GNUTLS_SFLAGS_CLI_REQUESTED_OCSP which can be
checked by a server application to determine whether the
client has requested stapled OCSP responses.
This includes minor cleanups in the status request handling code.
Resolves: #829
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 7 21:30:17 2019 +0100
abi: updated to latest const changes and added NEWS entry
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue May 21 21:50:33 2019 +0200
Add const to function arguments in lib/x509
This change does not introduce functionality changes.
It just adds const promises to the caller.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 5 17:06:22 2019 +0100
gnutls-serv: do not exit on command failure
If gnutls_reauth() or gnutls_heartbeat_ping() fail, gnutls-serv
would simply quit. This prevents using this tool in a test environment
like tlsfuzzer. Ensure that we don't quit on error.
Resolves: #868
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 4 22:18:02 2019 +0100
.triage-policies.yml: updated to work with latest gitlab-triage [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Vitezslav Cizek <vcizek@suse.com>
Date: Wed Dec 4 15:24:17 2019 +0100
lib: remove obsolete AVOID_INTERNALS
Although commit 1f246c381e8a7449d84b143ffe50a0818622d2a3 enabled
the self-check functions unconditionally, the #ifdefs AVOID_INTERNALS
remained in lib/crypto-selftests-pk.c.
Signed-off-by: Vitezslav Cizek <vcizek@suse.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 2 17:32:16 2019 +0100
Revert "Released 3.6.11.1 including missing files"
This reverts commit 1e9c9ba0c0798b5566902e6c5ab83418826dd7f5.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 2 17:08:43 2019 +0100
Released 3.6.11.1 including missing files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 2 08:56:05 2019 +0100
libopts: include new files into dist
This also includes --enable-local-libopts flag to make dist
to catch future regressions.
Resolves: #867
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 1 22:39:01 2019 +0100
released 3.6.11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sun Dec 1 19:20:17 2019 +0100
Write OCSP status request debug information to logfile, if set
The status information not part of the payload data and should be
separate when using --logfile.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Fiona Klute <fiona.klute@gmx.de>
Date: Sun Dec 1 18:45:28 2019 +0100
Send log messages about loading client credentials to logfile, if set
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 29 20:30:26 2019 +0100
.travis.yml: explicitly install openssl to address build issue
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 29 16:19:07 2019 +0100
NEWS: documented AES-CFB8 fix [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 29 13:06:41 2019 +0100
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 28 09:08:28 2019 +0100
.travis.yml: update submodules [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 29 09:40:55 2019 +0100
base64: minor improvements in OOM handling and test suite
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 28 15:05:17 2019 +0100
gnutls_base64_decode2() succeeds decoding the empty string
This is a behavioral change of the API but it conforms to
the RFC4648 expectations.
Resolves: #834
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 27 16:13:06 2019 +0100
Revert "tests: ignore datefudge-check check when running on command line"
This commit was breaking CI on FreeBSD systems.
This reverts commit 1fe4f8e289d666979618fbb909983ac05aad11ac.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 25 22:36:22 2019 +0100
certtool: always include the CRL distribution points on CAs
Previously we would omit the CRL distribution points from a non-self
signed CA certificate, even if contained in the template.
Resolves: #765
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 25 22:38:05 2019 +0100
tests: ignore datefudge-check check when running on command line
That allows running the tests individually without make or setting
top_builddir variable.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Nov 22 17:21:19 2019 +0300
tests: make tests pass with disabled GOST algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Nov 22 16:43:49 2019 +0300
gitlab-ci: enable running make check on minimal build
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Mon Nov 11 21:36:22 2019 +0100
guile: Silence auto-compilation warning for 'guild'.
Reported by Helmut Grohne <helmut@subdivi.de>
and Andreas Metzler <ametzler@bebt.de>
at <https://bugs.debian.org/943905>.
* guile/Makefile.am (%.go): Pass "GUILE_AUTO_COMPILE=0" to avoid
warnings about 'guild' needing to be compiled.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Nov 10 14:06:58 2019 +0300
vko: fix possible unitilized scalar access
Fix error path in _gnutls_gost_keytrans_decrypt. If
_asn1_strict_der_decode() fails, cleanup path will try to
gnutls_pk_params_release(&pub), which will access unitialized pub
variable. Fix by deleting asn1 sctructure directly.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Mon Nov 11 21:30:48 2019 +0100
guile: Do not attempt to load shared object when cross-compiling.
Reported by Helmut Grohne <helmut@subdivi.de>
and Andreas Metzler <ametzler@bebt.de>
at <https://bugs.debian.org/943905>.
* configure.ac: Add 'CROSS_COMPILING' conditional.
* guile/Makefile.am (CROSS_COMPILING_VARIABLE): New variable.
(%.go): Use it.
* guile/modules/gnutls.in <top level>: Do not call 'load-extension'
when "GNUTLS_GUILE_CROSS_COMPILING" is defined.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 27 03:30:34 2016 +0300
Add support for VKO GOST key exchange
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 7 18:25:01 2019 +0100
.gitlab-ci.yml: bump configure cache version
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Günther Deschner <gd@samba.org>
Date: Wed Nov 6 13:17:57 2019 +0100
crypto-selftests: test CFB8 ciphers with different chunksizes
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 8 10:10:09 2019 +0100
nettle: use included CFB8 implementation if nettle is 3.5
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Feb 10 02:38:43 2019 +0300
groups: add function to return group by curve
Two GOST groups will have two curves attached. Add function to retrieve
group by curve, rather than by group id.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue May 7 18:01:33 2019 +0300
ecc: define curve->group relationship
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Aug 29 11:09:31 2017 +0300
Declare groups corresponding to GOST curves
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Dec 2 06:26:55 2016 +0300
Add GOST key transport support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jun 7 13:19:55 2018 +0300
nettle: add support for GOST key derivation
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 27 18:58:12 2016 +0300
_gnutls_pk_derive: add argument for nonce
GOST VKO key derivation needs another opaque argument (called UKM).
Add an argument to _gnutls_pk_derive to accomodate that keying material.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jun 14 15:39:39 2018 +0300
nettle/gost: add support for GOST VKO algorithm
GOST VKO is a variant of ECDHE algorithm.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jun 14 15:39:19 2018 +0300
nettle/gost: provide GOST keywrapping support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Miroslav Lichvar <mlichvar@redhat.com>
Date: Wed Nov 6 11:37:10 2019 +0100
prf: don't crash when called before handshake completion
If a gnutls_prf*() function is called before the handshake is completed,
return GNUTLS_E_INVALID_REQUEST instead of crashing.
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 6 12:07:24 2019 +0100
nettle: backport fixes to cfb8_decrypt
cfb8: don't truncate output IV if input is shorter than block size:
https://git.lysator.liu.se/nettle/nettle/commit/f4a9c842621baf5d71aa9cc3989851f44dc46861
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 5 16:47:17 2019 +0100
gnutls_privkey_sign_data2: removed unnecessary text [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 1 14:04:27 2019 +0100
.gitlab-ci.yml: do not inline strcmp in valgrind build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 1 10:24:24 2019 +0100
.gitlab-ci.yml: removed unnecessary use of --enable-valgrind-tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: nia <nia@NetBSD.org>
Date: Thu Oct 31 18:36:49 2019 +0000
Add NEWS entry for the NetBSD KERN_ARND change.
Signed-off-by: Nia Alarie <nia@NetBSD.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 18 05:36:49 2017 +0300
tls-sig: reverse bytes in TLS signatures for GOST signatures
GOST TLS suites have one peculiarity: CertificateVerify message uses
byte order opposite to the rest of GOST signature usage (BE instead of
LE). So, reverse byte order in signatures in TLS code. For now this
applies only to TLS 1.2 code. GOST TLS 1.3 ciphersuites will also follow
this approach. Legacy TLS 1.0 ciphersuites also had this peculiarity.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 30 10:39:49 2019 +0100
.gitlab-ci.yml: updated CI environment to F31
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 11 20:46:41 2019 +0200
tests: include config.h in rawpk-api.c
This seems to have impacted windows compilation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 11 15:57:43 2019 +0200
tests: global-init-override do not run in windows
It cannot be compiled in f30.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 11 14:44:39 2019 +0200
updated to libopts 5.18.16
This fixes compilation in Fedora 30 which ships with this
version of autogen.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Oct 27 03:12:45 2019 +0300
serv: move closing TABLE tag after actual table end
Move closing TABLE tag after printing information on cipher and MAC.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Oct 27 03:08:33 2019 +0300
ecc: fix curve sizes for TC26-256 gost curves
Fix curve size being incorrectly set to 64 instead of 32 for several
GOST curves.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: nia <nia@NetBSD.org>
Date: Sat Oct 26 20:58:49 2019 +0100
nettle: Support sysctl(KERN_ARND) for RNG on NetBSD.
This system call will never block and does not require a file
descriptor to be opened. It provides an endless stream of random
numbers from the kernel's ChaCha20-based random number generator.
Signed-off-by: Nia Alarie <nia@NetBSD.org>
Author: Björn Jacke <bjacke@samba.org>
Date: Fri Oct 25 17:25:39 2019 +0200
doc: describe how to make gnutls-cli quiet for pipe usage
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 24 18:01:55 2019 +0300
lib: simplify uint24 handling
Drop separate uint24 type and functions to convert between it and
uint32_t. This makes _gnutls_read/_write_uint24 simpler and easier to
understand. And with faster assembly code.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Oct 20 18:49:41 2019 +0300
lib: drop gnutls_uint64 usage as sequence number
GnuTLS is depending already on uint64_t being a properly defined type.
So there is no need to have a special byte-array type for 8-byte
integers. Use uint64_t instead, thus simplifying a code quite heavily.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 21 15:55:47 2019 +0300
sign: convert tls13_ok to flags field
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 21 18:55:26 2019 +0300
tls-sig: split TLS 1.0/1.1 CertificateVerify code
For the symmetry split the TLS 1.[01] CertificateVerify code, so that
main functions work as pure multiplexors.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 21 14:08:00 2019 +0300
mac: mark GOST28147-TC26Z-IMIT as using CONTINUOUS_MAC
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 18 04:09:51 2017 +0300
Support GOST cipher suite MAC calculation
GOST ciphersuites require that MAC is calculated over _all_ packets,
rather than just current packet. Add flag to auth_cipher_hd_st
controlling this behaviour.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 21 13:57:55 2019 +0300
mac: change preimage_insecure to be a flag
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 18 13:19:04 2019 +0300
cipher: replace several bools with single flags instance
Replace bools in cipher_entry_st with flags field.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jun 21 19:34:45 2018 +0300
lib: pubkey vs TLS signature compatibility for GOST algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 18 13:22:06 2019 +0300
src: fix noreturn-related warning
Recent autogen started adding '#include <stdnoreturn.h>' into -args.h
files. However in GnuTLS tools code this results in the following
warnings, because stdnoreturn.h unconditionally redefines 'noreturn' to
_Noreturn:
warning: '_Noreturn' attribute directive ignored
Use __noreturn__ attribute instead as does Gnulib.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Dec 2 08:28:34 2016 +0300
Allow using implicit IV for stream ciphers with TLS
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Aug 29 11:10:33 2017 +0300
prf: add Streebog (GOST R 34.11-2012) PRF support
Add support and tests for PRF generated using both Streebog versions.
This is necessary for adding GOST TLS ciphersuites support.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Oct 12 20:59:22 2019 +0200
Add const to several read-only packet sequence params
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Oct 13 12:04:20 2019 +0200
tests/buffer.c: Add unit test for _gnutls_buffer_unescape()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 18:54:12 2019 +0200
lib/x509/x509.c: Check before pointer dereference in get_alt_name()
Fixes Coverity issue 1361513
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 18:44:35 2019 +0200
cipher: Let _gnutls_auth_cipher_setiv() return int
Fixes Coverity issue 1454646
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 18:34:22 2019 +0200
lib/record.c: Use assignment instead of memcpy()
Fixes Coverity issue 1454647
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 18:27:11 2019 +0200
lib/sslv2_compat.c: Check return value of _gnutls_generate_session_id()
Fixes Coverity issue 1454649
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 18:11:10 2019 +0200
lib/x509/output.c: Remove unneeded NULL check in print_crt_pubkey()
Fixes Coverity issue 1454670
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 18:04:44 2019 +0200
lib/auth/srp_passwd.c: Fix NULL dereference in _gnutls_srp_pwd_read_entry()
Fixes Coverity issue 1454652
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 17:53:54 2019 +0200
lib/str.c: Replace sscanf() in _gnutls_buffer_unescape()
Fixes Coverity issue 1454651
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 17:39:24 2019 +0200
lib/handshake.c: Check return value of _gnutls_version_max()
Fixes Coverity issue 1454674
Fixes Coverity issue 1454658
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Oct 9 17:37:42 2019 +0200
Remove trailing spaces in several files
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 10 17:49:01 2019 +0200
.gitlab-ci.yml: removed coverity build [ci skip]
The coverity run is subject to several restrictions by the service,
and thus it is not really useful in the main CI runs as it cannot reasonably
be run on MRs or master. As such we simplify the main CI file by moving the
coverity to the coverage sub-project and running it weekly.
The new location is at:
https://gitlab.com/gnutls/coverage
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 5 03:30:32 2019 +0200
crq APIs: fix typos [ci skip]
Resolves: #842
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 25 07:04:04 2019 +0200
document limitations of gnutls_record_discard_queued() [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Ricardo M. Correia <rcorreia@wizy.org>
Date: Wed Oct 9 17:37:22 2019 +0200
README.md: document lscpu/util-linux dependency for make check
Closes #764
Signed-off-by: Ricardo M. Correia <rcorreia@wizy.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Oct 9 01:29:07 2019 +0300
testpkcs11.sh: test that we output mechanism flags correctly
Verify some of PKCS#11 mechanism flags.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Sep 25 21:11:09 2019 +0300
p11tool: print mechanism info in list-mechanisms
Print key size range and flags in mechanisms list.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Oct 9 00:10:09 2019 +0300
tests/psk-file: fix heizenbug in last test
Currently last test case in psk-file expects that the server will
terminate connection with fatal error and close connection. Client will
receive GNUTLS_E_PUSH_ERROR error. However on slow boxes (or under qemu)
client is able to receive server's fatal alert thus returning unexpected
error. To make this behaviour predictable make server wait for client to
read all data and actually close connection on it's own.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 8 07:23:31 2019 +0200
session tickets: parse extension during session resumption on client side
It is possible for a server to send a new session ticket during
TLS1.2 resumption. To be able to parse it as client we need to
check the extension during resumption as well.
Resolves: #841
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jun 24 01:37:31 2019 +0300
ext/supported_groups: don't consider non-EC groups for EC
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Aug 2 02:08:00 2019 +0300
tests: correct gost server certificates
Correct GOST server certificates:
- use only Digital Signature Key Usage,
- use new format for 512-bit curve key and certificate.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 8 06:48:44 2019 +0200
.gitlab-ci.yml: only run coverity task on 3_6_x tags [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Oct 2 17:05:10 2019 +0300
cert-tests/gost: add certificate with new GOSTParameters struct
Add certificate example using simplified (new) GOSTParameters structure.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 7 20:59:34 2019 +0200
.gitlab-ci.yml: include an automated coverity build on tags
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Sep 25 18:13:37 2019 +0300
lib: implement support for updated GOST PublicKeyParameters
Recomendation for standardization R 1323565.1.023-2018 has made changes
to PublicKeyParameters for GOST R 34.10-2012 keys. It has removed
encryptionParamSet (since now S-BOX is basically fixed as TC26-Z) and
made digestParamSet OPTIONAL (as it can be concluded from public key
OID). Implement these requirements.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Apr 25 15:06:58 2019 +0300
nettle/pk: add support for "new" TC26 256 B curve
TC26 likes aliases. Thus "new" TC26 256 B curve is the same as old
CryptoPro-256-A curve (but with limitation to use GOST R 34.10-2012).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 28 21:40:30 2019 +0300
lib/ecc: add documentation for GOST-related curves
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue May 7 15:24:53 2019 +0300
lib: define more GOST curves
Declare GOST curves from GOST R 34.10-2001 and GOST R 34.10-2012 (test
curves) and GOST curves defined by TC26 itself.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Oct 1 18:15:19 2019 +0200
gnutls_aead_cipher_{en,de}cryptv2: write back cached data to buffers
Previously, those functions failed to write the output to the buffers
if the buffer length is not multiple of cipher block size. This makes
sure that the cached data is always flushed.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Oct 1 18:14:48 2019 +0200
iov: add _gnutls_iov_iter_sync to write back cached data to iov
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Oct 3 10:34:18 2019 +0200
iov: _gnutls_iov_iter_next: return bytes instead of blocks
This eliminates the need of special handling of final block. Also
adds more tests in exceptional cases.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 5 03:27:01 2019 +0200
NEWS: added entry for 3.6.11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Fri Oct 4 20:50:19 2019 +0200
Updated NEWS to reflect the added raw public-key handling functionality for gnutls-cli/serv tools.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon Sep 30 21:22:59 2019 +0200
Added functional regression tests for rawpk functionality in gnutls-cli and gnutls-serv.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Tue Aug 27 17:10:04 2019 +0200
Implemented raw public key support for gnutls-serv application.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon Aug 26 17:12:40 2019 +0200
Implemented raw public key support for gnutls-cli application.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Oct 2 14:47:44 2019 +0300
nettle/mac: add missing ifdef
Add an ifdef guarding gost28147 include.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Sep 29 18:55:18 2019 +0200
cipher-alignment: migrate LDADD/CFLAGS after rename
Test was renamed from mini-alignment to cipher-alignment.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 29 12:24:02 2019 +0200
bumped versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 28 21:25:25 2019 +0200
.gitlab-ci.yml: run pic-check on i686-linux-gnu to catch wrong assembly
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Sep 28 14:28:12 2019 +0200
Regenerate asm files with -fPIC
CRYPTOGAMS' perl-scripts can produce different output if -fPIC is passed
as option. Set -fPIC for the same files as openssl does.
Closes #818
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 28 12:42:12 2019 +0200
certtool: ensure that PKCS#8 file does not contain key description
Resolves: #840
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 28 21:23:17 2019 +0300
NEWS: document previous changes [ci skip]
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Aug 2 13:55:18 2019 +0300
tests: add verbose logging to server-kx-neg tests
Add support for verbose logging to tls*-server-kx-neg tests.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 19 17:42:53 2018 +0300
lib/algorithms: add AID values assigned by IANA
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Sep 27 17:00:29 2019 +0300
x509: add support for Russian extensions defined for qualified certificate
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Sep 1 11:05:35 2019 +0300
crypto-selftests: add CNT and IMIT self tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jun 14 15:37:20 2018 +0300
nettle: provide GOST 28147-89 IMIT MAC support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jun 14 15:36:55 2018 +0300
nettle: provide GOST 28147-89 CNT mode support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Sep 26 16:45:25 2019 +0200
ext/supported_versions: reorder client precedence if necessary
If the client advertises TLS < 1.2 before TLS 1.3 and the server is
configured with TLS 1.3 enabled, the server should select TLS 1.3;
otherwise the client will disconnect when seeing downgrade sentinel.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 25 06:23:22 2019 +0200
gnutls_session_get_data2: fix operation without a timeout callback
When TLS1.3 was introduced, gnutls_session_get_data2 was modified
to assume that the callbacks set included the timeout one which was
not previously necessary except for some special cases. This corrects
that issue and makes sure that gnutls_session_get_data2() does not
fail (but not necessarily succeed), if that timeout callback is not
set.
Resolves: #823
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 25 06:18:48 2019 +0200
_gnutls_io_check_recv: added newline to error message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 23 21:42:14 2019 +0200
tests: cipher-alignment: ensure cipher registration
That is, ensure that the registered cipher is called at least
once in the program. That is, to make this test fail if the registration
API ever become deprecated/no-op.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 23 21:11:53 2019 +0200
tests: mini-alignment moved to modern nettle API
That is, it no longer uses the deprecated API, and it is also
removed to cipher-alignment for clarity.
Resolves: #835
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 23 21:05:48 2019 +0200
nettle: use nettle_get_secpp* consistently
We already depend on nettle 3.4.1 which provides that symbol,
ensure that we use it consistently.
Relates: #835
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 20 22:09:39 2019 +0200
Updates in OCSP status response related documentation
gnutls_certificate_set_ocsp_status_request_file2: corrected documentation
This corrects the documented return code in gnutls_certificate_set_ocsp_status_request_file2
and the applicability of gnutls_ocsp_status_request_is_checked.
Resolves: #836
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 20 21:04:09 2019 +0200
tests: added server side OCSP check
This checks whether gnutls_ocsp_status_request_is_checked() is functional
on server-side verification.
Relates: #829
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 20 20:57:51 2019 +0200
tests: added server-side verification test
This tests gnutls_certificate_verify_peers2() operation in server
side.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 19 21:26:25 2019 +0200
gnutls_ocsp_status_request_is_checked: added tests in client side
This ensures that this function has functional tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 16 15:03:41 2019 +0200
pkcs11-mock: updated license based on upstream project [ci skip]
Based on the relicense of the original project:
https://github.com/Pkcs11Interop/pkcs11-mock
Applied in commit: 8751256956e414c1b0a30414831f5083afbf64bf
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Jun 1 16:54:47 2019 +0200
guile: Add support for Guile 3.0.
* configure.ac: Add 3.0 to 'GUILE_PKG', as well as the
previously-supported versions.
* doc/gnutls-guile.texi (Guile Preparations): Update list of supported
versions.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Jun 1 16:52:34 2019 +0200
doc: Run guile with '-q'.
This makes sure we don't load the user's ~/.guile.
* doc/Makefile.am (GUILE_FOR_BUILD): Pass '-q'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 12 15:21:55 2019 +0200
tlsfuzzer: enable atypical padding check
The atypical padding check is complementary to the existing
GnuTLS 2.12.x interop test.
This commit also upgrades to the latest version, and adds new TLS1.3
tests as well.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 8 18:04:18 2019 +0200
lib/*: remove unnecessary cast to ssize_t
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 8 18:02:08 2019 +0200
gnutls_int.h: make DECR_LEN neutral to signedness
DECR_LEN was previously implemented in a way that it first decrements
the given length and then checks whether the result is negative. This
requires the caller to properly coerce the length argument to a signed
integer, before invoking the macro.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Sep 11 11:24:17 2019 +0200
.gitlab-ci.yml: bump configure cache version
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 10 13:50:45 2019 +0200
.gitlab-ci.yml: export guile related envvars for doc-dist.Fedora
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 6 08:36:04 2019 +0200
tests: check interoperability testing with gnutls 2.12.x and SHA256
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 3 21:51:58 2019 +0200
_gnutls_epoch_set_keys: do not forbid random padding in TLS1.x CBC ciphersuites
Since some point in 3.6.x we updated the calculation of maximum record size,
however that did not include the possibility of random record padding available
for CBC ciphersuites which exceeds the maximum. This commit allows for larger
sizes for these ciphersuites to account for random padding as applied by
gnutls 2.12.x.
Resolves: #811
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Jul 20 16:13:02 2019 +0200
.gitlab-ci.yml: minimal.Fedora.x86_64: Pass '--disable-guile' the 2nd time as well.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Jul 20 16:08:48 2019 +0200
.gitlab-ci.yml: doc-dist.Fedora: Pass "GUILE", "GUILD", and "guile_snarf" to 'configure'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Aug 31 16:38:13 2019 +0200
maint: Include Guile's M4 macros.
This ensures 'GUILE_PKG' & co. behaves as we want. Previously we had
problem in CI when using 'guile.m4' coming from potentially old distro
packages, as discussed in issue !1020:
https://gitlab.com/gnutls/gnutls/merge_requests/1020#note_194443890
* m4/guile.m4: New file, from Guile's 'stable-2.2' branch,
commit 9846178c69445142ef0b9432417453d2d4de6635.
* .x-sc_prohibit_test_minus_ao: New file.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Sep 5 11:36:27 2019 +0300
priority: fix loop which removes systemwide disabled KX algos
Fix c&p error in KX-removal loop.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sun Sep 1 13:50:35 2019 +0200
Added initial corpora for rawpk client and server fuzzers.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sun Sep 1 13:49:59 2019 +0200
Implemented server rawpk fuzzer.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sun Sep 1 13:49:40 2019 +0200
Implemented client rawpk fuzzer.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 2 16:34:08 2019 +0300
gnutls-cli-debug: fix early break for no version supported check
Currently gnutls-cli-debug code hardodes index of tests, after which it
will check if any known protocols (SSL 3.0/TLS1.[0123]) are supported by
the server. However this number is hardcoded and thus easy to break.
This is exactly what happened after adding %ALLOW_SMALL_RECORDS check.
Two tests were added in front of tests lists without updating this
index.
So let's make this check robust by adding another test which will return
fatal error if no known protocols are supported. While we are at it,
also simplify tests loop by removing internal loop completely and
controlling opening/closing a socket with a flag.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 3 21:32:47 2019 +0200
tests: added interoperability test with gnutls 2.12.x
This enables this test in debian build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sat Aug 31 16:33:33 2019 +0200
guile: Update the list of certificate status values.
* guile/modules/gnutls/build/enums.scm (%certificate-status-enum): Add
'gnutls_certificate_status_t' values that were missing.
* guile/src/core.c (scm_gnutls_peer_certificate_status): Add
'MATCH_STATUS' clauses to handle them.
* guile/modules/gnutls.in: Export them.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Tue Aug 13 14:55:19 2019 -0500
Fix typo in gnutls_db_set_cache_expiration() docs
21600 seconds is six hours.
Signed-off-by: Michael Catanzaro <mcatanzaro@gnome.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Aug 2 07:40:44 2019 +0200
crypto-api: add gnutls_aead_cipher_{en,de}cryptv2
This adds an in-place equivalent of gnutls_aead_cipher_encrypt() and
gnutls_aead_cipher_decrypt(), that works on data buffers.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 1 18:13:38 2019 +0200
crypto-api: use giovec_t iterator interface for aead_encryptv
This replaces the macros AUTH_UPDATE and ENCRYPT used in
gnutls_aead_cipher_encryptv() with the iov_iter interface.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 1 17:41:45 2019 +0200
iov: add iterator interface for giovec_t
This adds an iterator interface over giovec_t array, extracting a
fixed sized block.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 7 15:55:44 2019 +0200
nettle: prohibit deterministic ECDSA/DSA under FIPS except selftests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Aug 5 15:21:55 2019 +0200
nettle: enable deterministic ECDSA/DSA during FIPS selftests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jul 29 14:01:11 2019 +0200
pk: implement deterministic ECDSA/DSA
This exposes the deterministic ECDSA/DSA functionality through the
GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE flag.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Aug 7 14:37:00 2019 +0200
privkey_sign_prehashed: remove unused argument
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jul 29 15:10:51 2019 +0200
privkey_sign_raw_data: remove unnecessary local variable
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jul 29 14:00:30 2019 +0200
nettle: add functions for deterministic ECDSA/DSA
This adds functions to perform deterministic ECDSA/DSA, namely
_gnutls_{ecdsa,dsa}_compute_k(), which computes the k value according
to RFC 6979. The retrieved k value can be given to
nettle_{ecdsa,dsa}_sign() through a wrapper random function.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 2 21:57:40 2019 +0200
read_cpuid_vals: use __get_cpuid_count() only when available
This makes the functionality available on gcc 4.8.
Resolves: #812
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 2 22:16:31 2019 +0200
src/Makefile.am: fix detection of .bak files
This fixes detection in a way to work in builds outside the
source directory.
Resolves: #810
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 2 21:25:39 2019 +0200
configure: AS_HELP_STRING cannot print variables; don't try
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Karsten Ohme <k_o_@users.sourceforge.net>
Date: Tue Jun 18 12:17:14 2019 +0000
Notes about Ubuntu specific software versions not available.
Signed-off-by: Karsten Ohme <k_o_@users.sourceforge.net>
Author: Andreas Metzler <ametzler@debian.org>
Date: Mon Jul 29 17:47:42 2019 +0200
Ship inih/LICENSE.txt in release tarball
inih's license terms requires shipping a copy of the license when
redistributing the source.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Michael Catanzaro <mcatanzaro@igalia.com>
Date: Fri Jul 26 11:18:07 2019 -0500
Improve documentation of gnutls_record_send()
It's no longer required to retry this function with the same parameters
if you want to use gnutls_record_discard_queued().
Fixes #806
Signed-off-by: Michael Catanzaro <mcatanzaro@igalia.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 26 09:57:29 2019 +0200
certtool: default to yes on signing certificates for CAs
When asking the questions for CA certificate generation, default
to yes to signing certificates. This is because that's the most
common type of CAs generated and defaulting to yes eliminates
the need for restart on error.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 25 20:38:14 2019 +0200
bumped version for 3.6.9
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 22 12:43:50 2019 +0200
gnutls.h: mark AEAD ciphers as such in gnutls_cipher_algorithm_t description
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 22 10:00:51 2019 +0200
abi-check: correctly bail-out on errors
Added suppressions for _MAX enumerator values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Karsten Ohme <k_o_@users.sourceforge.net>
Date: Sat Jun 22 00:39:56 2019 +0200
Support for Generalname registeredID from RFC 5280 in subject alt name
Added test certificates (cert10.der) with registered ID
Updated Makefile for inclusion of test certificates
Updated SAN unknown test certificates (cert5.der)
Signed-off-by: Karsten Ohme <k_o_@users.sourceforge.net>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 21 10:18:35 2019 +0200
libgnutls.abignore: added comment linking to syntax
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 21 10:06:22 2019 +0200
NEWS: updated for upcoming release [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jul 16 14:41:50 2019 +0200
Fix documented params for gnutls_certificate_retrieve_function3()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 14 22:27:50 2019 +0200
Fixed alerts returned on TLS1.3 corner cases
This enables the tls-fuzzer tests 'test-tls13-certificate-verify.py'.
Resolves: #682
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jul 14 12:17:18 2019 +0300
nettle/backport: fix xts-backport guarding check
Check for nettle_xts_encrypt_message() function rather than just
xts_encrypt_message(). All functions in nettle are renamed to contain
`nettle_` prefix.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jul 11 21:37:08 2019 +0300
nettle/gost: support building with GOST-enabled Nettle
Nettle library starts to gain support for GOST algorithms. Support
building GnuTLS with GOST-enabled nettle library.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jun 30 08:23:41 2019 +0200
tests: remove unused destructive/p11-kit-load.sh
This file is replaced with tests/p11-kit-load.sh and
tests/pkcs11/list-tokens.c.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 19 17:21:16 2019 +0200
pkcs11: ignore login error when traversing tokens
If a token is a general access device, it is expected that login
attempt to that token returns error:
https://github.com/p11-glue/p11-kit/blob/master/trust/module.c#L852
On the other hand, _pkcs11_traverse_tokens treats the error as fatal
and stops iteration. This behavior prevents object search without
token specifier if such tokens are registered in the system.
Reported by Stanislav Zidek in
https://bugzilla.redhat.com/show_bug.cgi?id=1705478
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jul 8 16:54:56 2019 +0200
ext/session_ticket: avoid calling memcpy on overlapping memory areas
In _gnutls_encrypt_session_ticket, ticket.encrypted_state is allocated
from ticket_data->data, thus those memory areas may overlap. Using
memcpy here leads to undefined behavior.
Spotted by valgrind run on ppc64le.
==95231== Source and destination overlap in memcpy(0x47ce3a2, 0x47ce3a2, 160)
==95231== at 0x408A840: memcpy (vg_replace_strmem.c:1023)
==95231== by 0x424EE9F: pack_ticket (session_ticket.c:139)
==95231== by 0x424FA4F: _gnutls_encrypt_session_ticket (session_ticket.c:335)
==95231== by 0x4199E3B: generate_session_ticket (session_ticket.c:249)
==95231== by 0x419A333: _gnutls13_send_session_ticket (session_ticket.c:307)
==95231== by 0x40F8817: _gnutls13_handshake_server (handshake-tls13.c:511)
==95231== by 0x4110DEB: handshake_server (handshake.c:3331)
==95231== by 0x410C70B: gnutls_handshake (handshake.c:2727)
==95231== by 0x10009EBF: retry_handshake (serv.c:1306)
==95231== by 0x1000AB67: tcp_server (serv.c:1500)
==95231== by 0x10009E5B: main (serv.c:1297)
==95231==
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 9 10:06:47 2019 +0200
lib: mark infinite loops explicitly
There were few infinite loop constructions which were checking
for an always true condition. Make sure that this construction
is marked explicitly as while(1) to assist static analysers, or
reviewers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 9 09:56:24 2019 +0200
tests: improve coverage of CRQ related functions
That adds sanity check of crq-related functions that were not included
in the testsuite at all.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 8 19:33:50 2019 +0200
encode_ber_digest_info: added sanity check
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15665
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 3 21:04:23 2019 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 13 09:13:22 2019 +0200
testcompat-openssl: added interop test with DTLS 1.2
This tests AES-CBC ciphersuites in isolation, as they are
prioritized lower than AES-GCM. We want to test them explicitly
because they have different behavior under EtM.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 7 23:22:52 2019 +0200
tests: added sanity check for rfc7633 behavior
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 7 16:51:30 2019 +0200
tests: status-request-missing: renamed to rfc7633-missing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 7 16:39:53 2019 +0200
status-request-ext: run under all TLS versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 7 16:35:11 2019 +0200
tests: status-request: cleanup
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 7 16:34:21 2019 +0200
tests: status-request-missing: run for all TLS versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 29 21:02:11 2019 +0200
gnutls-cli-debug: test whether RSA key exchange is supported
Resolves: #449
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 28 21:08:32 2019 +0200
gnutls_session_get_desc: avoid printing a NULL value
When gnutls_session_set_premaster() is used (under openconnect),
it is possible that gnutls_session_get_desc will print a string like
this: "(DTLS1.2)-(ECDHE-(null))-(AES-256-GCM)"
With this change we ensure that we do not print null values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 21 15:49:26 2019 +0200
nettle/rnd-fips: add FIPS 140-2 continuous RNG test
This adds a continuous random number generator test as defined in FIPS
140-2 4.9.2, by iteratively fetching fixed sized block from the system
and comparing consecutive blocks.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 28 16:54:30 2019 +0300
lib: document gnutls_hmac_fast vs nonce relationship
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 28 00:27:01 2019 +0300
tests/gnutls_hmac_fast: run test for AES-UMAC-96/-128
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 25 00:12:29 2019 +0300
nettle: return true for gnutls_mac_exists(AES-CMAC*)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 28 16:28:58 2019 +0300
NEWS: add an entry for AES-GMAC algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 28 00:27:01 2019 +0300
tests/gnutls_hmac_fast: run test for AES-GMAC-128/-192/-256
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 28 16:19:15 2019 +0300
nettle/mac: fail mac calculation if nonce is required but not provided
Fail _wrap_nettle_mac_set_nonce() and _wrap_nettle_mac_fast() if MAC
requires nonce, but it was not supplied.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 28 00:27:04 2019 +0300
nettle/mac: in mac_fast call set_nonce after set_key
Calling set_nonce before set_key is plain incorrect. For GMAC key is not
initialized. For UMAC set_key will reset nonce to empty.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jun 24 20:29:31 2019 +0300
lib: add support for AES-GMAC
Add support for computing AES-GMAC using MAC API, as requested by Samba
for SMB3 support.
Resolves: #781
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 28 14:59:19 2019 +0200
tests: gnutls_x509_crt_list_import: verify that return code is as documented
That checks whether the return code of gnutls_x509_crt_list_import()
contains the number of loaded certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 28 08:20:31 2019 +0200
gnutls_x509_crt_list_import2: updated doc to reflect the actual return value options
Resolves: #794
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 29 15:28:28 2019 +0200
Align _gnutls_x86_cpuid_s as OPENSSL_ia32cap_P would be
We were not setting the third array member correctly, though
this didn't have any impact to previous implementations as they
did not rely on it. This also moves away from the custom implementation
of cpuid (which was limited), and we now rely on the compiler's
version.
This effectively enables support for SHA_NI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 26 14:43:19 2019 +0200
Updated asm files to latest version under cryptogams license
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jun 26 14:24:42 2019 +0300
NEWS: document gnutls_hash/hmac_copy addition
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 26 11:27:27 2019 +0200
gnutls_hash/hmac_copy: check its usability in all cases
During the test suite run we require that all supported
MAC and hash algorithms implement the copy function.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 26 11:20:25 2019 +0200
accelerated ciphers: implement hmac and hash copy
This implements the new API to all internal implementations.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jun 26 11:00:39 2019 +0300
lib: add support for gnutls_hash_copy()
Add gnutls_hash_copy() function for copying message digest context.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jun 24 17:42:10 2019 +0300
crypto-selftests: add test for gnutls_hmac_copy()
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jun 24 17:38:56 2019 +0300
api: add gnutls_hmac_copy() function
Add gnutls_hmac_copy() API to duplicate MAC handler state, which is
necessary for SMB3 support.
Resolves: #787
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 30 01:34:14 2016 +0300
Add MAC copying support to nettle backend
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 30 01:32:30 2016 +0300
Add MAC api to support copying of instances
GOST ciphersuites requires continuously computing MAC of all the
previously sent or received data. The easies way to support that is to
add support for copy function, that creates MAC instance with the same
internal state.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 29 10:36:24 2019 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 4 16:25:37 2019 +0200
config: added ability to override and mark algorithms as disabled
This allows the system administrator or the distributor to use
the gnutls configuration file to mark hashes, signature algorithms,
TLS versions, curves, groups, ciphers KX, and MAC algorithms as
insecure (the last four only in the context of a TLS session).
It also allows to set a minimum profile which the applications
cannot fall below.
The options intentionally do not allow marking algorithms as
secure so that the configuration file cannot be used as an attack
vector. This change also makes sure that unsupported and disabled protocols
during compile time (e.g., SSL3.0), do not get listed by gnutls-cli.
The configuration file feature can be disabled at compile time
with an empty --with-system-priority-file.
This patch it introduces the function gnutls_get_system_config_file()
allowing applications to check whether a configuration file
was used.
Resolves: #587
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 3 11:59:37 2019 +0200
Use inih to parse configuration file
This introduces the inih copylib, and makes our configuration
file parsing more flexible.
Relates: #587
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 19 21:38:32 2019 +0200
Marked the crypto backend registration APIs as deprecated
This is to warn for a future conversion of these APIs to a no-op.
Resolves: #789
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 19 14:20:26 2019 +0000
gnutls-cli-debug.sh: sanity check of %ALLOW_SMALL_RECORDS test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 7 11:39:53 2019 +0200
tlsfuzzer: test both with and without %ALLOW_SMALL_RECORDS
The option changes the behavior of the server, it would make sense to
check both with and without %ALLOW_SMALL_RECORDS.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 7 15:10:36 2019 +0200
tlsfuzzer: use fixed HTTP response for record_size_limit tests
Previously those tests assumed varying sizes of connection information
gnutls-serv sends. This is too brittle and if the default algorithm
has changed the tests need to be updated.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 7 14:54:58 2019 +0200
gnutls-serv: add --httpdata option to respond with fixed sized data
By default, the gnutls-server --http responds with the connection
information. While this is useful for manual testing, fixed content
would be more desirable for automated testing.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 7 11:37:37 2019 +0200
gnutls-cli-debug: check if %ALLOW_SMALL_RECORDS is required
This adds a new test against the server to check if
%ALLOW_SMALL_RECORDS is required to continue communicating with the
server. The test is in two parts: one to check if the server accepts
records with the default size (512 bytes) and the other is to check if
%ALLOW_SMALL_RECORDS helps if the previuos test fails.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 19 14:36:31 2019 +0200
gnutls-serv: add --recordsize option
This adds a means to set maximum record size to receive. If the size
is less than our default (< 512), --priority with %ALLOW_SMALL_RECORDS
also needs to be specified.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Karsten Ohme <k_o_@users.sourceforge.net>
Date: Wed Jun 19 07:51:16 2019 +0200
Corrected call for updating ABI files
Signed-off-by: Karsten Ohme <k_o_@users.sourceforge.net>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 16 14:08:54 2019 +0200
doc: updated p11-kit links [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Jun 15 11:38:46 2019 +0200
CONTRIBUTING.md: Fix syntax error [ci skip]
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Jun 12 11:37:39 2019 +0200
guile: Add support for post-handshake reauthentication.
* guile/modules/gnutls/build/enums.scm (%connection-flag-enum): New
variable.
(%gnutls-enums): Add it.
* guile/modules/gnutls.in: Export 'reauthenticate',
'connection-flag->string', and all the 'connection-flag/' bindings.
* guile/src/core.c (scm_gnutls_make_session): Add rest arguments FLAGS
and honor it.
(scm_gnutls_reauthenticate): New function.
* guile/tests/reauth.scm: New file.
* guile/Makefile.am (TESTS): Add it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Jun 12 11:32:19 2019 +0200
guile: Loop or poll upon GNUTLS_E_AGAIN and GNUTLS_E_INTERRUPTED.
* guile/src/core.c (do_fill_port) [USING_GUILE_BEFORE_2_2]: Loop while
'gnutls_record_recv' returns GNUTLS_E_AGAIN or GNUTLS_E_INTERRUPTED.
(read_from_session_record_port) [!USING_GUILE_BEFORE_2_2]: Likewise, and
return -1 if SCM_GNUTLS_SESSION_TRANSPORT_IS_FD and we got GNUTLS_E_AGAIN.
(session_record_port_fd) [!USING_GUILE_BEFORE_2_2]: New function.
(scm_init_gnutls_session_record_port_type) [!USING_GUILE_BEFORE_2_2]:
Call 'scm_set_port_read_wait_fd'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Jun 7 11:06:18 2019 +0200
guile: Add bindings for 'gnutls_error_is_fatal'.
* guile/src/errors.c (scm_gnutls_fatal_error_p): New function.
* guile/modules/gnutls.in: Export 'fatal-error?'.
* guile/tests/errors.scm: test 'fatal-error?'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Jun 7 10:34:42 2019 +0200
guile: Update list of error values.
* guile/modules/gnutls/build/enums.scm (%error-enum): Update list of
error constants.
* guile/modules/gnutls.in (gnutls): Adjust exports accordingly.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 12 14:02:05 2019 +0200
fips: run selftests over overridden AES-CBC algorithm
Previously, we only tested nettle's AES-CBC in
_gnutls_fips_perform_self_checks1(), which is called before the
implementation is overridden. This adds an AES-CBC self-test in
_gnutls_fips_perform_self_checks2() so it can test the actual
implementation.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Jun 6 18:30:28 2019 +0200
guile: Deprecate OpenPGP bindings.
* guile/modules/gnutls.in (define-deprecated): New macro.
Use it for all the *openpgp* bindings.
* guile/src/core.c: Rename *openpgp* bindings with a '%' prefix.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 10 22:12:09 2019 +0200
gnutls_privkey_sign_hash2: accept the GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA flag
Previously this flag was ignored, although documented not to.
This patch also enables the tests sign-verify-newapi and sign-verify-data-newapi
which were supposed to test this interface, but were never enabled.
This was caught by Andreas Metzler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 30 13:49:22 2019 +0200
tests: removed debugging output from GETPORT
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 8 19:19:03 2019 +0200
.gitlab-ci.yml: include top log files in all build failures [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Jun 7 10:16:02 2019 +0200
guile: Remove unbounded uses of 'alloca'.
* guile/src/core.c (ALLOCA_MAX_SIZE, FAST_ALLOC): New macros.
(set_certificate_file):
(scm_gnutls_set_certificate_credentials_x509_key_files_x)
(scm_gnutls_set_srp_server_credentials_files_x)
(scm_gnutls_set_srp_client_credentials_x)
(scm_gnutls_srp_base64_encode, scm_gnutls_srp_base64_decode)
(scm_gnutls_set_psk_server_credentials_file_x)
(scm_gnutls_pkcs8_import_x509_private_key)
(scm_gnutls_x509_certificate_matches_hostname_p)
(scm_gnutls_import_openpgp_private_key): Use 'FAST_ALLOC' instead of
'alloca'.
* guile/src/utils.c: Remove unneeded <alloca.h> include.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Jun 7 10:11:12 2019 +0200
guile: Always provide 'scm_gc_malloc_pointerless'.
* guile/src/core.c (scm_gc_malloc_pointerless)
[!HAVE_SCM_GC_MALLOC_POINTERLESS]: New macro.
(make_session_record_port): Remove #ifdef HAVE_SCM_GC_MALLOC_POINTERLESS.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 5 16:48:39 2019 +0200
tls13/key_update: ignore multiple key updates instead of error
This fixes the multiple KeyUpdate messages handling in commit
65e2aa80d114d4bef095d129c2eda475e473244a, where illegal_parameter is
sent even if the limit doesn't exceed.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jun 3 21:53:05 2019 +0200
Prefix gcc attributes with 'attr_'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 3 13:26:18 2019 +0200
gnutls_prf_early: corrected Since version [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Jun 2 12:42:16 2019 +0200
Fix warn_unused_result for clang < 4
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 1 16:18:50 2019 +0200
.gitlab-ci.yml: switched fedora to latest version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 30 14:42:52 2019 +0200
Makefile.am: do not create files when it shouldn't
If a pdf or html file is not distributed, previously `make dist`
would create a file called '*.pdf' which did not make sense. This
addresses this problem.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 25 21:17:27 2019 +0200
Do not regenerate autogen files if --enable-local-libopts is given
This addresses issue on installed systems which have autogen but
use --enable-local-libopts. In these systems if the installed autogen
would not match the local libopts library version compilation would
fail because the auto-generated files depend on the corresponding to
autogen version libopts internals.
Resolves: #772
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 27 15:16:52 2019 +0200
Remove malloc from gnutls_srp_set_server_fake_salt_seed()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon May 20 12:49:51 2019 +0200
gnutls_session_set_data(): Check for allocation error
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon May 20 12:46:54 2019 +0200
_gnutls_set_[str]datum: Cleanup, add function attributes
_gnutls_set_datum(): Do not change output 'dat' on error
_gnutls_set_strdatum: Likewise, cleanup code
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue May 21 11:17:39 2019 +0200
Add nonnull, nonnull_all and warn_unusd_result attributes in lib/gnutls_int.h
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 28 07:05:46 2019 +0200
doc: do not distribute pdf files
It compicates the 'make dist' phase and does not add much
value as the files are available from the web site.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 28 06:45:56 2019 +0200
released 3.6.8
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 27 22:34:42 2019 +0200
minor updates in the latex version of the manual [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 27 21:29:44 2019 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 26 21:35:19 2019 +0200
RELEASES.md: document the releases policy [ci skip]
This adds a file to document the policy on releases based on
the discussions taken place in the last face to face meeting.
https://gitlab.com/gnutls/gnutls/wikis/face2face-meeting-fosdem2019
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 24 12:59:13 2019 +0200
.gitlab-ci.yml: ensure that the LIBS variable is empty after a configure run
We do not use this variable as it is global and applies to all of
tests, applications and library, and when it is set it is usually due to
bugs in configure.ac.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 21:20:49 2019 +0200
Do not add libraries in the global LIBS in configure
This ensures that libraries are linked with the programs
requiring them.
Resolves: #735
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 11:41:45 2019 +0200
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 24 05:46:18 2019 +0200
tests: prf-early fixes the global version
This allows having fixed data in the hello message involved.
That required exposing the variable holding the global gnutls
version number for testing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 21:32:58 2019 +0200
certtool: corrected typo in manual [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 21:11:58 2019 +0200
Revert "bumped version"
In order to make the CI functional again. The version number update
seems to conflict with tests/tls13/prf-early.sh
This reverts commit d34d93b8713cf10235ce7016fd69b6932b0752c0.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 15:29:23 2019 +0200
tests: prf-early.sh: use the static flag of datefudge
This eliminates unexpected failures of the test in slower systems.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 15:41:19 2019 +0200
tlsfuzzer: reverted accidental move to incorrect version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 11:44:12 2019 +0200
NEWS: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 23 11:41:45 2019 +0200
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Wed May 22 15:08:45 2019 -0400
Pass down Q for FFDHE in al pre TLS1.3 as well
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Tue May 21 09:40:01 2019 -0400
Check Q for FFDHE primes in prime-check
These are mersenne primes so q = (p - 1) / 2
We check that p = (q * 2) + 1
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Mon May 20 17:13:12 2019 -0400
Always pass in and check Q in TLS 1.3
In FIPS mode do an extra check that we did have Q, but it is always
passed into the tls13 derive function from the callers.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri May 17 14:05:37 2019 -0400
Add plumbing to handle Q parameter in DH exchanges
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Tue May 14 18:38:33 2019 -0400
Add test to ensure ECDH exchange behaves correctly
This test ensures that public keys are properly tested for validity
before a ECDH exchange is computed.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri May 10 14:49:05 2019 -0400
Add test to ensure DH exchange behaves correctly
This test ensures that public keys are properly tested for validity
before a DH exchange is computed.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri May 3 12:32:56 2019 -0400
Add Full Public Key Check for DH
This is for NIST SP800-56A requirements and FIPS CAVS testing.
GnuTLS never passes in a non-empty Q for normal operations, but tests will
and if Q is passed in it needs to be checked.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Wed May 1 10:57:51 2019 -0400
Fix Copy&Paste error
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 22 10:39:27 2019 +0200
tls13/key_update: increase handling limit from 1 to 8
The limit was too small when testing the capability of handling
multiple KeyUpdate messages with tlsfuzzer.
This requires a change in the rate limit logic, as previously it
doesn't count the KeyUpdate messages despite the name of
KEY_UPDATES_PER_SEC.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 22 11:51:57 2019 +0200
tlsfuzzer: use %ALLOW_SMALL_RECORDS for testing
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed May 22 11:16:03 2019 +0200
priority: add new option to allow small records (>= 64)
There is a mismatch in the lower limit of record sizes in RFC
8449 (64) and our default (512). If the server advertises a smaller
limit than our default, the client has no way to keep communicating
with the server.
This patch adds a new priority string option %ALLOW_SMALL_RECORDS to
set the limit to 64.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue May 21 08:32:21 2019 +0200
record_add_to_buffers: check if there is an incomplete handshake header
The function checks if a Handshake message is interleaved with an
Application Data, but the check was insuffient because it assumed that
a complete header is received in the buffer.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri May 17 11:51:00 2019 +0200
algorithms: eliminate the FFDHE alert desc requirement
This implements the errata for RFC 7919 eliminating the requirement to
reply with an insufficient_security alert when we have negotiated an
FFDHE group, but cannot find common ciphersuite:
https://www.rfc-editor.org/errata/eid4908
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Aleksei Nikiforov <darktemplar@basealt.ru>
Date: Fri May 17 14:44:06 2019 +0300
Mark second argument of function gnutls_x509_crt_equals2 as const
This will allow using this function with certificates
returned by function gnutls_certificate_get_peers
without casts dropping const qualifier or
making temporary copies out of retrieved data.
Signed-off-by: Aleksei Nikiforov <darktemplar@basealt.ru>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 21 08:22:08 2019 +0200
tests: verify functionality of GNUTLS_VERIFY_DISABLE_CA_SIGN flag
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Kenneth J. Miller <ken@miller.ec>
Date: Mon Apr 15 17:56:13 2019 +0200
pubkey: remove deprecated TLS1_RSA flag check
The gnutls_certificate_verify_flags comparisons against
OLD_PUBKEY_VERIFY_FLAG_TLS1_RSA conflicts with
GNUTLS_VERIFY_DISABLE_CA_SIGN and no longer seems to be used in calls to
both gnutls_pubkey_verify_data2 and gnutls_pubkey_verify_hash2 as it
seems to have been fully replaced by GNUTLS_VERIFY_USE_TLS1_RSA.
Resolves: #754
Signed-off-by: Kenneth J. Miller <ken@miller.ec>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 21 05:54:35 2019 +0200
x509.h: corrected typo in newly introduced definition
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 20 21:34:30 2019 +0200
x509.h: removed stray '%'
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 20 16:13:12 2019 +0200
certtool: CA certificates will contain the digital signature key usage flag
This change ensures that all certificates will contain the digital
signature key usage flag if that's specified in the template.
Resolves: #767
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 20 14:40:31 2019 +0200
Added profile to correspond to the future security parameter
It seems that the FUTURE security level parameter was added
without a corresponding verification profile. This patch address
the issue by introducing it.
Resolves: #770
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 20 15:47:41 2019 +0200
tests: added unit tests of utc and generalTime convertor
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 29 19:03:55 2019 +0200
server auth: disable TLS 1.3 if no signature algorithm is usable
This is a server side counterpart of
005a4d04145707daad9588acedfdb5f6cd97c80c.
Instead of signalling an error when no algorithm is usable in TLS 1.3,
it downgrades the session to TLS 1.2 with a warning.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 18 21:13:10 2019 +0200
algorithms/secparams.c: fixed indentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 20 14:34:56 2019 +0200
gnutls-serv: GERR macro will output in stderr
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon May 20 11:10:11 2019 +0200
Apply STD3 ASCII rules in gnutls_idna_map()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 10 11:42:46 2019 +0200
Fix _Thread_local for C99 installed in C11 environments
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 10 11:27:32 2019 +0200
Remove redundant typedef of Tspi_Context_GetTpmObject_func()
Gcc 4.4 errors out on this.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed May 15 09:47:24 2019 +0200
Update gnulib for gcc-9 manywarnings
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 14 21:39:46 2019 +0200
Check all memory allocation in examples and certtool
Resolves: #739
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 25 17:08:43 2019 +0200
ext/record_size_limit: distinguish sending and receiving limits
The previous behavior was that both sending and receiving limits are
negotiated to be the same value. It was problematic when:
- client sends a record_size_limit with a large value in CH
- server sends a record_size_limit with a smaller value in EE
- client updates the limit for both sending and receiving, upon
receiving EE
- server sends a Certificate message larger than the limit
With this patch, each peer maintains the sending / receiving limits
separately so not to confuse with the contradicting settings.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue May 7 14:49:05 2019 +0300
lib/nettle: fix carry flag in Streebog code
Fix carry flag being calculated incorrectly in Streebog code.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 10 13:31:23 2019 +0200
Fix endless looping GETPORT in tests/scripts/common.sh
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 10 06:30:12 2019 +0200
_gnutls_srp_entry_free: follow consistent behavior in freeing data
_gnutls_srp_entry_free would previously not free any parameters that
were known to gnutls to account for documented behavior of
gnutls_srp_set_server_credentials_function(). This was not updated
when the newly added 8192 parameter was added to the library.
This introduces a safety check for generator parameters, even though
in practice they are the same pointer.
Resolves: #761
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 8 22:08:18 2019 +0200
dane.h: added multiple inclusion header guard
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 8 21:52:54 2019 +0200
tools: suppress ctime() error from static analysers
This function is not thread safe and can be easily misused
even in single threaded scenarios (one such minor bug fixed).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 8 22:05:10 2019 +0200
accelerated: added header guards
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 11:11:23 2019 +0200
Add or clean header guards in lib/includes/gnutls/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed May 1 20:33:28 2019 +0200
Add or clean header guards in lib/nettle
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 12:22:59 2019 +0200
Add or clean header guards in tests/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 12:19:01 2019 +0200
Add or clean header guards in src/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 12:11:13 2019 +0200
Add or clean header guards in lib/x509/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 12:08:27 2019 +0200
Add or clean header guards in lib/tls13/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 12:05:32 2019 +0200
Add or clean header guards in lib/extras/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 12:03:07 2019 +0200
Add or clean header guards in lib/ext/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Apr 28 11:55:37 2019 +0200
Add or clean header guards in lib/auth/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Mar 14 21:21:50 2019 +0100
Add or clean header guards in lib/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Apr 24 21:21:12 2019 +0200
Add 'Header guards' section in CONTRIBUTING.md
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daniel Schaefer <git@danielschaefer.me>
Date: Sun May 5 14:35:02 2019 +0200
guile: Properly format guile configure options
Without the square brackets autoconf turns hyphens into underscores,
which is not what we want or what the help says.
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 3 19:10:03 2019 +0200
gnutls_sign_list: document the non-thread-safeness
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Apr 30 14:42:51 2019 +0200
crypto: add private API to retrieve internal IV
For FIPS validation purposes, this adds a new function
_gnutls_cipher_get_iv() that exposes internal IV after encryption and
decryption. The function is not generally useful because the IV value
can be easily calculated from the initial IV and the subsequent
ciphertext but for FIPS validation purposes.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 29 13:15:33 2019 +0200
abi-check: supply --hd2 to abi-check-latest target
To suppress changes in internal structures.
Suggested by Nikos Mavrogiannopoulos.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 20 18:46:23 2019 +0200
certtool: refuse to accept an incompatible key type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 15 14:32:55 2019 +0200
certtool: generate RSA-PSS certificates from RSA keys
When generating certificates it was not possible to generate
an RSA-PSS certificate from an RSA key (common scenario). This
fixes the certificate generation to include such a method.
Ironically there was a test for this scenario but the test
was limited to checking that the combination of certtool parameters
succeeded; modified the test to check the textual expression of
the certificate for the RSA-PSS indicators.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 19 22:04:24 2019 +0200
tls13/session_ticket: use the same ticket_age_add regardless of endianness
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 19 16:59:31 2019 +0200
tls13/session_ticket: avoid UB regarding 64-bit time encoding
On 32-bit platform, struct timespec.tv_sec can be signed 32-bit and
thus right shifting 32 could be an undefined behavior.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Apr 19 08:12:56 2019 +0200
tests: make datefudge check robuster
When checking datefudge availability under cross-compiling environment
with a binfmt wrapper, it is not sufficient to check against the host
executable. This instead uses a test executable compiled for the
target architecture.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 11 14:35:32 2019 +0200
serv, cli: add --keymatexport option
This adds --keymatexport and --keymatexportsize options to both
gnutls-serv and gnutls-cli. Those would be useful for testing
interoperability with other implementations.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 11 12:11:00 2019 +0200
prf: add function to retrieve early keying material
This adds a new function gnutls_prf_early, which shall be called in a
handshake hook waiting for GNUTLS_HANDSHAKE_CLIENT_HELLO. The test
needs to be run in a datefudge wrapper as the early secrets depend on
the current time (through PSK).
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 11 12:07:00 2019 +0200
handshake: generate early exporter secret
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 11 12:00:46 2019 +0200
handshake: move early secrets calculation to pre_shared_key
TLS 1.3 Early Secret and the derived keys are calculated upon a PSK
being selected, thus the code fits better in ext/pre_shared_key.c.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 11 12:10:00 2019 +0200
tests/tls13/prf: check if the exported material matches on server
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 11 11:23:26 2019 +0200
prf: centrally define "exporter" label in handshake.h
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Thu Apr 18 18:43:30 2019 +0200
doc: Add documentation for GNUTLS_CERT_IGNORE
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Apr 16 14:27:10 2019 +0200
p11tool: copy vendor query attributes when listing privkeys
When listing private keys on a specified token, "pin-value" is
ignored and the tool looks for GNUTLS_PIN, because it internally
strips out vendor query attributes from the original URL.
This also replaces the global uses of GNUTLS_PIN envvar in
testpkcs11.sh to check the case where the envvar is not in effect.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 7 13:22:21 2019 +0200
abi-check: simplify ABI comparison using libabigail tools
These have output ABI format compatibility and that means we can
take snapshots to test ABI against. We also hard-code explicitly
the SONAME version to ensure no accidental SONAME bumps happen.
This patch also moves symbols.last in the devel/ subdirectory
and no internal files are shipped.
Relates: #292
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 7 18:29:02 2019 +0200
.gitignore: ignore tests/libpkcs11mock2.la
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 7 14:30:30 2019 +0200
gnutls.h: re-define GNUTLS_CRT_RAWPK
This was available before 3.6.4, and was incorrectly removed.
It was found using libabigail tools.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Sun Apr 14 16:53:52 2019 +0200
Extend test cert to 2049-05-27
instead of expiring in 2024-02-29
This update did not trigger y2038 bugs on 32-bit systems.
Without this patch, one test fails after 2024:
doit:124: rsa pss key: gnutls_x509_crt_verify_data2 |
FAIL x509sign-verify (exit status: 1)
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Apr 14 15:25:31 2019 +0000
Fix link error with gcc-9
Use LDADD instead of LDFLAGS to link test cipher-openssl-compat against
libcrypto. This fixes a build error with gcc9 which passes the linker
option --as-needed by default.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 14 16:15:23 2019 +0200
doc: mark TLS1.2 functions as such [ci skip]
gnutls_cipher_suite_get_name and gnutls_session_get_master_secret
are marked as TLS1.2 or earlier-only as they cannot be used with
TLS 1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 13 08:37:50 2019 +0200
gnutlsxx.h: removed fixme comments [ci skip]
They served no purpose.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 13 08:33:57 2019 +0200
gnutls-cli: renamed global variable name
That is because the same variable name is used by local
variables as well.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Apr 11 09:46:21 2019 +0200
Fix WIN32 custom push/pull functions
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Reported-by: J. Ali Harlow (@j_ali on Gitlab.com)
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Apr 9 18:20:15 2019 +0200
tests: fix race condition in tls13/post-handshake-with-cert-pkcs11
The test had a strange setup of server/client processes: the server
runs in a child process and the client runs in a parent process. The
intention behind this was to detect softhsm availability in the parent
process and exit with 77 if missing. However, there was a potential
race when the server exits and proceeds to the next call of start().
This fixes the process setup and moves the softhsm detection at the
program startup.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Apr 9 19:01:46 2019 +0300
build: rename guile variables to match upstream names
Reduce confusion between the upstream terms and the gnutls terms.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed Apr 3 18:42:26 2019 +0300
build: allow override guile system location
guile has three settings acquired from system:
* GUILE_SITE
* GUILE_SITE_CCACHE
* GUILE_EXTENSION
The <guile-2.2 m4 macro exposed only GUILE_SITE while build tried to guess the
other variables based on the $libdir of the gnutls which may be different.
The >=guile-2.2 m4 macro provides all settings for build to use as default,
while allowing to override each.
Resolves: #748
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Marius Bakke <mbakke@fastmail.com>
Date: Tue Apr 9 14:17:09 2019 +0200
Makefile.am: Don't assume autoopts-config returns a single dash.
On distributions such as Nix or Guix, `autoopts-config libsrc` may
return something along the lines of
"/gnu/store/...-autogen-5.18.16/share/autogen/libopts-42.1.17.tar.gz".
* Makefile.am (libopts-check): Print only the last field from
autoopts-config output.
Signed-off-by: Marius Bakke <mbakke@fastmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Apr 9 12:19:00 2019 +0200
Pass CI commit check if branches are 'even'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon Apr 8 20:34:24 2019 +0300
tests: cert-tests: crl: cleanup files
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Apr 9 07:59:53 2019 +0300
ci: refresh the cache due to failures in debian
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 7 13:03:20 2019 +0200
CONTRIBUTING.md: document unit testing method of internal functions [ci skip]
Resolves: #749
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 4 16:51:28 2019 +0200
tests: add post-handshake auth test using PKCS#11 token
This adds a test that exercise the client's auth rejection logic,
using the RSA-PSS disabled PKCS #11 token.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 4 16:40:11 2019 +0200
tests: add mock PKCS#11 module disabling RSA-PSS
This adds libpkcs11mock2.so, which wraps SoftHSM but filters out the
use of the CKM_RSA_PKCS_PSS mechanism. That way we can simulate the
situation where the certificate is RSA while the private key cannot be
used for RSA-PSS.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 6 08:34:43 2019 +0200
nettle: include config.h before checking for definitions
This makes sure that we don't include the internal backport
if compiled with a version of nettle that includes that code.
We also exclude nettle/backport from the static analyzer's list
as it contains files outside our control (from nettle project).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Date: Thu Mar 28 23:04:13 2019 +0100
gnutls_memset(): calling explicit_bzero() is enough to zero-fill a buffer
If we use explicit_bzero() to zero-fill a buffer in gnutls_memset() we
don't need to zero it again via a volatile trick later in this function.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Author: Elta Koepp <elta_koepp@gmail.com>
Date: Fri Apr 5 10:04:12 2019 -0400
[OSCP] Fix : null pointer resp
Signed-off-by: Elta Koepp <elta_koepp@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Apr 4 17:01:24 2019 +0200
cert auth: reject auth if no signature algorithm is usable in TLS 1.3
Previously, when there is no overlap between usable signature
algorithms and the "signature_algorithms" extension in Certificate
Request, the client failed in sending Certificate Verify, followed by
a connection close. In TLS 1.3, it is possible to keep the connection
but reject the authentication by not sending Certificate Verify.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 1 14:14:12 2019 +0200
handshake: remove unnecessary HSK_CRT_SENT flag
Previously, while the flag HSK_CRT_SENT was checked in
_gnutls13_send_certificate_verify, the flag was never set anywhere.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 3 11:59:37 2019 +0200
.gitlab-ci.yml: do not run commit-check on master branch
That is, because there are no diffs to check.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri Mar 29 14:01:14 2019 -0400
Fix check_if_signed
Fix the target branch we check against by adding upstream as remote.
Drop the use of set -e as this causes the shell to immediately exit on
errors instead of allowing the code to check the failure and report what
it faled about.
Also print which commits are being checked and what information was found
so that a CI failure can be better diagnosed.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 30 05:37:02 2019 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Simo Sorce <simo@redhat.com>
Date: Fri Oct 19 15:53:27 2018 -0400
Vendor in XTS functionality from Nettle
If nettle's XTS is not available, use a vendored in version from master.
This is necessary as long as we need to link against 3.4 for ABI
compatibility reasons.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 29 06:08:06 2019 +0100
fuzz: improvements in gnutls_x509_verify_fuzzer [ci skip]
Added a larger set of corpus (generated with afl-fuzz), and made
sure that the fuzzer application crashes if verification succeeds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Mar 28 10:41:13 2019 +0100
Let check_if_signed fail if git fails
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Elta Koepp <alexi_2019@protonmail.com>
Date: Wed Mar 27 13:38:50 2019 +0000
Update ocsptool-common.c
Author: Elta Koepp <alexi_2019@protonmail.com>
Date: Wed Mar 27 12:55:55 2019 +0000
Detect malloc failure.
malloc(data.size + 1) maybe returns NULL on failure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 27 07:21:31 2019 +0100
released 3.6.7
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 25 16:06:39 2019 +0100
handshake: add missing initialization of local variable
Resolves: #704
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 25 15:47:51 2019 +0100
fuzz: added fuzzer for certificate verification
This also adds a reproducer for CVE-2019-3829.
Resolves: #694
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 26 16:11:42 2019 +0100
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Tue Mar 26 11:05:06 2019 +0100
fips140: Perform SHA-3 self tests
It is required to perform the self tests to validate SHA-3
implementation.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 24 08:37:05 2019 +0100
tools: removed unused code
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Ke Zhao <kzhao@redhat.com>
Date: Thu Mar 21 11:27:24 2019 -0400
gnutls-cli: Fix output with option "--logfile"
The X.509 connection would still print informational message to the
stdout by default. Move that output to logfile and add x509 functionality
test in the test suite.
Signed-off-by: Ke Zhao <kzhao@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sat Mar 23 00:38:17 2019 +0200
configure.ac: remove --with-guile-site-dir
The hack of distcheck is not known and should not be the default as the
GUILE_SITE_DIR macro is the default expected behavior.
There is little value in specifying any other location of the site-dir as it
is out of the guile configuration so best to remove.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 20 11:40:15 2019 +0100
_x509_en/decode_provable_seed: clarified purpose of functions [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 1 11:15:47 2019 +0100
handshake: increase the default number of tickets we send to 2
This makes it easier for clients which perform multiple connections
to the server to use the tickets sent by a default server. That's
because 2 tickets allow for 2 new connections (if one is using each
ticket once as recommended), which in turn lead to 4 new and so on.
Resolves: #596
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 23 21:02:56 2019 +0100
Improved estimation of wait in gnutls_session_get_data2
Previously we would wait an arbitrary value of 50ms for the
server to send session tickets. This change makes the client
wait for the estimated single trip time + 60 ms for the server
to calculate the session tickets. This improves the chance
to obtain tickets from internet servers during the call of
gnutls_session_get_data2().
Resolves: #706
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 16 19:59:07 2019 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Ke Zhao <kzhao@redhat.com>
Date: Wed Mar 6 13:23:24 2019 -0500
gnutls-cli: Add option "--logfile" to redirect information message output
First, add an option "--logfile" so user could choose a specific file to
store all the informational messages. In some cases, informational
messages may cause unexpected result if the output is standard output.
With this option, user could redirect these messages to a specific
file. This will be helpful in testing and tracking.
Second, replace printf() function with log_msg() function
This log_msg() function is used when "--logfile" is enabled.
Third, add a functionality test for "--logfile" option
Add a test script to test if "--logfile" option works as it should be.
Signed-off-by: Ke Zhao <kzhao@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 15 17:00:17 2019 +0100
Removed all FIXME comments in code [ci skip]
We expand informational comments on limitations, but with removing
FIXME (keyword didn't help fixing these), and remove completely unhelpful
comments, obsolete ones, or comments about ideas.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 13 15:14:37 2019 +0100
pkcs11: security officer login implies writable session
According to the PKCS#11 v2.30, 6.7.1 there are no read-only Security Officer
sessions.
Resolves: #721
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed Mar 13 14:54:28 2019 +0000
inet_ntop is available in Windows but not via arpa/inet.h
It's found in ws2tcpip.h which is already included in gnutls_int.h
arpa/inet.h doesn't exist on Windows, so add arpa_inet to the list of headers
replaced by gnulib if not found.
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Mar 7 10:16:46 2019 +0100
Update the GNU Free Documentation License (FDL)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Feb 25 10:36:36 2019 +0100
Fix URL of ABI compliance checker
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Feb 25 10:32:24 2019 +0100
Fix URLs of p11-kit
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 5 17:00:41 2019 +0100
Use https:// in lib/, src/, and m4/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 5 16:56:08 2019 +0100
Use https:// for arbitrary files #1
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 5 16:44:37 2019 +0100
Use https:// for www.iana.org
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 5 16:25:25 2019 +0100
Use https:// for csrc.nist.gov
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 5 16:22:43 2019 +0100
Use https:// for www.gnu.org and www.example.com
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 13 09:03:39 2019 +0100
.gitlab-ci.yml: updated cache key name
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 10 13:59:32 2019 +0100
tests: verify that 'certtool -i --outder' does not output text
A common regression in the past, was certtool outputting text while
writing raw DER data. Ensure that the certificate-info option does not
regress.
Resolves: #627
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 9 21:50:46 2019 +0100
SECURITY.md: updated to reflect the current practice [ci skip]
This change updates the SECURITY guidelines to reflect the current
practice (no special security releases), and thus refer directly
to the upcoming or following release. Furthermore, it removes
any mention of absolute time, as the release cadence is already
fixed to bi-monthly.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 9 21:14:39 2019 +0100
doc: removed cyclo subdir
This directory had a makefile which was intended to calculate the cyclomatic
complexity, however that was not functional, and not related with gnutls'
documentation.
Resolves: #727
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 8 20:17:49 2019 +0100
NEWS: fix NEWS entries [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Mar 4 17:17:47 2019 +0100
tls13/certificate: utilize "certificate_required" alert
This could make errors more distinguishable when the client sends no
certificates or a bad certificate.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Feb 27 18:38:09 2019 +0100
alert: recognize "certificate_required"
This may be sent if the server received an empty Certificate message.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Fri Jan 18 13:17:46 2019 +0100
.gitlab-ci.yml: Test FIPS HMAC self-test
This enables the integrity self-tests in FIPS140 test build.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Fri Jan 11 11:23:21 2019 +0100
fips140: Ignore newlines read at the end of HMAC file
This makes the integrity check to ignore newlines appended after the
HMAC value.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Date: Thu Jan 10 14:04:02 2019 +0100
fips140: Fix the names of files used in integrity checks
The names of the libraries haven't been updated when the soname version
were bumped.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Author: Bas van Schaik <gitlab.com@s.traiectum.net>
Date: Thu Feb 28 22:15:26 2019 +0000
Create .lgtm.yml for LGTM.com C/C++ analysis
Signed-off-by: Bas van Schaik <gitlab.com@s.traiectum.net>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 25 14:41:24 2019 +0100
.gitlab-ci.yml: added thread sanitizer run
This checks for unsafe uses of variables in our included threaded
tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 25 14:35:16 2019 +0100
Protected _gnutls_epoch_get from _gnutls_epoch_gc on false start
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 25 15:11:19 2019 +0100
gnutls_record_send2: try to ensure integrity of operations on false and early start
This adds a double check in the sanity check of gnutls_record_send2()
for the initial_negotiation_completed value, making sure that the
check will be successful even in parallel operation of send/recv.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 24 21:13:27 2019 +0100
mini-dtls-pthread: renamed and fixed several shortcomings
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 24 00:19:21 2019 +0100
Make false start and early start multi-thread recv/send safe
An application that is sending and receiving from different threads
after handshake is complete cannot take advantage of false start because
gnutls_record_send2() detects operations during the handshake process
as invalid.
Because in early start and false start the remaining handshake process needs
only to receive data, and the sending side is already set-up, this error
detection is bogus. With this patch we remove it.
Resolves: #713
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 23 18:57:09 2019 +0100
doc: added more information on operation under multiple threads
Relates: #713
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Mar 1 20:13:38 2019 +0100
Update ./bootstrap from latest gnulib
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 27 10:01:47 2019 +0100
Clarifications on AEAD ciphers
Relates: #716
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 27 09:29:04 2019 +0100
Improve documentation for gnutls_cipher_get_iv_size
This clarifies what is returned and what is to be expected on algorithms
with variable IV sizes.
Resolves: #717
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 26 15:42:01 2019 +0100
pkcs11: clarify GNUTLS_PKCS11_TOKEN_MODNAME presence [ci skip]
Resolves: #633
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 26 15:21:48 2019 +0100
cppcheck: suppress warning on nettle code [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Feb 23 18:43:49 2019 +0100
gnutls-cli: fix --benchmark-ciphers type overflow
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 23 21:19:06 2019 +0100
_gnutls_recv_handshake: added explicit sanity checks
Although, this function acts on the message provided as expected and thus
it should never call a message parsing function on unexpected
messages, we make a more explicit sanity check. This unifies the
sanity checks existing within the involved functions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 12 15:20:23 2019 +0100
gnutls_x509_crt_init: Fix dereference of NULL pointer
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 12 15:14:07 2019 +0100
Remove redundant resets of variables after free()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 12 15:09:11 2019 +0100
Automatically NULLify after gnutls_free()
This method prevents direct use-after-free and
double-free issues.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Feb 19 13:56:35 2019 +0100
tlsfuzzer: update to the latest upstream for downgrade protection tests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Feb 9 10:26:56 2019 +0100
ext/supported_versions: regenerate server random
This adds a call to _gnutls_gen_server_random() in handling the
"supported_versions" extension, so that the TLS 1.3 downgrade sentinel
is set only when the earlier versions are selected.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 5 11:01:20 2019 +0100
Update ax_code_coverage.m4 to latest release of autoconf-archive
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Thu Feb 21 14:49:36 2019 +0100
lib: x509: Minor directory browsing simplification
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Mon Feb 18 14:41:56 2019 +0100
Revert "Revert "verify-high2: Fix cert dir iteration on Win32""
This reverts commit 681330882da19099eea360fab141cab937c45677.
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
This revert also contains the fix to the original commit (invalid
utf8->utf16 conversion) and a minor simplification of the _treaddir loop.
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Mon Feb 18 17:12:54 2019 +0100
iconv: Allow _gnutls_utf8_to_ucs2 to output little endian
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Mon Feb 18 09:37:04 2019 +0100
lib: Provide _Thread_local on MSVC
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Feb 18 21:38:38 2019 +0100
Add test for starttls XMPP
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Feb 6 11:30:06 2019 +0100
gnutls-cli: Fix --starttls-proto=xmpp
Fixes two issues with gnutls-cli --starttls-proto=xmpp:
1. Print 'Timeout' on timeout instead of random errno message
2. Do not wait for linefeed when using XMPP (XML)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Feb 18 15:38:56 2019 +0100
check_if_signed: Get source branch if not set
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: R. Andrew Bailey <bailey@akamai.com>
Date: Thu Feb 14 09:38:33 2019 -0500
tests: wrap ADD_SYSCALL for getrandom in test for SYS_getrandom
Signed-off-by: R. Andrew Bailey <bailey@akamai.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Feb 8 14:46:33 2019 +0100
gnutls_record_set_max_size: make it work on server side
The record_size_limit extension can also be specified by the server to
indicate the maximum plaintext. Also add test cases for asymmetric
settings between server and client.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 31 13:39:35 2019 +0100
tlsfuzzer: update to the latest upstream for record_size_limit test
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Feb 8 13:22:13 2019 +0100
ext/record_size_limit: account for content type octet in TLS 1.3
In TLS 1.3, the protocol maximum of plaintext size is 2^14+1, while
it is 2^14 in TLS 1.2. To accommodate that, this introduces the
following invariant:
- when the maximum is set by the user with
gnutls_record_set_max_size(), store it as is. The value range is
[511, 16834].
- when the maximum is negotiated through record_size_limit extension,
it can be [512, 16385]. In TLS 1.3, subtract by 1 to fit in [511,
16384].
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 31 16:56:55 2019 +0100
decrypt_packet_tls13: add check for max plaintext size
There is check in _gnutls_recv_in_buffers already, but for TLS 1.3 we
need to take account of the padding.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 25 17:00:44 2019 +0100
record: reject too large plaintext after decryption
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 30 16:45:08 2019 +0100
constate: reset max_record_recv_size upon renegotiation
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 30 10:21:07 2019 +0100
session_pack: reset max_record_recv_size when packing
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 17 11:53:35 2019 +0100
ext/record_size_limit: don't confuse with negotiated/user-supplied maximum
As documented in gnutls_int.h, max_record_send_size is for tracking
the user-supplied maximum, while max_record_recv_size for the
protocol negotiated maximum.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Jan 20 09:18:21 2019 +0100
ext/max_record: server shouldn't send it with record_size_limit
Otherwise, the connection will be disconnected by the client, as
suggested in RFC: A client MUST treat receipt of both
"max_fragment_length" and "record_size_limit" as a fatal error, and it
SHOULD generate an "illegal_parameter" alert.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 7 16:28:52 2019 +0100
_gnutls_hello_ext_is_present: don't ignore max_fragment_length
The extension is assigned the internal ID 0.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jan 25 17:04:40 2019 +0100
.dir-locals.el: disable indent-tabs-mode in js-mode
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 14 13:01:34 2019 +0100
bootstrap.conf: do not override GNULIB_SRCDIR
This was not set in all of our CI platforms, and was causing
issues in MacOSX.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 11 09:18:46 2019 +0100
x509: corrected issue in the algorithm parameters comparison
Each certificate has two fields to set the signature algorithm
and parameters used for the digital signature. One of the fields is
authenticated and the other is not. It is required from RFC5280 to
enforce the equality of these fields, but currently due to an issue
we wouldn't enforce the equality of the parameters fields. This
fix corrects the issue.
We also move an RSA-PSS certificate in chainverify that was relying
on invalid parameters, to this set of invalid certificates.
Resolves: #698
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 13 07:54:59 2019 +0000
tests: added further checks for gnutls_pkcs11_token_get_info
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jan 29 16:10:59 2019 +0100
Fix uninitialized warning in pkcs11.c
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Feb 13 17:22:21 2019 +0100
Cleanup lib/auth/cert.c as suggested by cppcheck
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Feb 11 10:41:47 2019 +0100
Fix 32bit overflow issue in src/serv-args.def
Fixing this warning seen on 32bit architectures:
serv-args.c: In function 'doOptMaxearlydata':
serv-args.c:1431:14: warning: overflow in conversion from 'long long int' to 'long int' changes value from '4294967296' to '0' [-Woverflow]
{ 1, 4294967296 } };
^~~~~~~~~~
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Feb 8 13:03:30 2019 +0100
Remove typedef'ing ssize_t in gnutls.h
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Feb 6 20:54:45 2019 +0100
Use inet_pton() from gnulib
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 9 10:52:29 2019 +0100
bootstrap: refuse to bootstrap if any dependencies bring gnulib's network stack
If gnulib's network stack is brought (due to a dependency) in the library
it will make the library unusable to non-gnulib using applications. This
prevents windows applications for example to use gnutls, and so on. Even
more it is quite hard to catch that issue because our testsuite uses
gnulib as well. Instead we try to catch the these modules at import time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Feb 6 20:35:11 2019 +0100
Use inet_ntop() from gnulib
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 3 12:18:30 2019 +0100
_gnutls_gen_rawpk_crt: corrected the use of assert
The API could return 0 or 1 matching certificates. The case of zero
can only happen in client side.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 3 08:47:50 2019 +0100
raw public keys: apply the key usage bits the same way as X.509
That is, we require a signing certificate when negotiating
TLS1.3, or when sending a client certificate (on all cases).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 2 09:13:40 2019 +0100
Fallback to TLS 1.2 when incompatible with signature certs are provided
This only takes into account certificates in the credentials structure.
If certificates are provided in a callback, these must be checked by
the provider. For that we assume that the credentials structure is
filled when associated with a session; if not then the fallback mechanism
will not work and the handshake will fail.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 2 07:10:10 2019 +0100
Enforce the certificate key usage restrictions on all cases
That is, we require a signing certificate when negotiating
TLS1.3, or when sending a client certificate (on all cases).
Before we would not perform any checks under TLS1.3 or when client
certificates are sent, assuming that the certificates used will always
be signing ones. However if the user sets up incorrectly a decryption
certificate we would use it for signing. This fix makes sure that an
error is returned early when these scenarios are detected.
Resolves: #690
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jan 21 12:54:58 2019 +0100
Fetch OSS-Fuzz corpora much faster [skip ci]
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 4 15:10:19 2019 +0100
.triage-policies.yml: added [ci skip]
This adds a set of policies regarding issues and merge requests
to be enforced by the gitlab-triage bot. That is:
- Issues without any label for more than a month are marked
with needs attention label
- Issues with needinfo label are closed if they are not updated
within a month
- Merge requests marked as WIP with no update within 5 months
are closed.
These rules are not enforced automatically; we have to schedule
a run of the gitlab-triage bot.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Feb 2 17:47:48 2019 +0300
build: do not generate mech-list.h if p11-kit is not available
Compiling GnuTLS with no p11-kit installed will result in a serie of
warnings during build time because mech-list.h will be generated even if
pkcs11 tool compilation is disabled. Move mech-list.h generation to
happen only if pkcs11 is enabled, thus removing these warnings.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Feb 2 17:32:01 2019 +0300
build: pass NETTLE_LIBS together with HOGWEED_LIBS
libhogweed might depend on exact non-system-wide nettle, so let's pass
NETTLE_LIBS flags together when using HOGWEED_LIBS.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 26 21:44:28 2019 +0100
Add GNUTLS_E_RECEIVED_DISALLOWED_NAME for illegal SNI names
An illegal/disallowed SNI server name previously generated
the misleading message "An illegal parameter has been received.".
This commit changes it to
"A disallowed SNI server name has been received.".
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jan 30 21:58:34 2019 +0300
lib/nettle: replace nettle-stdint.h with just stdint.h
Nettle library is going to drop nettle-stdint.h. Replace this include
with with just <stdint.h>.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jan 28 15:25:30 2019 +0100
Fix 'make glimport' and update CONTRIBUTING.md
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jan 27 13:59:56 2019 +0200
.gitignore: add test files
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jan 27 13:17:35 2019 +0200
build: detect previous supported guile
A recent change in the m4 macro of guile enforces latest guile:
---
AC_DEFUN([GUILE_PROGS],
[_guile_required_version="m4_default([$1], [$GUILE_EFFECTIVE_VERSION])"
if test -z "$_guile_required_version"; then
_guile_required_version=2.2
fi
---
The result:
---
checking for guile-snarf... /usr/bin/guile-snarf
checking for guild... /usr/bin/guild
checking for guile-2.2... no
checking for guile2.2... no
checking for guile-2... no
checking for guile2... no
checking for guile... /usr/bin/guile
checking for Guile version >= 2.2... configure: error: Guile 2.2 required, but 2.0.14 found
---
Probably best to specify the supported version explicitly when calling
GUILE_PROGS, to keep existing behavior calling the GUILE_PKG detects the
existing packages.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jan 25 11:51:56 2019 +0100
Fix unused var warning in guile/src/core.c
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jan 25 12:26:46 2019 +0100
Fix abi-check failure
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 25 08:32:17 2019 +0100
NEWS: updated
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 25 08:24:21 2019 +0100
src/Makefile.am: remove .bak files before autogenerating
This avoids errors due to files pre-existing but not being
writable.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 25 08:18:01 2019 +0100
bumped versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 25 08:13:26 2019 +0100
Makefile.am: require guile-2.2 for release
That's because guile.m4 from previous releases has issues
with the latest version.
Resolves: #631
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 24 20:25:59 2019 +0100
priorities: when %NO_EXTENSIONS is specified disable TLS1.3
This makes the behavior of this priority string option well-defined
even when TLS1.3 is enabled.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Thu Jan 24 18:48:40 2019 +0100
certtool.1: fix formatting
Apostroph at start of a line is a control character in manpages, avoid
it. Also drop wrong indent.
See https://bugs.debian.org/920215
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 23 17:52:47 2019 +0100
tlsfuzzer: update to the latest upstream for record_size_limit tests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jan 24 01:57:13 2019 +0300
configure.ac: fix substitution for libatomic
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 23 20:51:11 2019 +0100
.travis.yml: avoid installing submodules
They are not necessary for building and testing the basic
test suite.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 23 20:42:34 2019 +0100
update on "Fix gnutls.pc for multiarch builds"
This replaces LTLIBUNISTRING with LIBUNISTRING in Makefile.am.
The former is no longer produced by configure.ac.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 23 15:13:12 2019 +0100
set_ciphersuite_list(): Use linear approach to cleanup priorities
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 22 15:47:39 2019 +0100
tests: check record_size_limit is reset after resumption
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Jan 19 10:31:52 2019 +0100
constate: don't restore max_record_recv_size from resumed data
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 17 17:50:49 2019 +0100
ext/record_size_limit: mark it as mandatory extension
In a resuming session record_size_limit is always renegotiated, and
thus the server should parse the extension always.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jan 17 11:52:50 2019 +0100
ext/record_size_limit: reject too large extension payload
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 5 14:12:46 2019 +0100
gnutls-serv: improvements in UDP server
This modifies the server to deinitialize the session after use
(avoiding leaks), and to only send the hello verify request when
a client hello is seen.
This also adds a basic unit test of gnutls-serv with the --udp option.
Resolves #632
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Wed Jan 23 13:36:23 2019 +0100
configure.ac: add comment for -latomic
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 23 08:42:54 2019 +0100
tests: added tests for multiple ticket reception
This introduces tests for the reception (parsing) of multiple tickets
by a gnutls client. It uses the tlslite-ng server because unlike a gnutls
server, tlslite-ng does send multiple tickets in a single record. That
way we test that we can parse both ways of sending tickets.
Resolves: #511
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 23 11:45:39 2019 +0100
Update gnulib
Closes #653 (printf %n crashes on Android)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 21 20:53:06 2019 +0100
gnutls_alert_send_appropriate: do not send alert to peer on all errors
That is, do not send alerts for success, or for errors indicating that
an alert has been received. This changes the documented function behavior
but does not break any existing caller expectations.
Relates: #672
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 21 20:33:00 2019 +0100
gnutls_pkcs11_privkey_import_url: enable RSA-PSS only when an RSA key can sign
In gnutls_pkcs11_privkey_import_url() we only enabled RSA-PSS functionality to
the key if the CKM_RSA_PKCS_PSS mechanism is available to the token. However,
if the specific key is not marked for use with digital signatures (CKA_SIGN
set), then we may have still ended-up using it and fail when using it. We
now test whether CKA_SIGN is set prior to enabling such keys for PSS.
Resolves: #667
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 21 20:56:10 2019 +0100
alert: associate unsupported curve alerts with handshake failure
Resolves: #672
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jan 10 14:53:32 2019 +0100
Check for Signed-off-by: in CI
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Jan 20 12:00:07 2019 +0100
Avoid excessive CPU usage in gnutls_idna_map()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 19 18:19:42 2019 +0100
Fix uninitialized variable in tests/x509dn.c
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 19 18:04:31 2019 +0100
crypto-selftests.c: Fix checking return value
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 11 07:23:40 2019 +0100
auto-generate the AUTHORS file
The original file was unmaintained since long time. This is now
auto-generated from the git shortlog, at release time.
Relates: #606
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Thu Jan 17 13:24:04 2019 +0100
configure.ac: check if libatomic is needed
gnutls source code uses the C++11 <atomic> functionality since
https://github.com/gnutls/gnutls/commit/7978a733460f92b31033affd0e487c86d66c643d,
which internally is implemented using the __atomic_*() gcc built-ins
On certain architectures, the __atomic_*() built-ins are implemented in
the libatomic library that comes with the rest of the gcc runtime. Due
to this, code using <atomic> might need to link against libatomic,
otherwise one hits build issues such as:
../lib/.libs/libgnutls.so: undefined reference to `__atomic_fetch_sub_4'
on an architecture like SPARC.
To solve this, a configure.ac check is added to know if we need to
link against libatomic or not. The library is also added to gnutls.pc.
Fixes:
- http://autobuild.buildroot.org/results/6c749bd592ceffeacadd2ab570d127936cce64b2
- http://autobuild.buildroot.org/results/30aa83d3cf3482af8a59250c196c85f4a278d343
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jan 17 10:22:45 2019 +0100
Fix gnutls.pc for multiarch builds
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 14 10:56:27 2019 +0100
certtool: data encipherment is disabled by default
For the TLS protocol this option is not necessary, and if enabled
by mistake (as default) and no other option is set, then the
generated key will be unusable. Thus we disable it, to generate
working keys by default.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 10 19:23:12 2019 +0100
.travis.yml: use ./bootstrap instead of make autoreconf
The latter is no longer available after the removal of
GNUMakefile.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 10 07:56:17 2019 +0100
The flag %NO_EXTENSIONS is disabling extension support while being functional
That is, the %NO_EXTENSIONS option is the only documented way to disable
extensions completely from a session. Clarify that message, mention that
its behavior is undefined when combine with TLS1.3, and make sure that it
is functional. The latter makes sure that safe renegotiation and extended
master secret extensions remain disabled when this flag is given.
That simplifies testing certain scenarios under TLS1.0 or TLS1.1 when
no extensions must be used.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 8 12:26:19 2019 +0100
When sending no extensions do not include a zero length
According to RFC5246:
The presence of extensions can be detected by determining whether
there are bytes following the compression_method field at the end of
the ServerHello.
and as such we correct our behavior to not send the zero length bytes.
This was our behavior in 3.5.x and 3.3.x branch, and thus this corrects
a regression of gnutls with these branches.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 8 19:37:49 2019 +0000
Avoid calling sign_algorithm_get_name() when we already have pointer to the algorithm.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 2 13:21:49 2019 +0100
tls-sig: check RSA-PSS signature key compatibility also in TLS 1.2
This extends commit 51d21634 to cover the optional TLS 1.2 cases,
which RFC 8446 4.2.3 suggests: "Implementations that advertise support
for RSASSA-PSS (which is mandatory in TLS 1.3) MUST be prepared to
accept a signature using that scheme even when TLS 1.2 is negotiated".
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 8 18:09:29 2019 +0100
tlsfuzzer: update to the latest upstream for the TLS 1.2 CV tests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 8 18:06:17 2019 +0100
alert: map GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM to illegal_parameter
This alert is more appropriate according to the tlsfuzzer test:
https://github.com/tomato42/tlsfuzzer/commit/4b6a4aa8b00cf3f3bcb2388d1bfdad985610ed1d
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 8 14:40:25 2019 +0100
Revert "build: remove src/*.bak from distribution"
This reverts commit 9ba397aa841730e4824d2bf8537aa15e711ad9b3, as it
turned out to be not practical. See !862 for the discussion.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 8 12:07:00 2019 +0100
_gnutls_hello_ext_set_datum: removed unnecessary remark [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Maks Naumov <maksqwe1@ukr.net>
Date: Tue Jan 8 00:05:23 2019 +0200
Fix _gnutls_write_new_general_name() result checking
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon Jan 7 17:46:10 2019 +0200
build: install all m4 macros
having all m4 macros in m4/ directory enables easier autoreconf process for
downstream as dependency programs that provide these macros are not required.
both gtk-doc and guile requires huge dependency list, and currently are
required per any change (patch) in autotools.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 2 13:44:50 2019 +0100
ext/pre_shared_key: avoid unnecessary use of VLA for MSVC
Suggested by Gisle Vanem in:
https://github.com/gnutls/gnutls/commit/fd8c1ec8fe155861dffa28811127f101b6697b4b#r31802648
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jan 4 09:47:24 2019 +0100
Fix typos in lib/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jan 3 16:36:17 2019 +0100
Unroll MinGW CI runner commands
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 3 09:51:34 2019 +0100
tests: treat all signals as error
Previously we were only treating SIGSEGV as error though there is
no reason to treat other signals as success and they may hide an
actual error case (e.g., when SIGPIPE is received). With this change we
treat any signals received by the child except SIGTERM as error, and
we ensure that SIGPIPE is ignored in all tests.
This also updates tests/slow/cipher-api-test.c to test failures with
SIGABRT or otherwise consistently.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 4 14:48:26 2019 +0100
Revert "verify-high2: Fix cert dir iteration on Win32"
This was failing CI (x509cert-tl) but was not detected due to
a bug.
This reverts commit 362a0c30b79ccede7e5bc3a7747c3e7f1d30889a.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Marga Manterola <marga@google.com>
Date: Thu Jan 3 17:57:29 2019 +0000
Fix typo when checking for ed25519 support
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jan 1 14:26:04 2019 +0100
Fix typos in doc/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 3 09:13:56 2019 +0100
_gnutls13_handshake_sign_data: properly fail on signing error
When signing failed, gnutls would return an invalid signed message
(with no data) instead of failing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 2 10:29:48 2019 +0100
Fix 'make distcheck'
The following error will be fixed:
ERROR: files left in build directory after distclean:
./tests/softhsm-privkey-eddsa-test.config
make[1]: *** [Makefile:1833: distcleancheck] Error 1
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 2 10:22:26 2019 +0100
Remove auto-generated gnulib files from repo
Bootstrapping with latest gnulib updated both files,
so they are obviously auto-generated files which do not
belong into the repository.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 2 10:02:11 2019 +0100
Update required autoconf version to 2.63
This fixes the bootstrap error with the latest gnulib:
gnulib/gnulib-tool: *** minimum supported autoconf version is 2.63. Try adding AC_PREREQ([2.63]) to your configure.ac.
gnulib/gnulib-tool: *** Stop.
./bootstrap: gnulib-tool failed
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 2 09:56:42 2019 +0100
Update gnulib
This fixes the following 'make syntax-check' failure:
maint.mk: out of date copyright in ./gnulib/lib/version-etc.c; update it
make: *** [maint.mk:1199: sc_copyright_check] Error 1
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jan 2 09:49:19 2019 +0100
Update copyright year in doc/gnutls.texi
This fixes the following error of 'make syntax-check':
maint.mk: out of date copyright in doc/gnutls.texi; update it
make: *** [maint.mk:1201: sc_copyright_check] Error 1
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 30 16:25:08 2018 +0100
examples: ignore GNUTLS_E_AGAIN or INTERRUPTED errors
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 30 16:00:43 2018 +0100
examples: use a valid DNS name
This prevents a gnutls server from sending an unexpected message
alert due to invalid DNS name encoding, if the example is not modified.
Resolves: #663
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Dec 29 19:16:57 2018 +0100
Fix OSS-Fuzz build
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 25 14:44:11 2018 +0300
tests: cipher-openssl-compat: don't call EVP_CIPHER_CTX_init()
There is no need to call EVP_CIPHER_CTX_init() after
EVP_CIPHER_CTX_new().
Fixes #658
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 25 14:43:56 2018 +0300
tests: cipher-openssl-compat: don't fail if OpenSSL doesn't provide cipher
LibreSSL does not provide ChaCha20-Poly1305 through EVP_CIPHER
interface, so let's skip the test if cipher is not available.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 20 17:49:21 2018 +0100
gnutls_pubkey_import_ecc_raw: set the public key bits
This sets the number of key bits once an ECC key is imported.
Resolves #640
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 21 07:58:24 2018 +0100
GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION: deprecated
This removes the documented use of this macro. It was non-functional.
Given the nature of the definition of the non-well defined date for
certificates, it may be wise not to use a special macro at all. The
reason is that the no-well defined date is a real date (~year 9999),
and any approximation with seconds will be unstable due to irregular
leap seconds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 21 07:54:40 2018 +0100
gnutls-cli-debug: removed unused variable
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Mon Dec 17 11:37:12 2018 +0100
win32: Check that CertOpenStore is behaving as CertOpenSystemStore
The test isn't located in tests/windows since we need the actual
libcrypt32 implementations.
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Dec 20 16:33:34 2018 +0100
testrandom.sh: Fix endless loop
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 19 09:41:41 2018 +0100
vasprintf: use from gnulib; don't bundle twice
Relates #653
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Thu Dec 13 17:31:29 2018 +0100
win32: Use CertOpenStore instead of CertOpenSystemStore
CertOpenSystemStore is not available when building for windows store.
Both functions are available since windows XP, so there is no
compatibility change.
CertOpenSystemStore documentation states "Only current user certificates
are accessible using this method, not the local machine store." hence we
pass CERT_SYSTEM_STORE_CURRENT_USER.
We also use the wide chars variants, in the event the ansi ones are
silently rejected by windows store applications (which is not
documented, but which I strongly suspect)
This is equivalent to Wine's implementation of CertOpenSystemStore:
https://github.com/wine-mirror/wine/blob/master/dlls/crypt32/store.c#L904
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Tue Dec 4 15:18:36 2018 +0100
keys-win: Disable private key import on windows store
Windows store drastically limits the available functions.
In this case, at least CryptSetProvParam and the NCrypt* functions
can't be used
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Tue Dec 4 13:22:52 2018 +0100
verify-high2: Fix cert dir iteration on Win32
And especially when building for windows store, which only allows
unicode version of opendir & friends functions.
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Tue Dec 4 11:53:48 2018 +0100
lib: Don't hardcode LoadLibraryA
Those functions are forbidden when building for Windows Store
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Dec 18 16:27:29 2018 +0100
.gitlab-ci.yml: Remove assert in gl/tests/test-strerror.c
A bug made our CI cross builds fail.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916779
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 16:22:10 2018 +0100
tests/cert-tests/certtool-eddsa: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 16:20:17 2018 +0100
tests/cert-tests/certtool: SKIP if --disable-bash-tests was given
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 16:13:31 2018 +0100
tests/cert-tests/pkcs12-utf8: Use /bin/sh instead of bash
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 16:12:31 2018 +0100
tests/cert-tests/pkcs12-corner-cases: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 16:11:53 2018 +0100
tests/cert-tests/certtool-ecdsa: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 16:06:18 2018 +0100
tests/cert-tests/pem-decoding: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 13:28:26 2018 +0100
tests/cert-tests/certtool-crl-decoding: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 12:34:01 2018 +0100
tests/long-crl.sh: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 12:14:27 2018 +0100
tests/gnutls-cli-debug.sh: Remove bashisms
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 23 19:58:49 2018 +0100
tests/scripts/common.sh: Add check_if_equal()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Nov 16 12:08:06 2018 +0100
tests/scripts/common.sh: Make random port value work on busybox
On busybox 'date +%N' returns an empty value.
On 'dash' (Debian shell) $RANDOM doesn't work.
This commit works first tries $RANDOM and then falls back to 'date +%N'.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 15 22:14:18 2018 +0100
doc: minor fixes [ci skip]
Created NEWS entry for 3.6.6 and unified the listing of gnutls_init_flags_t
items.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Peter Wu <peter@lekensteyn.nl>
Date: Sat Dec 15 22:01:10 2018 +0100
pkcs11: fix memleak in gnutls_pkcs11_token_get_ptr
find_token_modname_cb uses p11_kit_config_option to retrieve the module
name, but its return value (stored in tn.modname) must be freed.
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sat Aug 26 14:22:44 2017 +0200
Implemented support for raw public-key functionality (RFC7250).
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Date: Thu Dec 13 11:00:03 2018 +0100
configure.ac: Always enable unicode support on windows
Author: Peter Wu <peter@lekensteyn.nl>
Date: Thu Nov 29 18:21:22 2018 +0100
pkcs11: fix memleak when querying for GNUTLS_PKCS11_TOKEN_MODNAME
find_token_modname_cb uses p11_kit_config_option to retrieve the module
name, but its return value must be free'd.
Other fixes:
- Do not silently truncate the output buffer, return an error instead.
- If the module name is unavailable, do not write "(null)" to the
output. Write an empty string instead.
- The module path can be of arbitrary length, so passing output=NULL to
learn the length seems reasonable, except that snprintf crashed on a
NULL pointer dereference.
Fixes: 241f9f0b1 ("Added GNUTLS_PKCS11_TOKEN_MODNAME for gnutls_pkcs11_token_get_info")
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Author: Peter Wu <peter@lekensteyn.nl>
Date: Thu Nov 29 18:43:39 2018 +0100
pkcs11: clarify gnutls_pkcs11_*_get_info output_size
It was not clear whether @output_size contains the actual string length
or the buffer length (including null terminator).
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Nov 15 10:44:20 2018 +0100
build: remove src/*.bak from distribution
Instead, include the autogen-generated *.c, *.h and the stamp files in
the distribution.
To prevent the bundled files being linked with incompatible autogen
libopts, this adds an extra check in configure. If the detected
system libopts version is too old, it will use the included libopts
implementation.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 12 09:48:01 2018 +0100
GNUTLS_PCERT_NO_CERT: marked as unused/ignored
This flag was already a no-op.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 11 09:34:22 2018 +0100
srp/psk: update recommendations for usernames [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 12 06:15:25 2018 +0100
doc: include PSK examples into documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Dec 6 14:59:30 2018 +0100
tlsfuzzer: update to the latest upstream to eanble CCS tests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Dec 4 17:15:02 2018 +0100
Fix gnutls_handshake_set_timeout() for values < 1000
handshake-timeout.c now tests for <1000ms timeout and for >=1000ms
timeout. The test duration decreased from 45s to 1.2s.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 22 14:59:11 2018 +0100
record: make CCS handling stricter in TLS 1.3
In TLS 1.3, the change_cipher_spec messages received under the
following conditions should be treated as unexpected record type:
containing value other than 0x01, or received after the handshake.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 5 14:44:23 2018 +0100
bootstrap: only update the required submodules for building
Although we have few submodules they are not all required for
building and testing. This patch modified bootstrap.conf not
to update all of them, but only the necessary for building and
testing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Dec 1 13:26:20 2018 +0100
Fix error message on old or missing nettle.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 1 06:04:45 2018 +0100
released 3.4.1
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Simo Sorce <simo@redhat.com>
Date: Wed Oct 3 13:12:38 2018 -0400
Constant time/cache PKCS#1 RSA decryption
This patch tries to make the code have the same time and memory access
aptterns across all branches of the decryption function so that timining
or cache side channels are minimized or neutralized.
To do so it uses a new nettle rsa decryption function that is
side-channel silent.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 28 16:00:34 2018 +0100
Added test about rsa decryption under pkcs11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 30 10:28:28 2018 +0100
gnutls_x509_crt_set_expiration_time: fixed documentation [ci skip]
Fixed the documentation of the function to reflect reality.
This function did not accept the GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION
macro.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 30 08:49:50 2018 +0100
NEWS: updated [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 30 08:44:35 2018 +0100
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Nov 29 06:05:22 2018 +0300
tests: attempt to fix test errors on Mac OS X
It looks like Mac OS X's grep has issues with applying basic regexps
with alternation operator inside. Use several grep calls in pipeline to
achieve the same result.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 28 23:39:32 2018 +0300
travis: print logs for all failed tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 28 14:10:35 2018 +0300
lib: fix pkcs11 using defines from PKCS#11 3.0 for EdDSA
pkcs11 support code uses several definitions from forthcoming PKCS#11
standard version. Older p11-kit versions do not provide these
definitions. Detect and disable code supporting EdDSA if compiling
GnuTLS with older p11-kit library.
Closes #626
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fixes: 88377775a3eff679a9ec60ab9bfc6b3c683a0407
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 28 20:08:29 2018 +0100
CONTRIBUTING.md: specify rules for static/inline functions [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 22 17:36:17 2018 +0100
CONTRIBUTING.md: proposal for new features/modifications approach [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 21 21:09:33 2018 +0100
CONTRIBUTING.md: added proposal on commenting style [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 28 16:03:59 2018 +0300
tests: fix crl test under MinGW32/64
Use --outfile instead of output redirection to stop CR from sneaking
into temp file. Extra CR symbols make grep choke on that file.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Stephan Mueller <smueller@chronox.de>
Date: Tue Nov 27 22:27:26 2018 +0100
DRBG: Use ACVP validated test vector in self test
Due to removing all of the FIPS 140-2 continuous self test leftovers,
the DRBG test vector must be updated as the very first DRBG block is not
dropped any more.
The test complies with the CAVP test definition specified in "The
NIST SP 800-90A Deterministic Random Bit Generator Validation
System (DRBGVS)" section 6.2.
The test vector is obtained during a successful trial run using the
NIST ACVP server. The following registration was used to generate the
test vector:
{
"algorithm":"ctrDRBG",
"prereqVals":[
{
"algorithm":"AES",
"valValue":"same"
}
],
"predResistanceEnabled":[
false
],
"reseedImplemented":true,
"capabilities":[
{
"mode":"AES-256",
"derFuncEnabled":false,
"entropyInputLen":[
384
],
"nonceLen":[
0
],
"persoStringLen":[
0,
256
],
"additionalInputLen":[
0,
256
],
"returnedBitsLen":512
}
]
},
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 27 13:47:46 2018 +0100
Fix session description info printing
This fixes a truncation issue in session description information printing
for certain ciphersuites, and adds a limited testing of expected description
strings for certain ciphersuites.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 20 11:30:22 2018 +0100
Prevent applications from combining legacy versions of TLS with TLS1.3
It can happen that an application due to a misconfiguration, enables TLS1.3
in combination with TLS1.0 or TLS1.1 only. In that case a server which is
unaware of the TLS1.3 protocol will reply by selecting the TLS1.2 protocol
instead and that answer will be rejected by the client. With this change
we ensure that TLS1.3 is not enabled in these problematic scenarios.
Resolves: #621
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 21 18:35:07 2018 +0300
cert-tests: verify --no-text switch for pkcs7/pkcs12 info
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Nov 16 03:46:52 2018 +0300
certtool: don't output textual information if --no-text was given
Disable text output if --no-text option was given for --p7-info and
--p12-info.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 21 20:05:20 2018 +0300
certtool: don't output pkcs12 information to stderr
Print all pkcs12-info output to outfile, rather than stderr.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 21 18:35:07 2018 +0300
cert-tests: verify --no-text switch for cert/crq/pub/privkeys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Nov 16 03:46:52 2018 +0300
certtool: don't output textual information if --no-text was given
Change privkey/certificate/CRL/CSR handling to disable text output if
--no-text option was given.
Closes #487
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Mon Nov 19 11:47:45 2018 -0500
tests: tpm: Use kill_proc to terminate a process
Use kill_proc to terminate a process by first sending it SIGTERM,
waiting max. 1 second and then use SIGKILL.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Mon Nov 19 11:19:53 2018 -0500
tests: tpm: Redirect help screen output to stdout
The dash shell doesn't seem to understand &>/dev/null, so use
>/dev/null to quiet down the help screen check.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Nov 24 16:59:12 2018 +0100
doc: suggest to check max_early_data_size before sending early data
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 22 14:59:54 2018 +0100
tests: resume: suppress compiler warnings
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Stephan Mueller <smueller@chronox.de>
Date: Sun Nov 25 13:46:44 2018 +0100
DRBG: Remove all traces of FIPS 140-2 continuous self test
The removal allows the CAVS / ACVP test required for a successful FIPS
140-2 validation to pass.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 22 15:04:00 2018 +0100
.gitignore: ignore more files and sort them alphabetically
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Nov 24 15:58:48 2018 +0100
bootstrap.conf: add "autogen" to buildreq
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Nov 24 15:57:11 2018 +0100
build: fix srcdir detection when VPATH build
Unlike the ".c.c.bak:" and ".h.h.bak:" rules, ".def.stamp:" needs this
adjustment because the source files (*.bak) are not provided as $<.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sat Nov 24 16:00:48 2018 +0100
tests: remove unnecessary session creation in tls13/anti_replay
This test only checks the behavior of _gnutls_anti_replay_check, thus
session is not needed at all.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 21 21:09:55 2018 +0100
doc: corrected typos [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 19 14:16:50 2018 +0100
tests: added test for RSA decryption under gnutls_privkey_import_ext4
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 19 14:07:39 2018 +0100
crypto-self-tests-pk: added RSA-PSS sign/verify tests
This also corrects the GOST R 34.10-2012-512-TC26-512-A self
test.
Relates: #597
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 16 21:04:49 2018 +0100
tests: added TLS1.3 tests for PKCS#11 and external key types
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Simo Sorce <simo@redhat.com>
Date: Thu Oct 25 10:03:01 2018 -0400
Add support for EDDSA/Ed25519 object support via PKCS#11
Tested with softHSM 2.5.0
Resolves #417
Signed-off-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Simo Sorce <simo@redhat.com>
Date: Thu Oct 25 10:44:14 2018 -0400
Fix RSA-PSS tests to properly return skip value
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 18 20:22:08 2018 +0100
gnutls_certificate_type_get*: updated documentation to list limitations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 19 06:50:55 2018 +0100
tests: resume: use spaces around '?' and ':' according to coding style
Also set a link to the kernel coding style in CONTRIBUTIONS.md
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 14 15:20:08 2018 +0100
gnutls_certificate_type_get*: ensure that the default type is returned
That is, ensure that unless we negotiate something else than
X509, the default certificate type is returned to applications.
Previously we wouldn't do that for TLS1.3 resumed sessions, and
we would return zero (invalid type) instead.
That addresses issues with applications checking explicitly
for X509 certificate type being present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 16 16:13:31 2018 +0100
tests/tls13-early-data: check if max_early_data_size is advertised
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 16 14:25:49 2018 +0100
serv: add --maxearlydata option
Also exercise this in testcompat-tls13-openssl.sh.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Nov 18 05:47:08 2018 +0100
record: gnutls_record_send_early_data: check the upper limit
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 16 16:12:13 2018 +0100
tls13/session_ticket: fix "max_early_data_size" extension handling
session->security_parameters.max_early_data_size is initially set to 0.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 17 19:30:20 2018 +0100
update documentation on GNUTLS_AUTO_REAUTH and gnutls_record_get_direction [ci skip]
That clarifiesthe intention, and adds warning of using this flag when
multiple threads are involved. Based on suggestion by Michael Catanzaro.
Relates: #615
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 16 21:16:33 2018 +0100
.gitlab-ci.yml: run coverage build over fedora
This will include the TPM subsystem in the coverage report.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Fri Nov 16 10:47:23 2018 -0500
tests: tpm: Extend test case to not use --register
Extend the tpmtool test case to also test without the --register
parameter.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Wed Nov 14 10:07:08 2018 -0500
tests: tpm: Add a test case for tpmtool
This test case exercises tpmtool and uses certtool to create a
self-signed certificate with the TPM. It uses swtpm as TPM emulator and
configures tcsd to talk to swtpm.
Extend the Readme.md with the packages needed for TPM support and TPM test
support.
This test case needs to be run as root since tcsd needs to be started
as root.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Fri Nov 16 06:48:01 2018 -0500
.gitlab-ci.yml: copy the log files of minimal.Fedora to the gitlab server
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Thu Nov 15 19:55:02 2018 -0500
lib: tpm: Fix a memory leak
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Nov 16 03:38:38 2018 +0300
doc: mention GOST private key unmasking and additional format support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 13 11:25:17 2018 +0300
cert-tests: test parsing and decoding of GOST private keys
Add a test for parsing and decoding GOST private keys in different
formats, incuding encrypted keys.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 13 11:23:37 2018 +0300
certtool: support --pkcs-cipher none
If password is specified on command line currently certtool will always
output encrypted pkcs8 file. Add `--pkcs-cipher none' allowing one to
force certtool to output unencrypted private keys.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 13 03:02:35 2018 +0300
nettle/gost: gostdsa: use size_t instead of mp_limb_t
Use size_t for size variables instead of mp_limb_t (data type rather
than size type).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 13 02:48:05 2018 +0300
pkcs8: support GOST keys without encapsulation
Add support for yet another representation of GOST private keys:
LE-formatted number encoded into pkcs-8-PrivateKeyInfo.privateKey
without any additional encapsulation.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 13 02:47:39 2018 +0300
nettle: unmaks GOST private keys if necessary
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 13 02:45:18 2018 +0300
nettle/gost: support GOST key unmasking
New Russian reccomendation defines 'key masking' in the form of
several concatenated numbers, which must be multiplied modulo Q to get
private key.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Thu Nov 15 12:43:01 2018 -0500
tpmtool: Fix a memory leak related to TPM key list
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 15 16:03:38 2018 +0100
updated auto-generated-files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 14 13:56:52 2018 +0100
anti_replay: moved new add function into anti_replay structure
The new function was not sharing anything with the existing
gnutls_db_* backend, and moving it to anti_replay structure
is more clean and allows for deviations from the old API
conventions (e.g., now we can pass pointers for efficiency
and pass the expiration time as part of the call).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 13 22:49:26 2018 +0100
_gnutls_x509_read_eddsa_pubkey(): sanity check the input values
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 13 09:24:06 2018 +0100
gnutls_x509_privkey_import_ecc_raw(): fail on invalid sizes
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 11 08:25:56 2018 +0100
tests: verify whether certificate request levels behave consistently
This verifies whether the behavior of GNUTLS_CERT_IGNORE, GNUTLS_CERT_REQUEST
and GNUTLS_CERT_REQUIRE is consistent accross protocols.
Relates #615
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 11 08:52:13 2018 +0100
doc: minor updates in elliptic curve documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 14 13:42:01 2018 +0100
tests: added a test for detecting duplicate early data
Resolves #610
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 14 01:43:05 2018 +0300
tests: add testfile from RFC4134 Section 4.5
Add test example demonstrating indefinite-length BER encoding of PKCS#7
data.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 12 03:34:31 2018 +0300
pkcs7: allow BER encoding when parsing encapContentInfo.eContent
CMS specification explicitly allows BER encoding in CMS files. RFC 4134
example 4.5 uses BER indefinite encoding.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 14 01:49:08 2018 +0300
configure.ac: drop obsolete info line
Since 4b567871 there is no `ac_enable_session_tickets` variable, so
let's drop obsolete remnants.
Closes #616
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Noted-by: Dilyan Palauzov
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 13 10:07:09 2018 +0100
build: minor cleanup of mech-list.h generation
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 13 10:02:17 2018 +0100
README-ci.freebsd.md: require autogen
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 12 13:41:19 2018 +0100
build: remove autogen .bak files from the repository
While the .bak files are necessary for not requiring autogen on
deployment environment, they are not needed for development and may
cause conflict when other developers use different version of
autogen. This removes those files from the repository and require
autogen at make dist time.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 12 15:48:44 2018 +0100
build: use suffix rules for generating .bak files
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Nov 12 15:48:14 2018 +0100
build: use AM_MISSING_PROG for autogen
That makes error message more friendly when autogen is not installed
on developing environment.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Mon Nov 12 09:20:44 2018 -0500
tpm: Fix memory leak in encode_tpmkey_url
When returning the key URL in encode_tpm_key_url we do not need to allocate
a separate buffer for the URL since we return the allocated buffer from
_gnutls_buffer_to_datum().
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 15 13:35:43 2018 +0200
doc: mention 0-RTT
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 21 07:34:07 2018 +0200
serv: enable anti-replay when early data is used
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 19 17:52:48 2018 +0200
TLS 1.3: implement anti-replay measure using ClientHello recording
This implements ClientHello recording outlined in section 8.2 of RFC
8446.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 1 15:37:42 2018 +0100
db: introduce gnutls_db_set_add_function
This adds a way to store an entry if it is not found in the database,
so that the implementation can provide atomic test-and-set.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 8 17:54:11 2018 +0100
db: introduce gnutls_db_check_entry_expire_time
This would be particularly useful when the same database is used to
store long-lived TLS 1.2 session data and short-lived TLS 1.3
anti-replay entries. Note that the existing gnutls_db_check_entry
doesn't fit in this use-case, as it takes gnutls_session_t as the
argument.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 22 15:26:07 2018 +0200
tls13/session_ticket: record timestamp in ticket
This is needed for implementing freshness checks outlined in 8.3 of
RFC 8446.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 8 15:46:42 2018 +0100
str: suppress compiler warning when time_t is 32-bit
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 22 11:12:02 2018 +0200
testcompat-tls13-openssl: exercise early data transmission
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Oct 15 11:29:56 2018 +0200
tests: add tests for early data
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 12 13:33:13 2018 +0200
cli: add --earlydata option
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 12 13:33:00 2018 +0200
serv: add --earlydata option
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 12 13:34:21 2018 +0200
record: introduce new API functions for early data
This introduces gnutls_record_get_max_early_data_size(),
gnutls_record_send_early_data(), and gnutls_record_recv_early_data()
functions.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 12 11:45:59 2018 +0200
handshake: handle early data
This plumbers early data handling in the handshake processes, which
consists of:
- traffic key updates taking into account of client_early_traffic_secret
- early data buffering in both server and client
- the EndOfEarlyData message handling
- making use of max_early_data_size extension in NewSessionTicket
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 28 07:57:34 2018 +0100
session_pack: record max_early_data_size in session data
max_early_data_size sent as part of NST should be recorded and
restored when the session data is set back on the session.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Sun Oct 28 07:57:57 2018 +0100
record: fix memleak when rejecting early data
The "discard" label previously used assumes that the decrypted record
is already added to record_recv_buffer. It is not the case when
rejecting early data. Release the allocated memory manually and
return early.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 12 17:10:51 2018 +0200
constate: add epoch_rel argument to _gnutls_epoch_dup
This is necessary for handling early data. Previously,
_gnutls_epoch_dup() copied the parameters from EPOCH_READ_CURRENT,
while the client only sets EPOCH_WRITE_CURRENT when sending early
data. This allows caller to specify from which epoch the parameters
are copied.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 12 11:29:57 2018 +0200
handshake: refactor early secret derivation
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 5 10:41:23 2018 +0200
handshake: record transcript hash for ClientHello
This is necessary to compute client_early_traffic_secret and
early_exporter_master_secret in TLS 1.3.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 5 11:13:24 2018 +0200
ext/pre_shared_key: use predefined macros for secret labels
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Nov 6 09:38:43 2018 +0100
Unconditionally include nettle/memxor.h
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 10 10:54:32 2018 +0100
gnutls-cli: use assert to mark impossible path
This avoids static analyzers from complaining.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 10 07:46:24 2018 +0100
pkcs12: cleanups, and two memory leak fixes
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 9 07:44:02 2018 +0100
tls13: use system's openssl for interop testing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 9 20:11:42 2018 +0100
Added checks to avoid false negatives reported by static analyzers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 6 14:47:41 2018 +0300
src: update autogenerated .bak files
Update files to include proper year, version, etc.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 6 14:42:56 2018 +0300
src: include .bak files in EXTRA_DIST
Including .bak files in EXTRA_DIST allows us to stop hand-generating
these files in distribution. Instead they are directly copied from the
source tree.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 6 14:34:18 2018 +0300
src: update .bak files during -args.c/.h regeneration
To ease updating of .bak files, update them when regenerating
Autogen'erated source files.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 6 12:01:49 2018 +0300
doc: fix texi generation in out-of-tree builds
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 6 10:52:47 2018 +0300
src: mark autogen'ed sources as nodist_
Mark autogenerated sources as not distributable. We are distributing
.bak files instead.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 16:37:02 2018 +0300
Makefile.am: drop manpages regeneration from dist-hook
There is no need anymore to regenerate tools manpages, they will be
generated automatically from doc/manpages/Makefile.am.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 16:22:25 2018 +0300
manpages: fix manpages distribution
It seems that dist_man_MANS does not work properly with Automake
conditionals. Automake will not distribute files which are conditionally
disabled at this make run. As released tarballs include all manpages
already, let's include them unconditionally.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 15:02:50 2018 +0300
manpages: fix tools manpages generation
Pass additional include path to let autogen find common arguments
template.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 14:53:46 2018 +0300
manpages: un-unroll the loop
Replace unrolled loop over header files with for-loop to simplify
Makefile.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 14:30:53 2018 +0300
configure.ac: merge autogen/libopts checks
Move handling of autogen/libopts to a single place. Enforce usage of
local libopts if autogen is not found.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 13:12:51 2018 +0300
doc: fix documentation generation in out-of-tree builds
gtk-doc will not process gnutls.h.in file, so we need to point it to
generated gnutls.h file, found inside builddir.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 5 00:43:55 2018 +0300
cfg.mk: fix ChangeLog generation on out-of-tree builds
ChangeLog regeneration does not work for out-of-tree build, so let's fix
that.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Nov 4 14:29:11 2018 +0300
src: args-std.def: substitute variables using configure
Use standard way (configure script) to substiture variables in
args-std.def file, instead of manually replacing them in dist-hook.
Fixes #567
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 9 20:07:24 2018 +0100
Initialize output var to avoid false negative from static analyzers
This was identified by clang analyzer's on _gnutls_x509_dn_to_string
and _gnutls_x509_decode_string.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 5 20:51:33 2018 +0100
.gitlab-ci.yml: move to fedora29 for CI
This also moves the x86 CI builds to the debian cross infrastructure
as we have a more reliable way of generating a 32-bit image.
Resolves #607
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Stefan Berger <stefanb@linux.ibm.com>
Date: Fri Nov 2 18:33:32 2018 -0400
tpmtool: Support --srk-well-known for SRK with 20 zero bytes password
Implement --srk-well-known for SRK with 20 zero bytes password.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 7 09:56:56 2018 +0100
testcompat-openssl: do not test DSS or small curves with 1.1.1
DSA uses 1024-bit parameters, and these together with curves of
less than 256 bits are not accepted by debian's openssl.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 7 10:20:32 2018 +0100
doc/credentials: increased key size in RSA client cert
This is used by the test suite and recent openssl in debian requires
a larger certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 7 10:16:10 2018 +0100
certtool: allow --update-certificate to replace public key
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 7 08:37:23 2018 +0100
README.md: updated instructions to apply to fedora29
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Ander Juaristi <a@juaristi.eus>
Date: Thu Oct 4 14:57:47 2018 +0200
Update docs for session ticket key rotation [ci skip]
Fix #581.
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Nov 1 13:43:17 2018 +0100
ext/record_size_limit: handle the extension in TLS 1.2 ServerHello
Previously it had assumed that TLS 1.2 servers don't send the
extension, while actually it can be present in ServerHello.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 30 19:56:47 2018 +0100
gnutls_priority_init: ignore CTYPE-OPENPGP options
In GnuTLS 3.6.0 we dropped support for openpgp keys, however
the CTYPE-OPENPGP is often seen in applications, sometimes
as -CTYPE-OPENPGP to ensure it is not enabled. We simply
ignore this priority string when seen, to avoid preventing
these applications from running.
Resolves #593
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 30 19:46:09 2018 +0100
gnutls_priority_init: fixed indentation according to project rules
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 19 12:04:29 2018 +0200
gnutls_priority_set: re-organized
The sanity tests we moved prior to setting these priorities
and the %GNUTLS_E_NO_PRIORITIES_WERE_SET error code is returned
consistently to indicate that the existing priorities were not
overwritten.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 17 14:53:47 2018 +0200
gnutls_priority_set: do not override the version after handshake is complete
When an application would re-set priorities prior to a rehandshake
we would override the negotiated version with the highest supported,
something which may lead to issues. This disables that unnecessary
version override. See:
https://bugzilla.redhat.com/show_bug.cgi?id=1634736
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 30 10:28:20 2018 +0100
gnutls-serv: use default priorities when none are given
This makes it in par with gnutls-cli.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 29 01:42:28 2018 +0300
self-tests: add GOST public key tests
Test vectors provided in standard are not that usefull (they use
unsupported curves with a != -3), so these test vectors were generated
by hand.
Fixes #492
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 29 07:24:01 2018 +0100
NEWS: added CMAC entries [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Simo Sorce <simo@redhat.com>
Date: Sun Oct 28 12:19:46 2018 -0400
Add NEWS entry about AES-CMAC
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri Oct 26 16:55:27 2018 -0400
Add selftests for CMAC
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri Oct 26 13:38:13 2018 -0400
Vendor in CMAC functionality from Nettle
If nettle's CMAC is not available, use a vendored in version from master.
This is necessary as long as we need to link against 3.4 for ABI
compatibility reasons.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Fri Oct 26 13:22:23 2018 -0400
Add CMAC Support
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Oct 28 15:44:15 2018 +0300
NEWS: Add entry mentioning fix of S-BOXes for CryptoPro-B,-C,-D variants
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Oct 28 10:13:00 2018 +0300
self-tests: add GOST symmetric algorithms tests
Add tests for:
- GOST 28147-89 CFB cipher
- GOST R 34.11-94 hash function
- Streebog-256/-512 hash functions
- HMAC using GOST R 34.11-94/Streebog functions
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Oct 28 10:11:21 2018 +0300
nettle: fix s-boxes selection for rare GOST 28147-89 variants
gost28147-89 code contained c&p error, which resulted in using S-BOX
CryptoPro-A instead of -B, -C, -D. Fix that.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 26 22:50:52 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Oct 24 13:08:45 2018 +0200
ext/pre_shared_key: don't assume ob_ticket_age < ticket_age_add
Previously, the server treated the condition as error, while it is
possible that ob_ticket_age may have wrapped round by 2^32.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Oct 25 12:32:52 2018 +0200
tls13/session_ticket: calculate ticket_age in milliseconds
Previously we calculated ticket age from the current wall clock in
seconds, multiplying by 1000. This is conceptually wrong, because
ticket age is designed to be in milliseconds.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Oct 26 08:18:01 2018 +0200
str: add macros to encode/decode struct timespec value
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Oct 25 13:47:13 2018 +0200
system: provide a means to replace gettime implementation
While gettime() is extensively used in the code, the library
previously hadn't provided a way to replace it for testing. This adds
a new internal function _gnutls_global_set_gettime_function and makes
use of it through virt-time.h.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Wed Oct 24 15:45:23 2018 -0400
Add selftest for CFB8
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Oct 25 12:09:05 2018 +0200
_gnutls_timespec_cmp: new inline function
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Oct 25 12:02:53 2018 +0200
tls13/session_ticket: rename tls13_ticket_t type to tls13_ticket_st
This is consistent with the coding guideline.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 25 08:29:27 2018 +0200
gnutls-cli: reduce printed session information
When connecting to a server we were printing a lot of duplicate
information that was already part of the "Description" string.
No longer print that information unless --verbose is given.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 24 13:05:58 2018 +0200
gnutls-cli: do not print errors twice
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Wed Oct 24 13:04:22 2018 -0400
Vendor in CFB8 functionality from Nettle
If nettle's CFB8 is not available, use a vendored in version from master.
This is necessary as long as we need to link against 3.4 for ABI
compatibility reasons.
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Simo Sorce <simo@redhat.com>
Date: Wed Oct 24 12:14:51 2018 -0400
Add AES-CFB8 Support
Signed-off-by: Simo Sorce <simo@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 15 15:59:48 2018 +0200
p11tool: fix initialization of security officer's PIN
Previously we would call gnutls_pkcs11_token_set_pin() without an
old PIN provided, which will result to the use of C_InitPIN() on the
underlying module. The C_InitPIN() in contrast with C_SetPIN() will
only work for the user and not for the administrator. As such, we
always provide the oldpin for when we change the admin's PIN.
Resolves #561
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 23 15:20:45 2018 +0200
fips140: aligned code with documentation
That is, we introduce the documented but unimplemented macros
GNUTLS_FIPS140_SET_LAX_MODE() and GNUTLS_FIPS140_SET_STRICT_MODE().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon Oct 22 10:52:08 2018 +0200
Simplified check for NULL pointer to reduce code changes.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon Oct 22 10:51:19 2018 +0200
Unified abbreviation for certificate type priorities in code.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Oct 11 21:25:11 2018 +0200
Renamed CHECK_AUTH macro to CHECK_AUTH_TYPE to be more clear what it checks.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Oct 11 21:13:45 2018 +0200
Renamed _gnutls_server_select_cert() to _gnutls_select_server_cert() for consistency reasons with its client couterpart.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Oct 11 21:05:33 2018 +0200
Renamed certificate_credential_append_crt_list() to certificate_credential_append_keypair().
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Thu Oct 11 21:01:25 2018 +0200
Renamed _gnutls_auth_info_set() to _gnutls_auth_info_init().
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Wed May 23 10:16:00 2018 +0200
Renamed fields in priority_st to improve code readability. Fixes #453.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Tue May 22 12:35:31 2018 +0200
Added NULL pointer check in gnutls_certificate_free_credentials for safety.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon May 21 10:11:28 2018 +0200
Renamed _gnutls_proc_x509_server_crt to _gnutls_proc_x509_crt.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sat May 19 16:01:01 2018 +0200
Small fixes for comments and log strings.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Oct 18 11:09:09 2018 +0200
SKIP tests/global-init-override if weak symbols don't work
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 16 15:06:04 2018 +0200
tests: eagain-auto-auth: only compiled in systems with cmocka available
This fixes build issue at MacOSX CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 12 16:36:12 2018 +0200
tlsfuzzer: updated to latest upstream and enabled new tests
Resolves: #591
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 12 17:08:15 2018 +0200
handshake: send missing extension alert
When a key share extension is not seen under TLS1.3, send
the missing extension alert.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 4 08:27:10 2018 +0200
_gnutls_server_select_cert: return error when no server cert is selected
When a certificate callback is used and no certificate is provided
by it, return an error rather than trying to use it (and crashing)
later. Note that this affects only an "illegal" code path when
a server would have provided no certificate, something which must
not happen on a real-world server.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 1 11:58:15 2018 +0200
gnutls_init: added flag for automatic re-authentication
This introduces the GNUTLS_AUTO_REAUTH gnutls_init() flag and makes
re-authentication under TLS simpler to enable and use.
Resolves #571
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 29 14:21:59 2018 +0200
pkcs11 uris: the URI scheme is case insensitive
Makes the comparisons of the URI scheme to use c_strcasecmp
from gnulib. It also replaces various straw strcasecmp with
the gnulib variant. This ensures that comparison will be
reliable irrespective of the locale.
Resolves #590
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 11 21:49:11 2018 +0200
.gitlab-ci.yml: cross CI requires privileged systems
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Oct 9 12:46:12 2018 +0200
Fix check for GNU C compiler in eina_cpu.c
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Oct 9 12:34:26 2018 +0200
Fix gen-mech-list.sh on Solaris / Bourne Shell
`cmd` is more compatible than $(cmd).
The shell is "sh (Schily Bourne Shell) version 2013/01/14 a+ (i386-pc-solaris2.9)"
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Oct 5 19:41:15 2018 +0200
Let bootstrap check for gperf and autopoint
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Oct 8 11:25:23 2018 +0200
Skip tests/tls13/prf.c if visibility 'protected' doesn't work
Overriding gnutls_rnd() with visibility 'protected' doesn't always work.
E.g. LDFLAGS="-Wl,-Bsymbolic-functions" seems to have priority on
Debian derived systems.
Fixes #584
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 6 16:43:33 2018 +0200
tests: added unit test for gnutls_session_set_id
This adds a unit and a negative test which ensures that
a client will not be tricked in performing resumption when
this function is used.
Resolves #585
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 4 08:29:41 2018 +0200
doc: fix use of gnutls_ext_raw_parse callback [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 30 22:05:59 2018 +0200
gnutls_priority_set: do not override version on handshake
When handshake is in progress, do not override the default TLS
version in the session. This allows gnutls_priority_set to be called
in the post_client_hello function without breaking the handshake.
Resolves #580
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 2 11:57:31 2018 +0200
encrypt_packet_tls13: added explicit check on iv_size bounds
Although there are no ciphers defined for TLS1.3 which would overflow
the assumed bound, an explicit check is necessary to avoid that code
be a liability in future updates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 1 09:18:46 2018 +0200
privkey_pkcs8: added reference for validation parameters OID [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 1 08:31:16 2018 +0200
NEWS: corrected typo [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Sep 27 21:11:21 2018 +0200
Use ASCII version of strcasecmp() in library code
strcasecmp() has side effects in some locales.
What we really need is c_strcasecmp() from Gnulib for comparing
ASCII strings.
Fixes #570
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Sep 27 11:02:33 2018 +0300
.gitlab-ci.yml: reenable SSLv2 hello support for SSL-3.0.Fedora.x86_64
Reenable SSLv2 hello support to let several SSL-3.0 tls-fuzzer tests
pass.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Sep 27 01:05:09 2018 +0300
tlsfuzzer: disable SSL3.0 in export-ciphers-rejected test
These tests will fail with SSL3.0-enabled gnutls-serv unless --ssl3
option was passed. We will run these tests anyway from
gnutls-nocert-ssl3.json, so disable them here.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Sep 27 00:42:21 2018 +0300
tlsfuzzer: support running from separate build dir
Adapt tls-fuzzer-common.sh script to be able to run tests in case
srcdir != builddir.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Sep 25 17:00:14 2018 +0300
.gitlab-ci.yml: reenable full test suite in SSL-3.0/SHA-1 case
Reenable full test suite run in SSL-3.0/SHA-1 CI test case to let us
catch issues in legacy code.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 24 16:07:19 2018 +0300
tlsfuzzer: add missing script
Makefile.am refers tls-fuzzer-nocert-ssl3.sh script, which is missing
in the source tree. Add it back.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Sep 27 00:35:20 2018 +0300
tlsfuzzer: move common code to separate file
Move common code to tls-fuzzer-common.sh to ease further adjustments.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Sep 26 23:34:16 2018 +0300
tlsfuzzer: use random port for tls-fuzzer-nocert test
Like the rest of tls-fuzzer tests, pass "-p PORT" to subtests, allowing
usage of random port for server.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Sep 26 23:34:16 2018 +0300
tlsfuzzer: use random port for tls-fuzzer-cert test
Like the rest of tls-fuzzer tests, pass "-p PORT" to subtests, allowing
usage of random port for server.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Sep 26 12:54:37 2018 +0200
Make tlsproxy/buffer.c compilable by gcc 4.4.7
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 26 09:38:04 2018 +0200
_gnutls_check_key_purpose: eliminated dead code
Resolves #573
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 25 13:52:25 2018 +0200
manpages: do not generate any manpages for openpgp.h
This API is no longer functional and is only available as stubs
for backwards binary compatibility.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 25 13:06:57 2018 +0200
manpage generation: cleanup
Recognize parameters of the form unsigned char name[8], and
do not print obscure warnings. Furthermore gdoc will fail
when a function parameter is not described or when no
function is found. This addresses the generation of undetected
errors in generated manpages.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 25 12:07:10 2018 +0200
doc: fixed missing function and enumeration parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 25 14:12:26 2018 +0200
tests: removed unused file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 25 18:10:12 2018 +0200
mech-list.h: generate unique entries
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 24 17:33:03 2018 +0200
released 3.6.4
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 21 16:31:58 2018 +0200
tests: pkcs12-utf8 depend on bash
The NetBSD default shell cannot handle the UTF-8 strings we use
in that script.
Resolves #544
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 21 16:20:36 2018 +0200
bumped versions and updated NEWS file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 21 16:18:23 2018 +0200
Enable the TLS1.3 protocol by default
As the protocol has been finalized, and the implementation is
stable and interoperable, there is no need to enable it conditionally.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 18 08:36:18 2018 +0200
gnutls-cli: enable CRL validation on startup
This also makes the failure in adding CRLs or CAs, a fatal error.
Resolves #564
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 20 16:44:51 2018 +0200
Provide a more flexible PKCS#11 search of trust store certificates
This addresses the problem where the CA certificate doesn't
have a subject key identifier whereas the end certificates
have an authority key identifier.
Resolves #569
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 18 08:35:32 2018 +0200
trust list: added flag to force failure on CRL validation error
This allows an application to be notified of the addition of invalid
CRLs in the trust list.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Sep 18 11:50:43 2018 +0200
Remove auto-generated src/mech-list.h from repo
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Sep 18 15:35:20 2018 +0200
Fix issue introduced in 20886264fe
This makes _gnutls_resolve_priorities() return a string that is always
allocated with the gnutls memory functions.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 19 14:15:20 2018 +0200
session tickets: check timestamp for validity
We were previously only relying on the client's view of the
ticket lifetime for TLS1.3 tickets. This makes sure that we
only resume tickets that the server considers valid and consolidates
the expiration time checks to _gnutls_check_resumed_params().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 20 10:11:42 2018 +0200
ECC export/import: updated documentation on EdDSA curves
This clarifies the format that parameters in the EdDSA curves
will be returned, and also ensures that the import/export
functions fail on unsupported curves.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 19 15:03:32 2018 +0200
tests: use virt-time.h in resumption tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Ander Juaristi <a@juaristi.eus>
Date: Tue Sep 18 09:40:20 2018 +0200
Added session ticket key rotation with TOTP
This introduces session ticket key rotation on server side. The
key set with gnutls_session_ticket_enable_server() is used as a
master key to generate time-based keys for tickets. The rotation
relates to the gnutls_db_set_cache_expiration() period.
Resolves #184
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Sep 18 03:05:51 2018 +0300
certtool: print GOST public key with MSB first
OpenSSL and other libraries print MSB first, when printing GOST public
keys. Let's return to this convention.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Sep 18 03:05:51 2018 +0300
x509: print_pubkey: print GOST public key with MSB first
OpenSSL and other libraries print MSB first, when printing GOST public
keys. Let's return to this convention.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Sep 18 00:53:17 2018 +0300
lib: use little endian when importing/exporting GOST keys
GOST R 34.10 native format is little endian. It is better for the
application code to use native format data to interface library, rather
than convert buffers on their own.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Sep 18 00:51:05 2018 +0300
mpi: add function to dprint mpi in little endianness
Add little endian counterpart to _gnutls_mpi_dprint and
_gnutls_mpi_dprint_le.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 17 12:26:31 2018 +0300
gnutls.h: correct GOST R number references [ci skip]
Fix numeric GOST R ids used in documentation, too many numbers:
- GOST R 34.11 is digest function
- GOST R 34.10-2001 is a digital signature over GOST R 34.11-94 digest
- GOST R 34.10-2012 is a digital signature over GOST R 34.11-2012 digest
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Sep 17 10:12:38 2018 +0200
Update git submodules via ./bootstrap
Setting $SUBMODULE_NOFETCH to a non-empty value adds
--no-fetch to the git command (for CI speedup).
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 17 15:14:12 2018 +0200
tests: pkcs1-pad: run with SHA-1 enabled or disabled
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 17 12:58:38 2018 +0200
.gitlab-ci.yml: enable run with SHA-1 enabled
This adds a CI run with SHA-1 enabled, and corrects issues in the
testsuite when that's the case.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 17 09:28:08 2018 +0200
gnutls_x509_trust_list_add_trust_mem: fix behavior with unaccounted certs
If gnutls_x509_trust_list_add_cas returns less than clist_size, the additional
unaccounted certificates will never be freed.
Relates #552
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 17 09:12:29 2018 +0200
gnutls_x509_trust_list_add_cas: corrected return value
When the flag GNUTLS_TL_USE_IN_TLS is used and add_new_ca_to_rdn_seq
the return value did not include the last certificate added to the
list. This corrects its return value.
Relates #552
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 17 09:10:24 2018 +0200
fixed documentation in trust list functions
That clarifies and addresses issues in the documentation of
gnutls_x509_trust_list_add_crls() and gnutls_x509_trust_list_add_cas()
Relates #552
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 16 15:54:41 2018 +0200
tests: added CRL verification tests
This tests CRL verification with certtool --verify-crl on correct
and incorrect cases.
Relates #564
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 16 15:35:19 2018 +0200
certtool: updates in documentation in messages for CRL generation
This fixes the messages printed for the generation of a CRL, and
makes the return code of the CRL verification depending on the
verification result.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 14 16:32:05 2018 +0200
Fix variable used in reallocation
This corrects the variable name used in the sizeof argument
for realloc. This does not alter the actual allocation size,
but rather it fixes a logic error.
Relates: #554
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 22 15:25:06 2018 +0200
.gitignore: updated
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 22 10:08:41 2018 +0200
dtls: recover when a NewSessionTicket message is lost
When the server's NewSessionTicket gets lost while the ChangeCipherSpec
goes through, the client did not request retransmission by retransmitting
his last flight, and the handshake was blocked. This commit addresses
the issue and adds a reproducer.
Resolves #543
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Aug 27 17:44:35 2018 +0200
tlsfuzzer: remove duplicate tests and sort them alphabetically
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Andreas Schwab <schwab@suse.de>
Date: Mon Sep 10 17:35:08 2018 +0200
doc: fix reference to invocation nodes
Signed-off-by: Andreas Schwab <schwab@suse.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 20 15:17:04 2018 +0200
priority: be backwards compatible with priority strings starting with NONE
That is, we allow priority strings which do not enable any groups to
work, by disabling TLS1.3. For example
'NONE:+VERS-TLS-ALL:+MAC-ALL:+RSA:+AES-128-GCM:+SIGN-ALL:+COMP-NULL'
is still operational, but no TLS1.3 is enabled when specified.
Resolves: #549
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 24 16:34:14 2018 +0200
Use gnutls_strdup() instead of strdup() in library code
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 24 16:27:36 2018 +0200
Remove gnulib work-around '#undef strdup'
The 'issue' should be fixed already. Even if not, it has to
addressed in gnulib.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 21 15:02:56 2018 +0200
ext/pre_shared_key: use consistent name for regitration entry
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 21 14:54:41 2018 +0200
ext/pre_shared_key: make ticket age calculation consistent
Previously we used a pattern like this:
uint32_t obfuscated_ticket_age, ticket_age_add;
time_t ticket_age;
ticket_age = obfuscated_ticket_age - ticket_age_add;
if (ticket_age < 0) {
...
}
This always evaluates to false, because subtraction between unsigned
integers yields an unsigned integer. Let's do the comparison before
subtraction and also use correct types for representing time: uint32_t
for protocol time and time_t for system time.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Aug 17 15:45:20 2018 +0200
tls13/psk_ext_parser: simplify the iterator interface
Previously it was unclear whether psk_ext_parser_st is stateful or
not. This change introduces the simpler API to iterate over the
immutable data (psk_ext_parser_st), following the iterator pattern.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 21 16:18:11 2018 +0200
gnutls-cli-debug: mention RFC8446 for TLS1.3 and RFC8422 for X25519
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 21 13:10:48 2018 +0200
Remove --no-git from ./bootstrap [ci skip]
This removes the --no-git option as bootstrap itself does not use
the remote repository for cloning. At least as long $GNULIB_SRCDIR
points to a recent enough local gnulib git repo.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 17 14:02:34 2018 +0200
handshake: do not negotiate TLS1.3 using the legacy version field
Previously we could end-up with a TLS1.3 connection if the TLS1.3
ID was seen on the wire. We now explicitly fallback to TLS1.2
when we see a protocol with TLS1.3 semantics in an SSL2.0 or
in the legacy version of the client hello.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 17 12:57:25 2018 +0200
handshake: simplified protocol version checking functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 17 10:50:15 2018 +0200
tlsfuzzer: modify to use the final code points
Relates #542
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 13 20:55:50 2018 +0200
fuzz: updated traces for final TLS1.3 version
Resolves #359
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 13 20:46:21 2018 +0200
protocols: bumped TLS1.3 version number to RFC8446 value
This adds support of the final RFC numbers.
Resolves #542
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Wed Aug 15 18:29:32 2018 +0200
Implemented RFC7250 certificate type negotiation extensions.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Aug 10 14:06:16 2018 +0200
ext/record_size_limit: new extension
This implements the record_size_limit extension as defined in RFC 8449.
Although it obsoletes the max_record_size extension, for compatibility
reasons GnuTLS still sends it on certain occasions. For example, when
the new size is representable as the codepoint defined for
max_record_size.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 14 16:46:12 2018 +0200
ext/max_record: remove use of extension private data
As the extension data is always stored in
session->security_parameters.max_record_send_size, it shouldn't be
necessary to track it with the private data.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 17 14:43:30 2018 +0200
gnutls_session_resumption_requested: fixed behavior under TLS1.3
This makes gnutls_session_resumption_requested() functional under
TLS1.3 and introduces a unit test of the function.
Resolves #546
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 19 18:59:02 2018 +0200
.gitlab-ci.yml: use --no-git to bootstrap
That is, to reduce CI time, and avoid failures due to
non-availability of the gnulib git repo.
Resolves #547
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 17 14:48:56 2018 +0200
hello_ext: removed bogus comment
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 17 16:08:37 2018 +0200
.gitmodules: gnulib submodule is now synced from libidn's mirror
This mirror is updated hourly and is hosted on gitlab, meaning
less dependency on external sites downtime.
Resolves: #547
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Wed Aug 15 14:20:43 2018 +0200
Fix two typos (overriden/guarranteed)
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 13 21:47:53 2018 +0200
doc: document the non-portability of NONE priority string
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 13 20:22:48 2018 +0200
tools: check output of called functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 13 20:19:55 2018 +0200
write_oid_and_params: moved nullity check of params earlier
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 9 16:13:50 2018 +0200
gnutls_session_set_premaster: corrected error checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 9 16:12:36 2018 +0200
pubkey_verify_hashed_data: apply algorithm checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 9 16:09:21 2018 +0200
privkey_sign_raw_data: use assert to mark code which always succeeds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 9 16:05:47 2018 +0200
_gnutls_send_change_cipher_spec: removed unnecessary test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 13 21:04:56 2018 +0200
.travis.yml: do not run brew upgrade
This addresses issue with travis compilation on MacOSX.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 7 16:27:19 2018 +0200
gnutls_memset: use explicit_bzero
That is, use the glibc function when available and the second
parameter is zero.
Resolves #230
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 7 09:52:55 2018 +0200
use a consistent method to mark fall-through in switch cases
Also document that method in contribution guide.
Resolves #306
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 7 14:45:07 2018 +0200
ext/pre_shared_key: prevent crash if no server credentials are set
Previously, if server is configured without PSK credentials and the
client authenticated with PSK, the server crashed with:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b190ba in server_recv_params (session=0x636fc0, data=0x634e6e "",
len=46, pskcred=0x0) at pre_shared_key.c:523
523 prf = pskcred->binder_algo;
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 7 13:21:16 2018 +0200
tlsfuzzer: update to the latest version
Also enable test-tls13-ffdhe-sanity.py,
test-tls13-session-resumption.py, and
test-tls13-unrecognised-groups.py.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 7 12:32:56 2018 +0200
alert: map GNUTLS_E_NO_COMMON_KEY_SHARE to handshake_failure
Previously, when server received a ClientHello that does include only
groups from unassigned ranges in supported_groups, it aborted the
connection with an illegal_parameter.
Resolves #537
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Aug 7 11:43:32 2018 +0200
algorithms: add support for FFDHE6144
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 3 22:26:47 2018 +0200
Corrected the importing of ECDSA public keys
This seems to be a regression since EdDSA support. The call to
_gnutls_x509_get_pk_algorithm() in public key import was unnecessary
and in fact it was overriding the available curve with a curve associated
with the OID. As the ECDSA OID doesn't include the curve, that had the
result of deleting the already read curve.
Resolves #538
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 3 14:13:14 2018 +0200
Ensure we are sending the right protocol version on second client hello
That is, when we respond to a Hello Retry Request as client, we put
the TLS1.2 version on the second client hello to send a hello that is
as close as possible to the original hello. That effectively separates
the handling of TLS1.2 rehandshake and TLS1.3 hello retry request
when sending a client hello.
Resolves #535
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 7 07:30:55 2018 +0200
doc: improved text on certifications
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 7 07:13:35 2018 +0200
doc: few improvements over certificate validation text
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 30 21:50:35 2018 +0200
gnutls-serv: re-introduce the session identifier message
The message "If your browser supports session resuming, then you should
see the same session ID, when you press the reload button", is now printed
again even under TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 30 16:48:26 2018 +0200
resume: keep persistent session identifiers
With the introduction of session ticket support (TLS1.2) and
TLS1.3, session identifiers have no persistency on server or
client side. Improve the situation by introducing persistent
session identifiers on server side in a backwards compatible
way.
Resolves #484
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jul 19 15:57:59 2018 +0200
.gitlab-ci.yml: include fuzz/*.log in artifacts
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jul 18 15:56:17 2018 +0200
tests: tls-fuzzer: enable tests relying on header fragmentation
Those tests were previously disabled because splitting of handshake
messages in a very short (< 4 bytes) fragments is not implemented.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 2 15:44:15 2018 +0200
record: send unexpected_message upon empty unencrypted records
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 27 06:30:41 2018 +0200
buffers: handle very short fragmentation of handshake messages
If the received record doesn't even complete the handshake
header (i.e., the record size < 4), keep it in a temporary buffer and
let the caller receive more records. Once enough amount of data is
received, move the already received records back to record_buffer and
proceed to the normal processing.
Fixes: #272
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 27 06:23:12 2018 +0200
mbuffers: introduce _mbuffer_head_push_first
This is similar to _mbuffer_enqueue, but adds an element to the
beginning of the buffer.
This is to make the incomplete header handling case easier.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 27 06:10:37 2018 +0200
_gnutls_parse_record_buffered_msgs: eliminate local variable usage
If `remain > 0` is true, `recv_buf[0].length > 0` always holds.
Combine those conditions and remove the `remain` utilizing MIN().
This is to make the incomplete header handling case easier.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jul 27 05:35:02 2018 +0200
buffers: avoid confusion in fragment length calculation
Previously, to calculate the fragment length, it added/subtracted one
to the ending offset back and forth; that was not easier to read and
couldn't handle empty payload messages in TLS.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Aug 2 16:59:27 2018 +0200
tlsfuzzer: update to the latest version
Also enable test-tls13-0rtt-garbage.py.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jul 16 11:30:05 2018 +0200
TLS 1.3: ignore "early_data" extension
As 0-RTT is still not implemented in GnuTLS, the server responds with
1-RTT, by skipping decryption failure up to max_early_data_size, as
suggested in 4.2.10 Early Data Detection.
Resolves #512
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 3 21:45:14 2018 +0200
p11tool: print expiration time on certificates
This is particularly useful when displaying information about a
certificate trust store.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 19 15:52:26 2018 +0200
tls1.3: server returns early on handshake when no cert is provided by client
Under TLS1.3 the server knows the negotiated keys early, if no client
certificate is sent. In that case, the server is not only able to
transmit the session ticket immediately after its finished message,
but is also able to transmit data, similarly to false start.
Resolves #481
Resolves #457
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 23 15:01:49 2018 +0200
gnutls-serv: don't close connection properly when handshake is not yet complete
In the case handshake is not yet complete and we need
to terminate, it is because of an issue. As such prefer an
unclear termination at this stage. This addresses error detection
issues with tlsfuzzer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 2 16:16:27 2018 +0200
gnutls-cli: corrected input buffer null-termination
This was a regression in the previous cleanup at
f138ff85df69976badce44a5c46157cce091020f included in
3.6.3.
Resolves #534
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 31 11:37:50 2018 +0200
certtool: added example of converting to DER in manpage
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jul 27 23:46:50 2018 +0200
Fix gcc-8 -Wabi warnings
Fixes #531
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 27 11:58:38 2018 +0200
ext/key_share: check the validity of server key shares
That is, when generating the public key based on the server's
key share, ensure that the algorithms match completely with
the key shares the client initially sent. This was detected
by the updated traces for TLS1.3 fuzzying.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 26 15:37:58 2018 +0200
gnutls-serv: improve output under TLS1.3
That is, silence fields no longer applicable under TLS1.3
and make sure that newer functions like gnutls_session_get_desc()
get used when describing the session.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 26 15:06:34 2018 +0200
fuzz: updated traces for latest TLS1.3 draft
Relates #359
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 26 12:40:54 2018 +0200
tests: run tls-fuzzer PSK testsuite
Resolves #508
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 26 11:27:23 2018 +0200
tests: added unit test of handshake with large certificate
This checks whether handshake message fragmentation and de-fragmentation
is functional on server and client.
Resolves #513
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 26 11:02:37 2018 +0200
certtool: eliminated limits in certificate export size
That allows printing an exporting certificates of size only bounded
by avail memory.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 26 10:56:25 2018 +0200
certtool: eliminate maximum limit in fields read with READ_MULTI_LINE_TOKENIZED()
This allows to generate a certificate with an extension of arbitrary size.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 25 16:41:38 2018 +0200
gnutls.h: corrected typo
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 25 14:48:47 2018 +0200
send_client_hello: don't override version after HRR is received
When a Hello Retry Request is received, do not set our (transient)
version to TLS1.2 on the second client hello. That's because both
peers have already negotiated TLS1.3.
This addresses issue with peers which may send a changecipherspec
message at this stage, which is now allowed when our version is
set to be TLS1.2. Introduced test suite using openssl and resumption
using HRR which reproduces the issue.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 25 13:08:35 2018 +0200
hello_ext_parse: apply the test for pre-shared key ext being last on client hello
We were incorrectly insisting on pre-shared key extension being last in
both client and server hello. That was incorrect, as only in client hello
it is required by TLS1.3 to be last.
Quoting:
The "pre_shared_key" extension MUST be the last extension in the
ClientHello (this facilitates implementation as described below).
Servers MUST check that it is the last extension and otherwise fail
the handshake with an "illegal_parameter" alert.
Resolves #525
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 24 20:58:10 2018 +0200
.gitlab-ci.yml: automatically retry failed jobs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 24 16:48:32 2018 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 24 16:38:08 2018 +0200
allow no certificates to be reported by the gnutls_certificate_retrieve_function callbacks
In 9829ef9a we introduced a wrapper over the older callback functions
which didn't handle this case.
Resolves #528
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jul 20 20:49:28 2018 +0300
cert-cred: fix possible segfault when resetting cert retrieval function
Reset get_cert_callback3 callback to NULL if provided callback is NULL.
Otherwise after the certificate request call_legacy_cert_cb1 /
call_legacy_cert_cb2 will try to unconditionally call legacy_cert_cb1 /
legacy_cert_cb2 callback (set to NULL) leading to segfault.
Fixes: 9829ef9a3ca06d60472599df7c74ebb9a53f1fe2
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jul 22 20:31:36 2018 +0300
kx: for uniformity print master secret size
During keys setup phase debug log will contain sizes of all keys and
secrets, except master secret. Dump MS length (48) to log for
uniformity.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jul 22 20:31:09 2018 +0300
constate: dump full key block to log
Include full key block to the debug log.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jul 22 20:30:04 2018 +0300
constate: dump MAC keys to debug log
_gnutls_set_keys() can dump client/server write keys/ivs to debug log,
but it skips MAC keys. Add MAC keys to log.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Jul 22 20:25:35 2018 +0300
constate: drop unused variable in _gnutls_set_keys
_gnutls_set_keys() creates rrnd as client random + server random, but
does not use it (it was used before for export key generation, but was
not removed when dropping support for export cipher suites).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fixes: 8bdb8d53aa5b4c5d04255b6c9b5f2dac8b23d51b
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Jul 21 13:23:42 2018 +0300
cert auth: simplify certificate selection code
Merge pubkey_is_compat_with_cs() and select_sign_algorithm() functions
to ease extension of certificate selection code.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jul 19 12:50:13 2018 +0200
Remove trailing dot from hostname input
Fixes #532
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 17 09:03:38 2018 +0200
gnutls_x509_privkey_import_ecc_raw: encode parameters on import
That makes the structure fully usable after import. In _encode_privkey()
use the lower-level _gnutls_x509_export_int2() for key encoding as the
call to higher gnutls_x509_privkey_export2() could result to an infinite
recursion when keys are incomplete.
Introduced additional tests for PKCS#8 key import and export.
Resolves: #516
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Jul 19 14:19:07 2018 +0300
certtool: use gnutls_gost_paramset_get_name
gost_param_name() predates gnutls_gost_paramset_get_name() and
gnutls_gost_paramset_t. Use current API functions instead of hand-coding
new functions.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 19 11:24:04 2018 +0200
gnutls-cli: do not fail if CKA_ID is too long
Increased the buffer needed to read reasonable-sized CKA_IDs
and avoid failure when the CKA_ID is too long.
Resolves #520
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 19 07:47:40 2018 +0200
.gitlab-ci.yml: combined abi-check and TLS1.3 check runs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 19 06:06:34 2018 +0200
tests: handshake-timeout: reverted virt-time.h usage
The tests nature (waiting on a socket) didn't fit well with the virt-time
implementation. Reverted to original real-time wait and improved error
detection in child process.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 16 14:04:01 2018 +0200
gnutls_priority_init: fix err_pos on invalid strings
When the provided string would be resolved (e.g., due to a @ priority
being used), to a different string, then do not attempt to
detect the right location of the error. It will not be useful to the caller.
This addresses the issue of test suite failure when --with-system-priority-file
and --with-default-priority-string are provided. It also enhances the test suite
with these options being active.
Resolves #517
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 17 21:55:33 2018 +0200
examples: tlsproxy: use snprintf instead of strncpy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 17 08:17:13 2018 +0200
doc: simplified documentation on threads
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 17 13:53:02 2018 +0200
examples: tlsproxy: eliminated warnings
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 16 09:10:21 2018 +0200
.gitlab-ci.yml: updated win32 targets
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 16 08:27:54 2018 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 15 18:38:40 2018 +0200
gnutls-cli: mark legacy options as deprecated
This removes the --ranges and --disable-extensions options from
the default listing of options. They are disfunctional and may
be removed in the future.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 14 17:39:03 2018 +0200
.travis.yml: update brew and use nettle 3.4
Resolves #480
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 14 08:39:52 2018 +0200
.gitlab-ci.yml: Werror build runs with -std=c99
This ensures that the errors reported will be relevant
for the required version of the standard.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 14 17:30:49 2018 +0200
bumped versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 14 08:27:26 2018 +0200
_gnutls_resolve_priorities: avoid gnu extension for ?: construct
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 16:11:16 2018 +0200
NEWS: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 14:23:28 2018 +0200
nettle/rnd-fips: updated documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 14:01:44 2018 +0200
gnutls-cli: improve error reporting with -l --priority option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 11:18:21 2018 +0200
cipher-listings: use the sed found by configure script and make it portable
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 09:04:42 2018 +0200
tests: tls-fuzzer: separated SSL3.0 from TLS1.x tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 12 16:17:02 2018 +0200
gnutls-cli-debug: do not attempt SSL3.0 negotiation when not enabled
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 12 15:41:21 2018 +0200
priorities: ensure that SSL3.0 enablement fails early when disabled
That is, that a priority string with only SSL3.0 present is discarded as
invalid.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 12 15:14:39 2018 +0200
The SSL 3.0 protocol is disabled on compile time by default
It can be re-enabled by specifying --enable-ssl3-support on configure script.
This is the first step before removing support for the protocol completely.
Relates #103
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 08:45:49 2018 +0200
tests: gnutls-cli-debug.sh: corrected run under FIPS mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 07:10:11 2018 +0200
doc: minor text updates
Updated text for gnutls_session_ext_master_secret_status and for
GNUTLS_NO_EXTENSIONS flag which is defunc.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 07:08:42 2018 +0200
gnutls-cli-debug: fix EtM and extended master secret discovery
In particular do not set the GNUTLS_NO_EXTENSIONS flag by default,
and only enable block ciphers for the EtM check.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 13 06:40:08 2018 +0200
tests: improved unit test of gnutls-cli-debug
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 12 09:20:57 2018 +0200
gnutls-cli-debug: generalized cipher tests
That is, tests now check for either the 128-bit or the 256-bit
of the cipher consistently.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 12 09:19:13 2018 +0200
gnutls-cli-debug: removed legacy tests no longer applicable
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 12 09:17:11 2018 +0200
gnutls-cli-debug: detect TLS1.3 support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 11 21:26:05 2018 +0200
gnutls-cli-debug: when testing servers enable all ciphers
Resolves #515
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jul 3 11:33:21 2018 +0200
doc: update for TLS 1.3
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 09:56:35 2018 +0200
_gnutls13_recv_async_handshake: process multiple and split handshake messages
It is permitted to concatenate multiple async handshake messages in a single
record message as well as split large messages (NST) into multiple records.
Modified _gnutls13_recv_async_handshake() to process them correctly, instead
of assuming that they are formatted as one message per record.
Resolves #510
Resolves #504
Relates #511
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 10:18:23 2018 +0200
tests: check whether multiple tickets can be sent/received
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 10:11:41 2018 +0200
gnutls_session_ticket_send: allow sending multiple tickets in one go
This allows combining the tickets in a single record message when
possible.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 4 07:42:44 2018 +0200
tests: handshake-timeout: use virt_sec_sleep() to avoid long delays in test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 16:28:28 2018 +0200
generate_session_ticket: tickets cannot extend the original session time
That is, on a resumed session the server would not issue new tickets
that would have extended the lifetime of the originally issued ticket.
Resolves #476
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 3 18:42:01 2018 +0200
pre_shared_key: do not send extension when no identities are present
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 20:25:40 2018 +0200
tests: corrected priority strings in session-tickets-ok and other cleanups
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 3 10:22:04 2018 +0200
doc: mention session ticket behavior under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 16:29:04 2018 +0200
generate_session_ticket: use a 4-byte nonce by default
It is not necessary to use large nonces.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 16:22:04 2018 +0200
pre_shared_key: use time_t type for ticket_age variable
This is guarranteed to allow negative values, and also be 32-bits.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 16:19:35 2018 +0200
generate_session_ticket: fixed comment
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jul 9 18:21:20 2018 +0300
lib: document digest and paramset in gost key import functions
Document behaviour of gnutls_pubkey_import_gost_raw,
gnutls_privkey_import_gost_raw and gnutls_x509_privkey_import_gost_raw.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jul 9 14:22:34 2018 +0300
lib/x509: use new function to deduce default GOST paramset
Use new _gnutls_gost_paramset_default() function to deduce default GOST
paramset, instead of hardcoding if/else in several places.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Jul 9 14:02:14 2018 +0300
lib: remove undefined behaviour when handling GOST paramset
Initial version of GOST patchset used param < 0 to represent unknown
value. Later special enum entry GNUTLS_GOST_PARAMSET_UNKNOWN was
introduced. Fix several leftovers comparing params to 0 directly.
Closes #505.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 9 12:40:59 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 25 10:36:18 2018 +0200
gnutls_priority_init2,gnutls_set_default_priority_append: introduced
This allows enhancing the default priority with additional
options, allowing an application to introduce stricter (or weaker)
settings without requiring it to override all settings.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 7 19:52:04 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 7 19:48:14 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Jul 7 14:20:01 2018 +0200
configure: Fix progress message for --enable-tls13-support
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 7 10:21:51 2018 +0200
tests: tls-fuzzer-alpn: operate on random port
This allows parallel run of the test with other tlsfuzzer tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 3 08:49:06 2018 +0200
configure: added option --enable-tls13-support
The new option enables TLS1.3 draft-28 support unconditionally.
Updated the test suite to run when TLS1.3 is enabled by default,
and added a CI run with TLS1.3 enabled.
Resolves #424
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 3 11:45:31 2018 +0200
_gnutls_figure_common_ciphersuite: apply rfc7919 requirements only under TLS1.2
Under TLS1.3 there is no requirement to return insufficient security depending
on the FFDHE group negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 3 09:06:27 2018 +0200
supported_versions: do not parse in server side when TLS1.3 is disabled
This allows a server to negotiate older versions using the previous TLS
negotiation scheme.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 3 08:31:13 2018 +0200
protocols: bumped TLS1.3 protocol to draft-28
Resolves #506
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 4 10:08:06 2018 +0200
tests: mini-record-timing: avoid warning for too large stack usage
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 11:47:34 2018 +0200
tlsfuzzer: updated to include RSA and RSA-PSS related tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 08:32:52 2018 +0200
sign_supports_cert_pk_algorithm: corrected check for RSAE-PSS
If the signature algorithm sets the `cert_pk` field, ignore the
`pk` field completely. Not doing that would make the RSAE signature
algorithms with RSA-PSS certificates which is against the intended
use of `cert_pk`.
Resolves #500
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 14:12:48 2018 +0200
tlsproxy: included but not as submodule
This allows updating the example when necessary within the repository
and reduces the amount of external dependencies for CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 14:12:15 2018 +0200
tlsproxy: removed submodule
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 21:03:28 2018 +0200
tests: introduced tests about crypto API failures on illegal use
This ensures that any mistakes in using the crypto API are propagated
to the higher level calls, or result to an abort().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 12:49:55 2018 +0200
gnutls_aead_cipher_encryptv: eliminate signed/unsigned warnings under x86
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 22:00:09 2018 +0200
accelerated: error on the cases where the nettle API would have errored
This ensures that illegal uses of the API would be propagated to
the higher levels.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 22:08:16 2018 +0200
gnutls_cipher_add_auth: propagate error codes
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 11:27:48 2018 +0200
certtool: properly print an int64_t value
Also included the gnulib inttype module for portability.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 11:24:16 2018 +0200
certtool: print information on time_t restrictions on failure
This informs the user of the tool why dates after 2038 cannot
be expressed on systems with a 32-bit time_t.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 30 16:49:53 2018 +0200
tests: verify that certtool operates as expected with dates after 2038
That is, whether it works with a time_t of 64-bit size, and fails
with a time_t of 32-bit size.
Resolves #370
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 1 12:39:28 2018 +0200
tests: check explicitly the size of time_t
Previously we were disabling the 2038 tests on 32-bit systems,
but there can be 32-bit systems with a 64-bit time_t. Ensure
that we run the right tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 30 16:48:54 2018 +0200
tests: better guarding of variable SKIP_DATEFUDGE_CHECK
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 21:31:43 2018 +0200
tests: ignore PIPE signal on TLS1.3-related tests
This was inadvertently omitted and that could cause unexpected
issues when one of the peers would close the connection earlier
than expected.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 15:00:13 2018 +0200
tests: check for GNUTLS_E_GOT_APPLICATION_DATA on post-handshake auth
That is, check whether GNUTLS_E_GOT_APPLICATION_DATA is received as
documented, and whether post-handshake auth can complete while this
is being sent.
Resolves #490
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 14:38:40 2018 +0200
post-handshake: return GNUTLS_E_GOT_APPLICATION_DATA as documented to
Relates #490
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 13:57:11 2018 +0200
tests: introduced test for post-handshake auth + PSK
Relates #489
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 14:19:02 2018 +0200
tls13 handshake: allow certificate messages after handshake
This allows post-handshake authentication even when PSK
is negotiated.
Resolves #489
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 13:41:13 2018 +0200
gnutls_session_get_flags: introduced GNUTLS_SFLAGS_POST_HANDSHAKE_AUTH
This allows a server application to detect whether the client
would support post handshake authentication or not without initiating
via gnutls_reauth().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 2 08:10:45 2018 +0200
gnutls-serv: make --disable-client-cert and --require-client-cert options incompatible
That is refuse to run when both options are specified.
Resolves #502
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 29 22:40:27 2018 +0200
tests: verify whether GNUTLS_TLS_VERSION_MAX is negotiated on default mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jun 29 10:33:18 2018 +0200
Fixes + cleanups for .gitlab-ci.yml
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 21:46:24 2018 +0200
p11tool: remove duplicate branch
The GNUTLS_PKCS11_OBJ_ATTR_MATCH and GNUTLS_PKCS11_OBJ_ATTR_ALL
attributes are the same, so there is no need to handle them
separately.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 26 12:50:30 2018 +0200
Add strdup-posix gnulib module
Some files in gl/tests won't build in environments without
strdup(), e.g. MinGW on Debian. The gnulib docs advise to
explicitly add the module.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 21 11:29:19 2018 +0200
testcompat-tls13-openssl: fix openssl interactions
* Do not require certificate validation on tests where no certificate is sent
* Rekey test performs data transfer after re-key
This introduces a dependency on the expect package for testing, and
updates openssl to address an issue in post-handshake auth interop
testing.
Resolves #488
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 22 14:14:07 2018 +0200
gnutls-serv: when post-handshake auth is asked; require a certificate
This allows testing post-handshake authentication using gnutls-serv.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 21 15:05:40 2018 +0200
key update: corrected generation of keys
Resolves #485
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 21 08:46:04 2018 +0200
gnutls-cli: wait for all server data prior to closing connection
This cleans-up the existing code which was disfunctional and
allows detecting errors which happen after we transmit data
to the server.
Relates #485
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 13:34:16 2018 +0200
.gitignore: added new test executables
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 27 13:27:39 2018 +0200
tests: eliminated compiler warnings
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 26 16:02:45 2018 +0300
Update .gitignore files according to bootstrap
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 26 15:22:49 2018 +0300
src: fix regenerating autogen files if builddir = srcdir
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue Jun 26 15:18:36 2018 +0200
convert from milliseconds to timespec without loop
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue Jun 26 15:02:51 2018 +0200
use timespec_sub_ms() instead of open coding it
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue Jun 26 14:59:54 2018 +0200
avoid overflow when substracting timespecs if rdtsc is not available
This may still overflow on platforms where unsigned long is 32 bit (e.g. 32 bit
Un*x, any Windows) when the delta is more than 4 seconds.
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 26 11:38:58 2018 +0300
lib/nettle/gost: support building with mini-nettle/mini-gmp
Do not depend directly on gmp.h.
Closes: #497
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue Jun 26 09:39:19 2018 +0200
avoid rounding errors and overflows when substracting timespecs
The current Unix time will cause overflows if multiplied with 1000, which could
lead to rounding errors afterwards. Do the substractions first so all numbers
stay small enough to fit into unsigned ints.
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 25 12:30:55 2018 +0200
wrap_nettle_pk_generate_keys: retry on provable key generation
This resolves issue with occasional failures under RSA key generation
in FIPS140-2 mode.
Resolves #283
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jun 23 15:11:17 2018 +0200
Let ./bootstrap sync from translationproject.org
This makes manual updating of the translations obsolete.
From now on, builds and tarballs will always have the latest translations
included.
We should not forget to inform translationproject.org to update the
translations before a release. How to do that is described at
https://translationproject.org/html/maintainers.html (6. Announcing).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 26 02:38:51 2018 +0200
gnutls_session_get_desc: fixed desc printing of custom groups
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 25 10:06:25 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 24 21:46:15 2018 +0200
aarch64: use getauxval() if available to discover cpu caps
This improves CPU detection by avoiding the parsing of
of a human-readable file and allows operation under debian
multilib qemu setup.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 24 21:50:15 2018 +0200
.gitlab-ci.yml: no need for submodule update on cross-builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 13:14:03 2018 +0200
.gitlab-ci.yml: use qemu for aarch64 testing
This eliminates the need (and costs) to maintain a separate baremetal
system.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 24 08:27:00 2018 +0200
.gitlab-ci.yml: corrected typo
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 24 08:06:55 2018 +0200
.gitlab-ci.yml: skip submodule initialization when not necessary
This prevents unnecessary download of submodules on CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 24 06:51:14 2018 +0200
.gitlab-ci.yml: updated x86 CI builds with better datefudge detection
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 24 06:58:37 2018 +0200
.gitlab-ci.yml: debian stretch build replaced by buster
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 23 19:38:26 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 23 19:35:13 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 15 13:38:44 2018 +0300
tests: add PKCS#12 test script for GOST 28147-89-encrypted files
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Jun 15 13:06:41 2018 +0300
certtool: honour --hash option when generating PKCS#12 files
Use algorithm specified with --hash option when generating MAC for
PKCS#12 file, allowing user to select algorithms other than SHA-1.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Sep 24 10:31:39 2017 +0300
tests: expand pkcs7 test to also check GOST files
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 23 22:51:19 2017 +0300
test: test GOST keys import/export
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 23 21:40:34 2017 +0300
certtool: ask if certificate will be used for data encryption
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 23 21:37:18 2017 +0300
tests: add common gost certificates for tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 6 03:57:24 2016 +0300
Support key matching with GOST keys
GOST keys do not support signing non-GOST hashes, so use correct digest
algorithm when verifying that GOST public and private keys match.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Nov 26 04:51:41 2016 +0300
Add generated GOST credentials for tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 21 20:58:00 2016 +0300
Use GOST R 34.11-94 when generating key for PKCS data to be encrypted with GOST 28147-89
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 21 20:52:43 2016 +0300
certtool: support generating GOST-encrypted PKCS#8/12 files
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Nov 18 00:23:54 2016 +0300
Add gost certificates to chainverify tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Nov 17 10:47:16 2016 +0300
Expand x509 sign/verify test with GOST algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Nov 17 10:22:11 2016 +0300
oids: expand to include GOST digests/signatures
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Aug 29 17:44:10 2017 +0300
tests: privkey-keygen: adapt to support GOST algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Oct 24 20:56:46 2016 +0300
Support GOST private keys generation
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 18:01:20 2016 +0300
certtool: support dumping GOST private key information
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 17:38:57 2016 +0300
Add several DN entry definitions used by qualified GOST signatures
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Aug 28 14:34:33 2017 +0300
certool: export GOST privkeys only in PKCS#8 format
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 9 14:19:58 2016 +0300
Add support for PKCS12 files using GOST MAC
Local PKCS12-based standard derives from RFC 7292 (PKCS #12) in using
PBKDF2 to generate MAC key rather than using PKCS12 scheme.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 9 14:02:56 2016 +0300
Add support for PBES2/PBKDF2 using GOST algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Jan 28 06:01:01 2017 +0300
Support PKCS#12 key derivation with GOST digests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 17:56:04 2016 +0300
Add support for importing/exporting GOST private keys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 18 12:54:12 2017 +0300
Support importing/exporting X.509 GOST public keys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:43:35 2016 +0300
Add ASN.1 definitions for GOST keys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:07:36 2016 +0300
nettle: add support for GOST 34.10 public keys
There is no support for GOST public keys derivation, as it is used only
for TLS or PKCS#7 with encrypted content.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 17:05:38 2016 +0300
Add few functions to support basic operations with GOST public keys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:02:30 2016 +0300
Add declarations for GOST R 34.10 signatures
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 03:55:10 2016 +0300
Define GOST R 34.10 curves
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:00:21 2016 +0300
Add declarations to support GOST public keys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 29 05:28:17 2016 +0300
Add support for I/O of little-endian MPI
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Nov 29 05:30:10 2016 +0300
nettle: add support for unsigned LE MPIs
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:05:41 2016 +0300
nettle: add support for GOST 34.11 hash functions
Add support for GOST R 34.11-94 and Streebog (256/512) functions.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:05:07 2016 +0300
nettle: support GOST28147-89 in CFB mode
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 27 03:18:32 2016 +0300
Add declarations for GOST 28147-89 cipher in CFB mode
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 03:57:17 2016 +0300
Add declarations for GOST R 34.11 (-94 and -2012) digest algorithms
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Aug 29 15:12:53 2017 +0300
Import GOST-supporting part from Nettle pending patches
Nettle upstream takes significant time to accept GOST-related patches.
As per Nikos' suggestion, push relevant parts to GnuTLS, so that they
can be tested in wild at the same time supporting GOST ciphersuite code.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sun Sep 17 20:57:52 2017 +0300
.gitlab-ci.yml: disable gost in minimal build
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Oct 26 22:34:17 2016 +0300
Add configure argument to disable GOST support
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 12 10:16:10 2018 +0200
_gnutls_parse_hello_extensions: enforce that pre-shared-key extension is last
This is a requirement in draft-ietf-tls-tls13-28 4.2.11 section:
The "pre_shared_key" extension MUST be the last extension in the
ClientHello (this facilitates implementation as described below).
Servers MUST check that it is the last extension and otherwise fail
the handshake with an "illegal_parameter" alert.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 12 10:01:22 2018 +0200
tests: check whether we send the pre-shared key extension after dumbfw
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 12 09:35:16 2018 +0200
tests: corrected typo in comment
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 8 10:48:32 2018 +0200
extensions: corrected order of pre-shared-key and dumbfw
The pre-shared-key MUST always be last under TLS1.3 while the
dumbfw extension should be last in order to do proper evaluation
of extension size (gnutls requirement). As such the protocol
requirement takes precedence.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 19 13:21:44 2018 +0200
Fix test code for -Werror
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 19 14:59:33 2018 +0200
tests: updated supplemental tests for TLS1.3
This includes tests that verify that TLS1.3 is not negotiated
when supplemental data are set in client and/or server side.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 19 16:03:52 2018 +0200
gnutls_supplemental_register: disable TLS 1.3 globally
This allows using the registered supplemental data handlers, since
these are not used under TLS 1.3.
Resolves #479
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 19 14:42:13 2018 +0200
gnutls_session_supplemental_register: disable TLS1.3 when set
This allows using the registered supplemental data handlers, since
these are not used under TLS 1.3.
Resolves #479
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 19 12:02:13 2018 +0200
Remove oss-fuzz copora from tarball
The size of the corpora is huge and not needed for normal builds.
This patch also fixes test run issues on Windows.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 20 13:20:27 2018 +0200
gnutls-cli: introduce the rekey1 inline command
That allows performing a rekey locally and with the
peer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 11:33:34 2018 +0200
document new behavior on safe padding removal
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 11:22:36 2018 +0200
record: fail with invalid request when attempting to send no pad and no data
Previously we were returning an internal error which seems to be incorrect
in that case.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 11:15:56 2018 +0200
tests: enhance padding check
This introduces tests for zero-data transfers with padding as well
as padding and de-padding with safe padding flag set.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 11:03:40 2018 +0200
gnutls-cli: added CCM run under TLS1.2 in benchmark mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 11:00:39 2018 +0200
cipher: made TLS1.3 safe padding check optional
This patch introduces the gnutls_init() flag GNUTLS_SAFE_PADDING_CHECK
which makes the TLS1.3 safe padding check optional. That way applications
which do not utilize the TLS1.3 padding do not get penalized by the performance
drop in TLS1.3 packet processing. This addresses a regression in TLS1.3
packet processing performance.
Resolves: #466
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 19 13:16:13 2018 +0200
gnutls_session_get_id: document restrictions
This documents the fact that a TLS session ID cannot be relied
to be unique or to even have a meaningful value.
Resolves #484
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 19 13:08:27 2018 +0200
tests: verify that resumed session ID matches original
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 19 18:23:14 2018 +0300
Makefile.am: move autogen files update to src/Makefile.am
Move autogen'ed files update to src/Makefile.am to simplify code and
support out-of-tree builds.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 19 18:20:18 2018 +0300
Makefile.am: files-update: support out-of-tree builds
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Jun 19 11:26:09 2018 +0300
symbol-check: fix typo to make it work for out-of-tree builds
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 16 15:46:25 2018 +0200
aarch64: update elf files to correspond to the macosx version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 10 14:08:54 2018 +0200
macosx: include aarch64 asm files
Relates #475
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 16 15:27:02 2018 +0200
Makefile.am: abi-check: fetch fresh tags
This addresses the issue of failed abi-check CI runs on
forked repositories.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 18 15:10:32 2018 +0200
drbg-aes: removed the continuous DRBG checks
These are no longer necessary for FIPS140-2 compliance.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Jun 15 19:39:22 2018 +0200
Fix usage of 'autoreconf'
'autoreconf' created a different configure script than ./bootstrap.
The result was a broken wchar.h that failed to compile.
The work-around was 'autoreconf -I gl/m4' which is not what a developer
expects. This patch moves gl/m4/* to m4/ which is the default include dir
for autoreconf.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Martin Storsjo <martin@martin.st>
Date: Thu Jun 14 12:53:42 2018 +0300
configure: Check for clock_gettime and fmemopen using a proper test
Don't use AC_CHECK_FUNCS for these functions, but actually test by
including the real header that defines the functions. This allows
the macOS version selection work as intended, making the references
to these functions weak if targeting a version of macOS where these
functions aren't available. Thanks to -no_weak_imports, these weak
references end up in failed linker tests, marking the functions as
unavailable.
This fixes issue #142.
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Martin Storsjo <martin@martin.st>
Date: Thu Jun 14 12:52:03 2018 +0300
configure: Include sys/random.h before checking for getentropy on macOS
This function is available since macOS 10.12, but it's in
sys/random.h on macOS, contrary to the other platforms supporting
it where it is present in unistd.h.
If we don't include the right header that declares the function
and its availability, the configure check would succeed even if
targeting older versions of macOS that lacks the function.
Also include the same header in the source file that actually
uses getentropy.
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Martin Storsjo <martin@martin.st>
Date: Thu Jun 14 12:36:10 2018 +0300
configure: Pass -no_weak_imports to the linker, if supported
This avoids linking to functions that aren't available in the
lowest targeted macOS version.
If the proper header declaring a function is included, and
gnutls is built with -mmacosx-version-min or the
MACOSX_DEPLOYMENT_TARGET environment variable is set, each
reference to a function that doesn't exist in the minimum
targeted version will be made a weak reference, so that loading
the binary still works, but the function pointer will resolve
to NULL if running on a version of the platform that lacks it.
Since this project doesn't do such runtime checks for functions
it expects to have available, we should instead add this linker
option to fail on the weak references. This allows autoconf to
work as intended, detecting that these functions aren't usable.
This flag appeared in Xcode 8, so check for its availability
before using it. (Xcode 8 and the 10.12 SDK is coincidentally
the release where most relevant new functions appeared, so with
older Xcode versions, the modern platform functions we might want
to avoid don't exist.)
See issue #142.
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Martin Storsjo <martin@martin.st>
Date: Thu Jun 14 13:47:41 2018 +0300
configure: Remove a duplicate check for fmemopen
The duplicate was added in 5bb8a18b without any specific reasoning
as to why.
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 13 17:50:20 2018 +0200
tlsfuzzer: update to the latest version
Also enable test-tls13-hrr.py.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 13 17:47:50 2018 +0200
_gnutls13_handshake_server: send CCS immediately after HRR
In the TLS 1.3 middlebox compatibility mode, CCS follows the first
handshake message sent from the server, that is either SH or HRR.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 14 13:43:30 2018 +0200
_gnutls13_handshake_server: corrected transition when post_handshake callback is set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jun 13 17:43:32 2018 +0200
_gnutls_send_change_cipher_spec: don't cache under TLS 1.3
Under TLS 1.3, when the server sent HRR, CCS may be followed by
receiving ClientHello. In that case, the messsage shouldn't be
cached.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 10 11:42:10 2018 +0200
abi-check skip session::set_transport_vec_push_function
This prevents an abi-compliance checker error when run under
gcc8 (though this error is not there under any other gcc).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 27 15:13:47 2018 +0200
corrected check for iovec types in libc
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 2 22:23:29 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 2 22:15:58 2018 +0200
gnutls-cli: benchmark for TLS1.3 and TLS1.2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 2 21:37:00 2018 +0200
cipher: use gnutls_aead_cipher_encryptv
This eliminates the need of a memory allocation during each
packet encryption when no padding is done.
Relates #458
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 2 21:25:10 2018 +0200
gnutls_aead_cipher_encryptv: introduced
This API allows encryption using a scatter input, by also
taking advantage of ciphers which are optimized for such input.
That is particularly useful under TLS1.3 since its encryption is
based on encryption of scattered data (data+pad).
Resolves #458
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 2 21:23:41 2018 +0200
MAX_CIPHER_BLOCK_SIZE: increased to 64-bytes for CHACHA20
This was not necessary since that value was only used by block
(in TLS sense) ciphers, but that definition could also be used
for the CHACHA20.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 14 14:51:23 2018 +0200
configure: reduce warnings about implicit-fallthrough [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 14 13:22:03 2018 +0200
gnutls_alert_send_appropriate: fix type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 14 13:18:54 2018 +0200
README-ci.freebsd.md: updated for new build method with gnulib [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jun 6 09:45:32 2018 +0200
Use $(MAKE) instead of make
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 5 17:06:05 2018 +0200
distclean temp. test files for 'make distcheck'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 5 10:58:10 2018 +0200
Add DISTCLEANFILES to src/Makefile.am to fix 'make distcheck'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jun 4 16:15:07 2018 +0200
Fix creation of ChangeLog for 'make distcheck'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jun 4 11:56:57 2018 +0200
Fix 'compare-makefile' make target for 'make distcheck'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jun 4 11:33:18 2018 +0200
Fix 'compare-exported' make target for 'make distcheck'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu May 31 13:20:51 2018 +0200
Fix distcheck issues
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon May 21 16:25:20 2018 +0200
Fix gcc 8 warnings
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat May 19 13:24:58 2018 +0200
Fix CI testing -Werror
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat May 19 10:19:32 2018 +0200
Skip sc_prohibit_always_true_header_tests
We can't simply remove the checks for HAVE_SYS_SOCKET_H.
If we do, we have to make checks on real WIN32, which
is currently not an option.
So we skip sc_prohibit_always_true_header_tests.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat May 19 09:37:24 2018 +0200
Fix sc_prohibit_always-defined_macros
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 18 23:23:26 2018 +0200
Avoid certain gnulib tests
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 18 23:10:16 2018 +0200
Update GTK-DOC check in configure.ac
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jun 6 09:19:45 2018 +0200
Use ./bootstrap in .gitlab-ci.yml
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 18 20:31:31 2018 +0200
Add bootstrap + bootstrap.conf
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri May 18 20:06:16 2018 +0200
Add gnulib submodule
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Jun 13 12:12:18 2018 +0300
nettle: require Nettle library >= 3.4
Nettle version 3.4 was released more than a half year ago, require it to
compile GnuTLS library. It allows us to remove bundled code that was
merged into that release.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 12 13:01:17 2018 +0200
.gitlab-ci.yml: fix artifact paths for TLS1.3/interop
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 12 09:12:07 2018 +0200
tlsfuzzer-tls13: use a random port for testing
That eliminates the need for locking and allows parallel runs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 8 13:13:27 2018 +0200
tlsfuzzer: update to the latest version
Also enable the TLS 1.3 tests.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 11 12:08:18 2018 +0200
buffers: remove redundant assignment
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Jun 11 10:51:16 2018 +0200
record: use correct alert type upon receiving empty Alert
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 8 15:55:06 2018 +0200
record: improve empty message handling in TLS 1.3
Previously, _gnutls_recv_in_buffers() silently discarded empty
messages because such messages are used as a countermeasure to
vulnerabilities in the CBC mode. In TLS 1.3, however, there are only
AEAD ciphers and such logic is meaningless. Moreover, in the protocol
it is suggested to send "unexpected_message" alert when receiving
empty messages in certain occasions. This change moves the empty
message handling to record_add_to_buffers().
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 8 12:51:40 2018 +0200
record: fix padding removal when the payload is zero-length
Previoysly if TLSInnerPlaintext.content is zero-length, the loop
couldn't detect ContentType following the content.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 5 10:37:58 2018 +0200
priorities: introduced %FORCE_ETM
This introduces a priority string option to force encrypt-then-mac
during negotiation, to prevent negotiating the legacy CBC ciphersuites.
Resolves #472
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 6 09:25:20 2018 +0200
priorities: hmac-sha256 ciphersuites were removed from defaults
These ciphersuites are deprecated since the introduction of AEAD
ciphersuites, and are only necessary for compatibility with older
servers. Since older servers already support hmac-sha1 there is
no reason to keep these ciphersuites enabled by default, as they
increase our attack surface.
Relates #456
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 7 09:56:49 2018 +0200
cbc_mac_verify: require minimum padding under SSL3.0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 7 09:54:50 2018 +0200
cipher: separated CBC w/o EtM handling
This would allow to further modify for more invasive work-arounds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 4 17:57:52 2018 +0200
dummy_wait: always hash the same amount of blocks that would have been on minimum pad
This improves protection against lucky13-type of attacks when
encrypt-then-mac is not in use.
Resolves #456
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 21 09:04:55 2018 +0200
cbc-record-check.sh: introduced
That enhances the existing CBC check and adds sha384, uses PSK
to reduce handshake time, and other updates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 18 15:43:36 2018 +0200
dummy_wait: correctly account the length field in SHA384 HMAC
The existing lucky13 attack count-measures did not work correctly for
SHA384 HMAC.
The overall impact of that should not be significant as SHA384 is prioritized
lower than SHA256 or SHA1 and thus it is not typically negotiated, unless a
client prioritizes a SHA384 MAC, or a server only supports SHA384, and in both
cases the vulnerability is only present if Encrypt-then-MAC (RFC7366) is unsupported
by the peer.
Resolves #455
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jun 7 12:11:30 2018 +0200
Fix warnings seen on OpenCSW Solaris 10
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 8 08:56:23 2018 +0200
gnutls_session_get_data2: harmonize documentation with practice
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jun 6 12:45:13 2018 +0200
Fix variable overflow in TLS1.3 session ticket code
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 1 15:04:49 2018 +0200
tls13/session_ticket: don't send ticket when no common KE modes
When the server had received psk_key_exchange_modes extension which
doesn't have any overlap with the server configuration, omit to send
NewSessionTicket.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jun 5 14:08:26 2018 +0200
ext/psk_ke_modes: always send extension unless disabled in config
With the psk_key_exchange_modes extension, clients can restrict the
key exchange modes for use with resumption and in that case the server
shouldn't send NewSessionTicket. This patch makes use of it to avoid
receiving useless tickets, by sending the psk_key_exchange_modes
extension unless PSK is completely disabled.
A couple of tests need to be adjusted: tls13/prf to take into account
of the psk_key_exchange_modes extension sent, and tls13/no-psk-exts to
not treat the presence of the extension as error.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed May 23 22:26:20 2018 +0200
Add --enable-doc to DISTCHECK_CONFIGURE_FLAGS
Make sure that 'make distcheck' works even if
'./configure --disable-doc' has been used in the project dir.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed May 23 22:24:05 2018 +0200
Fix tests 'ocsp-must-staple-connection' and 'ocsp-tls-connection'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed May 23 22:22:27 2018 +0200
Fix tests/cert-tests/template-test for 'make distcheck'
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 1 09:54:41 2018 +0200
ext/pre_shared_key: make PSK identity parsing robuster
Previously, to determine whether a PSK identity is a ticket or a PSK
username, it relied on PskIdentity.obfuscated_ticket_age, which
"SHOULD" be 0 if the identity is a PSK username.
This patch instead checks the key name of the ticket first and then
check the constraints of the PSK username. That way, it can
distinguish tickets and PSK usernames in a more realible manner.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Jun 1 10:01:08 2018 +0200
_gnutls_decrypt_session_ticket: fail early on key name mismatch
If the key name of the ticket doesn't match, we don't need to parse
the entire ticket.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Tue May 29 15:53:45 2018 +0200
Renamed extension supported ECC to supported groups. Fixes #451.
Split combined ECC extensions into different files.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu May 24 12:45:32 2018 +0200
Fix more warnings in tests/
To not introduce larger code changes, these bugs are mostly
fixed by #pragma understood by gcc and clang.
A check for the minimal gcc/clang version prevents warnings about
unknown pragmas with other or older compilers.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu May 24 09:49:34 2018 +0200
Fix warnings in test suite
Fixes:
tls-ext-register.c:238:11: warning: unused variable 'i' [-Wunused-variable]
record-retvals.c:118:14: warning: unused variable 'vers' [-Wunused-variable]
record-retvals.c:347:1: warning: label 'next' defined but not used [-Wunused-label]
alerts.c:71:14: warning: unused variable 'vers' [-Wunused-variable]
alerts.c:71:11: warning: unused variable 'i' [-Wunused-variable]
alerts.c:160:11: warning: unused variable 'i' [-Wunused-variable]
send-client-cert.c:176:6: warning: no previous prototype for 'start' [-Wmissing-prototypes]
tls-session-supplemental.c:186:6: warning: unused variable 'optval' [-Wunused-variable]
tls-session-supplemental.c:184:7: warning: unused variable 'topbuf' [-Wunused-variable]
tls-session-supplemental.c:183:6: warning: unused variable 'err' [-Wunused-variable]
x509self.c:211:6: warning: unused variable 'optval' [-Wunused-variable]
x509self.c:208:7: warning: unused variable 'topbuf' [-Wunused-variable]
x509self.c:207:6: warning: unused variable 'err' [-Wunused-variable]
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 22 09:14:45 2018 +0200
tests: resume: check whether PSK username matches on resumption
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 22 09:04:32 2018 +0200
resumption: reduce session parameters stored under TLS1.3
That is, do not store extensions or security parameters which
depend on extension negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 16:35:32 2018 +0200
session_ticket: use random nonces
Avoid using any time values in plain as this could allow association
of clients.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 16:03:23 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 14:14:55 2018 +0200
doc: mention changes under TLS 1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 11:22:24 2018 +0200
tests: added main use-case test for gnutls_session_ticket_send()
It verifies whether a server can use gnutls_session_ticket_send()
to send a ticket after re-authentication, and whether a client
can receive that ticket and re-authenticate with it, while
its certificate is made available to server.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 11:21:55 2018 +0200
handshake: do not include async messages into transcript
This prevents the session tickets to affect re-authentication
or other operations that require the transcript.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 10:27:00 2018 +0200
gnutls_session_ticket_send: new function
Introduced in order for a server to be able to send an arbitrary
amount of tickets, at any time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 15 10:10:20 2018 +0200
handshake: store session parameters in TLS1.3 ticket
This allows a TLS1.3 server to obtain certificate or other
information from the client on a resumed session.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 14 16:05:27 2018 +0200
handshake: TLS1.3 async messages trigger the handshake hook
That is, the callback set with gnutls_handshake_set_hook_function() is
now called even on the async handshake messages received under TLS1.3,
such as key update, etc.
Resolves #441
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 14 14:33:15 2018 +0200
tests: check various parameters on resumption
That is, check gnutls_session_is_resumed() is functional on server
side, whether PRF is respected on resumption, whether gnutls_certificate_get_peers()
and gnutls_certificate_get_ours() operate as expected, and whether session
resumption fails with tickets after expiration time has passed.
In addition improve function documentation by documenting the current
semantics for the functions above.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Apr 17 13:32:18 2018 +0200
tests: exercise TLS 1.3 session resumption
This requires a few changes to the resume.c test: because
NewSessionTicket is a post-handshake message,
gnutls_session_get_data2() needs to be called after sending the first
application data. Also, when GNUTLS_E_AGAIN, gnutls_record_recv()
needs to retry.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 30 14:27:52 2018 +0200
gnutls-cli: ignore E_AGAIN to accommodate async handshake message
When an async handshake message has arrived while no application data
is available, gnutls_record_recv() returns GNUTLS_E_AGAIN and the loop
in socket_recv() blocks. Since socket_recv() is guarded by select(),
it should be safe to ignore GNUTLS_E_AGAIN.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 14 09:01:59 2018 +0200
gnutls_auth_get_type: simplified
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Ander Juaristi <a@juaristi.eus>
Date: Mon Apr 16 17:13:47 2018 +0200
TLS 1.3: Introduced TLS 1.3 session resumption
This introduces session resumption under TLS 1.3. For that,
it enables the psk_ke_modes extension when we enable session
tickets. It enables sending session tickets in addition to
PSK usernames. The detection of resumption vs pure PSK is done by
comparing the indexes sent with the index received by the server.
TLS 1.3 session tickets are always sent to the peer unless the
GNUTLS_NO_TICKETS is specified.
Resolves #290
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 10 14:25:12 2018 +0200
psk_ke_modes: introduce psk_ke_modes_is_required() and update doc
This adds a helper function to be extended when session resumption
is added, and clarifies why we send a prioritized list on ke modes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Author: Ander Juaristi <a@juaristi.eus>
Date: Thu Apr 12 17:58:47 2018 +0200
session tickets: expose {encrypt,decrypt}_ticket as internal API
To reuse the same ticket construction in any TLS versions, expose the
private functions in ext/session_ticket.c.
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu May 3 09:39:15 2018 +0200
ext/pre_shared_key: fix binder calculation when HRR is sent
In that case, ClientHello1 and HelloRetryRequest are included in the
PSK binder computation, not only the truncated ClientHello2.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Mon Apr 16 17:22:19 2018 +0200
handshake: record transcript offset of client Finished
This is for deriving resumption_master_secret, whose value is
calculated over ClientHello...client Finished.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu May 24 15:24:17 2018 +0200
Fix testdane by removing www.kumari.net
danetool --check www.kumari.net:
Verification: Verification failed. The certificate differs.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Tue May 22 11:22:42 2018 +0200
Fixed some spelling issues. [ci skip]
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon May 21 21:58:55 2018 +0200
Added extra extension flag to docs.
Added description of default pack and unpack functions.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Mon May 21 09:44:16 2018 +0200
Removed section about Heartbleed.
Referenced new functions _gnutls_hello_ext_set_datum / _gnutls_hello_ext_get_datum for manipulation extension data.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sun May 20 10:23:36 2018 +0200
Fixed typo and incorrect function references.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Sat May 19 22:22:29 2018 +0200
Updated documentation on Hello extensions.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 19 11:30:35 2018 +0200
pkcs11: consistent/clear naming of find obj callbacks and structs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 18 11:04:34 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 18 09:19:16 2018 +0200
gnutls_pkcs11_token_get_ptr, gnutls_pkcs11_obj_get_ptr: introduced
This allows an application to open a PKCS#11 token using a URI,
and use it directly, bypassing gnutls. That is useful to take
advantage of PKCS#11 functionality not wrapped by gnutls but
still use PKCS#11 URIs to identify the token.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 19 12:47:16 2018 +0200
CONTRIBUTING.md: document why gnulib is kept separate [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Fri May 18 18:52:41 2018 +0200
certtool: split long prompt for serial
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Fri May 18 13:00:43 2018 +0200
doc: add note about CRL numbers to man page
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Fri May 18 12:35:39 2018 +0200
certtool: ask again until serial/crl number is valid
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Fri May 18 11:39:53 2018 +0200
tests: remove check for broken datefudge
This check is not necessary with Fedora 28 build image
currently used for CI as it contains datefudge 1.22
as well.
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Fri May 18 10:43:26 2018 +0200
certtool: remove extra function
I did not notice strip_nl previously.
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Fri May 18 10:31:30 2018 +0200
tests: add negative tests for certtool crl numbers
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Sun May 13 23:28:33 2018 +0200
doc: add NEWS about serial and CRL numbers
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Sun May 13 23:04:29 2018 +0200
doc: add hex format to example template
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Martin Sucha <anty.sk+git@gmail.com>
Date: Thu May 17 12:31:01 2018 +0200
certtool: use larger serial and CRL numbers
Serial/CRL numbers can be up to 20 octets in length
as per RFC 5280, so it should be possible to use
such numbers as input to certtool. certtool
only allowed to specify 63-bit numbers in
template file or interactively (even though
it generated larger numbers in batch mode
by default).
This patch allows large numbers to be specified
as a hexadecimal string. Parsing of decimal numbers
larger than native integers would require adding
dependency on libgmp directly to certtool or
extending the API exposed by GnuTLS library with parsing
functions. Since most tools (including GnuTLS) display
serial numbers in hexadecimal, it is not worth the
trouble to support large decimal numbers.
Default values are unified between batch mode and
interactive input and their size is extended.
CA/Browser forum recommends CAs to include at least
64 bits of random data in the certificate serial
numbers in Baseline Requirements[1] section 7.1, but
gnutls adds only 32 bits. Some other
implementations generate default serial numbers
with more entropy as well, here is the current state
as of May 2018:
+----------------+-------------------------------+
| Implementation | Random bits in default serial |
+----------------+-------------------------------+
| OpenSSL [2] | 159 |
| CFSSL [3] | 159 |
| wolfSSL [4] | 128 |
| GnuTLS | 32 |
| Mbed TLS [5] | 0 (defaults to 1) |
+----------------+-------------------------------+
The 20 octet field size can fit numbers up to 159 bits
since the most significant bit must be zero as numbers
in DER encoding are in two's complement and the serial
and CRL numbers must be positive.
Default serial numbers are extended to full 159 bits
allowed by the field size and are completely random,
which matches other implementations.
CRL numbers have the same size requirements, but also
need to be monotonic (RFC 5280, section 5.2.3). That's
why timestamp is used in them. The timestamp portion
is extended from 31 bits to 39 bits as 31 bits will
overflow in year 2038. The rest of the available space
up to 159 bits allowed in the 20 octet limit is filled
with random bits.
Since the new CRL numbers are larger, the requirement for them
to be monotonically increasing is preserved when upgrading to a
newer version. This does not hold the other way around though,
so after using a newer version of certtool to generate a CRL
with default number and publishing it, it's not possible
to use older version anymore to generate subsequent CRLs.
Unfortunately, there is no easy workaround for users of older
certtool, since it is not possible to specify CRL numbers
greater than 63 bits manually prior to this change.
Users intending to downgrade to older version later are advised
to specify the CRL numbers in new version of certtool
manually with values they are smaller than what would get
generated by default in the old version.
grep does not recognize CRLF line endings generated
in tests using MinGW, so we need to convert those to
LF endings for $ in the regex to match test output
correctly.
datefudge 1.21 that is present in Fedora 26
image trims the timestamp to 32 bits. That bug was
fixed in datefudge 1.22 available in the Debian image,
so we check if datefudge behaves correctly
and skip the test that uses more than 32 bits if
datefudge is broken.
[1] https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-1.4.2.pdf
[2] https://github.com/openssl/openssl/blob/6ebb49f3f9c9333611192561979bb799fa1eb76d/apps/apps.c#L1513
[3] https://github.com/cloudflare/cfssl/blob/5d63dbd981b5c408effbb58c442d54761ff94fbd/signer/local/local.go#L295
[4] https://github.com/wolfSSL/wolfssl/blob/d60b16c5b8c19cc61db4a5c3f5e085a7a158cd28/wolfcrypt/src/asn.c#L9791
[5] https://github.com/ARMmbed/mbedtls/blob/84a1107818aaddfd2abe4c5a3478cf84ab2e26b4/programs/x509/cert_write.c#L81
Signed-off-by: Martin Sucha <anty.sk+git@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 09:52:32 2018 +0200
handshake: do not send TLS extensions under DTLS and vice versa
That is, introduce the notion of TLS-only and DTLS-only extensions,
providing a framework to prevent sending extensions which are registered
for example for TLS 1.3, under DTLS and vice versa.
Resolves #440
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 11:51:41 2018 +0200
gnutls_ext_raw_parse: introduced GNUTLS_EXT_RAW_FLAG_DTLS_CLIENT_HELLO
This allows parsing extensions from a DTLS client hello.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 16 15:32:35 2018 +0200
tests: fix serv location in testcompat-main-openssl
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun May 13 14:39:14 2018 +0200
tests/suite: add missing file to dist
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun May 13 14:33:17 2018 +0200
Allow running of test against installed gnutls-serv
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 4 14:55:21 2018 +0200
gnutls_certificate_set_retrieve_function3: updated documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 2 14:30:24 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 29 15:16:35 2018 +0200
pcert: added functionality to retrieve lists
That introduces gnutls_pcert_list_import_x509_file() and
gnutls_x509_crt_list_import_url().
Resolves #373
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 12 10:10:28 2018 +0200
tests: sanity-cpp: fixes for win32
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 12 09:51:59 2018 +0200
.gitlab-ci.yml: bumped version of cache due to addition of CXXFLAGS
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 12 09:04:28 2018 +0200
tests: fix failures in cxx example
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 12 08:47:15 2018 +0200
cxx: bring few modern functions, and allow to get the raw session
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Philippe Widmer <pw@earthwave.ch>
Date: Thu May 10 16:44:58 2018 +0200
New constructors for classes client_session() and server_session() provide passing flags. Closes #438.
Signed-off-by: Philippe Widmer <pw@earthwave.ch>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 10 13:38:32 2018 +0200
tests: mini-record-timing: updated to work under newer gnutls [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 10 05:49:07 2018 +0200
tests: key_update: improved error checking and increased timeout
That is to avoid reaching the maximum number of key updates per second.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 22:31:39 2018 +0200
.gitlab-ci.yml: moved fedora CI builds to F28
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 23:21:16 2018 +0200
tests: testcompat-openssl: disable DSS ciphersuites under SSL3.0
Previously if openssl wouldn't support DSS, we would only disable
DSS under TLS1.0 or later, not under SSL 3.0. This fixes interoperability
with Fedora28 openssl.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 08:12:12 2018 +0200
Makefile.am: optimized the abi-check configure step
Also ensured that the same build flags are applied in both builds
for ABI checking.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 23:15:06 2018 +0200
several updates to address issues found by clang static analyzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 22:51:26 2018 +0200
nettle: fix casts which result to warnings in newer gcc
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 21:58:30 2018 +0200
tests: updated for GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER from handshake
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 21:49:16 2018 +0200
handshake: use GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER consistently
Also treat GNUTLS_E_ILLEGAL_PARAMETER as a synonym if returned during
a connection.
Relates #442
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 21:42:44 2018 +0200
CONTRIBUTING.md: documented status of C++ library [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 10:50:30 2018 +0200
tests: cookie: fixed exit condition [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 15:39:30 2018 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 7 08:17:09 2018 +0200
.gitlab-ci.yml: fixes in win32 builds
Relates #439
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 4 08:39:30 2018 +0200
certtool: honor --ask-pass when loading a private key
This also improves the password prompt when the password requested
is not for a smart card.
Resolves: #436
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Michael Weiser <michael.weiser@gmx.de>
Date: Fri Apr 27 15:35:30 2018 +0200
.gitlab-ci.yml: Disable full test suite for cross builds
Disable the full test suite for cross CI builds to speed them up.
Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Author: Michael Weiser <michael.weiser@gmx.de>
Date: Wed Apr 25 16:54:27 2018 +0200
.gitlab-ci.yml: Expire all build log artifacts
Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Author: Michael Weiser <michael.weiser@gmx.de>
Date: Wed Mar 28 22:47:01 2018 +0200
Use configured CC for pkg-config test
Using the configured compiler aids in running the test suite under qemu
or in a multlib scenario.
Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Author: Michael Weiser <michael.weiser@gmx.de>
Date: Mon Mar 19 19:02:12 2018 +0100
Add Debian-based qemu cross CI targets
Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 22:38:56 2018 +0200
updated-auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 22:17:15 2018 +0200
fuzzer: added fresh TLS1.3 server trace
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 21:59:13 2018 +0200
gnutls-serv: all skipping DTLS cookie request
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 5 21:45:56 2018 +0200
gnutls-cli: corrected data written by server trace
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 3 11:53:51 2018 +0200
tests: post handshake auth: test more combinations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 3 11:48:46 2018 +0200
post_handshake_auth: send extension irrespective of certificates being present
The feature does not necessarily require certificates to be present
and an empty cert can be presented. Furthermore, the certificates
can be set later on the credentials structure.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 3 13:48:52 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 8 18:38:47 2018 +0200
tests: added interop tests with openssl under TLS1.3
This adds interoperability tests for:
* PSK with elliptic curve DHE
* RSA,RSA-PSS,secp256r1,ed25519 server certificate
* RSA,RSA-PSS,secp256r1,ed25519 client certificate
* X25519,SECP256R1 key share exchange
* key share with HRR
Relates #328
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 10:07:32 2018 +0200
doc: clarified re-handshake details under TLS1.2 server
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 09:09:41 2018 +0200
tls13/certificate_request: corrected check of duplicate signature algorithms
Made the check local when parsing a certificate request, as we may
receive multiple requests when post-handshake authentication is
in place. Furthermore check whether this extension has been received
as this is a mandatory one. In addition handle a memory leak when
multiple peer certificates are set.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 08:41:22 2018 +0200
gnutls_reauth: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 21:35:52 2018 +0200
gnutls-cli: enhanced tool for TLS1.3 options
This patch allows a client to enable post-handshake
authentication, perform re-key and restrict the sent key shares.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 14:51:15 2018 +0200
tls13/certificate: send empty certificate instead of skipping
According to TLS1.3 spec:
The server's certificate_list MUST always be non-empty. A client
will send an empty certificate_list if it does not have an
appropriate certificate to send in response to the server's
authentication request.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 13:47:57 2018 +0200
_gnutls_figure_common_ciphersuite: ignore certificate check if PSK is negotiated
That is, if we are performing PSK under TLS1.3, don't bother
checking whether the certificate is compatible with the ciphersuite;
there isn't any.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 10:53:51 2018 +0200
tls13/certificate_verify: corrected context in signatures in client side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 10:47:59 2018 +0200
_gnutls13_handshake_sign_data: avoid unnecessary copy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 09:01:28 2018 +0200
handshake: cleanup in TLS1.3 initial secret calculation
That eliminates duplicate code in server hello parsing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 08:06:14 2018 +0200
psk: compute binder which is compatible with draft-ietf-tls-tls13
Previously the computed binder values was not compatible with any
TLS1.3 draft, and was not interoperating with openssl or tlslite.
Resolves #427
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 4 08:06:35 2018 +0200
CONTRIBUTING.md: added text on CI [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 3 14:19:34 2018 +0200
tests: fallback scsv: check proper fallback under TLS 1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 3 15:13:13 2018 +0200
encrypt_packet_tls13: made size check safer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 28 11:14:34 2018 +0200
pkcs11: mark private key objects as sensitive by default
That is, to prevent accidentally creating objects which can
be exported.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 15:02:53 2018 +0200
tests: check the behavior of TLS1.2 key exchange methods under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 15:11:28 2018 +0200
psk: mark psk_ke_modes as invalid when ignored
TLS1.3 handles the receiving of pre-shared keys extension as
invalid when the psk_ke_modes extension is not received as well.
As such, when we ignore the psk_ke_modes for some reason (e.g.,
no credentials) we need to indicate that it was received. We
use the invalid mode flag for that reason, allowing the handshake
to fail later for the right reason (e.g., no credentials error rather
than illegal extension).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 15:01:48 2018 +0200
priority: handle RSA-PSK ciphersuites similar to SRP
That is, when specified disable TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Apr 28 14:14:30 2018 +0200
Add another sni related test
As --sni-hostname does not imply --verify-hostname a hostname mismatch
still triggers an error.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 14:00:15 2018 +0200
tests: sni-hostname was updated to support TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 29 13:44:04 2018 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Apr 28 14:11:27 2018 +0200
doc: Add crossreference/warning
Add pointer to --verify-hostname to --sni-hostname description.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 23 13:58:22 2018 +0200
gnutls-cli: added option to specify the verification hostname
This enables testing various scenarios, by allowing to specify the
hostname to be used for certificate validation when connecting to
a remote host (e.g., localhost but with a certificate for example.com).
Resolves #344
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 26 09:06:00 2018 +0200
doc: fixes for better latex pdf generation [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 24 08:36:06 2018 +0200
retrieve_pin: refuse to retrieve PIN from URI more than one time
That is, prevent re-using a static PIN if it has already been
known to be wrong. Introduced tests of that behavior.
Resolves #425
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 24 16:42:10 2018 +0200
doc: updated OCSP documentation [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 22 16:02:08 2018 +0200
gnutls.h.in: corrected typo [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 20 08:42:27 2018 +0200
fuzz: corrected TLS1.3 enablement [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 17 10:59:25 2018 +0200
_gnutls_epoch_new: allow re-allocation epoch next epoch
On certain cases when re-handshake is interrupted by application
data, _gnutls_epoch_new() will be called twice. Make sure that
this does not lead to an error. We also rename the function to
clarify its purpose _gnutls_epoch_setup_next().
Resolves #426
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 17 09:52:01 2018 +0200
tests: added reproducers for receiving app data when rehandshake is expected
Relates: #426
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 17 09:31:12 2018 +0200
tests: eliminated exit_code variable used in few tests
It was a legacy variable for error printing that was never
used uniformly.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 17 09:24:29 2018 +0200
tests: eagain: moved to cmocka and enhanced for TLS1.3
That also makes macros from eagain-common.h functioning under cmocka.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 16 09:51:11 2018 +0200
tests: tls12-rehandshake-cert*: run multiple rehandshake tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 17 07:45:54 2018 +0200
tls13/finished: addressed memory leak in receiving finished packet
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7518
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 16 15:35:33 2018 +0200
priority: document the reasons for the order of supported groups [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 16 15:14:01 2018 +0200
handshake: described the epoch reference counting [ci skip]
It is used only in DTLS where multiple handshake states may be
active.
Resolves #421
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 16 09:51:11 2018 +0200
tests: tls12-rehandshake-cert-3: run multiple rehandshake tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 11 14:35:26 2018 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 11 08:34:15 2018 +0200
ANON,SRP,NULL ciphersuites: when set do not negotiate TLS1.3 or later
The reason is that these ciphersuites cannot be negotiated using TLS1.3.
There is a different strategy followed for these.
* NULL ciphersuites: they are not something normally enabled and used
for debugging purposes mostly. When set both in client and server side
only TLS1.2 can be used.
* SRP ciphersuites: they are used on client side when the client is actually
performing a username-password authentication with SRP. On server side we
can have indeed a server support SRP and non-SRP. In that case we limit
both on TLS1.2. That an unfortunate restriction, but is not a regression
and IMHO these servers would most likely be phased out as very few would
want to stick to TLS1.2 connections for SRP; or we may have an SRP update
for TLS1.3 which could lift that limitation in the future.
* ANON ciphersuites: they are used in certain client/server setups where very
basic level of security is required, and in opportunistic encryption scenarios.
There is a difference in the handling of these cases. In the case of Anon-only
server/clients they provide the session with anonymous credentials structure; in
the case of opportunistic encryption they provide both certificate and anonymous
credentials. Thus we allow the protocol (TLS1.3) be in the priorities, but if we
see no certificate or PSK credentials we disable TLS1.3 negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 7 21:42:57 2018 +0200
ext/pre_shared_key: cleanups in error handling
This addresses a memory leak found via oss-fuzz. It also
sets the right index on the selected PSK, and returns the
right server error code on incorrect key file.
Addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7465
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 7 21:27:27 2018 +0200
ext/psk_ke_modes: corrected data access
That also improves the if-checks.
Issue and reproducer discovered via oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7470
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 7 21:06:53 2018 +0200
fuzz: added client and server traces for TLS 1.3 draft-26 [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 7 06:20:05 2018 +0200
doc: corrected space-tab issues in examples
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 6 20:51:39 2018 +0200
constate: fixed key generation for TLS1.3
This amends 62ea232f180b980a0d4b6462c468706db6cc4700, and
removes invalid NULL checks, as well as corrects the key
set for server side.
This is verified against openssl master, but does not include
automated test suite; it will be tested as part of #328
Resolves #419
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 4 14:51:08 2018 +0200
doc: re-organized and modernized examples
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 4 13:47:36 2018 +0200
doc: updated for TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 6 13:36:11 2018 +0200
fuzz: added PSK traces with TLS1.3
Relates: #359
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 4 15:28:37 2018 +0200
psk: save the username on auth info struct under TLS1.3
Add the necessary tests to verify that gnutls_psk_server_get_username()
reports the right username under TLS1.2 and TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 22 10:02:36 2018 +0100
tests: enhanced test suite for TLS1.3 and PSK
That includes tests with unknown usernames and connections with wrong key
and updates to fastopen.sh to use certificate auth, making it applicable
under TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 29 09:51:32 2018 +0200
priority: added GROUP-DH-ALL and GROUP-EC-ALL
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 3 13:10:30 2018 +0200
dumbfw: account for extension data padding
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 5 09:04:47 2018 +0200
Simplified the _gnutls13_psk_ext_parser interface and added unit tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Ander Juaristi <a@juaristi.eus>
Date: Thu Mar 22 08:59:56 2018 +0100
Added support for out-of-band Pre-shared keys under TLS1.3
That adds support for pre-shared keys with and without Diffie-Hellman
key exchange. That's a modified version of initial Ander's patch.
Resolves #414
Resolves #125
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 6 10:36:18 2018 +0200
certtool: key-type desc was moved along the privkey functionality [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 4 13:47:25 2018 +0200
gnutls_record_can_use_length_hiding: corrected return type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 4 16:54:15 2018 +0200
encrypt_packet_tls13: reverted to original API
That allows more uniformity across encrypt/decrypt, and
across different protocol handling.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 25 20:08:26 2018 +0200
nettle: corrected typo in version check for compatibility mode with 3.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 11:11:52 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 09:45:44 2018 +0100
protocols: bumped TLS1.3 protocol to draft -26
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 09:23:05 2018 +0100
record: added AAD data when encrypting or decrypting
This is a requirement of draft-ietf-tls-tls13-25
Resolves #409
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 12 17:10:42 2018 +0100
priorities: disable any key exchange methods if there is no TLS1.2 or earlier
That is, because TLS1.2 has specific requirements in the ordering of
curves/groups if certain ciphersuites (ECDHE/DHE) are present, and
by being able to eliminate them early we simplify the negotiation
for TLS1.3-only clients/servers.
Relates #378
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 9 12:12:56 2018 +0100
_gnutls_supported_ecc_recv_params: take into account precedence
That is, when %SERVER_PRECEDENCE is given in the priority string make
sure that the negotiated curve of DH group respects the server's priorities.
That's very relevant under TLS1.3 as ciphersuite negotiation itself, where
%SERVER_PRECEDENCE applied, does contain only the cipher algorithm and MAC
unlike TLS1.2 which included key exchange as well.
Resolves #378
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 12 10:37:00 2018 +0100
supported_versions: cannot be used to negotiate pre-TLS1.3
This is a requirement of draft-ietf-tls-tls13-26
Resolves #410
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 23 20:45:40 2018 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 23 07:04:37 2018 +0100
doc: mention gnutls_privkey_import_ext4 in upgrade from 3.5.x
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 23 07:02:23 2018 +0100
doc: added since field in gnutls_record_send2() description
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 23 06:47:55 2018 +0100
Makefile.am: reduce automake warnings and corrected version
That is, avoid using the := syntax, set the right version variable
and use a hidden file for abi-check cache stamp.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 18 15:46:36 2018 +0100
The abi-check target was updated to check against the last tag
As abi-dumper and abi-compliance-checker tools are not reliable when
run across different systems, we now compare the previous tag ABI with the
current compiled library. That is in contrast with the previous behavior
of storing the output files of abi-dumper, which can become obsolete on
a CI update.
That also moves the ABI check only on the CI, and not in the 'make dist' rule
as it takes significant time to run.
This relates to an issue reported against libidn2's use of abi-compliance-checker
but it affects gnutls as they share similar code:
https://gitlab.com/libidn/libidn2/issues/42
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 20 07:15:13 2018 +0100
nettle/pk: include nettle/version.h
That enables the nettle version macros to operate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 14:42:38 2018 +0100
tests: avoid duplicate runs of tests when not necessary
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 18:31:40 2018 +0100
tests: moved invalid-cert reproducer into fuzz/ reproducers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 18:29:23 2018 +0100
tests: testpkcs11.sh was moved to the main tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 18:24:10 2018 +0100
tests: long-crl.sh was moved to main suite
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 15:22:14 2018 +0100
tests: suite: dropped ocsp-coverage and cert-coverage
These tests are duplicates of fuzz/gnutls_ocsp_resp/req_parser_fuzzer
and gnutls_x509_parser_fuzzer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 15:11:38 2018 +0100
tests: testsrn.sh was removed as duplicate of safe-renegotation/ tests
Also safe-renegotiation tests were made TLS1.2-only as they do not
apply to TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 15:07:14 2018 +0100
tests: pkcs7-cat: moved to main suite
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 15:46:16 2018 +0100
tests: updated for TLS1.3 inclusion
This moves the test to use a specific version or test multiple
TLS versions if applicable.
Resolves #413
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 19 09:00:23 2018 +0100
tests: mini-record-retvals was split into return vals checking and alerts checking
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 13:47:46 2018 +0100
tests: client-fast-open: updated for TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 13:43:47 2018 +0100
tests: removed unused test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 13 13:41:19 2018 +0100
tests: auto-verify: update for TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 10 19:08:08 2018 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 8 16:21:20 2018 +0100
tlsfuzzer: updated to the latest version
Also enabled the RSA-PSS tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 8 16:00:34 2018 +0100
alert: send the appropriate alert on GNUTLS_E_ERROR_IN_FINISHED_PACKET
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 8 14:54:55 2018 +0100
Bumped TLS1.3 draft version to -23
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 8 13:57:05 2018 +0100
Hello retry request matches server hello
That also distinguishes between them by using the special random value,
and implements the version check as in draft-ietf-tls-tls13-24.
Resolves #391 #390 #392
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 7 12:52:46 2018 +0100
tests: added negative tests for RSA-PSS key exchange
Relates #400
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 6 15:09:50 2018 +0100
signatures: distinguish RSA-PSS signatures with RSA PKCS#1 1.5 certificates from "pure"
This change enhances signature algorithms to have a private key algorithm
parameter. That is, to allow signature algorithms operating with a private
key of type X while the public key is of type Y. That is useful for the
RSA-PSS signatures which are of two types; one which is seen from servers
having PKCS#1 1.5 certificates, the other with RSA-PSS certificates, while
both utilize RSA-PSS private keys.
This is a draft-ietf-tls-tls13-23 change.
Resolves #400
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 28 12:41:40 2018 +0100
Server hello format follows TLS1.2 format
Also version negotiation was moved to supported_versions extension,
and session ID is set by client following appendix D.4.
This is a draft-ietf-tls-tls13-22 change.
Resolves #393, #389, #397
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 28 11:38:53 2018 +0100
Renumbered the key share extension to 51
This is a draft-ietf-tls-tls13-23 change.
Resolves #398
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 22 16:12:55 2018 +0100
record: ignore any ChangeCipherSpec messages under TLS1.3 handshake
Also send ChangeCipherSpec messages under TLS1.3 handshake.
This is a draft-ietf-tls-tls13-22 change.
Resolves #395
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 22 14:42:43 2018 +0100
record: send 0x0303 under TLS1.3
This is a draft-ietf-tls-tls13-22 change.
Resolves #396
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 8 12:03:39 2018 +0100
cryptodev: fix prototype of cryptodev_mac_fast [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 7 16:14:51 2018 +0100
cryptodev: added missing macro [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 5 15:42:14 2018 +0100
tests: added unit tests of gnutls_x509_crt_export
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 23:21:34 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 23:09:11 2018 +0100
gnutls_x509_crt_export2: avoid re-encoding
That prevents possible re-encoding issues in libtasn1 or ambiguously
formatted DER data, from affecting verbatim usage of certificates.
Relates #403
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 17:48:01 2018 +0100
tests: added reproducer with DER re-encoding error on client side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 4 19:07:29 2018 +0100
cfg.mk: update-po rule uses commit -s
This makes it produce a commit message which can be sent to
the repo (Signed-off-by is mandatory).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 4 19:01:41 2018 +0100
Sync with TP.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 4 19:01:23 2018 +0100
CONTRIBUTING.md: added more info about gnulib
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Mar 3 18:42:20 2018 +0100
Improve fuzzer coverage report creation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 23:40:43 2018 +0100
pkcs11: set the modulus bits on RSA keys
That value is necessary when using RSA-PSS keys.
Relates #402
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 14:51:31 2018 +0100
gnutls_privkey_import_ext4: enhanced with GNUTLS_PRIVKEY_INFO_PK_ALGO_BITS flag
That flag is utilized by the information function to obtain the
value of the parameters (e.g., modulus). That information is necessary
to safely handle RSA-PSS keys.
For RSA-PSS keys this is a regression since 3.6.0 where this API was
introduced, but as this change is necessary and 3.6.x is not yet marked
as stable, it should be acceptable.
Relates #402
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 11:18:12 2018 +0100
_gnutls_find_rsa_pss_salt_size: add a validity check for salt size
That is, in order to reject invalid parameters.
Resolves #402
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 2 09:38:55 2018 +0100
tests: eliminated destructive tests
That adds a dependency to p11-kit 0.23.10 for the test suite.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 1 16:38:29 2018 +0100
configure: simplified nettle version check
Relates #401
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Łukasz Stelmach <stlman@poczta.fm>
Date: Tue Feb 27 15:44:55 2018 +0100
gnutls-cli: do not ask any questions with --strict-tofu
Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Feb 27 22:04:10 2018 +0100
Update oss-fuzz corpora
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 22 11:43:53 2018 +0100
drbg-aes: use the new nettle APIs for AES
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 22 11:29:08 2018 +0100
accelerated: padlock: use the new nettle APIs
Also remove any ifdefs for nettle (it is not conditionally compiled in),
and do not register accelerators for AES-192-CBC. That cipher is widely
ignored to bother.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 26 11:46:09 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 26 11:44:56 2018 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 23 09:55:50 2018 +0100
gnutls_ext_raw_parse: introduced function
That function can be combined with callbacks like
gnutls_handshake_set_hook_function() for applications to
be able to process messages when necessary.
Resolves #382
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 21 11:46:08 2018 +0100
fuzz: added TLS1.3 client and server traces [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 21 11:21:36 2018 +0100
fuzz: enable fuzzer target in afl examples and add missing script [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 21 11:20:31 2018 +0100
fuzz: fixes in README file [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 19 20:11:57 2018 +0100
updated Since version in new function entries as well as map file versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 19 17:17:45 2018 +0100
fuzz: enable TLS1.3 in server and client fuzzers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 19 15:10:00 2018 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 19 15:02:36 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Jan 23 16:39:36 2018 +0100
record: new gnutls_record_send2 function
This adds a new function gnutls_record_send2() which takes an extra
argument to specify the padding size of the record.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Feb 8 13:24:46 2018 +0100
_gnutls_record_overhead: count content type octet in plaintext
In TLS 1.3, TLSInnerPlaintext has the 'type' field followed by the
padding. Exclude it from the overhead calculation.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 3 14:14:56 2018 +0100
tests: check extended record padding work with TLS 1.3
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Dec 21 17:02:22 2017 +0100
range: make length hiding always usable under TLS 1.3
This patch reintroduce the extended record padding mode removed in
commit 7df219f0. Under TLS 1.3, the padding mode can be implemented
in the record protocol.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Jan 3 14:10:22 2018 +0100
tests: re-enable mini-record-range test
This test was previously disabled as part of NEW_PADDING extension
removal (commit 7df219f0). Even though the extension is not usable,
gnutls_record_send_range() should work with the standard TLS block
cipher padding.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Dec 21 15:53:30 2017 +0100
doc: fix mention of gnutls_record_send_range()
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 27 16:38:14 2018 +0100
po: lib/x509/ocsp.c added to translatable files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 4 17:32:58 2018 +0100
tests: corrected various typos
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 4 17:26:54 2018 +0100
doc: use 3.6.xx to be consistent with other version references
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 2 12:44:15 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 13 10:11:57 2017 +0100
doc: getfuncs.pl: distinguish between different typedef types
That allows to properly distinguish a struct from a one liner
typedef.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 13 08:00:38 2017 +0100
check_ocsp_response: print OCSP response actual error on debug log
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 12 14:55:29 2017 +0100
x509/cert: reorganized
Split functionality related to certificate credentials and
session certificate handling in cert-cred.c and cert-session.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 29 16:19:56 2017 +0100
tests: added unit test for gnutls_ocsp_resp_list_import2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 10:35:53 2017 +0200
doc: updated
* document the new behavior of gnutls_certificate_set_ocsp_status_request_file
* updated text on OCSP stapled responses
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 16:31:02 2017 +0100
tests: added ocsptool sanity check program
This checks its functionality in loading and exporting PEM
and DER structures.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 16 16:05:15 2017 +0200
tests: enhanced OCSP tests
* Run tests under TLS1.2 and TLS1.3
* Verify whether multiple OCSP responses are received in client
side, under TLS1.3.
* Verify that OCSP status responses can be sent by
client under TLS1.3
* Verify operation of gnutls_certificate_retrieve_function3
* Verify operation when multiple OCSP responses by file are set
Resolves #307
Resolves #291
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 12 08:47:00 2017 +0100
cert auth: use a single callback to call for OCSP
That is, when selecting the certificate to use, point to
the callback to use as well (whether it being the global or
a specific) one, for OCSP.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 22 10:32:04 2017 +0100
ocsp: introduced gnutls_certificate_get_ocsp_expiration()
This is a function to allow obtaining the validity of the OCSP responses
already set in the credential structures.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 8 13:45:24 2017 +0100
ocsp: enhanced the OCSP response loading APIs
Introduced gnutls_certificate_set_ocsp_status_request_file2() and
gnutls_certificate_set_ocsp_status_request_mem(). These functions
behave as the equivalent certificate loading functions and pre-load
the OCSP response provided as a file, either in DER or in PEM form.
In addition, ensure that if the server is provided a problematic OCSP
response, or the OCSP response is not renewed before it is invalid, we
will not provide it to the clients.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 11:26:55 2017 +0200
gnutls-serv: allow loading multiple OCSP responses
That is, allow specifying multiple 'ocsp-response' options on
command line. In addition introduce the option 'ignore-ocsp-response-errors'
which will set the GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK flag
prior to importing the response.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 10:32:20 2017 +0200
cert: introduced flag GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK
This allows reverting the new semantics of checking the loaded
OCSP response against the certificates present and return
to the 3.5.x semantics.
That option is also useful for debugging as it allows setting
an arbitrary response and checking gnutls' client behavior with that.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 7 16:16:55 2017 +0100
gnutls_certificate_set_ocsp_status_request_file: match input response to certificates
That is, iterate through the certificate chain to figure to which
certificate the response corresponds to, and assign it to it.
That allows for applications to re-use this function to set
multiple responses when available.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 6 13:51:52 2017 +0100
ocsp: moved non-extension related functions to ocsp-api.c
That keeps ext/status_response.c clear of items that are
not related with the extension handling.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 17 09:59:53 2017 +0200
gnutls_ocsp_status_request_get2: allow operation under TLS1.3 for server side
Under TLS1.3 it is possible for both client and server to send the
status request extension in certificate message.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 17 08:32:09 2017 +0200
select_sign_algorithm: check KX type only on pre-TLS1.3
That, when selecting a certificate under TLS1.3, considers
the negotiated signature algorithms for compatibility with the
certificate to be selected.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 6 13:45:21 2017 +0100
rename _gnutls_selected_certs_set -> selected_certs_set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 6 13:32:28 2017 +0100
ocsp: send all the OCSP responses under TLS1.3
That is, any responses set by the caller application (directly
or via a callback), will be sent to the peer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 6 13:18:16 2017 +0100
introduced gnutls_certificate_retrieve_function3
That allows a certificate callback to provide OCSP responses in addition
to certificates. That also introduces a flags option which currently
accepts GNUTLS_CERT_RETR_DEINIT_ALL which allows the callback to
specify whether the provided data should be deinitialized.
To simplify the certificate callback code, all previous (now legacy)
callbacks are implemented as wrappers over the new callback function.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 29 14:27:44 2017 +0100
gnutls_ocsp_resp_list_import2: introduced
That is, introduced function to to import multiple OCSP PEM
responses into a list.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 16:20:48 2017 +0100
ocsptool: import and export OCSP responses in PEM format
That also modifies the 'request-info' and 'response-info' commands
to check the 'outfile' parameter and if set, to store the corresponding
structure into that file. Currently for OCSP requests there is no
printing of PEM data.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 14:59:31 2017 +0100
ocsp: introduced gnutls_ocsp_resp_import2 and gnutls_ocsp_resp_export2
These allow importing and exporting an OCSP response to PEM format,
in addition to DER.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 13 09:36:38 2017 +0200
_gnutls_x509_cert_verify_peers: verify all received OCSP responses
That is, when verifying the server's certificate, take into account
all present OCSP responses.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 13 09:31:58 2017 +0200
gnutls_ocsp_status_request_get2: added function
The function extends gnutls_ocsp_status_request_get() to
retrieve more than a single responses.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 10 10:21:19 2017 +0200
tls13/certificate: parse OCSP status response and save responses in auth info struct
That provides support of OCSP status response under TLS 1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 10 11:14:19 2017 +0200
ext/status_request: allow more than a single OCSP response to be received
That change allows for arbitrary number of OCSP responses
which is required in TLS1.3. The received list is now stored
in auth structure, and thus packed with it on resumption data.
The status response extension data, are now only used on server
side, when temporarily storing the OCSP response to send.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 10 09:59:17 2017 +0200
_gnutls_copy_certificate_auth_info: simplified and avoid multiple allocations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 19 16:16:29 2017 +0100
tests: updated to account for HMAC-SHA384 and CAMELLIA removal
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 19 16:00:45 2017 +0100
priorities: provide a more consistent "story" for default cipher settings
Current settings in NORMAL priorities which were affected:
* Enabled ciphers:
- AES-GCM
- CHACHA20-POLY1305
- AES-CCM
- AES-CBC
* Enabled signature algorithms:
- RSA-SHA256
- RSA-PSS-SHA256
- ECDSA-SHA256 / ECDSA-SECP256R1-SHA256
- EDDSA-ED25519
- RSA-SHA384
- RSA-PSS-SHA384
- ECDSA-SHA384 / ECDSA-SECP384R1-SHA384
- RSA-SHA512
- RSA-PSS-SHA512
- ECDSA-SHA512 / ECDSA-SECP521R1-SHA512
- RSA-SHA1
- ECDSA-SHA1
Removed:
* Ciphersuites utilizing HMAC-SHA384. That MAC is only used on "legacy"
type of ciphersuites, and doesn't provide any advantage over HMAC-SHA256.
* Ciphersuites utilizing CAMELLIA were removed. TLS1.3 doesn't define any
CAMELLIA ciphersuites, and thus provide consistent defaults across
protocols.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 17 09:27:36 2017 +0200
certificate request: corrected parsing of signature algorithms
That fixes an issue in TLS 1.3 certificate request message parsing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 4 18:22:54 2017 +0100
tlsfuzzer: updated to latest master
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 9 11:23:24 2017 +0100
doc: documented hsk_flags "lifetime" and its reset
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 13:13:31 2017 +0100
session state: TLS1.2 and TLS1.3 state is stored as union
That is, to reduce memory usage as these protocol cannot be used
in parallel.
Relates: #281
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 13:08:02 2017 +0100
session state: organized key exchange keys into structures
That is, with the view of separating the data needed for
TLS1.2 and earlier and TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 7 16:52:21 2017 +0100
record state: avoid memory allocations for stored keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 7 16:25:31 2017 +0100
handshake: ffdhe flags merged with handshake flags
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 7 16:09:12 2017 +0100
handshake: false start flag merged with hsk_flags
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 7 15:36:01 2017 +0100
handshake: use hsk_flags in TLS1.2 and TLS1.3
The flags provide a more transparent view of the received
and expected messages.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 5 09:01:56 2017 +0100
doc: added text on TLS1.3 rekey and reauthentication
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 4 17:45:11 2017 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 2 15:30:43 2017 +0100
tests: re-enabled post-handshake auth tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 2 15:19:10 2017 +0100
handshake: added support for post-handshake authentication
That is:
* introduced a gnutls_init() flag for clients to enable post-handshake
authentication
* introduced gnutls_reauth() function, to be called by servers to request
authentication, and by clients to perform authentication
Resolves #562
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 11:12:14 2017 +0100
gnutls_record_set_state: use const for seq_number
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 16:56:12 2017 +0100
tests: added test suite on key limits
This checks whether key update occurs for the expected ciphersuites.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 16:52:58 2017 +0100
gnutls_record_get_state: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 16:01:29 2017 +0100
Introduce key usage limits under TLS1.3
That introduces a transparent key update for sending key after
the safety limit is reached.
Resolves #130
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 13:08:18 2017 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 30 08:59:17 2017 +0100
tests: removed unused variables and introduced temporal vars in macros
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 30 08:51:06 2017 +0100
tests: check gnutls_rehandshake() and gnutls_handshake() under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 28 12:38:52 2017 +0200
gnutls_*handshake: wrap gnutls_session_key_update under TLS 1.3
The semantics of the gnutls_handshake() and gnutls_rehandshake() functions
were tied to TLS 1.2 and earlier behavior. This patch attempts to merge
the two different semantics as follows:
TLS1.2:
* gnutls_rehandshake: sends a hello request message (asks the peer for a re-handshake)
in server side; invalid to be called in client side.
* gnutls_handshake: performs a re-handshake in either client or server side;
in server side it is expected to be called after
gnutls_rehandshake().
TLS1.3:
* gnutls_rehandshake: in server side sends a key update and asks the peer to re-key
as well; remains invalid to be called in client side.
* gnutls_handshake: sends a key update and asks the peer to re-key as well;
in client side; is a no-op when called in server side.
Relates #131
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 19 16:45:18 2017 +0200
tests: added unit tests with TLS1.3 key update
Relates #131
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 19 16:27:30 2017 +0200
handshake: introduced gnutls_session_key_update()
This function allows updating keys of the session and notifying
the peer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 19 14:52:03 2017 +0200
handshake: added TLS1.3 passive key update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Nov 29 11:18:40 2017 +0100
keylogfile: write TLS 1.3 secrets
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 28 18:28:19 2017 +0100
_gnutls_nss_keylog_write: define new internal API
This patch turns the write_nss_key_log function to an internal
API (with a different name) so that it can be called from other places
implementing TLS 1.3 key scheduling.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 11:27:12 2017 +0100
tls-fuzzer: enabled the large hello checks
These were previously not working because tls-fuzzer was not TLS1.3-ready.
This is addressed at the current update, and as such we enable them.
That commit also enables the SNI resumption tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 29 16:21:45 2017 +0100
hkdf: refer to nettle's hkdf.h when available
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 29 14:04:30 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 11:07:40 2017 +0100
gnutls_prf_rfc5705: apply the context limits only under TLS1.2 or earlier
These limits do not exist under TLS1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 11:04:59 2017 +0100
gnutls_prf_raw: fail under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 09:10:24 2017 +0100
tests: included behavioral test of gnutls_prf under TLS1.3
Resolves #330
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 09:03:31 2017 +0100
gnutls_prf: prevent usage under TLS1.3
Only allow its use when it is documented to have the same output
as gnutls_rfc5705() and in that case make it a wrapper to it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 24 11:07:20 2017 +0100
gnutls_prf_rfc5705: calculate exporter using HKDF if TLS 1.3
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 24 10:55:43 2017 +0100
handshake-tls13: derive and store exporter_master_secret
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Nov 24 10:34:26 2017 +0100
_tls13_derive_secret: define secret argument
TLS 1.3 exporters need to derive a secret from exporter_master_secret
or early_exporter_master_secret, not the handshake or application
secret stored in temp_secret. Add a new argument @secret to
_tls13_derive_secret to specify any secret.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 11:45:25 2017 +0100
session state: combined srp and dh prime bits variables
They were being used for the same purpose, and SRP as well as
DH, do not overlap to require two different variables.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 11:41:59 2017 +0100
session state: mark mod_auth_st_int as constant
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 11:39:53 2017 +0100
dtls: cookie is stored dynamically when needed rather than in pre-allocated size
That reduces the number of bytes used in cases where DTLS is not in use or
we are in server-side.
Relates #281
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 10 09:54:13 2017 +0200
removed legacy/unused rsa-related structures/functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Sep 23 21:43:45 2017 +0300
lib: simplify adding groups according to prioritites
There is little point, remembering if EC or DHE came first and then
adding necessary groups checking that flag. Instead just add groups at
the time first EC or DHE ciphersuite is met.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 4 09:21:06 2017 +0200
tests: added unit test for RDNs in cert callback
This verifies whether the RDNs received at the callbacks under
TLS1.2 and TLS1.3 have the expected values (corresponding to the
certificates used).
Resolves #297
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 15:59:14 2017 +0200
gnutls_auth*_get_type: use gnutls_kx_get to retrieve key exchange
That allows the functions to operate under TLS 1.3 which have
no key exchange as part of the ciphersuite.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 15:28:07 2017 +0200
tests: check certificate callbacks under TLS 1.2 and 1.3
Resolves #278
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 14:56:15 2017 +0200
tests: added unit tests for client certificate under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 14:21:33 2017 +0200
handshake: handle the certificate authorities extension
That is, when sending or receiving the certificate request message.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 13:59:39 2017 +0200
handshake: added support for client certificates
That is, receive and parse a certificate request, certificate
verify, as well as certificate in server side.
That way, client certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 11:48:28 2017 +0200
handshake: return GNUTLS_E_NO_CERTIFICATE_FOUND when no certificate is found in TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 11:43:45 2017 +0200
handshake: send certificate request when requested
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 6 11:00:16 2017 +0200
tests: added check for client hello random value after HRR
That way we ensure that we follow the tls1.3 draft which requires
the second client hello to be identical to the initial one.
Resolves #299
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 6 11:16:17 2017 +0200
handshake: treat reply to HRR as a reply to hello verify request
That is, re-use the client random value on the client hello which
is a reply to a hello retry request.
Relates #299
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 6 10:18:33 2017 +0200
tests: added key share behavioral test
This verifies whether the gnutls_init() flags GNUTLS_KEY_SHARE_TOP,
GNUTLS_KEY_SHARE_TOP2, GNUTLS_KEY_SHARE_TOP3 behave as advertized.
Resolves #284
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 6 09:05:20 2017 +0200
key share: added flags to gnutls_init() to modify its default behavior
That way the application can adjust the range of keys generated
during client hello attempting to guess the server's algorithm.
Applications are intentionally not given the option to select the
algorithm in the key share, but rather chose from the prioritized
list of groups, to avoid a disconnect between the prioritized
groups, and the key share sent.
Relates #284
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 2 15:40:24 2017 +0100
handshake: initialize buffer prior to use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 4 10:55:48 2017 +0200
tests: added tests for TLS1.2- rollback detection
That is, tests which check
* whether the server's generated values under TLS1.2- match the expected
* whether the client would fail on negotiation if the rollback values are detected
Resolves #293
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 4 10:33:11 2017 +0200
_gnutls_set_server_random: corrected TLS1.2 and TLS1.1 rollback detection
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 11:08:04 2017 +0200
extensions: renamed _gnutls_hello_ext_*sdata to _gnutls_hello_ext_*priv
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 09:35:52 2017 +0200
server_name: use the new API for ext data setting
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 08:58:59 2017 +0200
extensions: enhanced extension lib with pack and unpack functions
That allows the functionality to be used for the majority of extensions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 08:41:51 2017 +0200
tests: check the correct handling of cookie extension in client side
Resolves #218
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 3 08:39:58 2017 +0200
extensions: allow receiving and sending extensions which were not advertised by client side
That is needed due to the special treatment of the cookie extension,
which is sent by the server in HRR even if it was not advertised by
the client.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 16:41:09 2017 +0200
extensions: optimized gid_to_ext_entry() map on known extensions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 16:23:10 2017 +0200
extensions: avoid double loop when parsing received extensions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 15:40:36 2017 +0200
extensions: avoid looping to discover location of saved data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 15:16:04 2017 +0200
handshake: added support for reading and sending cookie extension
That introduces an internal API to associate data to an extension.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 13 08:45:09 2017 +0100
doc: document the GNUTLS_E_NO_COMMON_KEY_SHARE usage
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 11:58:25 2017 +0200
tests: added unit test for hello retry request support
Resolves #285
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 14:24:54 2017 +0200
tests: rehandshake tests were restricted to TLS1.2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 14:11:34 2017 +0200
handshake: reduce assert printouts in common cases
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 10:10:48 2017 +0200
handshake: accept hello retry request in client side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 09:08:59 2017 +0200
buf: _gnutls_buffer_pop_data made easier to use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 09:01:41 2017 +0200
handshake: simplified version parsing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 16:40:43 2017 +0200
handshake: send hello retry request when no key share matches
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 12:54:38 2017 +0200
ext: do not advertize post handshake authentication
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 29 08:21:54 2017 +0200
tests: check TLS1.3 record layer packet modification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 28 07:50:42 2017 +0200
handshake: split set_client_random to gen and set
This aligns with set_server_random() and gen_server_random().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 28 07:47:40 2017 +0200
handshake: only attempt to detect downgrade attacks if TLS1.3 is supported
Otherwise, connections under TLS 1.2 may fail, even if client never enabled
TLS 1.3 support.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 27 15:10:07 2017 +0200
nettle/pk: explicitly mark intentional fallthrough in switch cases
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 22 16:59:31 2017 +0200
key share: removed duplicate message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 27 08:20:10 2017 +0200
tests: fix warning in rng-sigint.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 27 08:58:26 2017 +0200
tests: improved tls-session-supplemental
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 26 16:44:39 2017 +0200
kx: moved to new buffer API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 26 15:38:58 2017 +0200
handshake: moved to the new mbuffer API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 26 12:54:18 2017 +0200
handshake: use the new buffer type in TLS 1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 26 11:57:18 2017 +0200
handshake: new helper functions to use gnutls_buffer_st to generate mbuffers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 26 10:29:15 2017 +0200
tlsfuzzer: disable non TLS1.3-ready tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 16:28:38 2017 +0200
tests: added tests for TLS1.3 record generation / parsing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 09:47:52 2017 +0200
tests: introduced basic TLS1.3 key exchange test suite
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 16:26:45 2017 +0200
record: adjusted overhead calculation for TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 14:49:23 2017 +0200
priority: include groups into priority when having a TLS1.3-only session
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 09:46:32 2017 +0200
priority: do include all the version's signature semantics
This resolves issue, which prevented handling certain types
of TLS1.3-only signatures, depending on the order of enabled
protocols.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 09:32:25 2017 +0200
ext/key_share: corrected release of MPI parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 09:28:45 2017 +0200
ext/signature: explicitly prevent RSA/DSA and SHA1 signatures on TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 22 16:55:36 2017 +0200
hello ext: reduce verbosity
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 22 11:10:56 2017 +0200
constate.h: removed non-existing function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 22 10:55:43 2017 +0200
record: any alert is fatal under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 18 14:49:24 2017 +0200
extensions: introduced functions to obtain currently parsed message
This allows the extension handling code to operate differently
on different messages.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 09:30:39 2017 +0200
supported_versions: print the received versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 12:58:51 2017 +0200
handshake: introduced server side handshake [2/2]
That is, send server certificate verify and receive
certificate and certificate verify messages. In addition
introduced flags to mark the expected, or sent messages.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 10:21:26 2017 +0200
cs: select certificate under TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 09:53:47 2017 +0200
handshake: introduced server side handshake [1/2]
That is, send certificate request and certificate in server side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 09:50:10 2017 +0200
ciphersuites: introduce a maximum supported TLS/DTLS version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 21 09:41:37 2017 +0200
handshake: properly set the default record version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 16:07:39 2017 +0200
handshake: send encrypted extensions handshake message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 13:54:25 2017 +0200
handshake: parse new session ticket message
That does not include extension handling.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 15:33:16 2017 +0200
str: added _gnutls_buffer_pop_prefix24 and _gnutls_buffer_pop_prefix8
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 27 15:07:04 2017 +0200
str: use assert to mark impossible cases
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 15:21:16 2017 +0200
str: allow creating a read-only buffer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 13:43:14 2017 +0200
gnutls_session_get_desc: more descriptive name for TLS1.3 ciphersuites
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 09:11:37 2017 +0200
handshake: generate application keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 08:30:52 2017 +0200
constate: added _gnutls_epoch_dup
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 07:59:21 2017 +0200
constate: indentation fixes
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 10:22:36 2017 +0200
handshake: added basic support for TLS 1.3 handshake in client side
That does not include support for client certificates as it
requires extension handling improvements in order for extensions
to be context sensitive (now they cannot distinguish whether the
parsing routine is called during client hello or certificate request
reading)
This does not include proper parsing of extensions present in
the certificate message.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 13 14:19:12 2017 +0200
handshake: added parsing of encrypted extensions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 10:44:43 2017 +0200
crypto-api: introduce internal version of AEAD API
This allows to initialize the TLS 1.3 connection state without
additional allocations as required by the external API.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 11 15:16:51 2017 +0200
record: added TLS 1.3 record parsing and key derivation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 13:48:13 2017 +0200
handshake: introduced TLS 1.3 handshake client state machine outline
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 11:56:28 2017 +0200
extensions: separate the hello extensions from others
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 11:51:10 2017 +0200
hello_ext.h: removed non-existant function definition
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 11:48:30 2017 +0200
extensions: files renamed to hello_ext
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 11:46:55 2017 +0200
extensions: renamed hello extension handling functions appropriately
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 11:40:54 2017 +0200
extensions: simplified semantics of store and check functions
That is, _gnutls_extension_list_check was made a boolean function,
and both were renamed to more appropriate names such as,
_gnutls_hello_ext_is_present, _gnutls_hello_ext_save.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 11:30:12 2017 +0200
extension: renamed functions to reflect purpose
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 10:05:53 2017 +0200
extensions: use the low-level extension parsing code for hello parsing
That's a step towards unification of TLS-type extension handling
for TLS 1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 20 09:46:34 2017 +0200
extv: introduced a low-level extension parsing code
This will simplify the parsing and handling of extensions throughout
the TLS 1.3 message contents.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 19 12:58:56 2017 +0200
extensions: simplified the extension tracking
Instead of keep a list of the received TLS extension IDs, use the bits
in a variable to mark the received extensions. That reduces the
overall memory usage due to extension tracking.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 19 12:48:14 2017 +0200
extensions: use an internal extension ID independent of the TLS id
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 14:46:13 2017 +0200
str: rename _gnutls_buffer_pop_prefix to _gnutls_buffer_pop_prefix32
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 14:45:20 2017 +0200
str: rename _gnutls_buffer_pop_datum_prefix to _gnutls_buffer_pop_datum_prefix32
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 14:10:14 2017 +0200
security params: store PRF when packing session
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 14:03:43 2017 +0200
handshake: simplify by storing a pointer to PRF mac entry
That way, we avoid multiple function calls to obtain information
such as hash size, and other MAC properties.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 12:13:09 2017 +0200
ext/signature: improved TLS 1.3 signature algorithm negotiation
That is, we introduce a simpler way to handle multiple versions
of a single signature algorithm.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 11:21:51 2017 +0200
str: added helper functions to read prefixed data with 8 or 16-bit headers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 09:44:58 2017 +0200
ecc: do not warn on receiving extension on client side
This extension can be received used under TLS 1.3 on the client side.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 14 14:30:07 2017 +0200
Added TLS 1.3 HKDF key derivation functionality
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 12 10:30:59 2017 +0200
extensions: include extension number in debugging message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 12 10:12:41 2017 +0200
tests: check behavior on the extension hello flags
That is, verify whether the various combinations of
GNUTLS_EXT_FLAG_CLIENT_HELLO,
GNUTLS_EXT_FLAG_TLS12_SERVER_HELLO,
GNUTLS_EXT_FLAG_TLS13_SERVER_HELLO
work as expected with regards to sending and receiving
extensions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 11 10:26:44 2017 +0200
extensions: apply extension msg type restrictions
That is, on the extension parsing functions ensure that
no extension which are not valid for the currently
received message are parsed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 11 10:13:07 2017 +0200
extensions: mark the message validity of each supported extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 11 09:50:58 2017 +0200
extensions: type renamed to id for clarity
We were previously using the variable named 'type' to indicate the
extension ID. With TLS 1.3, extensions are also given an applicability
type (which message the extension applies to), and thus renamed the
variable for clarity.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 12 08:03:59 2017 +0200
tests: guile: don't use VERS-TLS-ALL
That is, avoid enabling experimental protocols.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 12 08:00:00 2017 +0200
.gitlab-ci.yml: abi-coverage: include guile logs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 14 09:20:25 2017 +0200
nettle: added HKDF functions
They are being included conditionally depending on the RSA-PSS feature
(RSA-PSS and HKDF are expected to be introduced at the same version).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 11 15:54:40 2017 +0200
gnutls-cli-debug: use explicit TLS versions rather than TLS-ALL
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 15:37:04 2017 +0200
_gnutls_server_select_suite: don't set auth callbacks for TLS 1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 11:00:27 2017 +0200
supported_versions: print negotiated protocol
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 15:35:21 2017 +0200
Negotiate draft-TLS1.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 14:14:58 2017 +0200
handshake: added the TLS 1.3 ciphersuites
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 11 11:45:39 2017 +0200
handshake: print negotiated version after its negotiation (for TLS1.3)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 11 11:33:31 2017 +0200
tests: fix TLS version to 1.2 for tests which used VERS-TLS-ALL
This allows the test suite to run, even when TLS1.3 is still
experimental.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 09:34:05 2017 +0200
Added support for key share extension
This enables TLS 1.3 key exchange based on the key share extension.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 09:23:53 2017 +0200
handshake: always accept TLS 1.2 in client hello if we have later protocols enabled
That is because after TLS 1.3 there is no negotiation of the version using
the Client Hello field, but with an extension.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 08:23:01 2017 +0200
require nettle 3.3 or later
This will simplify handling of the x25519 key exchange.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 09:10:11 2017 +0200
str: added function to append fixed-size MPI
This is used in TLS 1.3 which introduces a new MPI over-the-wire
format.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 11:57:26 2017 +0200
tests: resumption tests were restricted to TLS 1.2
TLS 1.3 implements resumption is a different way, so we should
introduce new resumption tests once that support is in place.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 11:52:07 2017 +0200
ext/post_handshake: restrict the use of this extension to TLS 1.3 or later
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 11:46:29 2017 +0200
handshake: optimizations and enhancements in session version handling
This introduces the following new functions:
const version_entry_st *_gnutls_legacy_version_max(gnutls_session_t session);
const version_entry_st *_gnutls_version_max(gnutls_session_t session);
which replace their previous counterparts.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 11:21:24 2017 +0200
tests: check for post-handshake extension in TLS 1.2-only sessions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 11:14:56 2017 +0200
tests: added unit tests for post-handshake-auth extension
These test whether this extension is seen under TLS 1.3 in client
hello, and whether it is not present in server hello.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 10:33:18 2017 +0200
handshake: send client and server hellos according to TLS 1.3
That is, when TLS 1.3 is negotiated the compression algorithms and
session ID fields are no longer sent.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 09:44:28 2017 +0200
Added support for post handshake auth extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 13:40:19 2017 +0200
tests: updated for new behavior of disabling protocols on missing signature algorithms
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 13:38:39 2017 +0200
tests: verify that no signature algorithms with (D)TLS 1.2 will cause an error
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 13:33:46 2017 +0200
priorities: when no signature algorithms eliminate (D)TLS 1.2 or later
If an application intentionally disables all signature algorithms, ensure
that we can operate by eliminating protocol options which require these
signature algorithms to be set.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 13:16:10 2017 +0200
tests: safer use of gnutls_bye in _test_cli_serv()
In addition make sure we check gnutls_priority_set() for errors.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 09:40:46 2017 +0200
tests: added checks for special signature algorithms
This tests the behavior when signature algorithms only available
under TLS1.3 are present in a TLS 1.2 session.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 09:38:26 2017 +0200
tests: verify that +SIGN-ECDSA-SECP256R1-SHA256 has no effect when combined with TLS1.2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 08:56:18 2017 +0200
tests: added signature tests for ECDSA-SECP256R1-SHA256
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 09:19:16 2017 +0200
priority: do not include signature algorithms that apply to different TLS version
That is, when a signature algorithm that is only applicable
to specific TLS protocol semantics (e.g., ECDSA-SECP256R1-SHA256)
is enabled, under TLS 1.2, it will result to no code points being
added. That prevents connection errors due to "wrong" code
points being added that do not correspond to a usable signature
algorithm under the protocol.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 14:07:43 2017 +0200
tests: updated for the new behavior of handshake
Previously at handshake we would negotiate a ciphersuite and certificate
and later figure out a signature algorithm. Now we negotiate all at once,
so we no longer reach situations where mid-way of handshake we figure we
have no signature algorithm to use. Update the test cases relying on that
behavior to account the new one.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 11:09:51 2017 +0200
pubkey: enforce TLS 1.3 signature restrictions on verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 16:43:51 2017 +0200
ext/signature: added TLS 1.3 signature algorithm negotiation
That patch adds the signature algorithms:
- GNUTLS_SIGN_ECDSA_SECP256R1_SHA256
- GNUTLS_SIGN_ECDSA_SECP384R1_SHA384
- GNUTLS_SIGN_ECDSA_SECP521R1_SHA512
and enables them for the default TLS priority strings.
In addition it allows negotiating signature algorithms sharing
the same TLS IDs, but which have different semantics between TLS
versions (e.g., 6,4 maps to GNUTLS_SIGN_ECDSA_SHA512 under TLS 1.2
but to GNUTLS_SIGN_ECDSA_SECP521R1_SHA512 under TLS 1.3).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 15:20:00 2017 +0200
tests: added unit test for TLS 1.3 version negotiation
This checks whether the Client Hello and Server Hello packets
contain the expected values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 14:17:40 2017 +0200
handshake: added support for negotiating version using extension
That is, introduced the TLS 1.3 supported_versions extension. It is currently
only being used if negotiating TLS 1.3 or later.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 13:30:46 2017 +0200
handshake: legacy version negotiation is not used for TLS 1.3
That is, ensure that the functions used for TLS 1.2 and earlier
negotiation cannot be used with TLS 1.3. That is because TLS 1.3
is negotiated using a TLS extension.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 11:57:22 2017 +0200
Added TLS 1.3 Hello message random generation
That is, added check for TLS 1.3 random value requirements in client side,
and generation according to TLS 1.3 requirements for server and
client side.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 19 14:57:55 2018 +0100
Revert "priority: disable the enabled by default RSA-PSS signature algorithms"
This reverts commit ef44477127952c13e93d7ea88f7b549bf36602f5.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 10 11:13:57 2018 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 22 11:52:19 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 30 07:41:26 2018 +0100
tests: check gnutls_fips140_set_mode operation per thread
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 21 15:49:42 2018 +0100
tests: added unit test of gnutls_fips140_set_mode
Also ensure that 512-bit keys cannot be generated
in FIPS140-2 mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 22 11:40:42 2018 +0100
tests: gnutls_hmac_fast: explicitly enable MD5 use under FIPS140-2 mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 21 12:38:29 2017 +0100
tests: gc.c -> gnutls_hmac_fast.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 22 09:15:03 2018 +0100
doc: documented gnutls_fips140_set_mode and gnutls_fips_mode_t
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 21 15:07:00 2018 +0100
fips140: added function for applications to switch the FIPS140-2 mode
That would allow FIPS140-2 compliant applications to use forbidden
algorithms by switching to a lax FIPS140-2 mode.
Resolves #352
Resolves #353
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 21 14:01:17 2018 +0100
fips140: enforcement of allowed ciphers moved to crypto-api.c and cipher_int.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 20 15:36:59 2017 +0100
fips140: enforcement of hash and MACs use moved to crypto-api.c and hash_int.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 19 08:38:35 2018 +0100
tests: srp: increased timeout to 40secs [ci skip]
Since we increased the maximum parameters to 8k, ensure
that slower systems have enough time to complete the handshake.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 18 20:58:07 2018 +0100
doc: updates NEWS entry for 3.6.2 adding ABI changes [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 16 08:54:26 2018 +0100
latex: introduced functionWarning macro
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 16 08:27:56 2018 +0100
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 13 16:34:09 2018 +0100
tests: check whether gnutls_credentials_set() can be set in an hsk hook
This is useful when these are set during the handshake process
on the handshake hook before client hello is parsed.
Relates #382
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 13 16:47:16 2018 +0100
doc: documented how to set the credentials late in certain vhost scenarios
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 13 16:21:52 2018 +0100
doc: updated text on gnutls_handshake_set_hook_function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 13 11:12:09 2018 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 12 11:18:06 2018 +0100
priority: disable the enabled by default RSA-PSS signature algorithms
They have been modified in the latest (yet unsupported) TLS 1.3
drafts, so prevent causes interoperability failures by keeping them
on.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 12 09:20:17 2018 +0100
tests: cipher-openssl-compat: extend to include CCM tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Michael Catanzaro <mcatanzaro@igalia.com>
Date: Fri Feb 9 10:22:24 2018 -0600
Improve documentation of gnutls_x509_trust_list_iter_get_ca [ci skip]
The documentation is confusing because it implies that
gnutls_x509_trust_list_iter_deinit() should be called after using this
function, but in fact it is generally not necessary.
Also, there was a typo here ("usin").
Signed-off-by: Michael Catanzaro <mcatanzaro@igalia.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 7 18:59:39 2018 +0100
.gitlab-ci.yml: run the fuzz testsuite under various CPU capabilities
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 7 09:24:18 2018 +0100
accelerated: make explicit key size check to all accelerated ciphers
That is, do not rely on checks done on asm level, as they vary and
may change over updates. Also handle consistently invalid key sizes
by returning an error, and eliminate calls to abort().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Vitezslav Cizek <vcizek@suse.com>
Date: Tue Feb 6 16:46:31 2018 +0100
accelerated: check keysize in SSSE3 cipher setkey
aes_ssse3_cipher_setkey() accepted any key size,
which could lead to invalid memory access.
Such as with the oss-fuzz corpora file
fuzz/gnutls_pkcs8_key_parser_fuzzer.in/da59d34eacdf50a0019a457fb7c4916be48c99a5
Signed-off-by: Vitezslav Cizek <vcizek@suse.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 8 14:32:42 2018 +0100
p11tool: updated documentation [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 7 11:34:36 2018 +0100
nettle: use the nettle_get_secp API when available
Resolves #380
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 6 09:46:41 2017 +0100
nettle base64_encode_raw: use cast to avoid warnings
Nettle switched prototypes for base64_encode_raw() as follows:
-base64_encode_raw(uint8_t *dst, size_t length, const uint8_t *src);
+base64_encode_raw(char *dst, size_t length, const uint8_t *src);
That means we need to cast fist param to void if we want to avoid
warnings on different platforms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 6 14:40:59 2018 +0100
accelerated: x86-common: do not use _xgetbv() with clang
Resolves #372
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 6 14:37:42 2018 +0100
configure: treat solaris as ELF system
Resolves #376
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 6 04:03:45 2018 +0100
tests: repeat cipher test with multiple keys and nonces
In addition include chacha20-poly1305 into the tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 6 03:59:17 2018 +0100
accelerated: aarch64: fix GCM counter increment
Ensure that we restrict the GCM counter to the 4 bytes assigned to it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 6 04:39:39 2018 +0100
accelerated: fix use of SSSE3 vpaes_encrypt
Previously we assumed that the nettle GCM internal functions
will use the provided ECB function for single block encryption.
Newer versions no longer operate that way. Ensure that we
are compatible with them.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 5 20:25:23 2018 +0100
accelerated: fix use of aesni_ecb_encrypt()
Previously we assumed that the nettle GCM internal functions
will use the provided ECB function for single block encryption.
Newer versions no longer operate that way. Ensure that we
are compatible with them.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 2 15:49:48 2018 +0100
serv: increase cache size used for resumption
That allows sessions with longer parameters to be able
to be resumed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 2 11:09:22 2018 +0100
CONTRIBUTING.md: check the issue closing as part of review [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 2 10:35:11 2018 +0100
gnutls-cli: no longer print certificate types or compression methods
We don't support any other compression methods than the null compression,
nor any other certificate types.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Jay Foad <jay.foad@gmail.com>
Date: Sat Jan 27 09:13:17 2018 +0100
Inline version macros into its users.
This fixes a problem in _gnutls_version_is_supported() where we want to
use preprocessing directives in the loop body. Doing this within a macro
argument is undefined behaviour according to the C standard, and not
supported by the system compiler on AIX.
Signed-off-by: Jay Foad <jay.foad@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 26 15:49:53 2018 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 26 15:48:52 2018 +0100
certtool: deprecated the --certificate-pubkey option
That option is duplicate since --pubkey-info can provide the same
information.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 26 15:44:21 2018 +0100
certtool: avoid duplicate deinitialization on --certificate-pubkey
Resolves #368
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 21 12:25:10 2018 +0100
dh: document why BER decoding rules are allows
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 21 12:19:12 2018 +0100
pubkey: use the strict DER decoder for SubjectPublicKeyInfo
Although there is no explicit RFC mentioning the SubjectPublicKeyInfo
encoding, this structure is a subset of the X.509 certificate's structure
and as such it is expected to be in DER form.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 21 11:36:20 2018 +0100
pk: document need for the generic BER decoder
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 17 19:26:12 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 17 19:25:36 2018 +0100
tests: check whether deletion of a certificate object works
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 17 19:15:46 2018 +0100
p11tool: corrected issue preventing the deletion of objects in batch mode
Previously initialization of PIN callbacks would only happen during listing
of objects, which happened only in non-batch mode.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 17 19:10:52 2018 +0100
p11tool: corrected type affecting use of --only-urls
It would enable batch mode accidentally.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 19 11:42:02 2018 +0100
tests: pkcs11/tls-neg-pkcs11-key: updated for softhsm with PKCS#11 support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 22 09:06:25 2018 +0100
added sub-section on selecting the right return value [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 17 17:35:54 2018 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 17 08:38:13 2018 +0100
examples: use gnutls_certificate_set_x509_system_trust
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 12 16:14:23 2018 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 12 13:23:03 2018 +0100
tests: privkey-verify-broken: addressed uninitialized var use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 10 15:41:50 2018 +0100
tests: check whether get_mtu() functions relate to the set values
That is, verify that gnutls_dtls_set_data_mtu() value would be
reflected into gnutls_dtls_get_data_mtu(), as well as the
gnutls_dtls_set_mtu() to gnutls_dtls_get_mtu().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 10 15:35:36 2018 +0100
tests: added unit test for _gnutls_record_overhead()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 12 09:01:54 2018 +0100
DTLS: improved data MTU calculation under CBC ciphersuites
The data MTU calculation under CBC ciphersuites takes into
account that the overhead of these ciphersuites is constant (IV +
hash + 1 byte padding), though the capacity varies due to the padding
block. That is, on 16-byte padding block, one padding byte is the
overhead but the rest 15 bytes are accounted for data MTU.
That also has the side effect that setting a data MTU using
gnutls_dtls_set_data_mtu(), is not definite, and the actual
MTU may be larger for these ciphersuites --i.e., the
return value of gnutls_dtls_get_data_mtu().
Resolves #360
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 10 10:58:30 2018 +0100
fuzz: added reproducer for leak in gnutls_x509_crl_list_import
That was detected by oss-fuzz in:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4930
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 10 10:56:28 2018 +0100
gnutls_x509_crt_list_import: eliminated memory leak
That leak would be triggered if GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED
flag was used and the input data would exceed the maximum limit.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 9 11:31:45 2018 +0100
libtasn1: updated to latest libtasn1 master branch
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 3 16:41:36 2018 +0100
gnutls_pkcs12_key_parser_fuzzer.in: added reproducer for oss-fuzz #4890
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 7 09:55:37 2018 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 3 16:27:03 2018 +0100
doc: updated copyright year for manual
That eliminates the 'make syntax-check' error.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 30 20:12:36 2017 +0100
tests: added reproducer for self-signed verification error
Relates #347
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 30 19:57:08 2017 +0100
x509/verify: when verifying against a self signed certificate ignore issuer
That is, ignore issuer when checking the issuer's parameters strength. That
resolves the issue of marking self-signed certificates as with insecure
parameters during verification.
Resolves #347
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 20 08:16:29 2017 +0100
gnutls_pk_self_test: include ECDSA tests on GNUTLS_PK_EC
Previously when a request for a specific self check on GNUTLS_PK_EC
was done, only ECDH tests would be run. This change includes the ECDSA
tests as well (GNUTLS_PK_EC and GNUTLS_PK_ECDSA are an alias to each other).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 19 16:40:59 2017 +0100
tests: hash-large: increase parallelism to allow fast run in CI
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 8 11:14:58 2017 +0100
doc: reference gnutls_prf_rfc5705 instead of gnutls_prf
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 3 11:34:32 2017 +0100
tests: utils.h: forbid compilation with NDEBUG
This allows to rely on the assert() macro being functional on
the test suite.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 3 10:49:12 2017 +0100
tests: p11-kit-load.sh: verify that all modules are loaded after a private key operation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 30 15:08:22 2017 +0100
tests: enhanced pkcs11/list-tokens
This not only creates a trust list with the system certificates, but
also attempts to verify a certificate, increasing the number of calls
to PKCS#11 verification API (and thus ensuring there are no calls
which may trigger the load of other modules).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 30 14:31:07 2017 +0100
pkcs11 verification: always use the GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE
That is, make sure that all our calls to PKCS#11 subsystem for verification
will only trigger the trust module initialization, and not the generic
PKCS#11 initialization.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 30 14:28:46 2017 +0100
pkcs11: simplify trusted module loading state
That is always utilize the same flags (GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE)
to determine whether to initialize trusted modules only or
proceed with general initialization.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 30 12:52:57 2017 +0100
_gnutls_pkcs11_check_init: improved transition between states
The init_level_t for PKCS#11 modules, was incorrectly handled as a
linear state transition, causing few cases in the transition to be
incorrectly handled. Define precisely the state transitions and
enforce them in _gnutls_pkcs11_check_init.
That addresses a regression introduced by the previous state handling
addition, which made impossible to switch from the trusted state to
the all modules.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 30 11:44:14 2017 +0100
tests: corrected destructive/p11-kit-load.sh error checking
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Dec 1 11:13:29 2017 +0100
gnutls-serv: fix double-free on inactivity timeout
Previously, gnutls-serv --echo segfaulted when closing client
connection after inactivity timeout. Here is the valgrind output:
==20246== Invalid free() / delete / delete[] / realloc()
==20246== at 0x4C2FD18: free (vg_replace_malloc.c:530)
==20246== by 0x405310: listener_free (serv.c:154)
==20246== by 0x408B57: tcp_server (serv.c:1568)
==20246== by 0x407DA6: main (serv.c:1231)
==20246== Address 0x6ed4fe0 is 0 bytes inside a block of size 3 free'd
==20246== at 0x4C2FD18: free (vg_replace_malloc.c:530)
==20246== by 0x408A1D: tcp_server (serv.c:1548)
==20246== by 0x407DA6: main (serv.c:1231)
==20246== Block was alloc'd at
==20246== at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==20246== by 0x6A64489: strdup (in /usr/lib64/libc-2.25.so)
==20246== by 0x407310: get_response (serv.c:948)
==20246== by 0x408840: tcp_server (serv.c:1492)
==20246== by 0x407DA6: main (serv.c:1231)
==20246==
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 28 15:45:59 2017 +0100
.dir-locals.el: new file
This forces Emacs to use the Linux kernel coding style for all C code.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Nov 28 15:45:54 2017 +0100
build: remove m4 files pulled in by autopoint
Having these files in the git repository causes unnecessary changes
after "make bootstrap".
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 29 17:16:41 2017 +0100
gnutls_aead_cipher_init: corrected potential memory leak
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 28 14:28:46 2017 +0100
doc: provided basic documentation of the FIPS140-2 mode [ci skip]
Resolves #332
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 09:42:26 2017 +0100
tests: verify whether group remains the same after resumption
Resolves #331
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 27 09:31:52 2017 +0100
_gnutls_set_resumed_parameters: restore the group from resumed parameters
That allows resumed sessions to have the original group information such as
curve used for key exchange or FFDHE parameters.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 27 08:19:01 2017 +0200
tests: removed unnecessary assert
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 10 14:23:20 2017 +0200
tests: delete temporary files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 11:47:22 2017 +0100
session state: use the right type for send_cert_req variable
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 24 08:17:40 2017 +0100
tests: client-fastopen: introduce child signal handler and delay prior to starting
This addresses a hang issue on freebsd builds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 22 17:36:30 2017 +0100
psktool: allow up to 512-byte keys
This aligns the psktool --help output with the psktool operation.
Suggested by Jack Lloyd.
Resolves #327
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 20:26:43 2017 +0100
getfuncs-map.pl: added gnutls_srp_8192_group* symbols to ignore list
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 19:24:29 2017 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 19:17:01 2017 +0100
srptool: --create-conf no longer includes 1024-bit parameters
In addition it includes the 8192-bit parameters, and
the default params used for a new user are the 2k ones.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 13:23:21 2017 +0100
tests: updated SRP checks
Test 1024, 1536, 2048, 3072, 4096 and 8192 bit parameters.
In addition, verify that parameters not in the SRP spec are
rejected by a gnutls client.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 21 13:05:12 2017 +0100
.gitlab-ci.yml: move destructive tests after trust store tests
That is, to ensure they are only run after the trust store
is complete and that it doesn't affect its output.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 14:43:21 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 14:34:20 2017 +0100
tests: include the 8192-bit SRP prime into param checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 14:33:33 2017 +0100
srp: added the 8192-bit prime
As we now reject any primes not in the SRP spec, we include
that parameter to ensure we can handle clients within the
spec but with large parameters.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 14:10:02 2017 +0100
srp: reject any parameters not in the SRP draft
This implements the SHOULD requirement from RFC5054, i.e., to
only accept group parameters that come from a trusted source,
such as those listed in Appendix A.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 14:07:12 2017 +0100
fuzz: srp-client: decreased acceptable prime bits to 1024 [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 9 09:47:10 2017 +0100
tests: combined key and cert tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 9 09:40:23 2017 +0100
tests: windows subdir is only included on windows builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 16:32:48 2017 +0100
tests: dtls subdir was merged into main tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 20 13:49:55 2017 +0100
fuzz: srp-client: restrict prime bits to 1537 [ci skip]
That avoids timeouts in the oss-fuzz infrastructure:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3277
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 19 16:39:16 2017 +0100
doc: corrected typo
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 16 16:57:29 2017 +0100
doc: better detect acronym keyword on latex output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 16 16:53:46 2017 +0100
doc: latex: resolve all citation issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 16 16:43:21 2017 +0100
doc: citations translate into references in texinfo
That makes the citations to be links in the generated html manual.
Resolves: #321
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 13 11:03:35 2017 +0100
p11tool: renamed pkcs11_set_pin() to allow static linking
Resolves #322
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 15 11:47:31 2017 +0100
cfg.mk: do not include reproducer files into syntax checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 15 10:31:00 2017 +0100
gnutls_x509_ext_import_proxy: corrected memory leak
Also added reproducer for the memory leak found.
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3159
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 13:56:56 2017 +0100
tools: do not access unused variables
This avoids warnings by static analyzers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 8 10:51:51 2017 +0100
.gitlab-ci.yml: disabled gcc warnings on CI builds and use dash
That should decrease the time spent in configure. Based on suggestions
by Tim Ruehsen.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 5 20:46:47 2017 +0100
.gitlab-ci.yml: use configure cache file and ccache
That reduces the total time spent per build by caching configure
checks, and compilation artifacts.
Also that patch set no longer uploads coverage files as artifacts.
These files are not generally useful, and removing that "feature"
will reduce CI running time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 4 17:18:23 2017 +0100
doc: corrected typo [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 3 15:10:03 2017 +0100
tests: list-tokens: not only list but also verify whether module is operational
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 3 15:03:35 2017 +0100
pkcs11: refuse to load modules with duplicate information
That is, when ck_info matches, we soft fail loading the module.
That is, because in several cases the pointers got by p11-kit
may differ for the same modules.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 3 14:33:24 2017 +0100
tests: enhanced PKCS#11 loading test
Test whether implicit initialization in trusted module (e.g.,
via verification), would result to proper initialization of additional
modules once a PCKS#11 function is called.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 30 13:51:33 2017 +0100
tests: added PKCS#11 module loading test
This checks:
1. Whether all modules are loaded from p11-kit when
no explicit gnutls_pkcs11_init() is called and
pkcs11 calls are accessed.
2. Whether only the trusted modules are loaded from
p11-kit and no other PKCS#11 calls than PKCS#11
cert validation is performed.
3. Whether the trusted modules are loaded when
gnutls_pkcs11_init() is called with manual
flag.
Resolves #315
Resolves #316
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 30 11:29:38 2017 +0100
pkcs11: allow loading trusted modules when pkcs11 was initialized in manual mode
When a PKCS#11 trust module is used in the system, but gnutls_pkcs11_init()
is explicitly called with GNUTLS_PKCS11_FLAG_MANUAL flag, then the PKCS#11
trust store was not loaded, and thus prevent any certificate validation.
This change allows initializing the trust modules only even if generic
PKCS#11 support is disabled by the application.
Relates #316
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 30 09:57:09 2017 +0100
pkcs11: introduce multiple levels of loading
That allows to load the PKCS#11 trusted modules (on systems which use them)
without loading all the potentially present PKCS#11 modules.
Relates #315
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 31 09:18:15 2017 +0100
CONTRIBUTING.md: added a short text on reviewing code [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Roberto Newmon <robertonewmon@fake-box.com>
Date: Sun Oct 29 08:30:02 2017 +0000
Fix non-null warning
Help the compiler understand the control flow in the MATCH_FUNC and
INVALID_MATCH_FUNC macros.
Because we are using macros, the compiler is not able to correlate the
replaced values of the macro variables to each other yielding non-null
warnings. Introduce a C variable to mimic the macro variable helping
the compiler understanding the control flow.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 21 15:17:22 2017 +0200
tests: test whether PKCS#11 generation works without login
Resolves #147
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 21 15:10:03 2017 +0200
p11tool: attempt to auto-login when the token requires it
In operations like generation or writing objects, run as if --login
was given if the token is marked to require login.
Relates #147
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 21 15:01:53 2017 +0200
p11tool: print PKCS#11 token flags in --list-tokens
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 21 14:53:37 2017 +0200
pkcs11: forward token flags to applications
That is, gnutls_pkcs11_token_get_flags() will not return the
most common/useful PKCS#11 token flags, in addition to trusted and HW
flags.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 21 09:44:37 2017 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 21 02:18:07 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 19 10:14:33 2017 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Thomas Klute <thomas2.klute@uni-dortmund.de>
Date: Wed Oct 18 19:50:57 2017 +0200
gnutls_server_name_set: Clarify meaning of the name_length parameter [ci skip]
Signed-off-by: Thomas Klute <thomas2.klute@uni-dortmund.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 15:57:53 2017 +0200
doc: mention SHA224 removal in upgrade guide
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 15:55:57 2017 +0200
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 10:18:33 2017 +0200
gnutls-serv: print the right error code on OCSP request setting
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 18 13:42:21 2017 +0200
ocsptool: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 16 11:41:36 2017 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 27 13:25:02 2017 +0200
cmp_hsk_types: fixed check for SSLv2 hello
Previously, if SSLv2 hello support was disabled, the check for
the expected TLS message was incorrect.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 7 10:06:09 2017 +0200
doc: improve documentation on provable private keys
Resolves #301
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 7 09:44:54 2017 +0200
doc: enhanced text on PKCS#7 and public keys
Resolves #302
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 1 12:20:18 2017 +0200
tests: check whether key IDs with SHA512 are corrected calculated
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 1 12:18:54 2017 +0200
certtool: allow using SHA512 for key IDs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 1 12:17:26 2017 +0200
_gnutls_get_key_id: introduce flag GNUTLS_KEYID_USE_SHA512
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 1 12:14:11 2017 +0200
tests: check fingerprint generation with SHA512
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 1 12:12:25 2017 +0200
certtool: allow using --fingerprint with sha384 or sha512
Resolves #295
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Andreas Metzler <ametzler@debian.org>
Date: Wed Sep 27 19:21:59 2017 +0200
Modernize gtk-doc support
Update gtk-doc.make, m4/gtk-doc.m4 and doc/reference/Makefile.am from
gtk-doc git head (that is 1.26 +
c08cc78562c59082fc83b55b58747177510b7a70).
Disable gtkdoc-check.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Rowan Thorpe <rowan@rowanthorpe.com>
Date: Wed Sep 27 21:41:43 2017 +0300
Fix autoreconf invocation to actually run autopoint
Signed-off-by: Rowan Thorpe <rowan@rowanthorpe.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 25 16:57:31 2017 +0200
CONTRIBUTING.md: added some text on introducing new APIs [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 24 10:52:08 2017 +0200
tests: re-purposed client_dsa_key test to match new behavior of the library
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 24 10:47:05 2017 +0200
tests: update TLS 1.2 tests to account for RSA-PSS client signatures
On commit de4f55b4dcf4bbe8f788e1f8f5bd59cd596f7d36:
"signature: on client side, refuse to negotiate non-enabled signature schemes"
the behavior of allowing a client to utilize disabled for the session
signatures, and thus the negotiated signatures now match the ones
in the session's priority string.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 08:37:50 2017 +0200
signature: on client side, refuse to negotiate non-enabled signature schemes
That amends/reverts commit 6aa8c390b08a25b18c0799fbd42bd0eec703fae4:
"On client side allow signing with the signature algorithm of our cert"
Previously, when we initially disabled DSA, we allowed client certificates
which can do DSA-SHA1 to be utilized to ease migration from these certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 09:53:01 2017 +0200
_gnutls_epoch_gc: ensure there are no stray epochs after gc
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 09:29:30 2017 +0200
constate: simplified allocation of epochs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 08:26:22 2017 +0200
_gnutls_epoch_get(): simplified use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 24 17:42:01 2017 +0200
gnutls_x509_crt/q_set_spki: always initialize the spki structure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:17:21 2017 +0200
gnutls-cli: always initialize the inline commands struct
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:13:31 2017 +0200
gnutls-cli-debug: eliminated memory leaks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:11:27 2017 +0200
ocsptool: eliminate memory leaks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:09:00 2017 +0200
certtool: use assert to protect var access
The code correctly uses the variables, but the assert ensures
that static analyzers follow the intended paths too.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:06:53 2017 +0200
srptool: removed unused variables
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:06:24 2017 +0200
psktool: remove unused variables
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:05:18 2017 +0200
gnutls-cli: fix memory leak
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 11:04:21 2017 +0200
tools: eliminated dead assignments
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 10:59:58 2017 +0200
ocsptool: check chain size on verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 19 11:08:19 2017 +0200
.gitlab-ci.yml: use static analyzer and Werror build in src
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 08:29:17 2017 +0200
tests: enhanced resumption checks with same and different SNI
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 08:19:21 2017 +0200
server name: refuse to resume a session which server name doesn't match
That is, follow the RFC6066 requirement that server:
"MUST NOT accept the request to resume the session if the
server_name extension contains a different name."
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 23 10:47:15 2017 +0200
gnutls-cli: eliminate few memory leaks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Thomas Klute <thomas2.klute@uni-dortmund.de>
Date: Thu Sep 21 11:00:33 2017 +0200
tests: New test for SNI parsing during cache-based session resumption
Signed-off-by: Thomas Klute <thomas2.klute@uni-dortmund.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Thomas Klute <thomas2.klute@uni-dortmund.de>
Date: Thu Sep 21 10:45:05 2017 +0200
Ensure the SNI extension is parsed during cache-based resumption
This patch changes the parse_type of the SNI extension to
GNUTLS_EXT_MANDATORY to ensure it is parsed during every handshake.
With SNI previously classified as GNUTLS_EXT_APPLICATION, GnuTLS
servers ignored the SNI extension when resuming a TLS session from
cache, because "application" level extensions are skipped during
resumption. As a result, gnutls_server_name_get() always returned
GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE when called on the resumed
session, breaking virtual server systems.
According to RFC 6066, Section 3 the SNI extension must be parsed on
session resumption if implemented at all:
"A server that implements this extension MUST NOT accept the request
to resume the session if the server_name extension contains a
different name."
This change allows applications using GnuTLS to match SNI data on
resumed sessions.
Signed-off-by: Thomas Klute <thomas2.klute@uni-dortmund.de>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 18 17:06:15 2017 +0300
tests: explicitly check for gnutls.pc in pkgconfig.sh
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 18 13:33:53 2017 +0300
test: use proper library name in pkgconfig.sh error message
If there is a -R flag in p11-kit-1.pc file, pkgconfig.sh test will still
reference libidn2.pc, rather than proper source of the message. Also
move the test for library flags before updating PKG_CONFIG_PATH.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Sep 18 13:32:40 2017 +0300
tests: use libidn2 in pkgconfig.sh
Since abe6a12b9766219163f99d7807a0b07fbe5f590c GnuTLS does not support
libidn1. Switch pkgconfig.sh test to use libidn2.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Sep 19 20:36:22 2017 +0200
parse-datetime: Fix buffer overflow
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 18 15:35:32 2017 +0200
tlsfuzzer: document the reason of failure of few fragmentation tests
It seems that gnutls does not accept records carrying handshake messages
that contain less bytes than necessary to recover the handshake header.
The TLS protocol allows that option, and other implementations seem to
accept that fragmentation.
Relates #272
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 16 18:21:36 2017 +0200
parse_handshake_header: removed duplicate check
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 16 14:03:54 2017 +0200
ecdh: return more appropriate error code on empty packet
This makes tlsfuzzer's test-x25519 detect the right error
code on empty message. Previously this issue was masked by our
refusal to accept 1-byte sized fragments.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 16:34:02 2017 +0200
parse_handshake_header: allow 1-byte sized fragments
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 15 16:21:02 2017 +0200
tests: added reproducer for DTLS infinite loop
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Sep 18 20:55:25 2017 +0200
pkcs11/get_key_algo_type(): Always initialize bits variable
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Sep 18 20:53:23 2017 +0200
tests/base64-raw: Remove unused variable
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Sep 18 15:54:19 2017 +0200
gnutls.h: Remove redundant function declarations
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 14 11:56:27 2017 +0200
x509: removed debugging code [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 13:58:58 2017 +0200
tests: modified the MD5 signature algorithm negotiation tests
Since GnuTLS can no longer negotiate MD5, we utilize a byte stream
of a connection which advertises MD5, and we make sure we detect the
right error code for the rejection of MD5 signature.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 08:42:10 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 08:36:01 2017 +0200
tlsfuzzer: no longer include tests involving SHA224 signatures
We no longer support them.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 15:04:32 2017 +0200
algorithms/sign: removed TLS identifiers for legacy algorithms
That is, for the MD5-using algorithms, as well as for the DSA2
signature algorithms that were never really used with TLS 1.2.
Kept DSA-SHA1 in order to be used by TLS 1.2 and legacy applications.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 15:02:47 2017 +0200
algorithms/sign: legacy signature algorithms were moved toward the end of the list
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 14:58:17 2017 +0200
algorithms/sign: no longer enable SHA224 hash in signatures
TLS 1.3 requires that SHA224 MUST NOT be used, and given the
fact that SHA224 was never widespread used in TLS 1.2, there
is no reason to keep these algorithms at all.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 8 16:19:38 2017 +0200
tlsfuzzer: added large client hello tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 8 15:16:55 2017 +0200
win32: removed no longer used subdir
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 8 14:01:09 2017 +0200
.gitlab-ci.yml: added warning cppcheck checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 16:54:24 2017 +0200
.gitlab-ci.yml: removed initialization step
That is, combine syntax-check with the static analyzers run. That
provides more parallelism per build and reduces the overall time
spent on a successful run.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 16:20:01 2017 +0200
doc: added README on FreeBSD CI setup
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 16:21:44 2017 +0200
.gitlab-ci.yml: added FreeBSD build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 17:05:57 2017 +0200
tests: ip-utils: added include for FreeBSD compilation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 14:12:20 2017 +0200
.gitlab-ci.yml: enable more cppcheck tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 8 12:15:47 2017 +0200
tests: updated tlsfuzzer to reduce rsa-pss failures
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 15:51:57 2017 +0200
crq: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 09:31:30 2017 +0200
tests: added unit test for gnutls_x509_crq_sign
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 09:11:06 2017 +0200
tests: added verification checks into crl_apis
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 09:10:20 2017 +0200
gnutls_x509_crl_verify: check next update field for presence
If not present do not attempt to utilize its value.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 08:33:24 2017 +0200
tests: added verification check into crt_apis
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 08:30:13 2017 +0200
tests: added unit test for gnutls_x509_crt_sign
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 08:24:41 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 09:23:28 2017 +0200
gnutls_x509_crq_sign: undeprecate
After the updates of the function semantics, it is no longer
needed to deprecate it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 09:13:54 2017 +0200
gnutls_x509_crl_sign: undeprecate
After the updates of the function semantics, it is no longer
needed to deprecate it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 09:21:16 2017 +0200
gnutls_x509_crq_sign: no longer sign with SHA1
Modify the behavior of the functions to sign with an appropriate
to the public key hash algorithm. That although it modifies the
semantics of the functions, it allows them to be useful even after
SHA1 is considered insecure.
In addition to that, the functions which accept a hash algorithm, will
accept a null hash, which instructs the function to select a
reasonable choice.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 08:21:47 2017 +0200
gnutls_x509_*_sign: no longer sign with SHA1
Modify the behavior of the functions to sign with an appropriate
to the public key hash algorithm. That although it modifies the
semantics of the functions, it allows them to be useful even after
SHA1 is considered insecure.
In addition to that, the functions which accept a hash algorithm, will
accept a null hash, which instructs the function to select a
reasonable choice.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 08:12:05 2017 +0200
doc: document the change of gnutls_x509_crt_sign
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 8 08:31:42 2017 +0200
tests: tolerate leaks in opensc-pkcs11 when present
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 7 08:08:12 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 6 14:51:59 2017 +0200
tests: added reproducer for safe renegotiation failure with openssl
Relates #259
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 6 15:11:00 2017 +0200
handshake: check SCSVs prior to resuming a session
This ensures that extensions which are also available as SCSVs
are parsed prior to resuming a session. This resolves an issue
with openssl sending SCSV instead of an extension for the safe
renegotiation.
Relates #259
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Thomas Klausner <wiz@NetBSD.org>
Date: Wed Sep 6 19:16:30 2017 +0200
Use $(LIBDL) instead of hardcoding -ldl.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 6 14:34:20 2017 +0200
cmocka: require 1.0.1
This prevents failures in test suite due to insufficient cmocka
library version.
Resolves #268
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 6 09:46:05 2017 +0200
tlslite-ng: updated to latest version
This addresses issues with RSA-PSS signing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Avinash Sonawane <rootkea@gmail.com>
Date: Thu Aug 31 18:05:04 2017 +0530
cli-debug-args.def: Fix typo
Signed-off-by: Avinash Sonawane <rootkea@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 29 15:38:49 2017 +0200
latex: handle the deprecated function mark [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 29 13:56:58 2017 +0200
.gitlab-ci.yml: give more specific name to windows job artifacts [ci skip]
This allows a more descriptive name to any downloaded artifacts.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 28 15:16:58 2017 +0200
tools: removed re-using PIN message when in non-verbose mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 28 12:57:38 2017 +0200
p11tool: print public or private key algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 28 14:20:36 2017 +0200
gnutls_pkcs11_privkey_generate3: doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 26 17:27:09 2017 +0200
tests: check whether generated private keys are marked private
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 26 17:16:26 2017 +0200
tests: added unit test of p11tool with --set-pin
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 26 17:02:28 2017 +0200
tests: check whether generated or copied keys are marked as sensitive
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 15:58:14 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 15:56:49 2017 +0200
p11tool: allow obtaining PIN from command line on operations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 14:49:33 2017 +0200
certtool: eliminate global use of default_dig
Use instead the cinfo->hash field which is already used
by p11tool.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 12:01:37 2017 +0200
tests: krb5-test: disable valgrind mem leak checks for negative checks
Resolves #192
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 11:47:28 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 11:41:47 2017 +0200
tests: check whether p11tool signing with RSA-PSS works
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 10:53:51 2017 +0200
p11tool: allow signing with RSA-PSS and specifying an explicit hash
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 10:41:27 2017 +0200
sign_params_to_flags: moved to certtool-common.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 10:33:27 2017 +0200
certtool: hash_to_id moved to certtool-common.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Aug 26 17:49:28 2017 +0200
Fix some typos [ci skip]
occurence -> occurrence
sucessful -> successful
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Author: Tom Vrancken <dev@tomvrancken.nl>
Date: Fri Aug 25 19:54:58 2017 +0200
Fixed segmentation faults caused by accessing NULL pointers during mutex operations. This bug was triggered while setting priorities.
Signed-off-by: Tom Vrancken <email@tomvrancken.nl>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 25 16:15:24 2017 +0200
p11tool: explicitly mark generated keys as sensitive
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sat Aug 26 00:16:03 2017 +0300
tests: windows: warning: function declaration isn't a prototype
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Aug 25 23:45:44 2017 +0300
tests: warning: implicit declaration of function
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 24 17:03:17 2017 +0200
m4: updated ax_code_coverage.m4 [ci skip]
This version fixes a bug which prevented including the branch coverage
into output.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 21 15:19:25 2017 +0200
fuzzer: Enhance code coverage of gnutls_base64_encoder_fuzzer
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 21 15:16:55 2017 +0200
fuzzer: Add script 'view-coverage'
This helper script is for viewing the code coverage of
single (or combined) fuzzers running with all his corpora.
It helps optimizing the code coverage by hand-crafting corpora
and/or dictionaries.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 21 14:22:58 2017 +0200
fuzzer: Change CFLAGS -O0 to -O1 in fuzz/README.md
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 21 14:20:54 2017 +0200
fuzzer: Update corpora from oss-fuzz
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 24 15:29:19 2017 +0200
tlslite: updated to latest version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 23 10:20:05 2017 +0200
certtool: do not ask about RSA encryption in non-RSA keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 22 16:17:54 2017 +0200
fuzz: work-around libtool file name
fuzzers utilize argv[0] to discover the name the reproducers are stored
in. However libtool creates a script which later runs the executable.
Try to detect that situation and use the right paths.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 22 08:48:03 2017 +0200
dh params: document DH param setting functions as deprecated
They are no longer useful after the RFC7919 DH parameter negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 10:03:54 2017 +0200
tests: introduced unit test of gnutls_memset()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 22 07:27:03 2017 +0200
fuzz: removed -static ldflag completely
It is not necessary for building the fuzzer, and was causing
issues in MacOSX systems.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 21 09:47:59 2017 +0200
.gitlab-ci.yml: use the same flags in the tags and non-tags windows builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 21 09:46:07 2017 +0200
tests: p11-kit-trust is not compiled in windows
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 21 08:35:07 2017 +0200
fuzz: temporarily disable -static build of fuzz/ in MacOSX
This allows running the MacOSX CI tests on travis.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 21 08:26:57 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 21 07:56:58 2017 +0200
tests: verify the output size of gnutls_x509_privkey_export
That is, make sure that gnutls_x509_privkey_export() and
gnutls_x509_privkey_export2() agrees with the strlen()
value on the data.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 20 20:46:31 2017 +0200
.travis.yml: print failed log files in fuzz after failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 20 19:43:52 2017 +0200
hooks.m4: reduce the gap between minor soversion of 3.5.x and 3.6.0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 20 09:24:19 2017 +0200
tests: make mini-record more friendly for OSes with limited buffers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 20 09:18:05 2017 +0200
pull/push backends: ECONNRESET is translated to GNUTLS_E_PREMATURE_TERMINATION
This returns a more reasonable error code on platforms where
this errno is set.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 20 09:05:02 2017 +0200
tests: gnutls_x509_privkey_import: address issue on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 20 00:18:44 2017 +0200
sed: use it in a portable way in makefiles
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 19 23:33:46 2017 +0200
configure: disable hardware acceleration on aarch64/ilp32 mode
Our included assembly code for aarch64 is not suitable for that
data mode.
Resolves #252
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 19 13:39:28 2017 +0200
create_tls_random: avoid warning in fuzzying mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 19 08:58:37 2017 +0200
configure.ac: removed conditional FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
Instead rely only on the definition, to make fuzzying mode to be
enabled even if --enable-fuzzer-target is not specified, but defined
b the compiler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 19 08:56:28 2017 +0200
rnd-fuzzer: use ifdef instead of conditional compilation
This allows compiling in fuzzying mode even when --enable-fuzzer-target
is not specified on configure, but the definition is present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 18 21:39:13 2017 +0200
fuzzer: Update base64 fuzzers + corpora
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 18 21:32:28 2017 +0200
fuzzer: Fix include path in run-clang.sh [skip ci]
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 15:43:43 2017 +0200
gnutls_x509_privkey_export: use _gnutls_copy_string on PEM data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 13:05:34 2017 +0200
Corrected argument names of functions to correspond to declaration
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 12:57:07 2017 +0200
lib: use casts and be explicit on intentional enumeration use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 13:56:04 2017 +0200
gnutls-cli-debug: do not run non-FIPS cipher tests when in FIPS mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 12:52:20 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 12:47:12 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:51:53 2017 +0200
tests: added basic test for the operation of gnutls-cli-debug
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:44:55 2017 +0200
tests: verify the presence of GNUTLS_SFLAGS_RFC7919 flag in server and client mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:34:46 2017 +0200
gnutls-cli-debug: check whether RFC7919 is supported
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:31:52 2017 +0200
gnutls_session_get_flags: introduced GNUTLS_SFLAGS_RFC7919
This allows checking whether the DHE parameters used were negotiated
using RFC7919.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:22:11 2017 +0200
gnutls_auth_*: check cs parameter for validity prior to use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:16:50 2017 +0200
certtool: simplified certificate PEM printing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 11:14:16 2017 +0200
gnutls-cli: fixed bounds check on benchmark-tls
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 10:44:21 2017 +0200
lib: removed legacy debugging code
That code was code from the initial versions of gnutls. It was neither
used nor updated for long time.
Relates #248
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 10:35:03 2017 +0200
fuzz: added missing files into dist [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 10:06:36 2017 +0200
tests: added missing files in dist [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 10:05:36 2017 +0200
tests: do not suppress stderr errors on servers startup
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 17 17:41:34 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 08:39:50 2017 +0200
abi-check: added check for 3.6.0 ABI compatibility
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 18 08:38:48 2017 +0200
gnutls_x509_crl_get_issuer_dn: removed unnecessary const
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 17 11:27:24 2017 +0200
certtool: fixed documentation of sign-params
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 17 10:50:56 2017 +0200
README.md: mention lockfile-progs dependency
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 17 10:02:47 2017 +0200
tests: tls-neg-ext4-key: explicitly restrict to TLS 1.2, 1.1 and 1.0
This allows testing all signature types used in the protocol.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 17 09:59:53 2017 +0200
sign APIs: introduce RSA-RAW signing algorithm
This ensures that there is a signing algorithm for all the operations
we support. Previously, we required GNUTLS_SIGN_UNKNOWN to be acceptable
by signing functions to accomodate for raw RSA operations. Now we make
that explicit and in the process clean-up the API.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 17 10:09:13 2017 +0200
removed devel/fuzz; functionality moved to fuzz/ [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 11 21:42:02 2017 +0200
fuzzer: Add 'make -C fuzz coverage' [ci skip]
This reports how much code is covered by fuzzing.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 14 08:46:03 2017 +0200
_gnutls_recv_server_certificate_status: use the same type in subtracted values
This ensures that there are no issues with subtracting those values.
Note that the second is read from an uint24_t and thus it is always
positive regardless its type.
Resolves #245
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 14 08:42:51 2017 +0200
_gnutls_proc_srp_client_kx: use same type in subtracted values
This ensures that there are no issues with subtracting those values.
Note that the second is read from an uint16_t and thus it is always
positive regardless its type.
Resolves #244
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 15 12:34:25 2017 +0200
fuzzer: Move regression corpora from tests/ to fuzz/
See fuzz/README.md for the corresponding paths.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 14 12:34:00 2017 +0200
fuzzer: Suppress leak in libgmp <= 6.1.2
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 11 18:31:35 2017 +0200
fuzzer: Suppress unsigned integer overflow in rnd-fuzzer.c
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 5 20:49:19 2017 +0200
fuzzer: Initial check in for improved fuzzing
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 08:24:59 2017 +0200
fuzzer: added a fuzzer target
This allows to compile the library with flags which will add predictable
random generation and eliminate some crypto checks, in order for the
library to be used for testing (fuzzying).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 16:40:41 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 16:39:36 2017 +0200
gnutls_x509_privkey_export: made a wrapper over gnutls_x509_privkey_export2()
In addition, improved function description.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 13:23:39 2017 +0200
gnutls-http-serv: use RSA-PSS key
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 13:11:03 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 12:58:02 2017 +0200
tests: use certtool to check RSA-PSS to RSA conversion
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 12:07:01 2017 +0200
certtool: introduced --to-rsa option
This allows converting an RSA-PSS key to raw RSA.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 11 16:37:21 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 11 12:30:17 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 15:51:34 2017 +0200
tests: added unit tests for gnutls_privkey_import_ext4
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 15:00:46 2017 +0200
gnutls_privkey_import_ext4: introduced to allow signing with RSA-PSS or Ed25519 keys
That function allows a signing callback which passes the signature
algorithm, providing all the information to callback for signing.
It also introduces GNUTLS_PRIVKEY_INFO_HAVE_SIGN_ALGO flag which
allows the library to query the private key of the supported
signature algorithms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 10:47:11 2017 +0200
reduce common asserts to assist in debugging the library
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 10:29:42 2017 +0200
doc: algorithms.texi: include list of groups but skip compression methods
Compression methods are no longer relevant or supported, and groups
replace the elliptic curves.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 15 10:27:19 2017 +0200
doc: improved elliptic curve and group documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 14 19:02:45 2017 +0200
doc: mention the AES-DRBG random generator [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 11 12:40:14 2017 +0200
tests: improved detection of 64-bit systems
We now use the ${ac_cv_sizeof_unsigned_long_int} variable which
gives the numbers used in the host system, not the build one.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 10 10:51:26 2017 +0200
tests: updated for new x86 host
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 10 09:37:07 2017 +0200
.gitlab-ci.yml: replaced the f23 x86 build with a f26 x86 build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 11 11:09:39 2017 +0200
fuzz: explicitly initialize and deinitialize the library [ci skip]
This enables the fuzzers to run even when statically linked.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 13:08:31 2017 +0200
handshake: eliminated unnecessary function wrappers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 10:35:13 2017 +0200
gnutls_int.h: reduce memory occupied by ext_data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 10:25:10 2017 +0200
gnutls_int.h: reduced the maximum number of epoch states we keep
There was no need to keep 16 epochs, as we typically we have only
one or two active.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 10:14:11 2017 +0200
gnutls_int.h: removed unused variable from state
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 11:30:51 2017 +0200
extensions: simplified requirements from send callback
The callback no longer needs to return the number of sent data;
they are now calculated by the caller.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 11:42:25 2017 +0200
ext/ecc: renamed Supported curves extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 11:01:08 2017 +0200
gnutls-serv: --require-client-cert no longer implies --verify-client-cert
That is, it is now possible to require a client certificate without
verifying it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 10 10:35:22 2017 +0200
CONTRIBUTING.md: corrected typo [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 16:59:15 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 10:30:04 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 09:40:03 2017 +0200
CONTRIBUTING.md: added section on symbol versioning
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 11:06:18 2017 +0200
libgnutls.map: separated symbols introduced in 3.6.0
This separation assists tools like rpm which can detect
the right version of the library to use, by using the
symbol version.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 10:21:06 2017 +0200
tests: added reproducer for private key import leak
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=561
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 13:18:33 2017 +0200
rnd: use time_t for prng_reseed_time
This ensures that all time comparisons are done
under the same type.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 10:20:36 2017 +0200
gnutls_x509_privkey_import_pkcs8: fixed memory leak on incorrect key import
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 09:58:17 2017 +0200
tests: added reproducer for memory leak in SRP server
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2859
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 09:57:49 2017 +0200
gnutls_srp_verifier: corrected memory leak
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 09:52:37 2017 +0200
tests: added reproducer for memory leak in RSA-PSK
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2863
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 09:52:21 2017 +0200
rsa-psk: corrected memory leak on invalid decrypt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 10:44:56 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 9 10:41:58 2017 +0200
p11tool: --generate-xxx options were replaced by generate-privkey
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 7 23:04:36 2017 +0200
Fix memleaks in gnutls_x509_trust_list_add_crls()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Aug 7 23:04:05 2017 +0200
Fix memleak in gnutls_x509_crl_list_import()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 15:03:53 2017 +0200
publickey: fixed incorrect assignment
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 15:03:11 2017 +0200
mac: simplified iteration functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 14:59:56 2017 +0200
corrected input to gnutls_sign_supports_pk_algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 14:59:44 2017 +0200
extensions: corrected flag check
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 15:50:44 2017 +0200
tests: updated for new rsa-pss key in doc/credentials
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 12:51:58 2017 +0200
cert selection: prioritize RSA-PSS certs over RSA
RSA and RSA-PSS can both be used for RSA-PSS operations, and
as such without prioritizing RSA-PSS certificates it is unknown
which certificate will be used for an RSA-PSS operation. The
reason we want to have only RSA-PSS keys used for RSA-PSS operations
is to cover the use case where a server uses a legacy RSA certificate
for clients that don't support RSA-PSS and an RSA-PSS certificate
for the rest, thus separating the keys used for these client
groups. That separation ensures that any issue on PKCS#1 1.5
(legacy RSA), would not affect sessions which use RSA-PSS.
Resolves #243
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 11:35:26 2017 +0200
gnutls_certificate_credentials_t: combine privkey into cert_st structure
This reduces the number of applications and allows for easier
use of the structure information, as they are now self-contained
for most uses.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 10:56:17 2017 +0200
tests: verify whether the RSA-PSS key is preferred on RSA-PSS sigs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 8 09:27:57 2017 +0200
certtool: eliminated unused variable
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 7 16:32:17 2017 +0200
tests: added negative tests in provable-privkey
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 7 16:23:29 2017 +0200
gnutls_pk_params_st: separate flags/qbits and curve
Previously we were using the field flags to store the
size of q in case of GNUTLS_PK_DH, some key generation flags
in case of GNUTLS_PK_RSA, and the curve in case of elliptic
curve key. Separate this into multiple fields to reduce
confusion on the field.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 7 14:55:38 2017 +0200
tests: check whether validation parameters are lost on key re-import
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 5 20:08:31 2017 +0200
certtool: improved documentation on --provable option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 5 19:52:40 2017 +0200
certtool: create mapping between --load-x and --info options
That allows using:
certtool --certificate-info --load-certificate FILE
and
certtool --certificate-info --infile FILE
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 5 19:35:53 2017 +0200
certtool: removed definitions of non-existing functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 5 17:08:16 2017 +0200
tests: updated for the new provable private key format
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 5 10:17:46 2017 +0200
gnutls_x509_privkey_verify_seed: improved error on missing validation parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 16:17:45 2017 +0200
certtool: silence warnings related to --pkcs8
There is no reason to bug the user with such details by default.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 15:18:34 2017 +0200
certtool: better print provable key validation parameters
That is, include hash in the printable set, and keep spaces
from next fields.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 15:11:12 2017 +0200
certtool: provable private keys are always exported in PKCS#8 form
That allows the provable parameters to be included.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 14:43:04 2017 +0200
x509: no longer emit the previous custom format for provable parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 14:30:06 2017 +0200
x509: store and read provable seed in PKCS#8 form of key
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 2 10:28:07 2017 +0200
Added information on OID registry
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 14:23:31 2017 +0200
pkix.asn: removed unused DomainParameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 11:29:26 2017 +0200
x509: separated PKIX1 attributes parsing code for cert request handling
This allows other code to utilize it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 7 09:36:20 2017 +0200
_gnutls_fbase64_decode will always return non-zero
That is, document that fact and update its callers to remove
checks for zero.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 6 17:23:52 2017 +0200
_gnutls_base64_decode: reject all zero-length string encodings on decoding
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 6 11:34:39 2017 +0200
wrap_nettle_pk_fixup: added sanity check in RSA-PSS param checking
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 6 11:34:10 2017 +0200
_decode_pkcs8_rsa_key: signal error in RSA privkey decoding
Addresses oss-fuzz issue:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2865
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 6 11:28:15 2017 +0200
tests: added reproducer for private key crash
Found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2865
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 6 10:17:29 2017 +0200
tests: added unit test of gnutls_x509_crt_list_import
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 5 09:35:14 2017 +0200
tests: added reproducer applications for psk and srp fuzzers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 19:47:00 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 02:57:03 2017 +0200
gnutls_server_fuzzer: added ed25519 key/cert
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 09:22:51 2017 +0200
removed references for "new" semantics of PEM base64 encode and decode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 09:19:22 2017 +0200
base64: reverted the raw semantics from the PEM encoding/decoding functions
Keeping the complex semantics with NULL headers would most likely cause
issues in the future.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 09:15:20 2017 +0200
base64: test the new base64 encoding and decoding functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 09:13:35 2017 +0200
base64: uniformly use GNUTLS_E_BASE64_DECODING_ERROR for decoding errors
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 09:08:24 2017 +0200
base64: introduced new functions for base64 encoding
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 19:05:23 2017 +0200
tests: gnutls_x509_privkey_import: enhanced to test DER key import
It seems that this function was not tested for multiple cases of
private keys in DER mode.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 03:43:42 2017 +0200
gnutls_x509_privkey_import: allow importing ed25519 PKCS#8 keys in DER form
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 14:00:27 2017 +0200
sign/digest: separate "brokenness" of signatures and hash algorithms
That is, allow digital signatures to be marked as broken irrespective
of their used hash, and restrict hash brokenness to preimage resistance.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 13:40:21 2017 +0200
sign: use C99 syntax for signature algorithm's table
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 13:22:51 2017 +0200
.gitlab-ci.yml: enable multiple undefined sub-sanitizers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 16:40:29 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 13:51:56 2017 +0200
p11tool: auto-generate the list of PKCS#11 mechanisms from p11-kit
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 12:11:06 2017 +0200
tests: added unit test for gnutls_x509_privkey_import
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 11:52:28 2017 +0200
tests: added TLS negotiation with various keys under PKCS#11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 11:48:40 2017 +0200
x509_privkey: handle keys which can only have PKCS#8 form transparently
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 11:00:03 2017 +0200
tests: updated for errors returned due to early signature selection
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 10:30:25 2017 +0200
tests: added check for the negotiation of ext keys
That is, check whether we can negotiate TLS with ext abstract
key types, and whether the algorithms which cannot be used
with that key type, gracefully fail.
Relates #234
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 10:22:29 2017 +0200
privkey: reject signing with ext keys and GNUTLS_PK_RSA_PSS or GNUTLS_PK_EDDSA_ED25519
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 10:09:54 2017 +0200
_gnutls_check_key_cert_match: use the new API for signing
This ensures that the same signature algorithm is used for
signing and verification.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 10:02:59 2017 +0200
privkey: return less specific but more appropriate error on invalid pks for ext keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 09:27:03 2017 +0200
prior to negotiating a signature check compatibility with private key
That is, check if the private key can support the public key operation
needed for the signature. That in particular includes, excluding the
Ed25519 and RSA-PSS from being used with the 'EXT' keys as the
current API cannot handle them, and RSA-PSS from being used by PKCS#11
RSA keys which do not provide the CKM_RSA_PKCS_PSS mechanism.
Relates #234
Resolves #209
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 09:21:59 2017 +0200
pkcs11: mark RSA PKCS#11 key which can do RSA-PSS
Also refuse to sign with RSA-PSS if the mechanism is not supported.
Relates #208
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 11:55:52 2017 +0200
handshake: select a signature algorithm early
That is, select the signature algorithm at the point the certificate and
ciphersuites are decided. Also ensure that a compatible signature algorithm
with the ciphersuite and the key is selected.
That prevents situations where a ciphersuite and a certificate are
negotiated, but later on the handshake we figure that there are no
common signature algorithms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 08:46:18 2017 +0200
tests: added basic unit test of gnutls_pkcs11_token_check_mechanism
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 18:07:54 2017 +0200
gnutls_pkcs11_token_check_mechanism: introduced function to check token for a particular mechanism
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 10:45:20 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 10:21:06 2017 +0200
x509/output: print error on invalid public key parameters on certificate
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 10:05:29 2017 +0200
gnutls_pk_get_oid: return early on unknown algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 09:48:42 2017 +0200
tests: check whether the gnutls_x509_*_set_spki will reject invalid values
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 09:34:23 2017 +0200
tests: updated for gnutls_x509_spki_get_rsa_pss_params
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 09:29:12 2017 +0200
tests: added unit test of generation of legal and illegal rsa-pss parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 09:25:31 2017 +0200
spki: combined all exported functions to a single set and get
This simplifies setting parameters for a particular key type,
as well as getting them. The advantage is that they are set
atomically, preventing an inadverterly half-filled structure.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 09:13:15 2017 +0200
certtool: set RSA-PSS parameters using GNUTLS_KEYGEN_SPKI kdata type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 4 09:06:32 2017 +0200
introduced error code GNUTLS_E_PK_INVALID_PUBKEY_PARAMS
This is being use to indicate errors in the public key parameters
such as the RSA-PSS salt size or digest algorithm.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 16:46:32 2017 +0200
gnutls_x509_privkey_generate*: allow specifying the SPKI parameters for key generation
This in turn removes the need for reading the flag GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE
on the key generation process. The flag is now only used during key signing
which is also its documented purpose.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 16:29:18 2017 +0200
gnutls_x509_privkey_set_spki: check validity of parameters set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 16:21:26 2017 +0200
gnutls_x509_cr*_set_spki: check for validity of parameters set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 16:16:49 2017 +0200
_gnutls_x509_check_pubkey_params: removed unnecessary parameter
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 16:06:06 2017 +0200
tests: added check for import of RSA-PSS key with invalid salt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 15:37:18 2017 +0200
gnutls_pubkey_import_x509: propagate errors from gnutls_x509_crt_get_pk_algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 15:16:08 2017 +0200
_rsa_pss_verify_digest: verify the validity of the salt_size length on verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 15:08:43 2017 +0200
gnutls_x509_privkey_import: immediately exit on GNUTLS_E_PK_INVALID_PRIVKEY
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 15:00:00 2017 +0200
wrap_nettle_pk_fixup: check RSA PSS parameters for validity on import
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 11:03:44 2017 +0200
gnutls_x509_*_set_spki: removed arbitrary restrictions to setting parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 28 08:20:16 2017 +0200
tests: added unit test for the SPKI abstract functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 11:24:40 2017 +0200
tests: chainverify: included negative and positive tests with RSA-PSS signed chains
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 15:03:00 2017 +0200
pct_test: use local SPKI structure to override parameters if not set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 08:44:05 2017 +0200
fixup_spki_params: use GNUTLS_E_CONSTRAINT_ERROR for RSA-PSS violations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 08:28:54 2017 +0200
_gnutls_x509_read_pkalgo_params: initialize params structure
That is the primary call on these parameters, thus it should
initialize the structure with something reasonable. That is
similar to behavior of _gnutls_x509_read_rsa_pss_params.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 08:14:37 2017 +0200
RSA-PSS parameter checking was moved to lower level functions
That way all PKI callers get protected by the checks.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 07:55:24 2017 +0200
signature security level check were moved to lower level functions
That way all callers (including PKI functions) get protected by
the available checks.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 07:19:36 2017 +0200
_wrap_nettle_pk_encrypt: return GNUTLS_E_INVALID_REQUEST on unsupported algorithms
That is a more specific error code than internal error.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 07:10:22 2017 +0200
certtool: print signature algorithm in cert verification output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 17:51:00 2017 +0200
verify_crt: translate GNUTLS_E_CONSTRAINT_ERROR to verification status flag
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 17:50:33 2017 +0200
x509/sign: in debugging mode print the signature algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 17:34:14 2017 +0200
_gnutls_x509_validate_sign_params: use GNUTLS_E_CONSTRAINT_ERROR for mismatch of RSA-PSS parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 17:28:00 2017 +0200
_gnutls_x509_read_rsa_pss_params: fail early on unknown hash algorithms
Also utilize GNUTLS_E_CONSTRAINT_ERROR for signaling differences
between the hash functions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 16:55:02 2017 +0200
gnutls_pubkey_get_preferred_hash_algorithm: will take into account the RSA-PSS SPKI
In addition it will offer a SHA hash depending on the key size for
RSA public keys.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 16:45:00 2017 +0200
certtool: sign_params_to_flags: use strtok to parse input
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 15:41:51 2017 +0200
certtool: copy SPKI information from private key when available
That also addresses a bug due to which SPKI information was not set.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 15:54:07 2017 +0200
x509/output: Subject Public Key parameters are printed just before actual key
That allows to easier figure out algorithm and basic parameters, rather
than having them at the end of long key output.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 15:35:15 2017 +0200
gnutls_x509_crt_set_spki: be more verbose in parameter restrictions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 15:07:42 2017 +0200
_gnutls_privkey_update_spki_params: use GNUTLS_E_CONSTRAINT_ERROR on mismatch of hash
That is a more specific error code for hash mismatch between
public key information and signature. In addition only override
the salt size, if it is set to zero without the proper flags.
That prevents the update function from setting an invalid (lower)
than the expected size.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 15:00:17 2017 +0200
cert-tests: use .tmp suffix for all tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 14:43:15 2017 +0200
certtool: allow specifying RSA-PSS parameters for key generation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 14:56:36 2017 +0200
_gnutls_x509_write_rsa_pss_params: refuse to write RSA-PSS parameters we cannot use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 14:30:03 2017 +0200
certtool: group together common options
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 13:41:46 2017 +0200
tests: modified to account new errors
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 17:58:06 2017 +0200
gnutls_x509_*_get_signature_algorithm: simplified error handling
These functions were documented to return a negative error code
on failure, as well as GNUTLS_SIGN_UNKNOWN on unknown algorithms.
Simplify them by only returning GNUTLS_SIGN_UNKNOWN on all error
conditions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 13:24:52 2017 +0200
_gnutls_x509_get_signature_algorithm: return negative error code on unknown algorithm
This allows internal callers to quickly fail on errors.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 13:40:31 2017 +0200
compare_sig_algorithm: modify to work even for certs with unsupported signature algorithm
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 09:20:22 2017 +0200
pubkey_verify_hashed_data: simplified and made static
That also removes its ability to operate with the 'unknown'
signature algorithm, and forces the TLS 1.0 key exchange to
supply the right algorithm or flags.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 26 09:16:03 2017 +0200
pubkey_verify_data: accept signature entry instead of PK and hash
That aligns better with current callers which know the signature
algorithm in use.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 17:00:00 2017 +0200
NEWS: documented the SPKI handling functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 13:42:12 2017 +0200
tests: added RSA and RSA PSS key unit tests
That is test:
1. Whether RSA-PSS keys will refuse to sign with incompatible signature
2. Whether RSA-PSS public keys cannot be used for encryption
3. Whether RSA-PSS keys cannot be used for signing with PKCS#1 1.5
4. Whether an RSA key can be converted to an RSA-PSS one with the public APIs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 16:52:18 2017 +0200
certtool: do not print error on missing RSA-PSS parameters on key
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 27 16:53:57 2017 +0200
Added convention for missing SubjectPublicKeyInfo params field
That is, when that field is missing, the spki_st structure field
pk will be set to GNUTLS_PK_UNKNOWN. In that case other fields
are undefined.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 14:01:48 2017 +0200
*set_spki(): return error on incompatible algorithms
In addition update the public key algorithm field in the
respective structure.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 16:33:26 2017 +0200
gnutls_x509_privkey_generate2: do not hardcode the RSA-PSS hash to SHA256
Instead use _gnutls_pk_bits_to_sha_hash() to set an appropriate hash
for the number of bits of the key. This matches better the "intention"
of RSA-PSS or tying the security parameter with the salt and hash.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 14:14:49 2017 +0200
_decode_pkcs8_rsa_pss_key: ensure we set the PSS PK identifier
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 13:38:34 2017 +0200
cleanup: removed duplicate parameter in gnutls_pubkey_st
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 13:28:44 2017 +0200
gnutls_x509_privkey_int: eliminated duplicate pk_algorithm field
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 13:34:50 2017 +0200
cleanup: removed unnecessary/duplicate parameters in _dsa_q_to_hash
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 13:18:05 2017 +0200
cleanup: removed unnecessary/duplicate parameters in functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 13:12:19 2017 +0200
cleanup: removed unnecessary/duplicate parameters in functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 12:01:52 2017 +0200
abstract.h: added functions to read and write SPKI information
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 11:48:58 2017 +0200
gnutls_x509_privkey_set_spki: introduced function to update SPKI on a key
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 24 16:35:50 2017 +0200
tests: added unit test for the SPKI related functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 11:37:04 2017 +0200
x509.h: Renamed SPKI related functions
This better reflects their purpose as providers of information
for subject public key. In addition use 'const' for fields that
should be left intact.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 09:43:05 2017 +0200
tests: introduced RSA-PSS key exchange with a key fixed to rsa-pss with sha256
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 10:06:10 2017 +0200
_gnutls_pubkey_compatible_with_sig: enforce RSA-PSS requirements
That is require that parameters in an RSA-PSS key which has them
explicitly set, are respected with regards to signature algorithm
negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 09:39:32 2017 +0200
tests: eagain-common.h: remove superfluous information
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 08:49:30 2017 +0200
tests: renamed tests for uniformity
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 24 16:15:15 2017 +0200
tests: added unit test for RSA-PSS signing over PKCS#11
This requires a softhsm with support for RSA_PKCS_PSS mechanism.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 24 16:05:36 2017 +0200
gnutls_pubkey_verify*: use common function to set RSA-PSS parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 24 11:21:34 2017 +0200
pkcs11: added support for signatures with RSA-PSS
Relates #209
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 25 10:16:40 2017 +0200
gnutls_pk_params_st: renamed sign field to spki
The name "sign" was ambiguous with regard to its intented
use, as it could refer to digital signature parameters
which was not exactly the case. That field contains parameters
present in the subject public key info (SPKI), which could
be used in a digital signature, but not necessarily.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 24 10:12:54 2017 +0200
Clarified the purpose of the spki params related functions
_gnutls_privkey_get_sign_params was renamed to _gnutls_privkey_get_spki_params,
_gnutls_privkey_update_sign_params to _gnutls_privkey_update_spki_params,
and the dig entry of gnutls_x509_spki_st was renamed to rsa_pss_dig.
The reason is that there could be a confusion on the purpose of
the 'dig' entry, as it could be assumed to be the signature's hash
algorithm in the general case. That could not be because the SPKI
parameters do not contain it for any other algorithm than RSA-PSS.
As such, make a logical separation from SPKI reading functions
with the signature reading functions and try to use the
gnutls_sign_entry_st when signature information is required.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 23:56:20 2017 +0200
Pass the signature algorithm lower in the verification stack
This will allow enhancing the back-ends (PKCS#11 and ext) for
signing with the new signature algorithms like RSA-PSS and Ed25519.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 07:46:11 2017 +0200
fuzz: introduced mem.h with common callbacks for mem access
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 3 07:38:13 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 31 10:50:52 2017 +0200
fuzz: added SRP server and client fuzzers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 03:01:08 2017 +0200
fuzz: introduced psk.h common header
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 02:48:11 2017 +0200
fuzz: added PSK server fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 02:30:43 2017 +0200
fuzz: added PSK client fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 02:12:19 2017 +0200
gnutls-cli: introduced options to save client and server traces
This allows to easier obtain traces for use in fuzzers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 01:45:22 2017 +0200
fuzz: ported libidn2's main.c taking advantage of afl-clang-fast
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 30 01:55:43 2017 +0200
gnutls_system_recv_timeout: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 2 20:52:57 2017 +0200
tlsfuzzer: enabled EC tests for x25519
That includes tests for default curve.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 15:18:38 2017 +0200
tlsfuzzer: enabled test for ECDHE without the supported groups/EC extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 2 17:25:17 2017 +0200
Set a default supported curve
RFC4492 and draft-ietf-tls-rfc4492bis-17 mention:
"A client that proposes ECC cipher suites may choose not to include these
extensions. In this case, the server is free to choose any one of
the elliptic curves or point formats listed in Section 5."
As such, we set a default curve to be used in the case the
server encounters a handshake with no supported groups/curves
extension.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 2 12:58:48 2017 +0200
tlsfuzzer: removed duplicate tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 2 12:55:24 2017 +0200
tlsfuzzer: fixed comment fields
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 08:02:56 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 24 08:39:00 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 08:13:00 2017 +0200
gnutls-cli: use FFDHE3072 parameters for benchmarking
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 1 10:21:37 2017 +0200
_gnutls_figure_dh_params: do not use have_ffdhe flag
This flag is intended to indicate whether the peer has advertized
at least one FFDHE group, and not whether we have negotiated FFDHE.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 12:23:55 2017 +0200
tests: added unit test for group listings in priority structure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 12:05:01 2017 +0200
tests: updated cipher-listings.sh for the new groups listing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 11:46:03 2017 +0200
doc: documented the use of RFC7919 and groups
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 10:44:14 2017 +0200
tlsfuzzer: enabled RFC7919 FFDHE tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 09:09:27 2017 +0200
tests: enhanced server key exchange tests with explicit DH param setting
That is, not only check the DH parameter setting using the known_dh_params()
functions, but also with the explicit setting --set_server_dh_params().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 16:17:12 2017 +0200
tests: updated for post-RFC7919 behavior of library
That is, it is no longer necessary to set DH parameters on a
credentials structure, and thus previously expected to fail
connections may succeed even without DH parameters.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 15:54:27 2017 +0200
tests: added RFC7919 FFDHE unit tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 15:37:00 2017 +0200
cli,serv: do not print any information on compression
Compression is always NULL.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 15:32:58 2017 +0200
cli,serv: no longer print parameters when FFDHE groups are used
The negotiated RFC7919 group is now printed as part of the Description string,
and there is no reason to print more information on parameters defined by
the protocol.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 11:57:51 2017 +0200
gnutls-cli: print the supported groups instead of curves
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 12:02:13 2017 +0200
gnutls_priority_ecc_curve_list: avoid including groups into elliptic curves list
This provides a mostly-compatible behavior of gnutls_priority_ecc_curve_list()
in order to avoid keeping additional information for elliptic curves in the
priority cache. This approach will always return the supported curves, if the set
groups are prioritized with the elliptic curve variants set first. This
is the default in the built-in priorities, and to most common setups.
Items which are non-valid curves will not be returned.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 2 08:42:37 2017 +0200
handshake: moved group negotiation after ciphersuite selection
This allows to cope with situations where the peer prioritizes a
supported group which doesn't map to a supported ciphersuite.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 10:35:58 2017 +0200
security_parameters: ease access to group information by keeping pointer to it
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 10:15:23 2017 +0200
security_parameters: simplified contents by keeping pointer to cipher_suite_entry_st
That, in addition to simplifying the contents, it allows faster access
to ciphersuite's properties.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 15:36:04 2017 +0200
TLS: introduced support for RFC7919 groups
That replaces the EC curve extension negotiation with
the negotiated groups extensions, introduces handling
for groups as priority strings, as well as using and
checking of RFC7919 DH parameters once negotiated.
Resolves: #37
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 16:03:35 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 14:21:32 2017 +0200
gnutls-cli: use gnutls_priority_set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 14:20:26 2017 +0200
tests: modified gnutls_priority_set2() tests for gnutls_priority_set()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 12:09:49 2017 +0200
gnutls_priority_set: use reference counting
That eliminates the need for gnutls_priority_set2() which is now
removed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 11:43:27 2017 +0200
Introduced atomic.h to simplify handling of atomic integers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 11:22:31 2017 +0200
Revert "Documented use gnutls_priority_set2()."
This reverts commit b4aed16ee30f76211c13b075149bb87c012f9bf6.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 10:54:13 2017 +0200
tlsfuzzer: enabled test-ecdsa-sig-flexibility.py
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 21 10:05:44 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 14:48:33 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 14:43:20 2017 +0200
algorithms/mac: marked RIPEMD160 as insecure for certificates
This is an algorithm which is not really used in Internet PKI
and due to that has seen no public cryptanalysis. As such
we disable it for certificate verification to prevent it from
being used as an attack vector.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 13:26:46 2017 +0200
tests: partially reverted SHA1 broken tests
SHA1 is now considered broken only for certificates, hence
OCSP or raw signing tests no longer need to use GNUTLS_VERIFY_ALLOW_BROKEN
in the cases where certificate verification is not performed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 13:18:10 2017 +0200
x509/verify: reject SHA1 in signature algorithms for certificate verification
That is, we now use gnutls_sign_is_secure2() with GNUTLS_SIGN_FLAG_SECURE_FOR_CERTS
flag for checking the validity of the signature algorithm, when
verifying signatures in certificates.
Resolves #229
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 13:16:07 2017 +0200
tests: added unit tests for gnutls_sign_is_secure2()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 12:41:47 2017 +0200
gnutls_sign_is_secure2: introduced
This function exports the ability to check the validity of
a signature algorithm for signing certificates.
That also introduces the flag GNUTLS_SIGN_FLAG_SECURE_FOR_CERTS
which when specified will cause the function to return whether
the algorithm is secure for signing certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 12:40:34 2017 +0200
_gnutls_digest_is_secure_for_certs: introduced
This is a macro to allow checking the security of a hash algorithm
with respect to signing certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 12:17:40 2017 +0200
mac: re-organized the hash algorithms table
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 16:28:15 2017 +0200
tests: added reproducer with ed25519 private key
Found with oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2689
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 16:43:18 2017 +0200
Ensure that public key parameters are initialized on import
Previously we depended on initialization during the _init()
call, however, there can be cases where this re-initialization
is needed (e.g., on multiple tries to load a key).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 16:49:11 2017 +0200
_decode_pkcs8_eddsa_key: ensure that the key size read matches the curve size
That is, in the newly introduced ed25519 keys we didn't check
whether the input size in the PKCS#8 file matched the curve
size.
Found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2689
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 16:40:11 2017 +0200
tlsfuzzer: enabled SNI and other tests from master
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 20 08:22:10 2017 +0200
tests: updated to reflect the fact that invalid dns names are rejected
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 16:32:07 2017 +0200
server_name: several simplifications of the code base
The existing code was written with the intention of supporting multiple
server names, however that was never happened, and this extension is
currently only used for DNS server names. Remove unneeded extensibility.
In addition, removed conversion of client provided server name (DNS) to
IDNA. Clients not providing valid names are violating the spec and
that conversion step not only wastes resources, but increases
the attack surface of a server.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 16:11:05 2017 +0200
server_name: be strict in decoding errors
That is, return error when a malformed extension is seen.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 11:23:11 2017 +0200
tlsfuzzer: enabled RSA-PSS checks on certificate verify
Relates: #208
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 11:16:09 2017 +0200
tlsfuzzer: enabled test-extended-master-secret-extension.py
That allows testing the extended master secret behavior.
Resolves: #231
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 10:59:23 2017 +0200
ext_master_secret: return proper error code on decoding error
Proper meaning that it maps to the alert 'decode error' rather
than illegal parameter. According to tlsfuzzer the former is more
suitable.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 18 08:07:24 2017 +0200
gnutls-cli: re-use priorities for both client and server on benchmarks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 19:14:33 2017 +0200
gnutls-cli: re-use priorities when measuring performance
This avoids measuring cache misses due to priority processing time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 14:06:50 2017 +0200
tests: enhanced SSL3.0 openssl detection in testcompat-openssl
That disables SSL 3.0 testing in openssl versions which cannot negotiated
it (see https://bugzilla.redhat.com/show_bug.cgi?id=1471783 for rationale)
and corrects a typo in the variable name and printed message.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 11:57:41 2017 +0200
.gitlab-ci.yml: document that the x86 build is our openssl 1.0.x compat testing as well
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 11:08:07 2017 +0200
tests: disable ARCFOUR interop tests if openssl doesn't support the cipher
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 08:32:08 2017 +0200
tests: testcompat-openssl: 3DES is explicitly enabled for SSL 3.0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 18:06:01 2017 +0200
Use gcc's attribute to mark fallthrough statements
gcc7 is more verbose on fallthrough warnings, and this patch set
cleans up the current state by making use of the attribute when
necessary.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 18:09:18 2017 +0200
configure: do not utilize the -Wno-format-truncation gcc warning
The warnings it produces have little value in our use of string functions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 17:43:09 2017 +0200
.gitlab-ci.yml: switched to fedora 26 for CI builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 15:17:08 2017 +0200
tests: introduced tests on public key import-export
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 09:31:10 2017 +0200
tests: added sign/verification test using rfc8080 keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 10:20:41 2017 +0200
tests: verify that a server with an ed25519 key will fail when client does not advertise it
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 09:11:59 2017 +0200
tests: privkey-keygen: added unit test for Ed25519 keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 17 09:06:52 2017 +0200
privkey_sign_and_hash_data: in pre-hashed schemes, allow empty hash algorithm
In these schemes the hash algorithm is fixed in the signature algorithm
and thus the empty (unknown) value will act as a wildcard.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 20:10:24 2017 +0200
tests: added private key parameter verification in key-import-export checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 20:03:21 2017 +0200
nettle: wrap_nettle_pk_verify_priv_params: verify whether public key matches private
This enables gnutls_privkey_verify_params() for Ed25519 keys.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 20:52:49 2017 +0200
CONTRIBUTING.md: specified rules on boolean functions
Based on suggestion by Hubert Kario.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 14 14:08:20 2017 +0200
priority: enabled Ed25519 signature by default
As our implementation interoperates with boringssl's implementation
of Ed25519, we can now enable it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 10:45:49 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 7 09:50:29 2017 +0200
handshake: return better error code on unwanted algorithm
That is, when a signature algorithm is available which was not
asked by the peer, then return GNUTLS_E_UNWANTED_ALGORITHM
instead of the UNKNOWN_ALGORITHM.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 7 10:05:50 2017 +0200
tests: added check on Ed25519 chain verification
This chain was generated using certtool, and passed verification
with OpenSSL's implementation (commit: db0f35dda18403accabe98e7780f3dfc516f49de)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 11:34:49 2017 +0200
gnutls-cli: added RSA-PSS signatures in benchmark
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 11:47:48 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 11:47:09 2017 +0200
privkey_sign_and_hash_data: added sanity check on param validity
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 10:42:58 2017 +0200
gnutls-cli: added benchmark on X25519-Ed25519 key exchange
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 09:42:22 2017 +0200
tests: pkcs7: added ed25519 basic signing and verification checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 09:23:53 2017 +0200
privkey_sign_and_hash_data: handle prehashed signatures
This allows this function to handle ed25519, i.e., allows it
to operate for PKCS#7 signatures.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 09:21:48 2017 +0200
pkcs7: improved syntax in if-clause
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 10:14:43 2017 +0200
tests: enhanced OID tests for Ed25519 OIDs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 2 11:27:34 2017 +0200
tests: key-import-export: added Ed25519 key import/export checks
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 2 09:52:51 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 2 09:44:52 2017 +0200
tests: replaced rsa-pss/eddsa certtool options with --key-type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 2 09:41:56 2017 +0200
certtool: introduced the --key-type option
This replaces the --rsa-pss and --eddsa options.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 13:02:06 2017 +0200
Renamed GNUTLS_PK_ECDHX to GNUTLS_PK_ECDH_X25519
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 12:53:40 2017 +0200
tests: parse and interpret an EdDSA public key
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 16:23:10 2017 +0200
tests: added TLS handshake test with EdDSA25519 certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 16:22:27 2017 +0200
Allowed Ed25519 signing in TLS handshakes
This follows draft-ietf-tls-rfc4492bis-17
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 15:23:21 2017 +0200
tests: added tests on EdDSA signature validation using the sign/verify_data APIs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 17:26:34 2017 +0200
tests: Added unit test on EdDSA key parsing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 12:52:12 2017 +0200
tests: added Ed25519 key and certificate generation tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 15:20:38 2017 +0200
Added support for EdDSA (Ed25519) curve keys
This adds support for draft-ietf-curdle-pkix-04.
Resolves #25
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 18:52:33 2017 +0200
parse_pem_cert_mem: fixed issue resulting to accessing past the input data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 15 17:54:01 2017 +0200
supported_exts.h: make sure that the generated function is static
That avoids compiler warnings due to missing prototype.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 15:12:11 2017 +0200
tlsfuzzer: enabled chacha20 tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 14:50:55 2017 +0200
updated tlsfuzzer
That fixes issue detecting connection termination from gnutls-serv
in chacha20 test.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 15:54:38 2017 +0200
tests: csr-invalid.der: modify the SPKI OID to use SECP384R1
That avoids false positives in error detection in 'crq' test due to
SECP224R1 not being supported in our CI platforms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 16:04:49 2017 +0200
x509/output: do not attempt to print the key ID on unknown SPKI algorithms
On unknown algorithms, it is not always possible to parse the SPKI
field. Instead avoid printing errors.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 15:24:23 2017 +0200
.gitlab-ci.yml: corrected location of artifacts in aarch64 build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 12 13:44:24 2017 +0200
tests: certtool-rsa-pss: use unique temp files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 10:28:16 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 15:18:20 2017 +0200
_gnutls_buffer_append_data_prefix: cleanup
This eliminates a misleading code that assumed that the called functions
will return the appended size. Always return zero on success which is
what the existing callers assume.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 10:30:56 2017 +0200
.gitlab-ci.yml: removed unnecessary options from minimal build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 09:52:21 2017 +0200
pubkey: print the failed signature algorithm when verification fails
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 09:58:35 2017 +0200
gnutls-cli: added option to allow verification with broken algorithms
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 10:06:22 2017 +0200
tls sessions will not fail of insecure algorithms which are explicitly enabled
That is, if DSA-SHA1 is allowed, do not propagate errors from
gnutls_pubkey_verify_data2() due to SHA1 considered insecure, but rather
ignore such errors.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 14:37:00 2017 +0200
tests: mini-record-2: made more robust
It will no longer close the session prior to peer processing
all messages. This prevents the peer stopping processing
prior to all messages being received.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 14:22:33 2017 +0200
tests: mini-record: made more robust
It will no longer use a stream socket as this can does not work
well with damaged records (they may end up merged).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 13 13:21:29 2017 +0200
record: reject 0-byte long ciphertext
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 10:18:56 2017 +0200
record: added sanity checking in the record layer version copy
Previously we assumed that an active session had always a version
set, however there have been reports of evolution crashing in
that particular point. Although, this could have been due to
memory corruption, be careful and check for invalid input.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 11:51:20 2017 +0200
record: more precise calculation of max recv size
Previously we were using a rough calculation of the max recv size
based on maximum values. Now we calculate the exact maximum value once
the epoch is initialized and enforce it throughout the session.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 15:33:01 2017 +0200
decryption: use the same error code on all cases
This eases testing using tlsfuzzer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 11:08:49 2017 +0200
gnutls-serv: allow receiving requests up to 16kb
This makes gnutls-serv useful for few tlsfuzzer test cases.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 3 11:19:44 2017 +0200
max_record_recv_size: removed call to gnutls_compression_get()
We no longer support compression.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 09:10:39 2017 +0200
Print the requested CA names when in debug mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 11:00:20 2017 +0200
gnutls-http-serv: do not set the obsolete PGP options
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 11 08:51:07 2017 +0200
doc: updated documentation on client authentication [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 10 09:53:55 2017 +0200
doc: explicitly state intended usage of priorities on server-side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 4 09:26:57 2017 +0200
doc: use the default priorities in server example
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 14:04:37 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 10:26:03 2017 +0200
tests: added unit tests for gnutls_priority_set*()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 10:18:33 2017 +0200
Documented use gnutls_priority_set2().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 26 10:02:22 2017 +0200
priorities: share priority structures across sessions
As the contents of the priority cache grows, it makes sense to shared
these structures across many sessions (in server side) rather than
copying them to a session. All overrides of the priority contents
were moved to session->internals. On client side where gnutls_priority_set_direct()
is more commonly used, ensure that the set priority is deinitialized.
That also introduces gnutls_priority_set2() which does not copy the priority
contents by default.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 27 11:19:37 2017 +0200
set_client_ciphersuite: use the new internal APIs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 25 16:06:49 2017 +0200
.gitignore: ignore new tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 25 15:32:52 2017 +0200
tests: added unit testing for server/client cipher negotiation
This verifies that the expected algorithm (cipher) is negotiated.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 25 12:03:46 2017 +0200
tests: added unit testing for server ciphersuite/KX negotiation
This verifies whether the ciphersuite negotiation will detect and
reject incompatible data present in credentials.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 23 14:00:52 2017 +0200
doc: corrected typo
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 23 13:32:09 2017 +0200
Renamed fields of sign_algorithm_st
The new names better reflect the reality with signature algorithms
in TLS 1.3, and correct the initial naming error.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 23 13:24:48 2017 +0200
handshake: simplified signature algorithm list generation
Similarly to ciphersuites, that also utilizes a cache of signature algorithms
on the priority structure which is used to quickly generate the signature
algorithm list.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 23 11:55:23 2017 +0200
Eliminated access to obsolete priority cache fields
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 23 10:34:11 2017 +0200
handshake: simplified the client-side ciphersuite negotiation
This takes advantage of the ciphersuite cache in priorities structure
while keeping the same ciphersuite selection checks in place.
The previous ciphersuite selection checks kept:
* Removing SRP ciphersuites when no SRP credentials are set
* Removing ciphersuites when no corresponding to KX credentials were set
* SCSV addition in SSL 3.0 and fallback SCSV
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 21 11:54:39 2017 +0200
handshake: simplified the server-side ciphersuite negotiation
This eliminates all the back and forth loops in the previous code
while keeping the same ciphersuite selection checks in place.
The ciphersuite selection tests that were kept:
* Check if key exchange supports the server public key and key usage flags
* Check if DH or other parameters required for the ciphersuite are present
* Find appropriate certificate for the credentials and ciphersuite
* Check whether a curve is negotiated for the ECDH ciphersuites
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 21 10:25:32 2017 +0200
priority: include a cache of supported ciphersuites
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 21 09:31:31 2017 +0200
removed unused cipher-suite and KX related functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 21 09:17:57 2017 +0200
algorithm/kx: sorted key exchange algorithms based on current trends
That optimizes linear search for the common options.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 23 11:07:11 2017 +0200
Removed unused functions
These were identified using callcatcher.
http://www.skynet.ie/~caolan/Packages/callcatcher.html
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 7 15:43:25 2017 +0200
fuzz: added make update command [ci skip]
This allows updating the fuzzer corpus from openssl using a single
command.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 7 15:11:13 2017 +0200
fuzz: added corpora from openssl [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 7 14:59:52 2017 +0200
fuzz: undid changes related to boringssl server/client corpus format [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 7 14:58:34 2017 +0200
fuzz: included verbatim corpus from boringssl
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 7 12:22:23 2017 +0200
fuzz: gnutls-client-fuzzer: read directly from memory [ci skip]
Also updated to read the prefixed boringssl corpus files.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 7 11:45:05 2017 +0200
fuzz: gnutls-server-fuzzer: read directly from memory [ci skip]
Also updated to read the prefixed boring ssl corpus files.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 5 20:14:54 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 1 18:00:45 2017 +0200
priority_options.gperf: modified for gperf 3.1
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 4 16:12:26 2017 +0200
tlsfuzzer: enabled ALPN tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 5 21:44:19 2017 +0200
updated tlsfuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 4 16:15:08 2017 +0200
ext/alpn: added stricter checks on field lengths
That is, no longer tolerate empty fields, and error on invalid
lengths.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 4 15:35:25 2017 +0200
gnutls-serv: added the --alpn and --alpn-fatal options
This allows specifying ALPN protocols supported by server, allowing
to test the ALPN negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 4 11:42:59 2017 +0200
fuzz: updated server with multiple keys (ECDSA, RSA) and DH parameters [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 1 10:50:57 2017 +0200
OCSP: find_signercert: improved DER length calculation
Previously we were assuming a fixed amount of length bytes which
is not correct for all possible lengths. Use libtasn1 to decode
the length field.
Resolves: #223
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 10:04:01 2017 +0200
OCSP: check the subject public key identifier field to figure issuer
Normally when attempting to match the 'Responder Key ID' in an OCSP response
against the issuer certificate we check (according to RFC6960) against the
hash of the SPKI field. However, in few certificates (see commit:
"added ECDSA OCSP response verification"), that may not be the case. In that
certificate, that value matches the Subject Public Key identifier field
but not the hash.
To account for these certificates, we enhance the matching to also consider
the Subject Public Key identifier field.
Relates: #223
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 09:33:08 2017 +0200
OCSP: added more verbose debug logging on verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 29 21:17:34 2017 +0200
tests: added ECDSA OCSP response verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 30 10:43:20 2017 +0200
.travis.yml: do not fail on brew install failures
brew install seems to fail on several occasions when a newer package
is available than the installed. Ignore those errors rather than
failing build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 29 14:34:20 2017 +0200
tests: added check on saving certs and OCSP responses
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 29 14:28:29 2017 +0200
gnutls-cli: save OCSP response at the time certificate is saved
That ensures that we always save the OCSP response, even when certificate
verification fails.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 14:26:07 2017 +0200
moved compression-related APIs to compat.h
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 08:56:09 2017 +0200
doc: removed any references to compression and documented change
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 16:20:25 2017 +0200
tests: removed tests related to zlib support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 15:58:35 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 15:36:18 2017 +0200
Removed support for compression mechanisms
They are not required for TLS 1.3, and are deprecated for TLS 1.2.
We eliminate them in order to reduce the complexity in the record
packet handling.
Resolves #212
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 13:59:54 2017 +0200
gnutls-cli: be less verbose in OCSP error messages
Previously we were reporting "No issuer found" if any certificate
in a chain could not be verified. That was confusing information
and not strictly necessary. No longer print that.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 13:57:15 2017 +0200
gnutls-cli: improved error message of OCSP failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 09:12:39 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 20:50:22 2017 +0200
tests: ocsptool: added test of --verify-response with --load-chain
This utilizes the provided chain to find the signer of the
OCSP response.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 09:09:41 2017 +0200
ocsp: print response's signature algorithm in compact listing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 09:06:01 2017 +0200
ocsptool: verify_response will print information on the response
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 08:59:45 2017 +0200
ocsptool: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 20 08:31:41 2017 +0200
ocsptool: allow combining --load-trust with --verify-response
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 20:58:21 2017 +0200
ocsptool: --load-chain will sort the input chain
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 20:50:22 2017 +0200
ocsptool: introduced --verify-allow-broken option
This allows verification to succeed even when broken algorithms are
involved.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 20:47:10 2017 +0200
ocsptool: the --verify-response can be combined with --load-chain
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 20:27:24 2017 +0200
gnutls_certificate_verification_status_print: mention OCSP in error messages
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 14:36:43 2017 +0200
ocsptool: added --load-chain option
This option allows to directly verify all the members of a certificate
chain.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 19 08:20:47 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 18 17:35:06 2017 +0200
tests: enabled X25519 interop tests with openssl 1.1.0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 18 14:35:57 2017 +0200
NORMAL priority: no longer enable the smaller curves by default
They are not widely enabled by web servers, and they provide no
advantage over X25519.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 18 14:35:33 2017 +0200
NORMAL priority: enable X25519 curve
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 17 14:22:02 2017 +0200
pkcs11: cleanups in pkcs11_login()
Use pkcs11_rv_to_err() to return the right error code map after
PKCS#11 calls; separate checks for already log in status for SO and
user login.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 17 14:07:50 2017 +0200
tests: pkcs11-mock: reset state when requesting reauth
That is, for the MOCK_FLAG_SAFENET_ALWAYS_AUTH flag we ensure that
GetSessionInfo() will return the right state when authentication
is required for the first time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 22:04:49 2017 +0200
pkcs11: improved handling of HSMs without CKU_CONTEXT_SPECIFIC support
That is, when the HSM returns CKR_USER_NOT_LOGGED_IN, switch
to CKU_USER, instead of relying to a fallback within pkcs11_login().
That simplifies login logic.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 28 11:07:50 2017 +0200
tests: added unit test for safenet protectserver HSM's PKCS#11 support
That is, detect whether the absence of C_Login will fallback to CKU_USER
after CKU_CONTEXT_SPECIFIC is tried.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 11:26:19 2017 +0200
pkcs11: simplified pkcs11_login()
By cleanups, as well as including the reauth flag in the flags option.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 11:11:24 2017 +0200
pkcs11: the GNUTLS_PKCS11_OBJ_FLAG_LOGIN will force a login
That is, even in tokens which do not have a CKF_LOGIN_REQUIRED flag
a login will be forced. This allows operation on the safenet HSMs
which do not set that flag.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 27 07:24:36 2017 +0200
Handle specially safenet HSMs which cannot handle CKU_CONTEXT_SPECIFIC
These HSMs do not support CKA_ALWAYS_AUTHENTICATE, nor understand CKU_CONTEXT_SPECIFIC,
but rather return CKR_USER_NOT_LOGGED_IN on the first private key operation.
Try to discover that state by calling C_Login when CKR_USER_NOT_LOGGED_IN
is seen, and retrying with CKU_USER after CKU_CONTEXT_SPECIFIC login fails.
See discussion in https://github.com/OpenSC/libp11/issues/160
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 12:06:36 2017 +0200
Added documentation to legacy openpgp functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 10:58:23 2017 +0200
Removed unnecessary certificate type functionality
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 10:23:19 2017 +0200
NEWS: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 10:21:52 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 10:21:10 2017 +0200
doc: removed references to openpgp
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 10:14:58 2017 +0200
po: removed openpgp/output.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 09:55:44 2017 +0200
guile: removed openpgp related tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 09:30:41 2017 +0200
fuzz: removed the openpgp certificate fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 09:03:05 2017 +0200
tools: removed options for openpgp support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 08:50:32 2017 +0200
Removed support for openpgp certificates and keys
Resolves #178
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 16 08:38:42 2017 +0200
tests: removed openpgp related tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 7 11:58:25 2017 +0200
tests: added reproducer for assertion trigger
This relates to handshakes with support for RSA-PSS.
Found with oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2132
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Jun 8 15:42:30 2017 +0200
nettle: ported fix for assertion failure in pss_verify_mgf1
Backport the upstream fix from:
https://git.lysator.liu.se/nettle/nettle/commit/b1252fedf6ee1dbb8468d1d3f177711a16e83e52
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 17:33:21 2017 +0200
.gitlab-ci.yml: keep logs of tests in abi build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 13:41:36 2017 +0200
doc: simplified the default client example
Removed optional paths.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 13:20:51 2017 +0200
tests: added reproducer for OCSP response found test cases
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 13:14:23 2017 +0200
fuzz: documented location for OCSP-related reproducers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 12:43:48 2017 +0200
ocsp: added sanity check in returned length
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1492
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 10:37:53 2017 +0200
doc: added/modernized text on AEAD ciphers [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 09:09:20 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 15 09:06:49 2017 +0200
tests: improved duplicate extension test
Instead of sending two duplicate extensions of which one is invalid,
send two valid ones instead. That way, we avoid the possibility of false
positives due to the validation code of the extension contents.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 14:15:08 2017 +0200
tests: verify that duplicate extensions are rejected
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 13:09:44 2017 +0200
TLS extensions: added duplicate extension check on server side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 11:15:54 2017 +0200
gnutls_init: better naming for internal function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 13 08:08:56 2017 +0200
tests: added unit test for overriding TLS extensions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 11:11:34 2017 +0200
TLS extensions: mark each extension which cannot be overriden
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 11:02:49 2017 +0200
TLS extensions: combined the extension data and resumed data structures
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 12 17:31:19 2017 +0200
removed type extension_priv_data_t
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 13 08:02:04 2017 +0200
gnutls_int.h: groupped extension structures together
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 12 14:19:23 2017 +0200
TLS extensions: several simplifications
This allows extensions set by the application to override some
of the internal ones.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 14 15:53:13 2017 +0200
.gitlab-ci.yml: FreeBSD system is no longer available; disabling for CI [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 12 10:26:13 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 9 18:53:48 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 9 16:37:48 2017 +0200
doc: added reference to privkey export functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 9 18:29:18 2017 +0200
tests: added basic unit tests for the export_*_raw2() functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 9 18:17:34 2017 +0200
corrected typo in x962 functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 9 16:21:31 2017 +0200
pkcs11: do not set leading zeros on integers
PKCS#11 defines integers as unsigned having most significant byte
first, e.g., 32768 = 0x80 0x00. This is interpreted literraly by
some HSMs which do not accept an integer with a leading zero.
Resolves: #215
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 9 16:20:05 2017 +0200
Introduced functions to export integers with no leading zero
That is introduced the flag GNUTLS_EXPORT_FLAG_NO_LZ and:
* gnutls_pubkey_export_rsa_raw2
* gnutls_pubkey_export_dsa_raw2
* gnutls_pubkey_export_ecc_raw2
* gnutls_privkey_export_rsa_raw2
* gnutls_privkey_export_dsa_raw2
* gnutls_privkey_export_ecc_raw2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 15:03:17 2017 +0200
nettle: use older GMP macros for mpz_mod_2exp and mpz_div_2exp
These ensure that compilation will succeed even when building with gmp-mini.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 13:15:00 2017 +0200
_gnutls_ucs2_to_utf8: use void* as pointer type to avoid compiler assumptions on alignment [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 13:06:19 2017 +0200
ciphersuites: removed unused function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 13:00:25 2017 +0200
nettle/cipher: document that ctx_ptr is 16-byte aligned, and use void* to avoid compiler assumptions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 12:53:44 2017 +0200
certtool: corrected typo in strcmp() use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 11:15:02 2017 +0200
_gnutls_x509_privkey_reinit: ensure fields will not be re-used
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 8 09:25:32 2017 +0200
certtool: improved error message when public key cannot be figured [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 16:05:37 2017 +0200
updated auto-generated files for new signing API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 16:00:41 2017 +0200
handshake: simplify handshake by using the new signing API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 13:38:05 2017 +0200
tests: introduced unit tests of the new signing API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 15:39:52 2017 +0200
abstract API: introduced new signing functions
That is, the gnutls_privkey_sign_data2() and gnutls_privkey_sign_hash2().
The new functions perform signing with input the signature algorithm instead
of the hash algorithm; that allows to use algorithms where the hash algorithm
is not used, or the public key algorithm may be different than the key's.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 7 11:18:07 2017 +0200
pkix: removed unused definition
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 16:04:53 2017 +0200
gnutls_privkey_st: removed unused element
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 10:34:33 2017 +0200
gnutls_session_get_desc: improved ciphersuite description
That is, separated the key exchange from the signature algorithm
used by the server, and list them in different fields.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 2 11:16:45 2017 +0200
tests: key-import-export: use cert-common.h
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 2 17:04:45 2017 +0200
tests: simplified CPPFLAGS of tests using internal gnutls funcs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 12:54:24 2017 +0200
tests: key-exchange: added error checking in gnutls_certificate_set_x509_key_mem
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 10:58:33 2017 +0200
_gnutls_check_key_cert_match: account for RSA and RSA-PSS mismatches
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 6 09:49:09 2017 +0200
certtool: fix DER export with --p7-info
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 13:21:38 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 10:01:07 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 09:59:49 2017 +0200
psktool: minor documentation updates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 09:52:53 2017 +0200
tests: added basic functionality check for psktool
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 09:50:07 2017 +0200
psktool: increased default key size to 256-bits
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 09:39:49 2017 +0200
psktool: do not assume any default key file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed May 31 12:58:58 2017 -0400
clarify documentation and arguments for psktool
* psktool's -p argument should really be short for --pskfile, not
--passwd. there is no passwd involved.
* the example documentation switches names halfway through, which is
confusing.
* there is no prompt for a password. do not mention it in the
example.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 09:22:44 2017 +0200
tests: added unit test to verify that certificates with non-DER strict time fields are accepted
Also removed the old strict compliance DER test.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 09:15:27 2017 +0200
Tolerate DER time encoding errors
It seems that openssl generated certificates may contain invalid
formatted times, and gnutls will no longer parse them. Ignore such
formatting errors when DER decoding.
We should reconsider this in the future (#207)
Resolves #196
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 10:24:04 2017 +0200
tests: enhanced OID tests with OIDs for SHA3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 5 10:21:54 2017 +0200
tests: enhanced OID tests with OIDs for RSA-PSS
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 4 13:56:04 2017 +0200
.gitlab-ci.yml: added aarch64 build based on Debian
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 14:55:19 2017 +0200
_gnutls_PRF: was made inline function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 14:29:10 2017 +0200
tests: added low-level unit tests on TLS 1.0 and 1.2 PRFs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 13:52:03 2017 +0200
prf: implement the TLS 1.0 and 1.2 PRFs using nettle
That simplifies the existing PRF code and moves it in the
crypto-backend component.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 12:00:26 2017 +0200
doc: refer to the site for commercial support options
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 11:29:08 2017 +0200
tests: mini-record-retvals: include AES-CBC tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 11:36:30 2017 +0200
tests: eliminated build warnings
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 08:55:54 2017 +0200
tests: combined tables of sign-verify tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 19:54:48 2017 +0200
Only accept known public key algorithms in the GNUTLS_PRIVKEY_EXT private keys
The reason is that this API, assumes very low level primitives which
are not available for the newer RSA-PSS private keys.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 19:42:36 2017 +0200
_gnutls_privkey_*_sign_params: added support for GNUTLS_PRIVKEY_EXT keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 19:25:11 2017 +0200
tests: added basic test on "external" keys with gnutls_privkey_import_ext2()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 16:53:14 2017 +0200
gnutls_x509_privkey_sign_data: wrap over gnutls_privkey_sign_data()
That will allow this function to operate with the new key types.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 16:43:28 2017 +0200
tests: added unit tests for the gnutls_x509_* sign/verify APIs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 15:23:21 2017 +0200
tests: added tests signature validation using the sign/verify_data APIs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 16:24:05 2017 +0200
Separated use of GNUTLS_PRIVKEY_FLAG_PROVABLE and GNUTLS_PRIVKEY_SIGN_FLAG_REPRODUCIBLE
For simplicity, rename GNUTLS_PRIVKEY_SIGN_FLAG_REPRODUCIBLE to GNUTLS_PRIVKEY_FLAG_REPRODUCIBLE.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 16:19:25 2017 +0200
_gnutls_privkey_find_sign_params: renamed and simplified
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 15:40:40 2017 +0200
gnutls_privkey_sign_hash: removed duplicate code
The same code was available in _gnutls_privkey_find_sign_params().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 10:47:12 2017 +0200
GNUTLS_E_INSUFFICIENT_SECURITY: moved to fatal errors
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 16:22:27 2017 +0200
tls-sig: re-organize and simplify the TLS signature generation and verification
That makes sure that the high level APIs are used when possible, and
separate the TLS 1.2 from other code paths. This will allow supporting
signature schemes like EdDSA and others.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 10:59:53 2017 +0200
tests: modify tests to allow signatures with SHA1
There were several tests that were utilizing SHA1 signatures but were
not failing due to the bug in gnutls_pubkey_verify_hash2().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 31 10:12:31 2017 +0200
gnutls_pubkey_verify_hash2: do not allow GNUTLS_VERIFY_USE_TLS1_RSA with non-RSA keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 10:42:27 2017 +0200
gnutls_pubkey_verify_hash2: check for broken signature algorithms
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 10:13:16 2017 +0200
gnutls_pubkey_verify_data2: do not utilize GNUTLS_VERIFY_USE_RSA_PSS
This flag is not required for verification since the signature algorithm
is sufficient to detect RSA-PSS without requiring any flags.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 30 10:36:59 2017 +0200
tests: do not utilize GNUTLS_VERIFY_USE_RSA_PSS
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 08:55:47 2017 +0200
certtool: do not ask for password when exporting to PKCS#8 implicitly
Previously --generate-privkey wouldn't ask for password unless --pkcs8
was explicitly given. Keep that behavior, and do not ask for any password
even if we need to export to PKCS#8 for some key types. Always require
the --pkcs8 option to encrypt with password.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 08:43:14 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 08:37:03 2017 +0200
doc: mention RSA-PSS-SHA* signature algorithms
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 08:33:44 2017 +0200
certtool: replaced rsa-pss-sign with sign-params option
This option could accomodate future enhancements/additions in
certificate signining.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 29 08:26:41 2017 +0200
certtool: better documentation on rsa-pss-sign
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 13:30:18 2017 +0200
replaced MAX_SIGNATURE_ALGORITHMS macro with MAX_ALGOS
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 13:19:08 2017 +0200
tests: added unit test for gnutls_sign_supports_pk_algorithm()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:44:41 2017 +0200
tls-fuzzer: ignore the incomplete RSA-PSS tests
These tests fail because tls-fuzzer currently does not properly implement
RSA-PSS.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:06:34 2017 +0200
tests: verify that generated RSA-PSS keys can be read with certtool -k
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:01:04 2017 +0200
certtool: use PKCS#8 format for generated RSA-PSS keys
An RSA-PSS key has additional parameters which cannot be stored
in the "standard" PKCS#1 format. For that when asked to generate
an RSA-PSS key, we export to the PKCS#8 form.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 09:52:33 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 08:57:11 2017 +0200
tests: x509sign-verify: include ECDSA and RSA-PSS key tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 08:22:07 2017 +0200
tlsfuzzer: the test-certificate-verify-malformed check now passes
Previously it was expecting a different alert code than gnutls returned.
Now gnutls returns the expected alert code (GNUTLS_A_DECRYPT_ERROR)
on malformed signatures.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 16:35:18 2017 +0200
alert: map GNUTLS_E_PK_SIG_VERIFY_FAILED to GNUTLS_A_DECRYPT_ERROR
This makes server respond with GNUTLS_A_DECRYPT_ERROR on malformed signatures,
which is the expected behavior. Hinted by Hubert Kario.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 16:18:25 2017 +0200
Increased the maximum number of signature algorithms
That allows including all the existing signatures including DSA.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 14:30:17 2017 +0200
x509sign-verify: corrected test to perform RSA tests on RSA keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 14:01:53 2017 +0200
tests: added tests for RSA-PSS key exchange under TLS 1.2
That includes tests with RSA and RSA-PSS server and client certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 14:53:43 2017 +0200
publickey: map RSA ciphersuites to GNUTLS_PK_RSA_PSS
That is in addition to GNUTLS_PK_RSA
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 30 06:40:39 2016 +0300
Rework KX -> PK mappings
GOST VKO and PSS keys would support several public keys, so change
the previous 1:1 kx->pk mapping into 1:many.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 12:45:08 2017 +0200
tests: added TLS 1.2 tests with RSA-PSS signatures on RSA certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 11:50:38 2017 +0200
gnutls_privkey_sign_hash: use the GNUTLS_PRIVKEY_SIGN_FLAG_RSA_PSS flag
That is, the privkey_sign_hash() function was made static (no users other
than the same file), and gnutls_privkey_sign_hash will take into account
the GNUTLS_PRIVKEY_SIGN_FLAG_RSA_PSS, if specified.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 11:33:49 2017 +0200
tls-sig: sign with RSA-PSS when requested by negotiated signature algorithm
That is, when signing a TLS message, take into account the
negotiated signature algorithm, in addition to the hash algorithm
to decide which flags to pass to gnutls_privkey_sign_hash(). This
allows signing the handshake messages with RSA-PSS even when an RSA
key is present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 11:19:12 2017 +0200
priority: enabled RSA-PSS signatures by default
They are prioritized low on the list to reduce compatibility
issues in case they are wrongly implemented in gnutls or in the
peer implementation. To be revised when more elaborate compatibility
tests are made.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 11:13:23 2017 +0200
ext/signature: accept compatible algorithms with PK
That is instead of using a 1-1 mapping of signature algorithms
to public key algorithms, use gnutls_sign_supports_pk_algorithm()
to determine whether algorithms match. That way we can allow
GNUTLS_SIGN_RSA_PSS_SHA256 under GNUTLS_PK_RSA and GNUTLS_PK_RSA_PSS
keys.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 11:12:33 2017 +0200
gnutls_pubkey_verify_hash2: corrected operation with RSA-PSS keys
That is, do not check the flag GNUTLS_VERIFY_USE_RSA_PSS, as we
already have enough information to determine whether an RSA-PSS
signature is used (the sign algorithm). Also return the code
GNUTLS_E_INCOMPATIBLE_SIG_WITH_KEY when a signature algorithm
incompatible with the public key is encountered.
In addition, fixed few misplacements of GNUTLS_PK_RSA_PSS in switch
cases.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 10:48:30 2017 +0200
Introduced gnutls_sign_supports_pk_algorithm()
This function allows to test whether a combination of public key
algorithm and signature algorithm are supported. This is introduced
for RSA-PSS signatures which can be generated by a GNUTLS_PK_RSA key
or by a GNUTLS_PK_RSA_PSS key.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Thu Mar 16 11:38:58 2017 +0100
x509: implement RSA-PSS signature scheme
This patch enables RSA-PSS signature scheme in the X.509 functions and
certtool.
When creating RSA-PSS signature, there are 3 different scenarios:
a. both a private key and a certificate are RSA-PSS
b. the private key is RSA, while the certificate is RSA-PSS
c. both the private key and the certificate are RSA
For (a) and (b), the RSA-PSS parameters are read from the certificate.
Any conflicts in parameters between the private key and the certificate
are reported as an error.
For (c), the sign functions, such as gnutls_x509_crt_privkey_sign() or
gnutls_privkey_sign_data(), shall be instructed to generate an RSA-PSS
signature. This can be done with the new flag
GNUTLS_PRIVKEY_SIGN_FLAG_RSA_PSS.
Verification is similar to signing, except for the case (c), use the
flag GNUTLS_VERIFY_USE_RSA_PSS instead of
GNUTLS_PRIVKEY_SIGN_FLAG_RSA_PSS.
From the command line, certtool has a couple of new options: --rsa-pss
and --rsa-pss-sign. The --rsa-pss option indicates that the generated
private key or certificate is restricted to RSA-PSS, while the
--rsa-pss-sign option indicates that the generated certificate is signed
with RSA-PSS.
For simplicity, there is no means of choosing arbitrary salt length.
When it is not given by a private key or a certificate, it is
automatically calculated from the underlying hash algorithm and the
RSA modulus bits.
[minor naming changes by nmav]
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 10:19:22 2017 +0200
fuzz: added RSA-PSS certificate
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Daiki Ueno <ueno@gnu.org>
Date: Fri Mar 31 14:36:46 2017 +0200
build: import files from Nettle for RSA-PSS
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 27 07:29:44 2017 +0200
libtasn1: updated to 4.11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 15:10:17 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 09:39:10 2017 +0200
tests: added unit tests for gnutls_de/encode_rs_value
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 25 08:38:43 2017 +0200
pk: exported gnutls_decode_rs_value() and gnutls_encode_rs_value()
These functions allow encoding to and from a Dss-Sig-Value.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 12:43:21 2017 +0200
tests: skip x86-specific tests when not in x86
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:56:30 2017 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:18:09 2017 +0200
tests: tls-fuzzer: corrected unlocking at tls-fuzzer-cert.sh
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:42:28 2017 +0200
examples: made a comment that getpass() output needs to be sanitized
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 26 10:13:05 2017 +0200
certtool: avoid printing legacy options in --help
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 17:34:31 2017 +0200
Makefile: improved code coverage extraction from lcov output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 15:48:31 2017 +0200
configure: warn when building as static library [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 14:01:56 2017 +0200
gnutls_ocsp_status_request_enable_client: removed support for problematic parameters
Removed support for responder_id and extensions parameters. These
had very difficult semantics to use and the underlying implementation
had encoding errors, meaning there was no interoperation with other
clients. Given that issue it means there are no applications depending on
these parameters; ignore these parameters completely and no longer send
either responder_id or extensions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 11:48:24 2017 +0200
gnutls_ocsp_status_request_enable_client: documented requirements for parameters
That is, the fact that extensions and responder_id parameters must be
allocated, and are assigned to the session.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 11:38:16 2017 +0200
ext/status_request: Removed the parsing of responder IDs from client extension
These values were never used by gnutls, nor were accessible to applications,
and as such there is not reason to parse them.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 10:46:03 2017 +0200
ext/status_request: ensure response IDs are properly deinitialized
That is, do not attempt to loop through the array if there is no array
allocated.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 10:28:28 2017 +0200
tlsfuzzer: enabled ocsp stapling test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 24 10:17:09 2017 +0200
tlsfuzzer: updated to latest version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 23 09:26:10 2017 +0200
self-tests: limit compatibility API checks to vectors with plaintext
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 16:43:38 2017 +0200
tests: on cipher override do not run the compatibility checks
That is, because we introduce a cipher using the new AEAD API which
does not provide compatibility hooks.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 16:41:48 2017 +0200
self-tests: introduced flag GNUTLS_SELF_TEST_FLAG_NO_COMPAT
This allows skipping the compatibility APIs when running self tests.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 16:39:14 2017 +0200
self-tests: all parameter was replaced by flags
This allows to introduce more options than just check all
ciphers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 14:41:56 2017 +0200
aarch64: fix AES-GCM in-place encryption and decryption
Resolves #204
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 11:54:25 2017 +0200
crypto: self-tests: enhance to include compatibility APIs
That is, run the compatibility gnutls_cipher_* APIs on self tests
for AEAD ciphers in addition to the AEAD API.
Relates #204
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 14:23:14 2017 +0200
crypto-api: refuse to run gnutls_cipher_init() in full AEAD modes
That is, there are AEAD modes like CCM that can only be used through
the AEAD API. Always refuse calls to gnutls_cipher_init() in these
modes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 22 09:19:53 2017 +0200
doc: corrected error in gnutls_x509_privkey_sign_data parameters [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 20:41:30 2017 +0200
sysrng-linux: improved detection of getrandom()
The getrandom() call is defined in sys/random.h.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 20:34:40 2017 +0200
gnutls-cli: use 16k buffers in --benchmark-tls-ciphers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 20:31:33 2017 +0200
gnutls-cli: cleaned up --benchmark-ciphers output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 20:20:34 2017 +0200
gnutls-cli: no longer include arcfour in benchmarks
This cipher is considered broken and no longer included in
the default set of ciphers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 08:51:55 2017 +0200
documented the make files-update make option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 08:48:26 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 08:26:47 2017 +0200
tests: added TLS server test for multi-key usage
That is, a server which utilizes both RSA and ECDSA keys.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 20 08:14:59 2017 +0200
p11tool: mark provider opts as deprecated
That is, to avoid listing that option in p11tool --help, as it is
only useful for debugging very low level interfaces with PKCS#11
parameter passing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat May 20 02:19:17 2017 +0300
gnutls-serv: allow user to specify multiple x509certile/x509keyfile
Instead of adding more and more variants like x509dsakeyfile or
x509ecckeyfile (counting eddsa and gost in future), allow user to
specify x509certfile/x509keyfile multiple times. Keep the old
options as compatibility options.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu May 18 23:55:57 2017 +0300
Fix two memory leaks in debug output of gnutls tools
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Nov 30 07:13:09 2016 +0300
Don't let GnuTLS headers in NETTLE_CFLAGS override local headers
Change order of CFLAGS so that local headers always come before ones in
$(NETTLE_CFLAGS).
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 12 17:58:55 2017 +0200
find_signer: eliminate memory leak
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Karl Tarbe <karl.tarbe@cyber.ee>
Date: Mon May 8 15:06:33 2017 +0300
tests: add test for signing with certificate list
Signing with one certificate, but includes the other certificates
inside the PKCS#7 structure.
Signed-off-by: Karl Tarbe <karl.tarbe@cyber.ee>
Author: Karl Tarbe <karl.tarbe@cyber.ee>
Date: Thu May 4 16:46:14 2017 +0300
certtool: allow multiple certificates in --p7-sign
Signed-off-by: Karl Tarbe <karl.tarbe@cyber.ee>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun May 14 11:21:07 2017 +0200
Fix autoconf progress message concerning heartbeat [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 11 22:03:08 2017 +0200
doc: corrected typo [ci skip]
Reported by Andreas Metzler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 11 22:01:10 2017 +0200
test: corrected typo preventing the run of openpgp test [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 10 17:43:32 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 10 17:23:54 2017 +0200
pkcs11_override_cert_exts: do not use CKA_X_DISTRUSTED flag when retrieving
This flag was introduced in order for reducing the number of duplicate
stapled extensions returned by p11-kit. Unfortunately that fix was bogus
and in fact it resulted to p11-kit not returning any stapled extensions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 10 17:08:11 2017 +0200
tests: added unit test for p11-kit trust store
This verifies whether an Example Root CA can be read together
with its stapled extensions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 10 16:40:10 2017 +0200
p11tool: added the --provider-opts option
This option allows passing parameters to the PKCS#11 module
loading process, i.e., passed to gnutls_pkcs11_add_provider().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 10 16:34:25 2017 +0200
pkcs11_add_provider: allow passing parameters to p11-kit trust module
When the @params argument of gnutls_pkcs11_add_provider() starts with
'p11-kit:' the specified provider is loaded as an unmanaged module
and the rest of parameters are being passed opaque to the module. This
allows loading for example the p11-kit trust module with a custom path
for the trust database.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 9 22:03:45 2017 +0200
tests: introduced checks in alternative chain discovery
These cope with alternative chain discovery in the case of insecure
algorithm found in the chain.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 9 21:24:36 2017 +0200
tests: modified pkcs1-pad to account for alt path search
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 8 06:43:28 2017 +0200
gnutls_x509_trust_list_verify_crt2: treat signers with insecure algorithms as unknown
The reason is that many servers utilize a legacy chain to improve compatibility
with old clients and that chain often contains insecure algorithm. In that case
try to construct alternative paths. To maintain compatibility with previous
versions, we ensure that the same error code (verification status) is returned
in these cases as before by sending the cached error if the alternative path fails
too.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 9 20:57:40 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 9 20:57:00 2017 +0200
Makefile: files-update directive will update the auto-generated files in src/
This simplifies the update of files generated by autogen.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 8 07:02:16 2017 +0200
tests: added check for gnutls-cli's sni-hostname option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 8 06:13:59 2017 +0200
gnutls-cli: introduced --sni-hostname option
This allows overriding the value set on the TLS server name indication
extension.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 10 10:39:22 2017 +0200
Makefile: added phony targets to .PHONY [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 9 14:51:44 2017 +0200
fuzz: doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 8 06:27:21 2017 +0200
errors.h: _gnutls_cert_log will only print on non-null certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Fri Apr 28 17:17:32 2017 -0400
rsa-psk: Use the correct username datum
In rsa-psk we properly request username for the case the
application uses a callback, but later we use the username
cached in the credentials structure. This will lead to empty
username issues.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 6 23:06:45 2017 +0200
tests: added check for PSK client callback in RSA-PSK
This check verifies whether gnutls_psk_client_credentials_function
is operational, and the parameters sent are taken into account
by the server.
Relates !364
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 6 22:47:32 2017 +0200
tests: simplified name of mini-rsa-psk check
In addition modernize the used APIs and added explicit check
on the received by the server username value.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 5 14:31:30 2017 +0200
tests: utilize the email_protection_key template option
This ensures that generated certificates and requests will
include that key purpose when the option is present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 5 14:21:13 2017 +0200
certtool: introduced the email_protection_key option
This option was introduced in documentation for certtool without
an implementation of it. It is a shortcut for option
key_purpose_oid = 1.3.6.1.5.5.7.3.4
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Mon May 1 19:20:38 2017 +0200
gnutls-cli: Use CRLF with --starttls-proto=smtp.
Closes https://gitlab.com/gnutls/gnutls/issues/200
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 1 01:43:40 2017 +0200
doc: remove libidn from instructions and add libidn2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 1 00:59:12 2017 +0200
doc: update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 1 00:26:47 2017 +0200
added newline in debug messages [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 20:13:11 2017 +0200
Removed support for libidn1
Currently we support both IDNA2003 and IDNA2008. However, IDNA2003
is already obsolete by registrars and NICs, thus there is no reason
to continue supporting it. We switch to IDNA2008 exclusively using libidn2.
Resolves #194
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 1 12:44:46 2017 +0200
updated minitasn1
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 1 12:42:57 2017 +0200
gnutls.h: introduced GNUTLS_E_ASN1_TIME_ERROR
This corresponds to libtasn1 ASN1_TIME_ENCODING_ERROR and
indicates an error in the DER or BER encoding of time field.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 30 13:25:16 2017 +0200
gnutls_pkcs12_simple_parse: set to null vars after deinitialization
This avoids having the variables being deinitialized twice during
cleanup.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 30 12:52:51 2017 +0200
tests: enhance with checks to verify that textual IPs are not matched
That verifies that the hostname check verification function will
not succeed if given textual IPs, and the certificate contains
textual IPs in DNSname or in the CN fields.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 29 13:30:50 2017 +0200
gnutls_x509_crt_check_hostname2: no match dns fields against IPs
Previously we were checking textual IP address matching against
the DNS fields. This match was non-standard and was intended to
work around few broken servers. However that also led to not
evaluating and IP constraints for that IP. No longer follow that
broken behavior.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 30 12:45:19 2017 +0200
tests: check against symbols present only in IDNA2003
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 29 14:00:24 2017 +0200
gnutls_idna_map: fallback to IDNA2008 transitional encoding on failure
This aligns with the behavior of firefox, which maps to IDNA2008, and
fallbacks to IDNA2003 if that fails (e.g., mapping doesn't exist).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 28 23:12:19 2017 +0200
fuzz: fix leaks in PKCS#12 fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 28 22:46:48 2017 +0200
pkcs12: release CRL data on error path
This addresses issue:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1295
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 12:01:25 2017 +0200
doc: added gnutls_ext_flags_t enumeration
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 11:55:10 2017 +0200
_gnutls_base64_decode: corrected leak on decoding error
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 11:08:47 2017 +0200
tests: fixed expected error code in base64 check
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 15:15:27 2017 +0200
certtool: ensure no leaks on pkcs12_info() error paths
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 11:02:01 2017 +0200
tests: added reproducer for mem leak in PKCS#12 decoding
This relates to:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1173
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 10:59:58 2017 +0200
pkcs12: eliminate mem leaks in _pkcs12_decode_safe_contents
This makes sure we deinitialize previously available elements.
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1173
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 10:48:46 2017 +0200
cleanups in _pkcs12_decode_safe_contents
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 10:36:22 2017 +0200
pkcs12: clean ups in PKCS#12 parsing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 24 14:16:24 2017 +0200
Added explicit check for the bounds of the generated 'd'.
This is according to FIPS186-4 sec. B.3.1.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 24 13:06:45 2017 +0200
fips140-2: enhanced check of generated parameters
That is, replaced all assert() calls with if statements to allow
gracefull fail.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 24 13:11:04 2017 +0200
dsa-fips.h: include nettle/bignum.h to allow compilation under nettle-mini
Relates #197
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 25 09:50:08 2017 +0200
tests: added base64 reproducer of mem leak
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 24 13:28:39 2017 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 23 11:54:38 2017 +0200
gnutls.h: introduced flag GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL [ci skip]
This flag is expected to be used by applications which handle
custom extensions that are not currently supported in gnutls, but
support for them may be added in the future.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 21 09:28:47 2017 +0200
_gnutls_base64_decode: addressed memory leak in decoding
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 21 09:19:56 2017 +0200
gnutls_pem_base64_decode: allow decoding raw base64 data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 21 09:14:18 2017 +0200
tests: check whether gnutls_pem_base64_decode2 decodes with null argument
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 21 09:12:51 2017 +0200
Revert "gnutls_pem_base64_decode: allow decoding raw base64 data"
This reverts commit fa86fc6892d6551340f24da6a6af4f484a62b884.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 20 16:34:56 2017 +0200
doc: clarifications on custom thread override [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 20 14:03:39 2017 +0200
fuzz: added PEM base64 decoder and encoder fuzzers [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 19 20:04:59 2017 +0200
fuzz: openpgp fuzzer always succeeds when no support is present [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 14 01:18:56 2017 +0300
lib/system/fastopen: simplified TCP fast open for OSX
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Apr 10 12:39:46 2017 +0200
lib/system/fastopen: Add TCP Fast Open for OSX
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:37:28 2017 +0200
doc: removed incorrect comment
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 17:02:35 2017 +0200
gnutls_dh_get_pubkey: fixed operation under PSK authentication
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:15:36 2017 +0200
tests: test gnutls_dh_get_pubkey in PSK auth
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:33:09 2017 +0200
tests: combined and enhanced DH params tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:25:49 2017 +0200
tests: added DH parameter check in X.509 auth
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:18:26 2017 +0200
tests: added basic test on gnutls_dh_params_cpy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:14:06 2017 +0200
tests: test gnutls_dh_get_pubkey in anonymous auth
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 16:15:46 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 8 15:50:16 2017 +0200
tests: added basic unit test on gnutls_random_art()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 22:51:09 2017 +0200
doc: fixed documentation for various function parameters
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 22:37:54 2017 +0200
.gitlab-ci.yml: removed the coverage run under pkcs11 trust store
It was causing inaccurate total coverage numbers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 16:56:06 2017 +0200
.gitlab-ci.yml: added runs under the PKCS#11 trust store in fedora
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 16:51:46 2017 +0200
tests: use gnutls_global_init instead of global_init
The reason is to force initialization of the PKCS#11 backend,
and thus support for any PKCS#11 trust store when setup.
This fixes running the test suite in Fedora.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 14:42:10 2017 +0200
tests: added checks with certificates that contain invalid time field
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 14:33:29 2017 +0200
x509/time: reject invalid dates in local mktime()
Resolves #135
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 14:25:34 2017 +0200
certtool: added newline in error message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 14:09:31 2017 +0200
tests: added basic check for systemkey tool
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 14:05:45 2017 +0200
systemkey: improved error message on unsupported systems
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 14:00:41 2017 +0200
tests: enhanced tofu trustdb checks
Include checks which store and load commitments from the user's home
directory.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 10:35:33 2017 +0200
tests: do not run pkgconfig test in systems with invalid libidn flags
This prevents our test from failing, due to invalid flags found in
a dependency of ours.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 13:30:16 2017 +0200
doc: fixed tpmtool and psktool documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 09:39:50 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 09:38:45 2017 +0200
tests: added unit tests for the base64 raw decoding functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 09:37:10 2017 +0200
gnutls_pem_base64_decode: allow decoding raw base64 data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 09:26:01 2017 +0200
x509/output: do not print usage entry when there is none
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 09:21:19 2017 +0200
certtool: improved printing of the key PIN and key ID
That is, on private keys use the same format when printing
the public Key ID and public key PIN, as when printing it
in certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 6 18:34:56 2017 +0200
.gitlab-ci.yml: fixed freebsd build project restriction
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 6 18:18:02 2017 +0200
certtool: print the key PIN on private and public keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 6 18:09:14 2017 +0200
gnutls_pem_base64_encode2: do raw base64 when msg is NULL
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 7 08:33:54 2017 +0200
.gitlab-ci.yml: simplified CI setup
This makes builds independent by reducing interactions between
artifacts of builds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 6 11:53:33 2017 +0200
fuzz: do not enable the openpgp fuzzer when openpgp is disabled
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 14:50:43 2017 +0200
serv: fixed carriage return stripping in strip()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 14:47:30 2017 +0200
Mark with (void) the remove() function and other unchecked functions
This allows static analysers to properly warn on unchecked return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 14:29:16 2017 +0200
gnutls-cli: fixed minor coverity identified issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 14:26:52 2017 +0200
certtool: fixed newline skip code in smime-to-p7 code
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 14:12:03 2017 +0200
tests: added unit test for the certtool smime conversion functionality
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:41:36 2017 +0200
certtool: fixed minor issues pointed out by coverity
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:38:06 2017 +0200
gnutls-cli: better resource management in benchmark cmd
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:30:22 2017 +0200
is_level_acceptable: ensure issuer is not dereferenced when null
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:25:08 2017 +0200
certtool: guard the value of tl before gnutls_pkcs7_verify
This utilizes assert() as it cannot be triggered in practice.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:20:44 2017 +0200
Avoid using ASN1_MAX_NAME_SIZE directly
Since ASN1_MAX_NAME_SIZE refers to a single element in the asn1
tree, it is not suitable to hold the maximum combined name. Instead
use a local definition of MAX_NAME_SIZE, which is a multiple of
the ASN1_MAX_NAME_SIZE.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:15:38 2017 +0200
gnutls_x509_crq_set_challenge_password: don't accept null password
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:13:26 2017 +0200
Mark with (void) the functions where the returned value is not checked intentionally
This allows static analysers to properly warn on unchecked return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 13:08:11 2017 +0200
removed duplicate code
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 12:47:03 2017 +0200
handshake/record: mark with comments all expected fall-through switches
This reduces warnings from static analysers like coverity and makes
explicit the intention.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 12:42:18 2017 +0200
gnutlsxx.cpp: fixed misleading indentation issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 12:39:23 2017 +0200
doc: document intended fallthrough
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 12:36:52 2017 +0200
tests: fixed possible buffer overflow to avoid spurious complaints
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 12:34:56 2017 +0200
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 11:54:45 2017 +0200
x509.h: added macro for inhibit any policy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 11:50:29 2017 +0200
NEWS: updated
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 10:24:17 2017 +0200
doc: documented the inhibit any policy extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 11:08:09 2017 +0200
tests: added PKCS#12 unit test with AES file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 16:36:48 2017 +0200
tests: added unit test for inhibit anypolicy generation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 15:36:47 2017 +0200
supported_exts: inhibit anypolicy is listed as supported
Since we don't support certificate verification based on policies,
we make sure we do not reject any certificates based on the inhibit
any policy extension being present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 16:27:34 2017 +0200
certtool: added template option inhibit_anypolicy_skip_certs
This option writes the inhibit anyPolicy option in a certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 16:25:47 2017 +0200
x509: output the inhibit anyPolicy value
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 10:29:32 2017 +0200
documented the GNUTLS_X509_OID_POLICY_ANY macro
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 16:03:34 2017 +0200
x509: added function to set and retrieve inhibit anypolicy extension value
That is, introduced:
* gnutls_x509_crt_get_inhibit_anypolicy
* gnutls_x509_crt_set_inhibit_anypolicy
Resolves #180
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 15:53:05 2017 +0200
_gnutls_x509_write_uint32: ensure we prepend leading zero when writing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 15:46:45 2017 +0200
Added helper functions to parse the inhibit anyPolicy X.509 extension
That introduces:
* gnutls_x509_ext_export_inhibit_anypolicy
* gnutls_x509_ext_import_inhibit_anypolicy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 15:22:06 2017 +0200
tests: added unit test for PKCS#12 with file that uses PBES1 with no salt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 6 05:14:25 2017 +0200
tests: added basic check for system trust store
This checks whether the gnutls_certificate_set_x509_system_trust()
and thus the trust list equivalent function operate as expected
and return a positive number of certificates. The test is ignored
in systems where these functions return GNUTLS_E_UNIMPLEMENTED_FEATURE.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: David Caldwell <david@porkrind.org>
Date: Tue Apr 4 21:29:55 2017 -0700
gnutls_x509_trust_list_add_system_trust: Add macOS keychain support
Also don't check for a default_trust_store_file in configure when building on
macOS (unless explicitly asked to with --with-default-trust-store-file=xxx),
because otherwise it finds /etc/ssl/cert.pem: This file is new (since
10.12.2?), which means libraries built on the newest OS version wouldn't work
the same way on an older versions (and vice versa). "/etc/ssl/cert.pem" also
doesn't seem to reflect additions and deletions from the user's or system's
trusted roots keychain (in my limited testing).
Signed-off-by: David Caldwell <david@porkrind.org>
Author: David Caldwell <david@porkrind.org>
Date: Wed Apr 5 11:15:45 2017 -0700
Rename uint64 to gnutls_uint64 to avoid conflict with macOS
Signed-off-by: David Caldwell <david@porkrind.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 10:11:01 2017 +0200
mpi: openpgp integer scanning was put into conditional
That is, no longer include that code when compiling without openpgp
support.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 29 12:38:34 2017 +0200
Moved all openpgp-related variables and definitions into ifdef blocks
This allows compilation with -Werror even if openpgp is disabled.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 29 09:55:36 2017 +0200
OpenPGP authentication is disabled by default
The flag --enable-openpgp-authenticationcan be used to revert
this change.
Resolves #178
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 08:50:53 2017 +0200
tools: remove outfile when exited on error
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 08:32:48 2017 +0200
certtool: added examples on verifying certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 5 08:12:17 2017 +0200
certtool: improved documentation
Incorporated comments made in Lenka Horakova's thesis study.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 15:22:06 2017 +0200
tests: added unit test for PKCS#12 with file that uses PBES1 with no salt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 11:28:27 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 12:52:14 2017 +0200
tests: add unit test for PKCS#12 with file that uses SHA512 for MAC
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 12:11:27 2017 +0200
pkcs12: increased the maximum salt size
This accomodates for files which have salt sizes up to 256 bytes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 12:01:15 2017 +0200
_gnutls_pkcs12_string_to_key: allow SHA384 and SHA512
The previous implementation of the function was restricted to SHA1 and
SHA256. Extended to allow SHA384 and SHA512 as well.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 11:25:22 2017 +0200
PKCS#12: added support for files with zero salt length in MAC
Resolves #191
Resolves #190
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 11:19:23 2017 +0200
tests: added unit test for PKCS#12 with file with no salt in MAC
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 3 09:44:43 2017 +0200
tests: verify that the encryption OID is printed
That is, verify whether certtool --p12-info will print the
actual encryption OID on unsupported files, rather than the
generic PBES2 algorithm.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 3 09:35:31 2017 +0200
gnutls_pkcs8_info: return the encryption algorithm OID on failure
When failing to import a structure due to an unsupported encryption
algorithm OID, return the unsupported OID instead of the generic
PBES2 OID.
Resolves: #193
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 4 10:26:43 2017 +0200
gnutls_transport_set_pull_timeout_function: doc update [ci skip]
Clarified when this function should be set. Based on suggestion by
Sean Greenslade.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Apr 2 17:56:15 2017 +0200
Use NORMAL priority for SSLv23_*_method.
Instead of enforcing TLS1.0/SSL3.0 use gnutls NORMAL priority for
SSLv23_*_methods.
http://bugs.debian.org/857436
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 2 15:14:41 2017 +0200
.gitlab-ci.yml: renamed dist build to doc-dist
This better describes the name of the build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 2 15:12:44 2017 +0200
.gitlab-ci.yml: combined minimal and no-tools builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 2 15:07:05 2017 +0200
.gitlab-ci.yml: combined static analyser runs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 1 23:40:12 2017 +0200
.gitlab-ci.yml: reduced builds and stages
That is an improvement to run the CI faster.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 30 20:56:01 2017 +0200
tests: added unit test for gnutls_priority_get_cipher_suite_index
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 31 20:33:49 2017 +0200
gnutls-cli: eliminate leak on --list option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 29 18:52:48 2017 +0200
gnutls_priority_get_cipher_suite_index: fixed returned protocols
That is no longer return indexes for ciphersuites which would not have
been available due to TLS version mismatch in the priorities cache.
Resolves #146
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Matt Turner <mattst88@gmail.com>
Date: Fri Mar 31 13:45:04 2017 -0700
tests: Copy template out of ${srcdir}
Otherwise, out of tree builds will fail to copy the template.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 31 20:56:04 2017 +0200
gnutls_cipher_get_tag_size: document behavior on non-AEAD ciphers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 31 20:53:19 2017 +0200
doc: make a note that parts of the crypto API are in Core API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 31 16:27:03 2017 +0200
tests: added checks with problematic PKCS#12 files
These check whether parsing of unsupported files (e.g., with RC2-128),
will succeed. This serves as functionality check for gnutls_pkcs8_info.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 31 16:17:07 2017 +0200
gnutls_pkcs8_info: do not free oid on GNUTLS_E_UNKNOWN_CIPHER_TYPE
The documented behavior of the function was to return a valid
OID in that case.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 30 19:58:22 2017 +0200
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 29 14:08:26 2017 +0200
Makefile.am: dropped .clcopying from dist files [ci skip]
It is no longer being used.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 29 10:40:31 2017 +0200
Simplified the generation of ChangeLog [ci skip]
Removed the dependency on git2cl and utilize git log directly.
git2cl seems to provide incorrect output.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 28 09:05:38 2017 +0200
tests: added global locks on tls-fuzzer tests
They both require access to the same port and thus cannot
be run in parallel.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 28 09:01:25 2017 +0200
cert: ensure that there are no leftovers in certificate msg
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 28 08:58:29 2017 +0200
testsuite: added tlsfuzzer certificate requiring tests
This enhances the testsuite by running all the tlsfuzzer
fuzzer tests which require certificates from server.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 28 08:40:32 2017 +0200
alert: return GNUTLS_A_BAD_CERTIFICATE on GNUTLS_E_PK_SIG_VERIFY_FAILED
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 28 09:28:44 2017 +0200
fuzz: updated pkcs12 corpus
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 27 17:40:23 2017 +0200
fuzz: added PKCS#12 file parser fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 27 17:28:08 2017 +0200
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 26 13:46:45 2017 +0200
ocsp-test: disable under windows
This test was failing because datefudge couldn't run under win32.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 26 13:45:37 2017 +0200
Revert "ocsp-test: disable under windows"
This reverts commit 90d5ad5a42759957866ba1d9c96f5dccfd3ea1cc.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 26 10:10:02 2017 +0200
.travis.yml: no longer install pkg-config
Travis build seem to fail for some reason since pkg-config is already
installed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 26 10:07:13 2017 +0200
ocsp-test: disable under windows
This test was failing because datefudge couldn't run under win32.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 25 21:48:46 2017 +0100
.gitlab-ci.yml: increase time of artifact expiration
This allows to re-run failed builds on the depending stages
during that time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 25 21:44:53 2017 +0100
gnutls.pc: Removed P11_KIT_LIBS from Libs.private
It was already being included in Requires.private. Reported
by Andreas Metzler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 23 08:03:52 2017 +0100
gnutls.pc: don't include zlib twice in private libs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 23 11:39:34 2017 +0100
tests: create-chain.sh: do not explicitly set serial
We were previously exporting certificates with serial number being
zero, which is not allowed by RFC5280.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 23 11:34:07 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 22 09:39:12 2017 +0100
tests: added mini-x509-ipaddr
This is a unit test for GNUTLS_DT_IP_ADDRESS as used in
gnutls_certificate_verify_peers().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 22 09:00:09 2017 +0100
Introduced GNUTLS_DT_IP_ADDRESS
This allows verifying an IP address using gnutls_certificate_verify_peers()
or gnutls_x509_trust_list_verify_crt2().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 12:19:35 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 17 15:04:50 2017 +0100
tests: check whether we fallback to CN unconditionally
This is a unit test for:
"gnutls_x509_crt_check_hostname2: do not fallback to CN unconditionally"
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 17 15:01:12 2017 +0100
gnutls_x509_crt_check_hostname2: do not fallback to CN unconditionally
Do not fallback to checking the CN of a certificate for a hostname
if supported names such as IP addresses were found in gnutls_x509_crt_check_hostname2().
This behavioral change is in order to satisfy the RFC6125 requirement
of not falling back to CN in that case. Reported by Suphannee Sivakorn.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 17 14:50:10 2017 +0100
tests: added unit test of GNUTLS_VERIFY_DO_NOT_ALLOW_IP_MATCHES
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 17 14:43:36 2017 +0100
Introduced verification flag GNUTLS_VERIFY_DO_NOT_ALLOW_IP_MATCHES
This flag when provided to the gnutls_x509_crt_check_hostname2() function
(and its callers), will prevent IP matching of the subject alternative
name. This can be utilized by applications which directly check for
IP addresses using gnutls_x509_crt_check_ip().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 17 14:37:21 2017 +0100
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 16 11:38:19 2017 +0100
tests: added unit test for gnutls_x509_crt_check_ip
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 16 10:07:37 2017 +0100
Added gnutls_x509_crt_check_ip()
This function allows to directly verify IP addresses on a certificate.
That is a first step towards making gnutls_x509_crt_check_hostname2()
not verify IP addresses.
Based on discussion and suggestion by Suphannee Sivakorn. See
https://lists.gnupg.org/pipermail/gnutls-devel/2017-March/008368.html
Relates #185
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 14:07:22 2017 +0100
tests: added unit test of gnutls_pubkey_verify_data2 override flags
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 13:47:09 2017 +0100
tests: keygen -> privkey-keygen
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 13:20:02 2017 +0100
_gnutls_check_key_cert_match: allow broken sigs
That ensures that when loading a certificate pair with SHA1, when
SHA1 is disabled will not cause the server to fail to load.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 13:14:24 2017 +0100
.gitignore: more files to ignore
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 13:12:07 2017 +0100
Use a common function to decide acceptable signatures
That is, ensure that results from all verification functions,
including gnutls_pubkey_verify_data2(), will be consistent with
SHA1 and other algorithms deprecation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 13:01:51 2017 +0100
check_ocsp_response: utilize the same flags as in certificate verification
That ensures that overrides like using broken algorithms are considered
in OCSP validation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 14:34:37 2017 +0100
extensions: print the name/type of any unexpected extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 18 18:12:55 2017 +0100
tests: added script to check pkg-config operation
That is, whether the generated gnutls.pc will function for
compiling and linking.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 18 17:56:42 2017 +0100
gnutls.pc: don't pass the libtool vars to Libs.private
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 10:11:54 2017 +0100
tests: improved tls-rehandshake tests
Used common definitions from cert-common.h for certificates,
and improved error detection in tls-rehandshake-cert-2.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 09:42:59 2017 +0100
tests: check whether a rehandshake without a cert works
That is, check whether if on initial handshake the server requests
a certificate, but on the following rehandshake he doesn't, whether
the client behaves as expected. This tests:
1f685db853db6e48c77c6dbde0cdf716a7303baa
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 09:36:18 2017 +0100
handshake: reset cert request state on handshake init
That addresses a bug which on client side on case of an initial
handshake with a client certificate, we continue to send this
certificate even if on rehandshake we were not requested with on.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 21 07:59:37 2017 +0100
Revert "nettle/rnd: use gettime() instead of gnutls_time()"
This reverts commit c4842a21f65c7fc9a27932eb1792b1fc9e65f722.
The time() syscall is also implemented as syscall() and is in
fact performing better than gettime().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 20 23:00:06 2017 +0100
README.md: corrected typo [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 20 16:31:42 2017 +0100
nettle/rnd: use gettime() instead of gnutls_time()
The gnulib gettime() maps to gettimeofday() or clock_gettime()
which are both implemented as fast system calls - see vdso(7)-
and as such are available without a switch to kernel mode.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 20 13:29:42 2017 +0100
doc: updated RNG documentation to reflect the previous changes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 20 13:23:39 2017 +0100
nettle/rnd: re-seed both key and nonce levels based on time
The time(0) is quite cheap on modern operating systems, and thus we
can rely on it to provide improved assurance in the output randomness.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 20 13:13:11 2017 +0100
nettle/pk: use nonce level for RSA padding
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 18 19:26:02 2017 +0100
README.md: corrected link for coverage in master [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Martin Storsjo <martin@martin.st>
Date: Fri Mar 17 23:33:01 2017 +0200
Avoid deprecation warnings when including gnutls/abstract.h
Since ac3de8f5, when all openpgp functionality was deprecated, a
library user including gnutls/abstract.h gets warnings about
deprecated declarations, like this:
gnutls/openpgp.h:328:10: warning: ‘gnutls_openpgp_recv_key_func’ is deprecated [-Wdeprecated-declarations]
gnutls_openpgp_recv_key_func func) _GNUTLS_GCC_ATTR_DEPRECATED;
This warning is emitted since the gnutls_openpgp_set_recv_key_function
prototype uses the deprecated typedef gnutls_openpgp_recv_key_func.
By omitting the deprecation attribute from this individual
typedef, we avoid the spurious warnings in calling code which just
includes gnutls/abstract.h without actually using anything related
to openpgp.
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 17 10:47:33 2017 +0100
gnutls.h: added definitions to obtain the maximum element in several enumerations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 16 14:29:10 2017 +0100
tests: added basic unit tests for several string functions of libs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 09:44:55 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 22:51:57 2017 +0100
tests: certtool-crl-decoding: ignore lines warning about SHA1 deprecation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 17:17:32 2017 +0100
tests: check the flag GNUTLS_VERIFY_ALLOW_SIGN_WITH_SHA1
In addition verify whether the GNUTLS_VERIFY_ALLOW_BROKEN flag
works when MD5 is present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 17:13:48 2017 +0100
Introduced flag GNUTLS_VERIFY_ALLOW_SIGN_WITH_SHA1
This allows performing a verification with only SHA1 allowed
from the broken algorithms. This can be used to fine-tune
verification in case default verification fails, to detect
whether the failed algorithm was SHA1.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 17:06:47 2017 +0100
Introduced the %VERIFY_ALLOW_BROKEN priority string option
This allows enabling broken signature algorithms in certificate verification.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 17:00:22 2017 +0100
Allow reverting the SHA1 ban as a signature algorithm
This allows distributors to decide not to ban SHA1. This
option may be removed in the future.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 12:36:46 2017 +0100
p11tool: test-sign operation using SHA256 instead of SHA1
This avoids the errors returned from the verification functions due to
SHA1 usage.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 09:42:26 2017 +0100
tests: updated to account SHA1 move to broken set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 08:35:34 2017 +0100
algorithms: tag SHA1 as insecure algorithm
Although SHA1 was considered to be risky to use the past few years,
there has been no demonstration of breakage. As of 2017-2-23 there has
been a demonstrated collision in SHA1, and even though the attack was
a costly one, it provided the incentive to should move SHA1 into
the broken hashes list together with MD5 and MD2.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 16 14:02:05 2017 +0100
README.md: updated coverage links [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 16 08:25:52 2017 +0100
tests: removed unneeded ifdef in tlsext-decoding.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 16 09:04:24 2017 +0100
doc: updated RNG design
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 15 14:21:43 2017 +0100
nettle/rnd: introduced time limit for key generator
That is, force re-key of the KEY and RANDOM PRNG after 2 hours
of operation, irrespective of the amount of data having been output.
At the same time, increase limits for key and nonce generators,
to prevent a large amount of system calls in busy servers.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 15 15:11:14 2017 +0100
_gnutls_pk_generate_keys: separate between ephemeral and long-term keys
That allows using the faster generator for ephemeral keys.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 15 14:46:54 2017 +0100
nettle/pk: use the nonce level for digital signatures
That is, we do not really require high quality secret data for the generation
of signatures. A better approach would be to switch to predictable signatures (RFC6979).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 15 22:06:59 2017 +0100
.gitlab-ci.yml: limit submodule update to avoid fetch
This should reduce both the bandwidth and the time of the fetch.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Martin Storsjo <martin@martin.st>
Date: Wed Mar 15 23:32:12 2017 +0200
Fix a typo in a variable name in an m4 script
Signed-off-by: Martin Storsjo <martin@martin.st>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Mar 14 19:27:49 2017 +0200
build: disable valgrind tests by default
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 15 05:17:37 2017 +0100
.gitlab-ci.yml: ubsan build utilizes -Werror for the library
That brings back the -Werror for building, after its removal from
clang-analyzer build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 14 16:43:34 2017 +0100
.gitlab-ci.yml: remove -Werror compilation from scan-build
When we pass '--status-bugs' to the command in combination with
'-Werror' in CFLAGS it has the following side effects. In a failed
due to Werror build, scan-build fails to find any issues, and
marks the run as successfully completed. Hence, removes the -Werror
from clang-analyzer.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon Mar 13 20:47:02 2017 +0200
build: tests: resolve as-needed issue with seccomp
Incorrect ordering of -lseccomp:
<snip>
-Wl,--as-needed ../lib/.libs/libgnutls.so -lseccomp ./.libs/libutils.a
./.libs/libutils.a(seccomp.o): In function seccomp_init'
seccomp.c:(.text+0x2b): undefined reference to `seccomp_init'
<snip>
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 23:27:14 2017 +0100
fuzz: Corrected default options in fuzz scripts [ci skip]
This change assumes that afl-fuzz (and not libfuzzer) will be used
by default.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 20:13:49 2017 +0100
gnutls_pkcs11_privkey_init: document limitation on created object [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 15:21:40 2017 +0100
pkcs11: re-open privkey session handle on CKR_SESSION_HANDLE_INVALID
When initializing a private key operation, attempt to re-open the key
if CKR_SESSION_HANDLE_INVALID is received.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 15:15:31 2017 +0100
tests: pkcs11-mock lib: check object session sanity prior to using it
This avoids crashes when the object is used after a fork but prior
to the session being re-established.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 11:21:50 2017 +0100
tests: added an OCSP response parsing coverage test
This inputs a large set of valid and invalid OCSP files
in the OCSP parser with the intention to stress test its
error checking, and prevent regressions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 08:14:32 2017 +0100
tests: added a certificate parsing coverage test
This inputs a large set of valid and invalid certificates in
the certificate parser with the intention to stress test its
error checking, and prevent regressions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:39:03 2017 +0100
.gitignore: more files to ignore
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:33:29 2017 +0100
tests: added unit tests for gnutls_pkcs11_token_get_mechanism
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:28:25 2017 +0100
tests: included unit test for gnutls_pkcs11_obj_export
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:23:37 2017 +0100
tests: added unit test for gnutls_pkcs11_reinit()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:17:42 2017 +0100
tests: added unit tests for gnutls_pkcs11_obj_get_info
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:17:07 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 13 09:14:15 2017 +0100
gnutls_pkcs11_obj_get_info: don't include the terminator into output size
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon Mar 13 11:32:07 2017 +0200
tests: cert-tests: openpgp-certs: align test redirection
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon Mar 13 10:45:08 2017 +0200
tests: suppressions.valgrind: supress fillin_rpath
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon Mar 13 11:30:41 2017 +0200
tests: remove unused suppressions.valgrind
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 12 14:48:19 2017 +0100
lib: unconditionally enable the self-check functions
These functions were previously made available only in FIPS140-2
mode. Enabling them unconditionally allows applications to directly
utilize that functionality for testing the gnutls library.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 12 14:43:00 2017 +0100
tests: added unit test for gnutls_pkcs11_get_pin_function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 12 14:29:14 2017 +0100
tests: moved ocsp-tests to main directory
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 10 17:37:10 2017 +0100
pkcs11: re-open private key session inside a locked section
This prevents clashes when the same operation is carried in other
threads.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 10 17:12:50 2017 +0100
pkcs11: introduced locks to PKCS#11 private key structure
This allows to run PKCS#11 private key operations such as signing
and decryption in parallel.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 10 17:04:20 2017 +0100
tests: introduced check for parallel operation (signatures) in PKCS#11 mode
That is, verify that parallel signatures using a single gnutls_pkcs11_privkey_t
context work.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Mar 12 15:05:41 2017 +0200
tests: scripts: suppress which errors
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 11 12:08:21 2017 +0100
pkcs11: during scan, leave the provider loop asap
This optimizes access when multiple provider modules are available,
by avoiding scanning irrelevant ones.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Sat Mar 11 10:28:50 2017 -0500
Do not attempt to parse a 32-bit integer if a packet is not 4 bytes.
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=824
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 15:50:24 2017 +0100
fuzz: document how to run AFL [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 10:57:28 2017 +0100
fuzz: added initial corpus for the OCSP request parser
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 17:09:59 2017 +0100
fuzz: added initial corpus for OCSP response parser
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 17:01:59 2017 +0100
fuzz: added OCSP structure parsers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 16:51:39 2017 +0100
fuzz: increased minimized set of X.509 certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 12:57:41 2017 +0100
PKCS8/PKCS12: enforce a maximum number of iterations
This prevents denial of service through very large iteration
counts. Issue found via oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=434
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Wed Mar 8 14:52:38 2017 -0500
Do not attempt to parse a 32-bit integer if a packet is not 4 bytes.
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=737
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 11:25:54 2017 +0100
Revert ".gitlab-ci.yml: include coverage statistics of FIPS140-2 code"
This reverts commit 603772688c4e37dae437b4cede12e25b9dd9f678.
The commit introduced a long wait for the coverage build without
and significant benefit (the extend of the FIPS140 code is limited
to have any impact on the overall coverage).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 9 10:52:59 2017 +0100
sysrng-linux: define _rnd_get_system_entropy unconditionally
This fixes compilation in systems without getrandom().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 16:00:02 2017 +0100
tests: dtls-stress: use X.509 certificates instead of openpgp
This will allow the test tool to operate even after openpgp certificates
are deprecated.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 22:52:31 2017 +0100
.gitlab-ci.yml: added build without openpgp support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 11:32:31 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 22:36:16 2017 +0100
Added openpgp stub file
That allows disabling openpgp authentication and at the same time
retaining ABI compatibility with versions including openpgp.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 15:00:06 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 14:58:14 2017 +0100
tests: split PKCS#12 encoding from decoding tests
Enhanced PKCS#12 encoding tests, with the encoding of a file
which contains a cert, a key and a CRL.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 14:47:20 2017 +0100
tests: added PKCS#12 file decoding containing a CRL
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 14:40:15 2017 +0100
certtool: enhance to allow writing CRLs in PKCS#12 files
In addition fallback to DER when --load-crl fails importing a PEM
encoded CRL due to PEM issues.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 14:21:30 2017 +0100
tests: added CRL decoding unit tests using certtool
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 14:04:32 2017 +0100
tests: enhanced basic tests in CRL parsing
That tests gnutls_x509_crl_get_crt_serial().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 13:50:55 2017 +0100
Rewritten gnutls_x509_rdn_get() and gnutls_x509_rdn_get2()
The new code re-uses the gnutls_x509_dn APIs instead of re-implementing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 13:43:36 2017 +0100
tests: added checks for the old DN decoding functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 22:39:20 2017 +0100
tests: do not run tests which require openpgp when it is disabled
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 22:47:55 2017 +0100
.gitlab-ci.yml: include coverage html output as artifact
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 13:22:59 2017 +0100
tests: x509-verify: print the keys on failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 13:17:15 2017 +0100
gnutls_privkey_export_x509: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 13:07:08 2017 +0100
tests: split sign-verify test to RSA and ECDSA parts
This allows parallelist and also helps identifying easier the
culprit on an error.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 11:52:25 2017 +0100
tests: adjusted for the removal of HMAC-MD5
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 11:48:28 2017 +0100
priority: do not enable HMAC-MD5 by default
While HMAC-MD5 is not yet broken, it is not used by any non-broken
or non-NULL ciphersuites (is only used with NULL and RC4), and as there
is not plan to introduce new ciphersuites with that MAC algorithm, there
is no point to include it in the default set of allowed algorithms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 23:10:43 2017 +0100
tests: converted FIPS140-2 mode checks in Makefiles to run-time in scripts
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 8 10:48:40 2017 +0100
gnutls.h: introduced GNUTLS_E_TLS_PACKET_DECODING_ERROR [ci skip]
This is an alias to GNUTLS_E_UNEXPECTED_PACKET_LENGTH. That
allows distinguishing the alert from GNUTLS_E_RECORD_OVERFLOW.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 21:53:51 2017 +0100
tests: crq: ignore lines for Security Level
This allows running the test under FIPS140-2 mode.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 21:39:12 2017 +0100
ax_code_coverage.m4: updated
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 23:21:33 2017 +0100
.gitlab-ci.yml: initialize submodules where needed (for tlsfuzzer run)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 15:28:01 2017 +0100
.gitlab-ci.yml: include subdirs of suite/ in artifacts
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 23:11:39 2017 +0100
ext/signature: error on invalid extension format
That is, if an extension containing no signature algorithms is
encountered, treat that as an error. This is an RFC5246 requirement,
since the minimum "supported_signature_algorithms" length is 2.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 14:30:19 2017 +0100
_gnutls_proc_x509_server_crt: return GNUTLS_E_CERTIFICATE_ERROR on parsing error
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 14:21:45 2017 +0100
alert: GNUTLS_E_NO_CERTIFICATE_FOUND maps to GNUTLS_A_DECODE_ERROR
This is the closest to use alert when no certificate is found; at least
it is closer according to tlsfuzzer and rfc5246 text on insuficient_security
alert.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 13:51:33 2017 +0100
read_client_hello: use integer for extensions size
As we do not read the value directly, but rather assign to it
the remaining data, we ensure that there are no overflows if
we have additional data past the extensions field. The integer
can hold more than 2^24 which is the maximum handshake packet
size.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 16:33:57 2017 +0100
ext/signature: reject an extension with padded data
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 16:18:44 2017 +0100
ext/signature: reject an extension size of zero
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 15:58:19 2017 +0100
gnutls_record_recv: do not accept a client hello while handshake is in progress
That is, do not return GNUTLS_E_REHANDSHAKE, while we are within
a handshake process.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 15:16:59 2017 +0100
read_client_hello: fail early on illegally formatted message
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 2 17:57:57 2017 +0100
_gnutls_parse_extensions: do not fail on empty extensions field
On the other hand, fail if an empty extensions field is seen, but
the client hello contains data nevertheless, or if the extensions
field is padded with additional unaccounted data.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 2 17:53:55 2017 +0100
alert: GNUTLS_E_PK_INVALID_PUBKEY maps to GNUTLS_A_ILLEGAL_PARAMETER
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 2 17:48:31 2017 +0100
alerts: separated record overflow from decode error alerts
Introduced GNUTLS_E_RECORD_OVERFLOW.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 2 17:42:51 2017 +0100
auth: failures of _gnutls_mpi_init_scan_nz map to GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER
That ensures that the right alert is send when illegal
parameters are received (e.g., zero length).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 11:49:45 2017 +0100
doc: updated tlsproxy to latest version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 14:17:18 2016 +0200
testsuite: added tlsfuzzer
This enhances the testsuite by running all the tlsfuzzer
fuzzer tests which require no certificates from server.
https://github.com/tomato42/tlsfuzzer
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 07:55:10 2017 +0100
tests: converted compile-time checks for FIPS140 mode to run-time
This allows running the complete test suite even when the library
is compiled in FIPS140-2 mode, as long as the run-time is not at
this mode.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 07:39:20 2017 +0100
.gitlab-ci.yml: include coverage statistics of FIPS140-2 code
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 7 07:32:46 2017 +0100
.gitlab-ci.yml: include FIPS140-2 code into static analyzer runs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 22:35:41 2017 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 10:22:04 2017 +0100
nettle/rnd-fips: combined the FIPS-compliant generators to two
This brings the FIPS generators in par with the non-FIPS chacha-based ones.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 10:18:14 2017 +0100
nettle/rnd: use two random generators instead of 3
That combines the levels GNUTLS_RND_RANDOM and GNUTLS_RND_KEY, while
at the same time makes sure that backtracking is impossible on the
GNUTLS_RND_KEY level, by reinitializing the RNG after a call requesting
data for the GNUTLS_RND_KEY level.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 10:04:18 2017 +0100
doc: updated the PRNG documentation to utilize two PRNG instances
Also move the random generator discussion to internals section.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 11:37:39 2017 +0100
doc: document the state of PRNG in GnuTLS 3.6.0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 11:51:18 2017 +0100
nettle/pk: corrected call to gnutls_rnd() for rnd_nonce_func
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 26 20:07:41 2017 +0100
tests: decoupled the random generator operational tests from the forking ones
That also corrects the fact that not all tests were run for all generators,
and allows to run the tests in parallel.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 26 19:56:09 2017 +0100
nettle/rnd: specify different limits for rekey in PRNGs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 26 19:20:16 2017 +0100
nettle/pk: use the GNUTLS_RND_RANDOM level for DH/DSA params
This are not long term keys and do not require the key level.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 26 19:16:32 2017 +0100
tests: added check to verify that including crypto.h is sufficient
That is, sufficient to use its functionality, and including additional
headers isn't necessary.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 26 19:11:51 2017 +0100
crypto.h: include gnutls.h to obtain required types
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 10:44:43 2017 +0100
rnd: reduce calls to _rnd_get_system_entropy
That is, no longer obtain the initial nonces for the RNG
via _rnd_get_system_entropy() but instead use time-based ones
which are typically faster kernel calls. This reduces the number
of expensive system calls done during thread and
process initialization.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 11:48:08 2017 +0100
rnd: when reseeding the generators use the next best generator
That is, use the RANDOM level to obtain keys to reseed the
NONCE level, and the KEY level to reseed the RANDOM. The KEY
level is reseeded using the system random generator.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 11:11:31 2017 +0100
tests: verify whether crypto operations fail
That is verify whether a signature operation will fail if
the library is in error state.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 11:05:48 2017 +0100
Added _gnutls_lib_force_operational
This allows recovering from _gnutls_lib_simulate_error() which in
turn allows more advanced tests. Not documented, and intended to
be an internal symbol only.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 10:56:44 2017 +0100
pk: always use _gnutls_switch_lib_state
This avoids relying on abort() for RNG errors in PK wrappers.
We use instead the library state originally added for FIPS140-2
support, and if the state indicates failure the operation will
fail.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 10:43:56 2017 +0100
rnd: switched to 3 chacha-based PRNGs for all security levels
Chacha was selected because it is already present in TLS protocol
as algorithm, meaning that re-using would improve CPU caching,
and it is a comparable in performance algorithm to the existing
PRNG used for nonces (salsa20). The yarrow generator was removed
because we are primarily seeding from system devices which are
sufficiently trustworthy to offload us from coping with the
handling of multiple sources of input. As such it allows
us to switch to a simpler PRNG such as a stream cipher like Chacha.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 19 10:40:44 2017 +0100
rnd: aligned type of data counter with input data type (size_t)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 19 09:57:39 2017 +0100
random: keep global list of initialized contexts
This allows to properly deinitialize all random generator
contexts on library deinitialization.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 18 21:47:33 2017 +0100
rnd: removed call of _rnd_system_entropy_deinit on deinit
This was already being done in _gnutls_rnd_deinit().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 27 13:52:23 2017 +0100
Removed locks from internal rng
Also made the rng back-end to be thread-safe.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 27 10:21:56 2017 +0100
Use a thread local random generator.
This allows accessing the per-thread random generator in
a lock-free way, at the cost of additional memory per thread.
The default random generator imposes around 640 bytes per thread
on 64-bit architectures.
Resolves: #141
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 07:38:20 2017 +0100
Makefile.am: added missing file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 6 06:58:29 2017 +0100
.gitlab-ci.yml: execute initialization stage unconditionally [ci skip]
This step is required both in tags and commit runs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 5 18:22:04 2017 +0100
datum.h: documented behavior of datum functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 5 18:17:36 2017 +0100
_gnutls_set_strdatum: always return an allocated string on success
That prevents returning NULL to functions which require a string.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Sun Mar 5 02:21:30 2017 +0000
Enforce the max packet length for OpenPGP subpackets as well
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=392
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 5 08:08:10 2017 +0100
doc: corrected typo [ci skip]
It was pointed out by morozov@eags.ru.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 09:31:37 2017 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 09:29:12 2017 +0100
tests: do not generate certificates with serial being zero
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 08:48:41 2017 +0100
tests: check whether a certificate with illegal version is rejected
That is, whether a certificate with version zero fails to import.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 08:38:01 2017 +0100
gnutls_x509_crt_set_version: do not allow writing illegal versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 08:28:47 2017 +0100
x509: reject illegal certificate versions
Resolves #182
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 08:44:41 2017 +0100
gnutls_x509_crt_set_serial: refuse to write all-zero serial number
This is prohibited by RFC5280.
Relates #181
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 3 08:27:23 2017 +0100
gnutls_x509_crt_set_serial: document the 20-byte limit for serial sizes
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 12:51:47 2017 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 11:59:50 2017 +0100
tests: chainverify: incorporated the tests for unknown critical extensions
These check whether unknown critical extensions are detected during verification,
and whether the flag GNUTLS_VERIFY_IGNORE_UNKNOWN_CRIT_EXTENSIONS, is honored
during verification.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 11:47:17 2017 +0100
x509.h: introduced flag GNUTLS_VERIFY_IGNORE_UNKNOWN_CRIT_EXTENSIONS
That flag signals the verification process, not to fail on unknown critical
extensions. This can be used when the critical extension checking in a chain
is handled externally.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 16:54:33 2017 +0100
tests: verify that critical extensions can be stored
That is, ensure that we don't repeat the regression of
certtool not processing free-form critical extensions when no
other free-form extensions are present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 15:50:44 2017 +0100
tests: added verification for unknown critical extensions
This tests whether unknown critical extensions will cause a verification
failure.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 14:48:37 2017 +0100
x509/verify: refuse to verify certificates with unknown critical extensions
That is, introduced flag GNUTLS_CERT_UNKNOWN_CRIT_EXTENSIONS, which is
set when the chain under verification contains unsupported extensions marked
as critical.
Resolves: #177
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 10:17:41 2017 +0100
.gitlab-ci.yml: run tests under a FIPS140 mode simulation
That is, in FIPS140-2/Fedora/x86_64 build, run tests under a normal
run (when library is compiled with FIPS140-2 support but not enabled
on run time), and also run tests under a run-time that simulates
FIPS140-2 support.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 17:13:37 2017 +0100
crypto-self-tests: modified exported functions to work under fips140-2 mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 15:52:13 2017 +0100
tests: skip tests which cannot be run in FIPS140-2 mode
This allows the test suite to be run in FIPS140-2 mode.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 15:42:25 2017 +0100
_gnutls_pk_params_copy: copy the provable algorithm used
This is affected utilization of generated RSA keys under FIPS140-2 mode
which utilizes provable generation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 14:31:30 2017 +0100
gnutls_session_ticket_key_generate: fixed operation under FIPS140-2 mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 14:05:31 2017 +0100
tests: priorities: enhanced for test to work under FIPS140-2 mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 13:46:43 2017 +0100
gnutls-cli: print the ciphers, MACs and KXs when priority string is given
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 13:39:39 2017 +0100
gnutls_priority_get_cipher_suite_index: do not return values for non-existent ciphers
That is, do return only the enabled algorithms in states like FIPS140-2,
rather than returning the set that would have been enabled if these
restrictions wouldn't be in place.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 15:46:07 2017 +0100
README.md: removed info that gnutls is a gnu project [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 15:33:45 2017 +0100
tests: doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 07:58:04 2017 +0100
tests: added test cases with invalid openpgp certs
These certificates contain invalid secret key sub-packets.
These trigger invalid memory accesses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=360
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=354
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 1 07:54:04 2017 +0100
opencdk: do not parse any secret keys in packet when reading a certificate
This reduces the attack surface on the parsers, and prevents any bugs
in the secret key parser to be exploitable by inserting secret key
sub-packets into an openpgp certificate.
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=354
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=360
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 10:32:38 2017 +0100
tests: crt_apis: added tests for writing/reading unique IDs
That is check the functionality of:
- gnutls_x509_crt_get_subject_unique_id
- gnutls_x509_crt_get_issuer_unique_id
- gnutls_x509_crt_set_issuer_unique_id
- gnutls_x509_crt_set_subject_unique_id
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 10:59:28 2017 +0100
Added _gnutls_idna_email_reverse_map
This allows printing the reverse map of an IDNA-encoded email.
Modified x509/output to include this decoding for RFC822Name.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 10:47:03 2017 +0100
x509/output: Cleanup in IDNA name printing
That also removes the incorrect mapping to IDNA punycode when the
input is not printable.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 08:48:24 2017 +0100
tests: added test for interactive creation of a request
Relates #179
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 08:24:30 2017 +0100
certtool: removed limits in interactive input
That removes the limits when reading most of the interactive input.
The read_str() function due to its dependence on static variable remains
with a limit, but will output an error if the input string exceeds size.
Resolves #179
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 28 08:00:56 2017 +0100
certtool: increased buffer for reading from user
This allows reading longer than 128-byte fields interactively.
The new limit is 512-bytes.
Relates #179
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 08:23:47 2017 +0100
tests: added certificate generation with very long DNS and CN name
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 15:58:53 2017 +0100
gnutls_x509_crt_get_extension_info: fixed function to comply with documented approach
That is, do not include the trailing NULL byte size in the
size of the object identifier.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 16:47:55 2017 +0100
certtool: store critical extensions even if no other extension are present
That is, fix a bug which prevented critical extensions to be stored
if no other free-form extensions were specified.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 27 15:06:57 2017 +0100
x509/name_constraints: documented return values and corrected return type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 09:24:19 2017 +0100
gnutls_ocsp_resp_verify_direct, gnutls_ocsp_resp_verify: defined flags argument
That was defined to be gnutls_certificate_verify_flags, and
it allows passing verification flags, such as flags to allow
broken algorithms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 09:09:10 2017 +0100
is_level_acceptable: no longer checks for broken algorithms
This is done at is_broken_allowed(), and in fact checking them in
is_level_acceptable() creates a conflict when overrides like flag
GNUTLS_VERIFY_ALLOW_BROKEN is used.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 08:57:27 2017 +0100
gnutls_store_commitment: introduced flag GNUTLS_SCOMMIT_FLAG_ALLOW_BROKEN
This flag allows operation of the function even with broken algorithms.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 08:46:01 2017 +0100
verify: is_broken_allowed: account for "new" flag GNUTLS_VERIFY_ALLOW_BROKEN
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 09:53:26 2017 +0100
devel/fuzz: added necessary casts for compilation [ci skip]
Also added the IDNA targets to makefile's default target.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 24 07:56:50 2017 +0100
devel/fuzz: include string.h for strlen() [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 18:05:09 2017 +0100
devel/fuzz: IDNA fuzzers: removed printf [ci skip]
see request in:
https://github.com/google/oss-fuzz/issues/417
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 11:08:34 2017 +0100
tests: added test case with invalid openpgp cert
This triggers an invalid memory access:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=391
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 11:10:04 2017 +0100
opencdk: read_attribute: account buffer size
That ensures that there is no read past the end of buffer.
Resolves the oss-fuzz found bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=391
Relates: #159
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 13:35:42 2017 +0100
gnutls-cli-debug: fixed protocol to port discovery
That is, if --starttls-proto is provided the default port
selected will be converted to host byte order as expected.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 13:11:45 2017 +0100
pk.c: fixed memory leak on DSS signature decoding
Detected using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=676
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 13:07:47 2017 +0100
tests: added client reproducer for memory leak
That reproduces a memory leak detected in the client code path.
Detected using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=676
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 12:34:28 2017 +0100
tests: update to take into account the removal of random art
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 10:26:04 2017 +0100
x509/output: No longer include public key's random art
That is in order to reduce bloat in the output, which already
contains many identifiers for public key.
See mailing list discussion at:
https://lists.gnupg.org/pipermail/gnutls-devel/2017-February/008324.html
https://lists.gnupg.org/pipermail/gnutls-devel/2017-February/008329.html
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 17:02:33 2017 +0100
tests: updated to include the pin-sha256 in output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 16:47:02 2017 +0100
tests: updated to take into account the pin-sha256 oneline output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 11:11:06 2017 +0100
x509/output: print key PIN on oneline output
That is, instead of the public key ID. The key PIN due to HPKP
is now more widely used than hex-based key IDs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 11:06:51 2017 +0100
x509/output: print the public key PIN of a certificate
That is, print the value used by the HPKP protocol as per
RFC7469.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 23 09:39:28 2017 +0100
certtool: don't warn when 'uri' is specified on template
Reported at:
https://bugzilla.redhat.com/show_bug.cgi?id=1425884
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 21:53:42 2017 +0100
.gitlab-ci.yml: ubsan build: fixed artifacts path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 21:45:32 2017 +0100
tests: split starttls.sh into multiple scripts
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 21:29:22 2017 +0100
tests: pkcs11-import-with-pin: removed invalid conditional macro
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 17:38:07 2017 +0100
tests: added PKCS#11 test for pin input
This introduces a test on PIN input to retrieve an object using
pin-value and pin-source (file).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 22 21:01:30 2017 +0100
SECURITY.md: updated after comments from Daniel Berrange [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 16:50:22 2017 +0100
Removed unnecessary entries in pkix.asn and gnutls.asn
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 14:20:17 2017 +0100
nettle/pk: corrected memcpy of Q in DSA params
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 08:02:02 2017 +0100
crypto.h: improved documentation of randomness levels
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 08:01:09 2017 +0100
nettle/pk: use the appropriate level of randomness for each operation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 08:00:41 2017 +0100
srp: use nonce level for SRP password randomization
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 08:58:16 2017 +0100
doc: document the use of assert()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 08:17:25 2017 +0100
doc: removed protocol/ directory
While it was used during the first years of development, today
it is way more easy to access protocol documents via the IETF
web site.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 21 08:13:56 2017 +0100
Added SECURITY.md, a description of the security issue handling process
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 18:57:56 2017 +0100
.gitlab-ci.yml: require clang analyzer build to be warning free
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 18:53:01 2017 +0100
configure: no longer use -Wframe-larger-than
We do not require a specific stack size, and there is legacy
code which utilizes large stack sizes. As such remove the
warnings to allow for a warning free compilation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 18:50:40 2017 +0100
pkcs11: avoid calling memcpy will null options
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 16:41:46 2017 +0100
preinitialize variables to work-around warnings with clang
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 15:05:57 2017 +0100
eliminated dead code as indicated by clang scan-build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 15:02:22 2017 +0100
pkcs7: corrected error checking in write_signer_id
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 14:18:25 2017 +0100
preinitialize variables to work-around warnings with clang's scan-build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 14:03:40 2017 +0100
eliminated various clang warnings with non-null arguments
That is, use assert() to ensure that known to be non-null
variables will be used as input to functions requiring non-null.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 13:49:55 2017 +0100
make_printable_string: allow operation with null input
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 13:32:37 2017 +0100
.gitlab-ci.yml: replaced clang's build with clang analyser's scan-build
This introduces a static analyser pass in the CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 13:13:19 2017 +0100
.gitlab-ci.yml: added cppcheck run
This adds a basic static analysis of the source code.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 11:14:49 2017 +0100
opencdk/read-packet.c: corrected typo in type cast
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 11:13:08 2017 +0100
cdk_pkt_read: enforce packet limits
That ensures that there are no overflows in the subsequent
calculations.
Resolves the oss-fuzz found bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=420
Relates: #159
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 20 11:01:07 2017 +0100
tests: added test case with invalid openpgp cert
That triggers a heap buffer overflow:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=420
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Robert Scheck <robert@fedoraproject.org>
Date: Sun Feb 19 22:50:30 2017 +0100
Add LMTP, POP3, NNTP, Sieve and PostgreSQL support to gnutls-cli
Add LMTP (RFC 2033), POP3 (RFC 2595), NNTP (RFC 4642), Sieve (RFC 5804) and PostgreSQL support to gnutls-cli ("--starttls-proto").
Signed-off-by: Robert Scheck <robert@fedoraproject.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 19 17:31:52 2017 +0100
README.md: added CII best practices badge [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Rical Jasan <ricaljasan@pacific.net>
Date: Fri Feb 17 21:22:19 2017 -0800
tests: Improve port-checking infrastructure.
The test suite unnecessarily failed on systems without netstat because
it was assumed to be present. Instead of simply checking for its
presence and indicating an unsupported test, however, the ss utility
can be used as a drop-in replacement. When netstat/net-tools is not
present, the ss utility from iproute2 still stands a fair chance of
existing, and they also have similar enough semantics that they can be
used interchangeably in the test suite.
The functions in tests/scripts/common.sh that used netstat
(wait_for_port, wait_for_free_port) now use new functions,
check_if_port_in_use and check_if_port_listening, to abstract the call
to netstat/ss. The eval'd variable GETPORT also used netstat, and has
been updated accordingly.
The new port-checking functions use another new function,
have_port_finder, which takes care of the details of selecting ss
(preferred) or netstat, or fails otherwise.
Signed-off-by: Rical Jasan <ricaljasan@pacific.net>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Feb 12 19:48:19 2017 +0200
build: doc: install images also into htmldir
images are required also by the html documentation.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:37:42 2017 +0100
.gitlab-ci.yml: corrected coverage build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 18 07:23:18 2017 +0100
.gitlab-ci.yml: remove submodule update from main build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 17:40:27 2017 +0100
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 17:38:23 2017 +0100
Makefile: improved symbols extraction
That is, do not include non-function names.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:35:41 2017 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:31:02 2017 +0100
tests: ignore sanity checks in broken cert test
This allows the existing reproducers which contain certificates which
are rejected by sanity checks, to still be used to detect regressions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:26:56 2017 +0100
Added gnutls_x509_crt_set_flags()
This functions allows specifying flags to the certificate object.
In particular it allows the single flag GNUTLS_X509_CRT_FLAG_IGNORE_SANITY
which allows to ignore sanity checks at the import of the certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:20:44 2017 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:14:38 2017 +0100
Introduced GNUTLS_E_CERTIFICATE_TIME_ERROR error code
This error code indicates an issue in the time fields of certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 11:49:48 2017 +0100
x509/output: properly indicate error in Time fields
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 11:33:56 2017 +0100
x509/time: refuse importing certificates with invalid Time fields
That will refuse to import certificates which their time field
is not in GMT, or contain fractional seconds.
Resolves: #169
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 11:26:33 2017 +0100
_gnutls_x509_generalTime2gtime: refuse to parse fractional seconds
Fractional seconds in GeneralizedTime are prohibited by RFC5280.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 11:25:15 2017 +0100
tests: enhanced test suite to include invalid X509v3 cert
That certificate contains a GeneralizedTime with fractional
seconds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 15:10:40 2017 +0100
gnutls_x509_crt_list_import: fixed leak on import failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 10:39:21 2017 +0100
tests: enhanced test suite to include creation of invalid certificates
That is, check whether the creation of invalid V2 or V1 certificates
will be detected, and that the correct error codes are returned.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 10:06:58 2017 +0100
gnutls_x509_crt_sign2: refuse to sign invalid X.509 certificates
That is, do not sign X.509 certificates which have fields that
shouldn't be present on their corresponding version.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 10:04:52 2017 +0100
gnutls_x509_crt_import: reject X.509v1 certificates with invalid fields
Refuse to import X.509v1 certificates which have fields that didn't
exist in X.509v1 specification. That is the issuerUniqueID and
subjectUniqueID fields.
Resolves: #168
Resolves: #167
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 17 09:56:24 2017 +0100
tests: enhanced test suite to include invalid V1 certs
That is, added X.509v1 certificates with attributes that shouldn't
have been presented (valid for X.509v2 only).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 15 18:42:22 2017 +0100
gnutls.pc: do not include libidn2 in Requires.private
The libidn2 versions available do not include libidn2.pc,
thus the inclusion was causing problems when using pkg-config.
Instead we include -lidn2 in Libs.private.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 12 11:01:46 2017 +0100
.gitlab-ci.yml: Re-organized stages
The less CPU intensive tasks were moved to earlier stage, and the
CPU intensive tasks are only spawned only after basic syntax and
ABI checks have succeeded.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 12 09:42:15 2017 +0100
gnutls.h: corrected typo [ci skip]
Author: Marcin Cieślak <saper@saper.info>
Date: Thu Feb 9 00:26:16 2017 +0000
<alloca.h> only if HAVE_ALLOCA_H
FreeBSD does know alloca() but has no such header
Signed-off-by: Marcin Cieślak <saper@SAPER.INFO>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 5 11:41:41 2017 +0100
doc: document the intention of the priority string usage [ci skip]
This documents the gnutls_set_default_priority() function, and
how it is intended to be combined with an application that utilizes
priority strings.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 24 15:51:17 2016 +0100
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 28 08:57:16 2016 +0100
tests: modified tests for the disablement of 3DES
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 24 15:50:11 2016 +0100
Removed support for the 3DES cipher by default
That is a legacy cipher that is no longer needed to be
included as backup cipher.
Resolves #120
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 2 22:59:43 2017 +0100
x509: optimize subject alternative name access
That reads SAN and IAN early on import, significantly reducing
the running time of functions which iterate over the alternative
names of a certificate, e.g., gnutls_x509_crt_check_hostname().
Relates #165
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 4 14:28:30 2017 +0100
.travis.yml: list all logs on failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 4 14:01:36 2017 +0100
tests: enable all IDNA tests when compiled with libidn2
Keep IDNA2003-only tests on the ifdef HAVE_LIBIDN.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 4 07:50:03 2017 +0100
.travis.yml: updated instructions for travis builds
Removed unbound and other minor fixes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 3 23:28:01 2017 +0100
extras/hex.h: do not use strlen as variable name
That is, do not utilize a standard C function name as variable name.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 3 23:11:27 2017 +0100
gnutls_pkcs11_obj_list_import_url4: always return an initialized pointer
When returning success, but no elements, gnutls_pkcs11_obj_list_import_url4,
could have returned zero number of elements with a pointer that was uninitialized.
Ensure that an initialized (i.e., null in that case), pointer is always returned.
Reported by Jeremy Harris.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 3 00:08:19 2017 +0100
.gitlab-ci.yml: use libidn2 on windows builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 2 11:26:18 2017 +0100
gnutls_heartbeat_allowed: corrected type on dummy wrapper
That is, when compiling without heartbeat support, compilation
could fail due to the dummy wrapper not returning the right
type.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 2 08:27:14 2017 +0100
Address test suite failure due to timezone differences.
Reported by Thorsten Glaser and Andreas Metzler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 31 17:06:16 2017 +0100
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 31 07:38:50 2017 +0100
gnutls_heartbeat_allowed: corrected return type
This reflects better the fact that this function returns
a boolean.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 28 09:26:05 2017 +0100
_idn2_to_unicode_8z8z: do not err on mixed IDNA domains
That is allow domains of the form 'großes.xn--fa-hia.de'. The
drawback is that we may not err early on invalid formatted
names. We however delegate any such decisions to libidn2.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 27 10:07:28 2017 +0100
README.md: added link to travis build for 3.5.x [ci skip]
In addition to adding a link to travis build for 3.5.x branch removed
link on 3.4.x branch. It is no longer active.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 26 14:49:33 2017 +0100
heartbeat extension: doc update
Document how to calculate the total TLS data transmitted.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 26 13:21:39 2017 +0100
str-idna: improved error handling
In addition to detecting input with invalid characters in _idn2_to_unicode_8z8z(),
we also add support for case insensitive punycode header.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 25 15:45:57 2017 +0100
Updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 25 03:35:54 2017 +0100
str-idna: cleanups in IDNA handling
Ensure safe operation even with broken libidn2, and make
sure that we properly allocate memory to caller, even on complex
library configuration.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 14:13:21 2017 +0100
fuzz: added run-afl helper script
This script which allows running the fuzzying tests
locally using american fuzzy lop.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 13:50:59 2017 +0100
fuzz: Added IDNA encoding/decoding fuzzying units
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 13:43:54 2017 +0100
Move IDNA functionality to str-idna.c from str-unicode.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 08:57:52 2017 +0100
tests: use the exported API for IDNA testing
In addition group together the tests which require libidn2 >= 0.14.
This allows the tests to succeed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 08:55:06 2017 +0100
tools: depend on gnutls_idna_map() instead of using directly libidn/libidn2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 08:50:54 2017 +0100
Exported gnutls_idna_map() and gnutls_idna_reverse_map()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 07:56:12 2017 +0100
.gitlab-ci.yml: added run with IDNA2003
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 18:59:51 2017 +0100
tests: simplified str-idna
This separates the directions that are tested (utf-8 -> punycode
and vice versa).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 07:52:23 2017 +0100
configure: added flag to force IDNA2003
That allows to compile with libidn even if libidn2 is present, and
can be used to check IDNA2003 support.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 21 23:14:46 2017 +0100
Add support for libidn2 (IDNA 2008 + TR46)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 25 08:55:40 2017 +0100
pkcs7 decryption: addressed memory leak in PBES1-DES-CBC-MD5 handling
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 25 09:46:00 2017 +0100
minitasn1: updated to libtasn1 4.10
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 25 03:24:34 2017 +0100
configure: do not disable valgrind tests unless explicitly specified
... or unless we are in release build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 24 16:28:41 2017 +0100
Makefile.am: increased the number of releases to perform ABI checks with
That is added 3.4.0, 3.4.17 and 3.5.8.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 20 16:55:26 2017 +0100
tests: verify that a written certificate will inherit its ID from privkey
That is, whether p11tool will do the right thing and figure the proper
ID to use for a certificate object, if the public key is available.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 20 16:33:03 2017 +0100
p11tool: re-use ID from corresponding objects when writing certificates
That is when writing a certificate which has a corresponding public key,
or private key in the token, ensure that we use the same ID for the
objects. That eases the work of someone writing objects to certificates,
and does not require him to manually detect the object IDs.
Resolves #160
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Jan 20 19:18:09 2017 +0200
.gitlab-ci.yml: add Fedora/x86_64/no-tools
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Jan 20 23:12:36 2017 +0200
valgrind: support separate builddir for suppressions.valgrind
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Jan 20 21:14:22 2017 +0200
configure: remove void statement
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Jan 20 23:39:41 2017 +0200
tests: skip tests that requires tools if tools are disabled
building with --disable-tools should not cause test failure.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 22 00:59:41 2017 +0100
doc: improved documentation on DH parameters [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 20 14:36:51 2017 +0100
Revert "tests: suite: pkcs11: skip if no softhsm"
This reverts commit 276a6ee44d80d4d3b144a78794020c177be8f0ea.
The reason is to avoid having changes in softhsm packaging, result
to skipping large parts of the test suite without someone noticing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 19 09:28:08 2017 +0100
_decode_pkcs8_dsa_key: ensure that the P value is non-zero
When decoding a DSA private key, and constructing the public key
ensure that P is non-zero, and thus can be used as modulus.
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=393
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 19 09:24:19 2017 +0100
tests: added private key causing FPE
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=393
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 19 09:20:28 2017 +0100
_gnutls_decrypt_pbes1_des_md5_data: ensure that encrypted data size is a multiple of blocksize
That prevents incorrect data reaching nettle which has only
assertion checks (leading to an abort).
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=389
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 19 09:14:29 2017 +0100
tests: added PKCS#8 key which causes undefined behavior on import
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=389
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 19 09:08:49 2017 +0100
tests: added certificate which reproduces a leak in gnutls_x509_ext_import_aia
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=385
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 19 09:08:04 2017 +0100
x509: eliminated memory leak on gnutls_x509_ext_import_aia
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=385
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 17 15:08:29 2017 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 18 13:51:32 2017 +0100
tests: added check which ensures a client cannot receive during handshake
Relates #158
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 18 09:51:35 2017 +0100
tests: added check which ensures a client cannot transmit during handshake
Relates #158
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 17 15:28:05 2017 +0100
tests: cleanup error reporting in handshake-false-start
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 18 13:47:02 2017 +0100
Refuse to receive data during handshake
This prevents buggy applications from receiving non-authenticated data
that may have arrived during the handshake.
Relates #158
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 17 15:05:35 2017 +0100
Refuse to send data during handshake
That prevents buggy applications from transmitting sensitive data during
handshake.
Resolves #158
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 15 10:40:02 2017 +0100
Disable AVX support when it is not supported by the CPU
This mostly affects virtual systems. Reported by Frank Chen.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 17 13:34:33 2017 +0100
opencdk: improved error code checking in the stream reading functions
This amends 49be4f7b82eba2363bb8d4090950dad976a77a3a
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 16 17:09:36 2017 +0100
minitasn1: updated to latest git version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 16 13:01:56 2017 +0100
doc: removed references to OpenPGP functions and enumerations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 15 11:11:19 2017 +0100
doc: removed documentation related to OpenPGP and guile
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 6 08:26:17 2017 +0100
doc: removed documentation related to OpenPGP
Also added section explaining why OpenPGP is being deprecated.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 6 08:14:09 2017 +0100
openpgp.h: all openpgp functionality was marked as deprecated
This is to prevent new applications using that functionality.
As the OpenPGP certificate for HTTPS (or TLS in general) never got
any traction, GnuTLS is the only implementation supporting it,
and the quality of the OpenPGP supporting code is questionable,
we deprecate that code with the intention to drop it completely
when an opportunity is given.
Relates #102
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 9 08:36:02 2017 +0100
tests: added missing file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 9 08:18:33 2017 +0100
CONTRIBUTING.md: Improve instructions on git-template [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jan 5 10:35:29 2017 +0200
tests: remove bash usage
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jan 5 14:01:30 2017 +0200
tests: suite: chain: support separate builddir
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jan 5 10:34:07 2017 +0200
tests: skip tests that requires tools if tools are disabled
building with --disable-tools should not cause test failure.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Jan 3 16:46:46 2017 +0200
gitignore: update [ci skip]
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Jan 3 16:45:19 2017 +0200
gitignore: sort()
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 15:22:13 2017 +0100
opencdk: added error checking in the stream reading functions
This addresses an out of memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=337
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 15:03:12 2017 +0100
tests: added test case with invalid openpgp cert
This triggers an out of memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=337
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 14:56:50 2017 +0100
opencdk: cdk_pk_get_keyid: fix stack overflow
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=340
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 14:48:38 2017 +0100
tests: added test case with invalid openpgp cert
This triggers a memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=340
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 14:47:11 2017 +0100
tests: added test case with invalid openpgp cert
This triggers a memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=346
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 14:42:03 2017 +0100
opencdk: read_attribute: added more precise checks when reading stream
That addresses heap read overflows found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=338
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=346
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 14:34:05 2017 +0100
tests: added test case with invalid openpgp cert
This triggers a memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=338
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 14:31:26 2017 +0100
tests: openpgp-cert-parser: simplified
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:46:26 2017 +0100
auth rsa: eliminated memory leak on pkcs-1 formatting attack path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:42:25 2017 +0100
tests: added reproducer for server issues
This allows to reproduce issues found on server side, by adding
a transcript in server-interesting. Currently it contains values
found using oss-fuzz.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:32:17 2017 +0100
_decode_pkcs8_dsa_key: fixed memory leak on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:28:23 2017 +0100
decode_private_key_info: eliminate memory leaks on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:26:07 2017 +0100
_gnutls_x509_read_dsa_params: update params structure parameters size on successful read
That will allow proper deinitialization of the parameters even if
the structure fill up doesn't succeed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:18:03 2017 +0100
tests: added test with private key that causes memory leak
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=371
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:10:54 2017 +0100
_gnutls_pkcs12_string_to_key: avoid division by zero when salt_size = 0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 4 09:07:10 2017 +0100
tests: added test with PKCS#8 key that signals FPE
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=376
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sat Dec 31 05:07:47 2016 +0200
tests: skip tests that requires tools if tools are disabled
building with --disable-tools should not cause test failure.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Jan 3 14:56:05 2017 +0200
tests: cert-tests: pkcs12 drop builddir usage
sync with other tests
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Jan 3 14:40:36 2017 +0200
tests: suite: pkcs11: skip if no softhsm
similar to other tests
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 16:10:07 2017 +0100
gnutls_x509_ext_import_policies: fixed memory leak on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 15:53:27 2017 +0100
tests: added test case with invalid X.509 cert
This triggers a memory leak. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=294
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 15:49:37 2017 +0100
x509 output: fixed memory leak in AIA extension printing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 15:46:41 2017 +0100
tests: added test case with invalid X.509 cert
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=300
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 15:00:59 2017 +0100
doc: document how to enhance the testsuite with issues found
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 14:37:18 2017 +0100
status_request: eliminated leak on error path
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=269
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 13:49:18 2017 +0100
proc_server_kx: eliminated leak on error path
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=272
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 14:49:03 2017 +0100
tests: added reproducer for client issues
This allows to reproduce issues found on client handling, by adding
a transcript in client-interesting. Currently it contains values
found using oss-fuzz.
The client3.disabled transcript is disabled because it depends
on a fix in nettle.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 13:39:43 2017 +0100
tests: do not run key-tests under leak sanitizer
The reason is that we cannot distinguish between a memory leak on
application failure (which is followed by exit- thus should be ignored)
and an address sanitizer issue (which should never be ignored).
As such we disable leak detection with asan and rely on valgrind.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 13:20:16 2017 +0100
tests: illegal-rsa: don't hide stderr
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 10:47:24 2017 +0100
tests: added suite for checking PKCS#7 structure import
The initial (problematic) structures have been obtained from oss-fuzz
project.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 3 11:39:13 2017 +0100
fuzz: added basic Makefile to assist in reproducing [ci skip]
Also updated README.md
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 17:24:41 2017 +0100
Simplified contribution policy [ci skip]
Also added a template to assist in the required steps to contribute.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 17:05:29 2017 +0100
_gnutls_x509_get_signature: fix memory leak on error path
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 17:04:29 2017 +0100
tests: added test case with invalid X.509 certificate
This certificate causes a memory leak while printing.
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=280
Relates #156
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 15:07:48 2017 +0100
valgrind: use different exit code to signify error
This allows the test suite to differentiate between valgrind and expected
errors from tools.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 15:01:26 2017 +0100
tests: cert-tests: force asan to return an error code other than one on failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 15:00:24 2017 +0100
gnutls_pkcs8_info: addressed memory leak on error path
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 14:55:14 2017 +0100
certtool: pkcs8_info_int: fix memory leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 13:44:46 2017 +0100
wrap_nettle_mpi_modm: bail on a modulus that is zero
Relates #156
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 13:32:41 2017 +0100
tests: added test for invalid private keys
Also force asan to return an error code other than one (the normally
expected for invalid keys).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 12:02:53 2017 +0100
x509: address leak in print_altname - cert printing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 12:03:35 2017 +0100
tests: added certificate to reproduce memory leak
Found by oss-fuzz project:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=299
Relates #156
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 11:05:21 2017 +0100
tests: added test case with invalid PKCS#8 data
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=363
Relates #156
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 11:20:45 2017 +0100
nettle: added a safety net on wrap_nettle_cipher_setiv()
Return error if attempting to set invalid IV size.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 11:51:10 2017 +0100
pkcs7 decrypt: require a valid IV size on all ciphers
That is, do not accept the IV size present in the structure as valid
without checking.
Relates #156
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 13:26:29 2017 +0100
fuzz: added a PBES1 PKCS#8 private key file into corpus
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 13:23:01 2017 +0100
pkcs8: pkcs8_key_info() will correctly detect non-encrypted files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 13:19:49 2017 +0100
certtool: don't print PKCS#8 information when outputting DER data
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Sun Jan 1 09:15:09 2017 -0500
Corrected a leak in OpenPGP sub-packet parsing.
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 10:13:48 2017 +0100
doc: fixed copyright date in gnutls.texi
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 2 08:43:47 2017 +0100
gnutls_rnd: document the available values of level [ci skip]
This enables using the function by only checking the man page.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 16:45:19 2016 +0100
pkcs11 verification: ensure that an issuer we retrieve is not blacklist
It may happen in p11-kit trust module that a trusted certificate is
both in the trusted set, and the blacklisted set. To avoid accepting
a certificate when in both sets, we always check whether a trusted
issuer certificate is in the blacklisted set.
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Fri Dec 30 21:17:22 2016 -0500
Attempt to fix a leak in OpenPGP cert parsing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 14:57:57 2016 +0100
tests: enable all the ciphersuite in openssl cli for DSS checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 11:48:44 2016 +0100
certtool: improved error reporting on file error
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 13:27:10 2016 +0100
tests: don't check against 3DES if disabled in openssl
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 13:25:23 2016 +0100
tests: do not pass the -dhparams to openssl 1.1.0; it doesn't work
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 12:14:44 2016 +0100
tests: simplified DH params format
Also switch to RFC7919 DH params.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 12:13:20 2016 +0100
tests: corrected type in openssl compat tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 12:12:33 2016 +0100
tests: added common variable for DH parameters
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 28 10:36:37 2016 +0100
tests: fixed paths in compat tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 28 09:04:59 2016 +0100
tests: better termination checking in compat tests
This ensures that the exit code of all spawned processes is
checked.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 31 10:12:34 2016 +0100
cfg.mk: exclude devel/ subdirectory from syntax checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 30 15:50:45 2016 +0100
certtool: properly report unencrypted PKCS#8 keys in --p8-info
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 30 15:41:53 2016 +0100
fuzz: added decrypted PKCS#8 keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 30 15:23:17 2016 +0100
fuzz: added PKCS#8 keys with low iteration count
This makes sure that the fuzzer will not timeout while
trying to decode keys.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 28 11:01:37 2016 +0100
submodules: use the github mirror of openssl
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Mon Dec 26 13:15:25 2016 -0500
Do not infinite loop if an EOF occurs while skipping a PGP packet
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Tue Dec 27 09:45:31 2016 -0500
Added a fuzzer for OpenPGP cert parsing
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 28 09:59:34 2016 +0100
fuzz: document the convention for initial values
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 28 09:58:20 2016 +0100
fuzz: Added initial values for DN, PKCS8 and X.509 tests
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Mon Dec 26 15:59:03 2016 +0000
Added a parser for PKCS7 importing and printing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 08:38:41 2016 +0100
fuzz: added X.509 DN parser
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 08:35:45 2016 +0100
fuzz: added PKCS#8 private key parser
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 21 08:18:24 2016 +0100
configure: introduced --with-priority-string option
This allows specifying the priority string to be used with
gnutls_set_default_priority() on configure time.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 21:35:53 2016 +0100
priorities: reset the profile flags when appending new flags
That is, to avoid causing issues to applications calling gnutls_*priority_set()
multiple times with different parameters. In that case if multiple profiles are
used the outcome could be undefined. Now, the last call will prevail.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 21:39:02 2016 +0100
gnutls_session_set_verify_cert: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 21:26:09 2016 +0100
Revert "priorities: set the additional verify flags instead of appending them"
This reverts commit aaf49747f981f6c17cdc9ea7495a8948a5015ae2.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 21:19:05 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 19:01:31 2016 +0100
tests: added check for certtool loading CA certificates from PKCS#11
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 15:52:49 2016 +0100
certtool: document that --load-ca-certificate can be used with PKCS#11 URLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 15:44:20 2016 +0100
certtool: load_ca_cert() can load a CA from URLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 11:36:13 2016 +0100
certtool: unified the CA certificate loading process
That is, combined how CA certificates are loaded for --verify-chain,
--verify and --p7-verify. It is based on the trust list high level
functions, something that allows PKCS#11 URLs to be specified in
--load-ca-certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 16:15:50 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 16:21:30 2016 +0100
.gitlab-ci.yml: changed buildroot to fedora25
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 11:01:10 2016 +0100
tests: added check for multiple calls to gnutls_priority_set_direct()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 10:49:34 2016 +0100
priorities: set the additional verify flags instead of appending them
That is, to avoid causing issues to applications calling gnutls_*priority_set()
multiple times with different parameters. In that case if multiple profiles are
used the combo could be undefined.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 19 10:36:01 2016 +0100
verify: print certificate on sec param failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 15 15:08:31 2016 +0100
x509: corrected leak in certificate printing
The leak could be triggered if the certificate policies to be imported are
invalid.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 15 15:02:18 2016 +0100
gnutls_x509_ext_import_proxy: fix issue reading the policy language
If the language was set but the policy wasn't, that could lead to
a double free, as the value returned to the user was freed.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 15 14:50:36 2016 +0100
tests: added certificate which was causing issues in gnutls_x509_crt_print()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 15 14:47:13 2016 +0100
tests: improved certder to easily load certificates from a directory
That allows to place certificates in certs-interesting/ and these
will be loaded and checked upon the new "cert" test case.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 15 14:06:06 2016 +0100
doc update
Author: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Wed Dec 14 17:42:45 2016 +0200
Do not add cli-args.h to cli-args.stamp Makefile target
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Thu Dec 15 08:08:45 2016 -0500
Describe the integration
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Thu Dec 15 07:27:47 2016 -0500
Move to the devel dir
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Tue Dec 13 20:14:33 2016 -0500
Added a server fuzzer
Author: Alex Gaynor <alex.gaynor@gmail.com>
Date: Mon Dec 12 08:09:49 2016 -0500
Migrated fuzzers from the oss-repo to here.
Also added a new private_key_parser fuzzer.
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 18:07:05 2016 +0300
Drop _gnutls_epoch_get_compression
This function is unused since long ago, let's drop it.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 17:51:56 2016 +0300
Rework setting next compression method
Only update compression method if all internal check succeed and next
epoch will use this it. Also while we are at at, actually check for
_gnutls_set_compression() return value.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 17:51:56 2016 +0300
Rework setting next cipher suite
Only update cipher_suite if all internal check succeed and next epoch
will use this ciphe suite. Also while we are at at, actually check for
_gnutls_set_cipher_suite() return value.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Mon Nov 28 13:16:13 2016 +0300
Cache MAC algorithm used for PRF function
Instead of spreading checks all over the GnuTLS, cache used PRF after
setting the cipher suite and reference the value later. Like in
_gnutls_PRF_raw the GNUTLS_MAC_MD5_SHA1 means MD5+SHA1 combo.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 04:11:11 2016 +0300
Use MAC_MD5_SHA1 instead of MAC_UNKNOWN to specify TLS 1.0 PRF
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 03:52:06 2016 +0300
Rewrite SSL/TLS signature verification to use combined MD5+SHA1 digest
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 03:52:06 2016 +0300
Rewrite SSL/TLS signing code to use combined MD5+SHA1 digest
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 03:15:49 2016 +0300
Add special MD5+SHA1 digest to simplify TLS signature code
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 14 10:52:27 2016 +0100
_gnutls_pkcs_raw_decrypt_data: merge all errors during decryption to GNUTLS_E_DECRYPTION_FAILED
This makes the function's return values simpler to handle.
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed Dec 14 00:46:16 2016 +0300
configure.ac: remove autogen'erated files only if necessary
Currently autogen'erated files will be removed on each call to
configure. However this would break the build if one of previous
make invocations have created corresponding stamp files.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 14 09:50:24 2016 +0100
bumped versions and added news entry for 3.6.0 [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 14 09:46:18 2016 +0100
README.md: added information on the 3.5.x builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 13 11:41:12 2016 +0100
tests: added test for PKCS#8 encrypted key decoding
This also verifies that the return value when attempting to
decrypt without a password is GNUTLS_E_DECRYPTION_FAILED.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 13 11:27:38 2016 +0100
pkcs8: ensure that the correct error code is returned on decryption failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 10 13:15:16 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 15:44:47 2016 +0100
doc: updated to documentation of certtool [ci skip]
This corrects options which incorrectly mentioned they support URLs.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 11:54:30 2016 +0100
x509: better documented gnutls_trust_list_flags_t
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 15:06:55 2016 +0100
tests: disable ASAN leak checks on suite tests
These detect memory leaks in the tools in src/ which are
not critical nor there is serious reason to address.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 12:03:33 2016 +0100
tests: disable ASAN leak checks on certificate tests
These detect memory leaks in the tools in src/ which are
not critical nor there is serious reason to address.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 09:54:14 2016 +0100
tests: enhanced long-session-id test
This ensures that no leaks exist during exit (to avoid asan failures),
and that we test for the specific error code that gnutls_handshake()
is expected to return.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 09:52:20 2016 +0100
handshake: return GNUTLS_E_ILLEGAL_PARAMETER on invalid ID size
This is a more sensible error code to return on invalid packet.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 9 09:15:59 2016 +0100
tests: eliminate compilation warning in crq-basic [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 15:41:40 2016 +0100
.gitlab-ci.yml: do not enable IDN support in minimal build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 2 14:57:41 2016 +0100
configure.ac: use AC_CONFIG_LINKS to copy autogenerated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 2 09:22:38 2016 +0100
Added autogen pre-generated files into repository
This allows building gnutls from git in systems without using
autogen.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 14:28:46 2016 +0100
configure: added option to enable maintainer mode
That makes normal builds, not regenerate Makefiles or configure,
allowing for faster CI builds on second stage.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 15 09:03:59 2016 +0100
.gitlab-ci.yml: split the CI run into stages
In addition avoid re-generating images for operating systems
on every build and use pre-built images, which are generated in
the gnutls-build-images sub-project. That allows for faster and
more reliable (independent of network) CI runs.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 21:40:14 2016 +0100
.gitlab-ci.yml: use local libopts on x86
This works around autogen failures on x86-64 centos7 CI hosts.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 16:35:24 2016 +0100
doc: updated documentation on multithreading [ci skip]
Resolves #154
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 16:27:36 2016 +0100
doc: list gnutls_init_flags_t [ci skip]
Suggested by Tyler Burns.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 15:54:07 2016 +0100
tests: make conditional (to HAVE_LIBIDN) any IDN related checks
This allows the test suite to successfully complete even when compiled
without libidn.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 15:44:28 2016 +0100
str: do not call gnutls_assert in inline function
This allows the build to succeed when compiled without libidn.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 13:09:35 2016 +0100
tests: disable leak checks in rsa-md5-collision.sh
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 14:04:07 2016 +0100
tests: split and enhanced UTF-8 name checks from hostname-check
That is, added checks to ensure that non-ASCII DNS names in certificates
fail, and that properly encoded IDNA2003 names, succeed.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 13:54:53 2016 +0100
tests: added check with failed verification on invalid UTF-8
That is, check whether raw UTF-8 in the certificate will fail
verification. Raw UTF-8 is prohibited by IETF PKIX (RFC5280) on a
certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 13:40:41 2016 +0100
tests: updated cert with UTF8 names to contain proper IDNA2003 encoded names
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 13:28:00 2016 +0100
gnutls_x509_crt_check_email type changed to unsigned
This reflects the documented returned value type (bool), and
allows the compiler to warn on accidental checks for negative
value.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 13:20:05 2016 +0100
x509: do not attempt to ACE encode values stored in certificates
The email and hostname values are required to be in ASCII form by PKIX.
We instead ignore these names, if their values are outside the ASCII
printable character set.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 08:08:28 2016 +0100
.gitlab-ci.yml: removed libintl references
They are no longer shipped in the build systems.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 07:32:18 2016 +0100
tests: added missing test in dist
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 07:23:18 2016 +0100
tests: corrected typos in starttls.sh
This allows to detect chat in most systems.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 8 07:17:34 2016 +0100
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 15:43:21 2016 +0100
tests: reduced the intermediate steps in rsa-md5-collision
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 13:24:34 2016 +0100
configure: break after finding the first libtspi
It may happen that multiple versions are available on a system,
and by using the first one we ensure, that we are using the
64-bit version on 64-bit system, instead of falling back to
the 32-bit.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 13:20:08 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 10:56:30 2016 +0100
tests: added operational -sign/verify- tests in keygen app
This will check that a generated key is immediately usable for
operations.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 10:27:01 2016 +0100
gnutls_x509_privkey_cpy: use _gnutls_pk_params_copy
This ensures that all fields of parameters are copied. Inspired
by patch of Dmitry Eremin-Solenikov.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 10:30:13 2016 +0100
tests: enhanced keygen to include check of gnutls_x509_privkey_cpy
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 08:58:30 2016 +0100
tests: added tests for CRL generation APIs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 09:05:01 2016 +0100
x509 crl: document the nextUpdate field limitation
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Tue Dec 6 22:41:28 2016 +0300
Don't trash DER CRQ output with text data
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 7 08:59:03 2016 +0100
x509 crl: Allow generation of CRLs not to specify a nextUpdate
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 6 20:03:31 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 6 13:07:57 2016 +0100
tests: updated overhead calculation for new code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 11:57:56 2016 +0100
DTLS: more precise overhead calculation
That takes into account space available due to padding, and
allows it to be included for use in the gnutls_get_data_mtu().
Resolves #140
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 09:54:45 2016 +0100
tests: added check for MTU calculation on DTLS 1.2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 5 10:36:04 2016 +0100
src: clean all stamp files on 'make clean'
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 5 10:33:07 2016 +0100
configure: search 64-bit paths for libtspi before 32-bit paths
That is, because 64-bit systems may have both 64-bit and 32-bit paths
while 32-bit systems only the latter.
Author: James Bottomley <James.Bottomley@HansenPartnership.com>
Date: Sat Dec 3 14:36:40 2016 -0800
tpm: fix handling of keys requiring authorization
There are several problems with the key handling in the tpm code.
The first, and most serious, is that we should make sure we understand
the authorization requirements of a key *before* using it. The reason
for this is that the TPM has a dictionary attack defence and is
programmed to lock up after a certain number of authorization failures
(which can be very small). If we try first without authorization, we
may lock up the TPM. The fix for this is to check whether
authorization is required and supply it before using the key.
Secondly, if the key does require authorization but no password is
supplied we should return immediately, since we know the TPM will give
us an authorization error anyway.
Thirdly, we should unconditionally read the policy of the key rather
than checking if a policy exists: Policies are tied to key objects, so
if there is an old policy in s->tpm_key_policy, but we're creating a
new key, the key it belonged to will be closed, meaning the policy
will be invalid. Fix this by always setting the policy each time we
get a new key object.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 4 09:56:13 2016 +0100
In import_tpm_key_cb() fix the wrong password loop
When calling import_tpm_key() once it initializes the key, but
a second call fails due to the key being already initialized. Ensure
that failure of import_tpm_key() leaves the key on a clear state.
Reported by James Bottomley <James.Bottomley@HansenPartnership.com>.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 4 18:48:55 2016 +0100
src gl: updated
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 2 15:59:17 2016 +0100
gl: removed iconv module
It is no longer used by the library.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 4 10:11:19 2016 +0100
configure.ac: detect trousers library on debian
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Dec 3 14:29:51 2016 +0100
Prevent unwanted linkage to -lhogweed
Specify action-if-found for AC_CHECK_LIB when checking for !SuiteB
curves to keep autoconf from adding -lhogweed to LIBS. This caused
linkage of e.g. openssl wrapper and C++ library to -lhogweed. The issue
only shows up if --disable-libdane is specified, since the dane autoconf
test resets LIBS.
Author: James Bottomley <James.Bottomley@HansenPartnership.com>
Date: Fri Dec 2 15:28:08 2016 -0800
Fix inability to find libtspi (trousers) on openSUSE
For distro reasons, the path on openSUSE is /lib[64]/libtspi.so.1
which the current code doesn't find. Fix this by having it search all
viable system library locations (/lib /lib64 /usr/lib and
/usr/lib/lib64)
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 2 16:27:58 2016 +0100
x509: fixed output of pubkey
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 16:41:55 2016 +0100
doc: document the fact that certificates and CRLs are unusable after generation
They must be exported and re-imported if intended to be used for
signing or verification.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 16:32:04 2016 +0100
doc: no longer list SHA1 as a safe choice in X.509 signing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 16:19:31 2016 +0100
certtool: prevent-null termination of buffers allocated with fread_file()
We do not know whether their allocated size allows for that additional
null, and we do not need the null termination.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 08:40:13 2016 +0100
gnutls_x509_crl_verify: always return zero on success
Also document that in previous versions a positive number could
be returned on success. Reported by Adrien Beraud.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 14:09:15 2016 +0100
tests: corrected space-tab issue
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 10:04:45 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 09:55:51 2016 +0100
Improved messages and violation handling in signature key usage checks
This will now tolerate violations in server certificate, if
%DEBUG_ALLOW_KEY_USAGE_VIOLATIONS is set.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 09:48:56 2016 +0100
Removed redundant certificate key usage checks.
There were redundant checks when a certificate was obtained, as
well as prior to performing operations with certificates/pubkeys.
Kept the checks prior to operations.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 09:45:26 2016 +0100
_gnutls_map_pk_get_pk -> _gnutls_map_kx_get_pk
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 14:18:51 2016 +0100
gnutls_kx_get: allow calling the function during handshake
Previous this function would return garbage during handshake, because
parameters were not considered established, however there are valid
uses of this function during it. For that reason this function is
modified to return a correct value even during handshake (after
a hello is being exchanged).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 14:14:42 2016 +0100
_gnutls_check_key_usage: check for invalid key exchange algorithm
Reported by Dmitry Eremin-Solenikov.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 14:56:41 2016 +0100
tests: added checks on signature key usage violations
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 1 09:10:41 2016 +0100
.gitlab-ci.yml: added docker tag on mingw builds
That ensures that these builds are done on the gitlab.com runners
which run as privileged containers (and thus have access to mount).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 09:20:26 2016 +0100
privkey: set the key parameters algorithm prior to returning success
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 09:15:06 2016 +0100
When decoding a public key ensure that algorithm is written in the params struct
Reported by Dmitry Eremin-Solenikov.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 08:54:09 2016 +0100
cfg.mk: disable checks for public submodule updates in CI
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 30 08:44:40 2016 +0100
.gitlab-ci.yml: do not require update to /proc/sys/fs/binfmt_misc to succeed
In some CI systems, it is not possible to write to this filesystem, and
they already have the wine executable registered. In the case we cannot
write proceed to running the check and hope for the best.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 29 16:00:30 2016 +0100
tests: use datefudge in rsa-md5-collision check
This makes sure that any failure detected is not because of
expired certificates, but because of MD5 being disabled.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 29 15:51:18 2016 +0100
tools: use stamp files to allow parallel build of autogen files
Autogen seems to output on the creates files gradually, something that
makes 'make' believe that the command is complete prior to the output
file being fully populated. The current approach uses stamp files to
ensure that no incomplete files are used for compilation.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 29 13:44:01 2016 +0100
guile: do not use +COMP-DEFLATE in priorities test
This allows the test to work even in the cases where gnutls
is compiled without zlib support.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 28 18:19:43 2016 +0100
moved all syntax check exceptions in cfg.mk
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 29 07:57:26 2016 +0100
.gitlab-ci.yml: added zlib dependency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 28 12:48:25 2016 +0100
.gitlab-ci.yml: fixed artifacts paths for Debian build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 28 10:26:14 2016 +0100
tests: str-unicode: check whether exceptions are tolerated on decryption
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 28 10:01:02 2016 +0100
tests: added exception and join control characters in str-unicode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 28 09:38:38 2016 +0100
unistring: added property-join-control
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 17:49:10 2016 +0100
unistring: added default_ignorable_code_point and not_a_character tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 17:23:51 2016 +0100
unistring: added NFKC normalization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 15:29:43 2016 +0100
unistring: included all possible categories for simplicity and extensibility
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 14:55:37 2016 +0100
tests: enhanced str-unicode with more char sets
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 14:20:11 2016 +0100
gnutls_utf8_password_normalize: perform more strict check on input characters
That is, ensure that the input characters are in the valid class of characters
for the PRECIS FreeformClass.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 13:11:44 2016 +0100
tests: fixed str-unicode tests with control characters
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 13:02:48 2016 +0100
gnutls_utf8_password_normalize: avoid use of strlen()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 28 11:03:28 2016 +0100
tests: added pkcs12 file with long password
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 16:09:20 2016 +0100
renamed system/iconv.c -> str-iconv.c
We no longer use the system's functionality for converting between
charsets (we use libunistring), hence it is no longer suitable for
the wrappers to stay in system/.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 11:58:14 2016 +0100
x509: when printing ACE DNSnames ensure the actual name is also printed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 11:47:53 2016 +0100
tests: added unit tests of of _gnutls_idna_reverse_map
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 11:34:19 2016 +0100
introduced _gnutls_idna_reverse_map()
This function allows mapping ACE formatted domains to UTF-8.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 10:05:28 2016 +0100
Combined checks for printable characters
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 09:58:58 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 08:44:59 2016 +0100
tests: updated crt_apis to include setting UTF-8 SAN
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 08:17:13 2016 +0100
tests: updated crq_apis to include setting UTF-8 SAN
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 09:48:56 2016 +0100
gnutls_idna_map: check for printable data prior to mapping
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 10:53:23 2016 +0100
gnutls_x509_aia_set: IDNA encode when needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 16 14:48:59 2016 +0100
When writing alternative names to certificates ensure we write in ACE format
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 10:39:10 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 16:30:49 2016 +0100
tests: added pkcs7 verification with struct generated from openssl (with keyid)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 15:44:35 2016 +0100
tests: added pkcs7 verification with struct generated from openssl
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 25 10:23:00 2016 +0100
doc: added certificate for ECC with any purpose
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 16:40:15 2016 +0100
pkcs7: return GNUTLS_E_PK_SIG_VERIFY_FAILED on hash mismatch
In addition introduce a new error code to warn about no embedded data.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 16:33:18 2016 +0100
pkcs7: only print signer's issuer DN when DN has contents
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 14:51:15 2016 +0100
pkcs7: added recursive discovery of structure's signer
This uses the PKCS#7 certificate list as a pool of certificates
to generate a certificate chain that leads to our root CAs.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 15:11:31 2016 +0100
pkcs7: on data verification failure log the signer
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 13:17:41 2016 +0100
tests: added complex verification example using PKCS#7
That uses multiple intermediate certificates from the PKCS#7 structure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 14:32:28 2016 +0100
doc: updated gnutls_x509_trust_list_verify_crt2()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 13:14:16 2016 +0100
pkcs7: pass the verification flags down to gnutls_x509_trust_list_verify_crt2, in find_signer()
This allows for flags like GNUTLS_VERIFY_DISABLE_TIME_CHECKS to apply when
verifying PKCS#7 structures.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 09:54:17 2016 +0100
pkcs7: corrected iteration over stored certificates
This allows to use all possibly stored certificates on chain discovery,
not only the first.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 09:53:58 2016 +0100
pkcs7: added debug logging on verification discovery
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 14:54:46 2016 +0100
errors.h: added _gnutls_reason_log
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 09:49:13 2016 +0100
errors.h: added _gnutls_cert_log
This log function allows to easily log the name of a certificate.
Author: Andreas Schneider <asn@samba.org>
Date: Thu Nov 24 17:31:45 2016 +0100
certtool: One if check is enough
Signed-off-by: Andreas Schneider <asn@samba.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 24 08:37:47 2016 +0100
corrected log message [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 21:09:03 2016 +0100
gnutls_idna_map was prefixed with underscore to avoid clashes with exported symbols
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 14:37:47 2016 +0100
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 14:30:48 2016 +0100
avoid the use of c_isascii() and use c_isprint()
That latter detects correctly the printable characters we are
interested in.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 15:45:22 2016 +0100
tests: added unit tests for gnutls_idna_map()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 23 13:12:08 2016 +0100
IDNA code re-organization
That introduces the internal function gnutls_idna_map(), which
utilizes libidn and libunistring to convert hostnames to IDNA ACE
form.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 16:57:01 2016 +0100
tests: updated outputs to reflect new fingerprint/keyid formats
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 16:56:41 2016 +0100
tests: made tmp files unique
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 16:43:25 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 16:42:14 2016 +0100
Align the printing of a certificate's fingerprint with the key ID printing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 16:35:58 2016 +0100
Print a key's or certificate's key ID with SHA256 in addition to SHA1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 16:18:01 2016 +0100
certtool: address compiler warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 22 09:31:19 2016 +0100
doc: document the RFC7613 normalization of passwords [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 21:16:28 2016 +0100
unistring: include only the required categories
In addition fix the license text of the included library.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 16 15:50:39 2016 +0100
server_name: log server name sent
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 16 16:47:15 2016 +0100
x509/output: improve log message on embedded null
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 12:00:28 2016 +0100
build-aux: added unused-parameter.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 11:36:43 2016 +0100
.gitlab-ci.yml: explicitly specify --with-included-unistring when needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 11:32:09 2016 +0100
hooks.m4: corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 10:52:23 2016 +0100
.gitlab-ci.yml: ignore syntax-check issues caused by included unistring
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 10:11:32 2016 +0100
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 09:38:38 2016 +0100
unconditionally include unistring code
That simplifies internationalization support, at the cost of
including a version of libunistring, which is used on systems
which do not ship it.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 21 09:20:36 2016 +0100
lib: added unistring sub-library
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 20 17:11:57 2016 +0100
updated auto-generated files for gnutls_utf8_password_normalize()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 20 17:08:55 2016 +0100
tests: enhanced str-unicode with GNUTLS_UTF8_IGNORE_ERRS flag
That is, enhanced to check the tolerable variant of gnutls_utf8_password_normalize()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 18:26:21 2016 +0100
.gitlab-ci.yml: added build without libunistring
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 10:42:32 2016 +0100
doc: mention the RFC7613 normalization and the libunistring dependency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 20 17:03:02 2016 +0100
tolerate non-valid UTF8 passwords when decrypting
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 14:42:26 2016 +0100
tests: addressed compiler warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 14:40:19 2016 +0100
_gnutls_utf8_to_ucs2: normalize to NFC UTF16 output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 14:31:24 2016 +0100
openssl_hash_password: normalize the password prior to use
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 12:55:22 2016 +0100
TPM: normalize the password prior to use
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 10:53:40 2016 +0100
_gnutls_calc_srp_sha: normalize the password prior to use
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 10:50:42 2016 +0100
gnutls_x509_crq_set_challenge_password: normalize the password prior to use
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 10:48:04 2016 +0100
PKCS#7/8: normalize the password according to rfc7613
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 10:53:37 2016 +0100
gnutls.pc: use the LT version of the lib variables
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 8 15:24:26 2016 +0100
Use libunistring when present instead of iconv()
That allows us to rely to a single provider for unicode
functionality.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 8 15:24:00 2016 +0100
tests: added unit tests for gnutls_utf8_password_normalize()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 8 13:00:16 2016 +0100
Added function for UTF-8 normalization based on RFC7613
This introduces gnutls_utf8_password_normalize() and a dependency on libunistring.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 17:12:02 2016 +0100
tests: added test suite with PKCS#8 files that have invalid encryption
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 16:30:46 2016 +0100
PKCS#5,7 decryption: verify the correctness of padding
That is, for block ciphers (i.e., cbc), verify that all the padding bytes
match the expected contents according to RFC2898.
Relates #148
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 15:17:26 2016 +0100
PKCS#5,7 decryption: added sanity check on padding size
Relates #148
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 15:01:18 2016 +0100
PKCS#5,7 decryption: fail without leak on unknown MAC
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 14:54:00 2016 +0100
PKCS#5,7 decryption: fail early on invalid block sizes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 14:47:13 2016 +0100
PKCS#5,7 decryption: enforce limits in the support parameter sizes
This allows to detect invalid parameters early rather than later.
Relates #148
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 14:03:58 2016 +0100
updated auto-generated files for new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 10:03:29 2016 +0100
pkcs7 output: use the new functions for DN output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 09:52:16 2016 +0100
tests: account for the strict RFC4514 compliance reversal
Test the new functions only for the strict RFC4514 compliance to
output strings, and test the old functions for the legacy format.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 11 19:05:27 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 11 18:52:03 2016 +0100
x509 output: use the new functions for DN output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 11 18:31:37 2016 +0100
cleanups in _gnutls_buffer_to_datum()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 11 18:42:59 2016 +0100
certtool: use the new APIs for DN extraction
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 13:31:34 2016 +0100
_gnutls_x509_get_dn: when no data ensure we return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
This aligns with the previous (prior to RFC4514 improvements) behavior of the function.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 11 16:20:01 2016 +0100
Introduced new functions to allow multiple DN parsing modes
The old DN parsing functions are changed to return the original
non-fully compliant with RFC4514 string format, while the new
ones return the compliant string by default. This allows applications
which relied on the previous format to continue functioning without
changes.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 9 17:19:48 2016 +0100
.gitlab-ci.yml: include root dir log files in all builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 11:06:26 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 14 12:57:53 2016 +0100
gl: removed invalid module name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 13 17:08:35 2016 +0100
tools: added explicit socket flag to skip TLS initialization
This allows proper error recovery when SOCKET_FLAG_RAW is specified
and initialize_session() fails.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 13 16:41:43 2016 +0100
gnutls-cli-debug: terminate sessions which cannot be re-used
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 13 16:15:42 2016 +0100
sockets: only use gnutls_bye on a valid socket session
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 10 06:39:32 2016 +0100
p11tool: --initialize will no longer reset user PIN
That is because it only resetted the user PIN and not the admin PIN,
while at the same time it had problems to cope with the case where
the URL changed between token initialization and PIN setting (which
is the case if --label is provided to --initialize).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 10 06:34:50 2016 +0100
p11tool: added options to initialize a user and admin's PIN
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 11 09:01:39 2016 +0100
gnutls_store_pubkey: document the default hosts format
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 7 09:17:22 2016 +0100
_wrap_nettle_pk_verify: use FAIL_IF_LIB_ERROR prior to returning success
This will prevent verification to succeed if the system is in
error state.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 7 09:11:24 2016 +0100
fips140-2: moved PCT-test in wrap_nettle_generate_keys
This allows it to run in any potential scenario, i.e., any
call of _gnutls_pk_generate_keys().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 5 19:18:08 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 6 10:03:35 2016 +0100
.gitlab-ci.yml: use included libtasn1 in CI systems which do not have 4.9
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 3 10:31:27 2016 +0200
bumped the version of the minimum required libtasn1
We now require the latest version that supports OIDs
with elements that are longer than 32-bits.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 11:16:12 2016 +0200
tests: added check for the decoding of certificates with long OIDs
That is, OIDs which have an element which exceeds 2^32.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 10:42:58 2016 +0100
symbol-check: do not compare against symbols not exported by us
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 09:49:41 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 09:34:55 2016 +0100
tests: updated known ciphersuites test for CHACHA20-POLY1305 in the SECURE set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 09:10:18 2016 +0100
priorities: added CHACHA20-POLY1305 to SECURE set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 08:15:24 2016 +0100
released 3.5.6
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 07:58:48 2016 +0100
bumped versions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 4 07:56:33 2016 +0100
symbols.last: updated auto-generated file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 19 10:27:26 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 10:18:09 2016 +0100
tests: added test to ensure that gnutls_rnd() is not called during initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 24 08:30:06 2016 +0200
doc: explicitly state that rng self_test mustn't require rng initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 17 14:10:08 2016 +0200
deprecated _gnutls_rnd() in favor of exported gnutls_rnd()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 14:16:51 2016 +0200
rng: split initialization in preinit and init
This makes gnutls to initialize its random generator on the
first call to gnutls_rnd(). That prevents blocking due to
getrandom() on a constructor; that change allows to use gnutls-linked
applications even in early boot in systems where getrandom() blocks
waiting for entropy.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 11:40:12 2016 +0100
_gnutls_rnd_check: call _rnd_system_entropy_check directly
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 2 18:07:13 2016 +0100
x509: removed unused IDNA file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 2 13:24:59 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 2 08:29:25 2016 +0100
handshake: log advertized version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 2 08:13:38 2016 +0100
algorithms.h: removed exported prototype from internal header
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 1 18:39:38 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 17:23:16 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 16:59:20 2016 +0100
tests: added decoding of multi-value DN
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 14:21:37 2016 +0100
x509_dn: forbid non-supported escaped chars on DN encoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 14:07:13 2016 +0100
tests: enhanced RFC4514 with arbitrary escaped strings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 14:07:27 2016 +0100
x509_dn: allow arbitrary escaped strings
In addition fail encoding on unescaped '+'. We do not support it
for DN encoding.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 14:46:49 2016 +0200
tests: modified to account for backwards-encoded DN (according to RFC4514)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 13:18:17 2016 +0100
tests: removed old README file
The description in the file had no relevance to the existing tests.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 13:00:14 2016 +0100
gnutls_x509_crt_set_*dn, gnutls_x509_dn_set_str: honor the reverse property of RFC4514
When converting an RFC4514 string to a DN ensure that the elements
are encoded in reverse order, as required by the RFC.
Resolves #111
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 15:35:44 2016 +0200
Encode string DNs backwards according to RFC4514
This makes the output string from functions such as gnutls_x509_crt_get*dn()
to comply with RFC4514 requirements in DN element order.
Relates #111
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 14:41:10 2016 +0100
Updated issue templates [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 31 14:35:22 2016 +0100
Added issue templates [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 29 23:45:18 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 29 23:31:00 2016 +0200
nettle: renamed system random generator-related files for clarity
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 17 14:34:10 2016 +0200
tests: introduced checks for gnutls_rnd() in multi-threaded scenario
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 17 14:33:53 2016 +0200
tests: introduced sanity checks in rng-fork
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 24 08:30:29 2016 +0200
drbg-aes-self-test: corrected free call
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 27 21:04:49 2016 +0200
tests: check for gnutls 3.3.x compatibility
That is, check whether the status request extension is not sent
by the server, if the server does not hold a status response. We
require that behavior to be backwards compatible with gnutls 3.3.x.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 26 17:51:11 2016 +0200
Reverted the behavior of sending a status request extension even without a response
That is, we no longer reply to a client's hello with a status request, with
a status request extension. Although that behavior which was introduced
in 6b76e0c899b1ff08df9bd9b41588f771f050be89 is legal, it creates incompatibility
issues with gnutls 3.3.x branch. That is because versions prior 3.3.26
translates the presence of the extension as a guarrantee that the status
response data will be sent. Even though, that is false assumption we
replicate the previous behavior to allow such clients to connect to
a gnutls 3.5.x server.
Relates !66
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Thu Oct 27 18:42:38 2016 +0300
tests: do not enable testpkcs11.sh twice
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Oct 22 14:24:16 2016 +0300
starttls: search for chat in sbin if it is not present in PATH
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Fri Oct 21 04:17:36 2016 +0300
Fix autoconf warnings in libopts.m4
Without this patch Autoconf will spam console with the following kind of
messages:
configure.ac:650: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2740: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2759: AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from...
src/libopts/m4/libopts.m4:386: LIBOPTS_RUN_FOPEN_TEXT is expanded from...
src/libopts/m4/libopts.m4:425: INVOKE_LIBOPTS_MACROS is expanded from...
src/libopts/m4/libopts.m4:560: AM_COND_IF is expanded from...
src/libopts/m4/libopts.m4:581: LIBOPTS_CHECK is expanded from...
configure.ac:650: the top level
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Oct 22 02:18:40 2016 +0300
cfg.mk: fix m4 files removal
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 17:45:03 2016 +0200
tests: better check for gnutls_ecc_curve_get result
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 17:30:43 2016 +0200
Terminate handshake if only unknown or disabled signatures are advertized by the peer
That is, do not attempt to proceed assuming that the peer supports SHA-1.
Author: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Sat Oct 22 03:28:14 2016 +0300
Fix compilation of tests if nettle is not installed in standard path
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 25 08:03:32 2016 +0200
gnutls-cli-debug: corrected TLS1.2 detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 24 08:33:42 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 22 09:41:45 2016 +0200
modified the gnutls_certificate_set_key* change
While the change was fully backwards compatible for applications that were
adding a single certificate, and applications that were checking for negative
errors codes, many applications do not. As this may cause incompatibility issues
with software properly utilizing the previously documented API, the change
is reverted, and applications need to explicitly enable a flag (GNUTLS_CERTIFICATE_API_V2)
in the credentials structure for the set_key functions to return an index.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 19 23:06:59 2016 +0200
tests: removed nohats.ca from testdane
The host seems to be unreliable.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 16:43:47 2016 +0200
.travis.yml: use as many jobs as CPUs in OSX
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 16:14:32 2016 +0200
.travis.yml: do not run the public submodule checks of maint.mk
These seem to be problematic to detect modification and are preventing
the CI from operating.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 13:16:50 2016 +0200
.travis.yml: simplified the submodule checkout
The default submodule initialization in travis caused the MacOSX builds to fail.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 13:15:19 2016 +0200
Added casts to prevent compiler warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 13:14:57 2016 +0200
corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 12:10:56 2016 +0200
README.md: corrected link to travius build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 20 15:58:38 2016 +0200
.travis.yml: added support for compiling in macosx
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 11:02:30 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 11:01:43 2016 +0200
tests: added checks for the new GNUTLS_NO_TICKETS flag
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 21 10:26:13 2016 +0200
gnutls_init: added GNUTLS_NO_TICKETS flags
These flags allow the callers to disable the automatically enabled
session tickets. This could be done only with GNUTLS_NO_EXTENSIONS
which also disabled other useful extensions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 20 09:26:10 2016 +0200
tests: added pkcs11-privkey-export
This checks whether the public parts of RSA private and public keys
can be properly extracted from a PKCS#11 module.
Author: Jakub Jelen <jjelen@redhat.com>
Date: Wed Oct 19 13:41:55 2016 +0200
Expose CKA_PUBLIC_EXPONENT and CKA_MODULUS for private keys too
Author: Jakub Jelen <jjelen@redhat.com>
Date: Wed Oct 19 09:17:52 2016 +0200
tests/pkcs11: Return also CKA_CLASS
Author: Jakub Jelen <jjelen@redhat.com>
Date: Tue Oct 18 15:28:39 2016 +0200
tests/pkcs11: Expose SUBJECT for certificates, PUBLIC_EXPONENT and MODULUS for public keys to widen compatibility
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 15:42:52 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 13:45:34 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 09:24:02 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 10:13:56 2016 +0200
certtool: allow setting key purposes for non-CA certificates
That is, allow setting code signing, or time stamping key purpose
in certificates that are not marked as CA. The previous restriction
served no purpose.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 10:01:49 2016 +0200
certtool: introduce key purpose checks in p7 direct verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 09:22:59 2016 +0200
x509: introduced gnutls_x509_crt_check_key_purpose()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 17 15:07:03 2016 +0200
gnutls_x509_crt_verify_data2: introduce constraints checks on the provided certificate
That is check the provided certificate for validity in time and key usage.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 18 10:02:29 2016 +0200
tests: introduced verification constraints checks for PKCS#7 structures
That is, key purpose checks and more elaborate time checks.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 17 12:00:41 2016 +0200
gnutls-serv: use the included known DH parameters by default
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 17 11:54:51 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 12:02:31 2016 +0200
certtool: manpage update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 12 08:34:13 2016 +0200
getfuncs-map.pl: ignore the ffdhe exported parameters
That is ignore the new variables exported which are not functions, and
thus cannot be detected by getfuncs-map.pl.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 19:26:44 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 20:10:37 2016 +0200
tests: crl-test: use a unique temp file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 20:01:27 2016 +0200
tests: added sanity check for included primes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 19:36:26 2016 +0200
doc: discuss the set_known_dh_params and use it in the examples
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 19:25:52 2016 +0200
tests: check gnutls_psk_set_server_known_dh_params
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 19:22:25 2016 +0200
tests: check gnutls_anon_set_server_known_dh_params
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 19:12:16 2016 +0200
tests: check gnutls_certificate_set_known_dh_params
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 16:42:28 2016 +0200
DH: introduced gnutls_*_set_known_dh_params()
That is, the functions gnutls_certificate_set_known_dh_params(),
gnutls_anon_set_server_known_dh_params(),
gnutls_psk_set_server_known_dh_params().
These functions allow to statically set the DH parameters, based
on the RFC7919 FFDHE parameters. This can simplify server configuration
by allowing DH without loading parameters from file.
Relates #37
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 16:18:22 2016 +0200
certtool: --get-dh-params will output the FFDHE primes instead of the SRP primes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 16:05:57 2016 +0200
DH: export the FFDHE Diffie-Hellman values
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 16:13:29 2016 +0200
.gitlab-ci.yml: use fedora's mingw-cmocka packages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 16:12:44 2016 +0200
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 15:04:41 2016 +0200
tests: added check for PKCS#7 catalog file parsing and data extracting
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 15:46:05 2016 +0200
tests: updated pkcs7 text outputs to account for certtool update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 14:55:57 2016 +0200
certtool: --p7-info will include the PKCS#7 encoded data in PEM format
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 14:50:25 2016 +0200
tests: replaced large test2.cat with a smaller file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 13:13:26 2016 +0200
certtool: improve text on missing options for cert generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 12:57:31 2016 +0200
Revert "certtool: improve text on missing options for cert generation"
This reverts commit 7daed1fd0602bce7495d252f1a9b638fc41e38d3.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 10:22:07 2016 +0200
handshake: set a maximum number of warning messages that can be received per handshake
That is to avoid DoS due to the assymetry of cost of sending an alert vs the cost
of processing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 10:08:35 2016 +0200
record: disallow parsing of alert messages prior to session start
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 10:07:58 2016 +0200
tests: added check to verify that the server will bail out after receiving only alerts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 14 09:59:22 2016 +0200
tests: added check to verify that the server will bail out after many alerts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 17:01:16 2016 +0200
certtool: improve text on missing options for cert generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 16:55:00 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 16:51:19 2016 +0200
tools: removed redudant messages on PIN re-use
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 16:48:52 2016 +0200
p11tool: avoid asking the security officer PIN twice on initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 16:41:04 2016 +0200
p11tool: improved messages on token initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 16:37:45 2016 +0200
p11tool: corrected check of PIN existance in token initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 13:10:52 2016 +0200
doc: set a default handshake timeout on example server
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 13:09:35 2016 +0200
serv: set a timeout value in handshake
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 08:56:45 2016 +0200
tests: added check for Encrypt-then-MAC under DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 13 08:54:52 2016 +0200
tests: cleanups in tls-etm.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 12 13:36:01 2016 +0200
gnutls_pkcs7_get_embedded_data: added GNUTLS_PKCS7_EDATA_GET_RAW flag
This flag allows the export of the stored embedded data with any wrapping
encoding included. This in particular, it allows to read the data from the
microsoft catalog PKCS#7 structures, which store as embedded data elements
of a SEQUENCE, but only authenticate the inner parts without the bytes
forming the SEQUENCE header.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 21:33:24 2016 +0200
configure: automatically disable non-suiteb curves
That is, if the installed nettle doesn't provide the
nettle_secp_192r1 symbol.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 20:41:18 2016 +0200
doc update
Author: Colin Walters <walters@verbum.org>
Date: Tue Oct 11 11:28:39 2016 -0400
priorities: Do read crypto policy files with mtime of zero
In a default Fedora Atomic Host installation,
`/etc/crypto-policies/backends/gnutls.config` is a symlink to the
default in `/usr/share/`. On an OSTree-managed system, files in
`/usr` have an mtime of zero (to help deduplication).
The simple fix here is to still try to read the first time, even if
the file has an mtime of zero.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 14:11:27 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 13:55:56 2016 +0200
certtool: corrected use of gnutls_pkcs7_get_embedded_data()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 13:06:48 2016 +0200
pkix.asn: simplified ASN.1 description by eliminating pkcs-7-ContentType
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 13:03:45 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 11 11:30:28 2016 +0200
certtool: print the enacapsulated content OID on verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 15:25:31 2016 +0200
tests: added checks for the decoding of various PKCS#7 structures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 15:19:16 2016 +0200
pkcs7: print the eContent type in output functions if it does not match the defaults
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 12:06:37 2016 +0200
pkcs7: allow unknown and legacy signature data OIDs to be imported
This allows to decode very old PKCS#7 structures where the content is not
an octet string. In addition, it introduces gnutls_pkcs7_get_embedded_data_oid()
to obtain the OID of the signature data.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 19:07:41 2016 +0200
certtool: --p7-info can be combined with --p7-show-data to display embedded data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 10 09:48:05 2016 +0200
lib: link with LTLIBDL instead of LIBDL
It fixes compilation issues on some systems.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 20:01:06 2016 +0200
released 3.5.5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 19:27:39 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 19:04:30 2016 +0200
doc: mention gnutls_session_ext_register and its supplemental data equivalent
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 18:56:52 2016 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 14:21:09 2016 +0200
TLS extensions: only cache the extension IDs from exts that the server supports
That avoids imposing any artificial limits on the number of extensions that
a server can handle.
Resolves #136
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Oct 9 14:05:07 2016 +0200
tests: check the registration of multiple extensions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 8 07:24:02 2016 +0200
doc: added gnutls_datum_t and giovec_t to indexes
Resolves #137
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 15:24:25 2016 +0200
pkcs7: removed any limits in hex encoding of attributes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 16:10:19 2016 +0200
certtool: lift any limits in print_raw()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 7 14:17:52 2016 +0200
certtool: added safety net when generating a certificate request
That is, do not allow specifying --generate-request --load-pubkey without
specifying --load-privkey. Previously if --load-pubkey would have been
used, it would have been ignored, causing confusion to the users.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 6 08:50:39 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 20:10:46 2016 +0200
Makefile.am: improved the files-update output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 20:09:21 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 13:51:05 2016 +0200
_gnutls_utf8_to_ucs2: force NFC normalization form in windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 11:04:54 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 11:41:23 2016 +0200
tests: added checks for gnutls_session_supplemental_register
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 11:33:55 2016 +0200
Added session-specific supplemental data handling
This allows a caller to add supplemental data handling which will
only be made available for a specific session.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 10:43:29 2016 +0200
tests: added checks for gnutls_session_ext_register
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 30 18:53:09 2016 +0200
Added session-specific TLS extensions
This allows a caller to add extensions which will be made available
for a specific session.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Oct 5 14:30:33 2016 +0200
guile: Implement session record ports using the Guile 2.2 API.
This allows the Guile bindings to be built and used with
Guile >= 2.1.4, which introduced a new port API.
* guile/src/core.c (USING_GUILE_BEFORE_2_2): New macro.
(session_record_port_type) [!USING_GUILE_BEFORE_2_2]: New definition.
(read_from_session_record_port, write_to_session_record_port)
(make_session_record_port) [!USING_GUILE_BEFORE_2_2]: New functions.
Conditionalize the other same-named functions on
USING_GUILE_BEFORE_2_2.
(scm_init_gnutls_session_record_port_type): Use
'read_from_session_record_port' when !USING_GUILE_BEFORE_2_2.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Oct 5 14:30:32 2016 +0200
guile: Test 'set-session-transport-fd!'.
* guile/tests/session-record-port.scm: Use 'set-session-transport-fd!'
on the server side.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Oct 5 14:30:31 2016 +0200
guile: Guile 2.x 'uniform-vector-read!' replacement returns 0 upon EOF.
This problem was never hit in practice because our tests always got the
non-EOF case.
* guile/modules/gnutls/build/tests.scm (uniform-vector-read!) [guile-2]:
Return 0 upon EOF.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 10:01:20 2016 +0200
win32: install the .def files in libdir instead of bindir
Suggested by Eli Zaretskii.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 08:48:57 2016 +0200
certtool: include arpa/inet.h unconditionally
That is because we use inet_pton() which is either provided by the
OS, or by gnulib.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 08:46:08 2016 +0200
gnutls-cli: fix compilation warning in win32
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 08:44:05 2016 +0200
Fixed the version in libgnutls-openssl.def file
Previously the version set in that file would have
been (incorrectly) equal to the version of the main library.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 5 08:34:51 2016 +0200
tests: avoid using %zd for formatted output
It is not supported by windows.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 4 16:20:44 2016 +0200
tests: skip tests which depend on libidn functionality if build without libidn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 4 15:55:08 2016 +0200
tests: fixed compilation of pkcs11-privkey-always-auth
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 4 15:10:22 2016 +0200
Fix build of system/keys-win.c with older mingw
Patch by Eli Zaretskii <eliz@gnu>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 14:48:49 2016 +0200
tests: introduced further parallelization in provable* tests
This runs independent verification steps in parallel, improving running time significantly.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 14:40:06 2016 +0200
tests: provable-dh-default check is too slow and is only run when the complete suite is requested
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 14:25:06 2016 +0200
tests: split provable-privkey into multiple checks
This allows the tests to be run in parallel.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 14:17:52 2016 +0200
tests: provable-dh was split into two programs
This allows the test to be run more efficiently when run
in parallel.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 30 16:48:54 2016 +0200
.gitlab-ci.yml: do not run the full test suite on valgrind test
This allows the CI test to run on reasonable time.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 30 14:16:01 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 13:00:36 2016 +0200
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 30 13:08:53 2016 +0200
devel/openssl: updated to 1.1.0 release
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 29 15:41:23 2016 +0200
aarch64: added optimized AES-CCM mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 27 21:43:05 2016 +0200
Imported Andy Polyakov's implementation of AES-GCM in aarch64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 11:55:37 2016 +0200
Imported Andy Polyakov's implementation of AES in aarch64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 29 13:36:55 2016 +0200
Added HMAC-SHA* optimizations for aarch64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 23 14:55:37 2016 +0200
Imported Andy Polyakov's implementations for SHA* in aarch64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 12:53:43 2016 +0200
fix zero-termination in _gnutls_server_name_set_raw() for large server names
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 12:56:07 2016 +0200
_gnutls_check_id_for_change: added check for NULL username
This is not required, but may prevent from issues if code-reorganizations
which may set a NULL username, occur.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 12:58:17 2016 +0200
gnutls_*_crt_print: better error checking
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 10:29:29 2016 +0200
tests: added test for CKA_ALWAYS_AUTHENTICATE handling in PKCS#11
This checks whether GnuTLS properly calls login prior to any sign
operations when the object is marked as CKA_ALWAYS_AUTHENTICATE.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 11:11:55 2016 +0200
pkcs11: improved debugging output in pkcs11_login
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 3 10:22:44 2016 +0200
name constraints: removed unused variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 30 13:25:41 2016 +0200
tools: clarify errors when reading files
Previously certtool and ocsptool would report:
```
$ certtool --generate-request --load-privkey=foo --outfile=bar
Generating a PKCS #10 certificate request...
reading --load-privkey: foo
```
And that doesn't make apparent what the issue was. Modified
to print:
```
error reading --load-privkey: foo
```
Report and initial patch by Thibault Nélis.
Resolves !97
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 28 07:41:13 2016 +0200
p11tool: doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 27 23:42:01 2016 +0200
Removed C99 constructions in for-loops
These constructions although valid for C99 they are
being rejected by various compilers. Get rid of them.
Author: Daiki Ueno <ueno@gnu.org>
Date: Tue Sep 27 11:04:16 2016 +0200
certtool: print correct size of EC keys
Previously certtool complained about key size if --curve is given:
$ certtool --generate-privkey --ecc --curve secp256r1 --outfile key.pem
Generating a -2147483646 bit EC/ECDSA private key...
Note that ECDSA keys with size less than 256 are not widely supported.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 27 09:51:56 2016 +0200
p11tool: documented the p11-kit relevancy of distrust and stapled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 27 09:39:09 2016 +0200
pkcs11: forbid PKCS#11 extensions to be used in other than trust modules
That is, only use the CKA_X_DISTRUSTED and the extension override in
p11-kit trust modules, to avoid conflicts with potentially other
PKCS#11 extensions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 27 11:46:24 2016 +0200
.gitlab-ci.yml: enabled valgrind tests build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 27 11:44:16 2016 +0200
tests: allow handshake-large-packet to run under valgrind
That is, initialize the allocated buffers with a known value.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 14:24:31 2016 +0200
p11tool: introduced the --mark-distrusted and --distrusted options
This allows to mark objects as distrusted, as well as list all
distrusted certificates (blacklisted) for a p11-kit trust module as:
p11tool --list-all-certs --distrusted
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 14:23:24 2016 +0200
pkcs11: introduced flag GNUTLS_PKCS11_OBJ_FLAG_MARK_DISTRUSTED
This allows to mark objects as distrusted, as well as to be
able to list distrusted objects.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 14:00:32 2016 +0200
pkcs11: only staple extensions from a trust module when they are from a non-distrusted certificate
That is, make sure that the API for stapling extensions is only used
for non-distrusted (blacklisted) certificates. The reason is to avoid
duplicate extension entries from the p11-kit trust database. These
come from blacklisted certificates, and we have no reason to support
stapled extensions with blacklisted certificates.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 13:47:19 2016 +0200
p11tool: allow to export a certificate with its stapled extensions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 26 08:12:52 2016 +0200
gnutls_oid_to_ecc_curve: fix null pointer dereference
This addresses issue where an unknown curve would cause a
null pointer dereference. This was introduced with the addition
of X25519. Reported by Theofilos Petsios.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 23 16:01:07 2016 +0200
Only send the status request extension on cert authentication
That is, do not both asking for it, or replying to it, if we are
not using any certificates.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 14:49:57 2016 +0200
gdoc: improved the detection and display of escaped characters (@%)
This allows to properly display strings like %COMPAT and @SYSTEM
in the manual and the manpages.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 13:46:19 2016 +0200
doc: gnutls_priority_init: fixed %COMPAT [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 12:08:45 2016 +0200
.gitlab-ci.yml: corrected debian build's dependency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 11:07:45 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 21 17:59:18 2016 +0200
On client side allow signing with the signature algorithm of our cert
That allows to sign for example with DSA-SHA1 as client even if we do not
allow DSA-SHA1 as signature algorithm for server's certificate. This allows
to use a deprecated certificate without enabling deprecated algorithms
globally.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 11:01:22 2016 +0200
_gnutls_session_get_sign_algo: always return GNUTLS_SIGN_UNKNOWN on failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 10:35:13 2016 +0200
tests: added check for server-side ECDSA keys
These tests check whether a server ECDSA key will be rejected by
the client in case the client has no ECDSA signature algorithms
available.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 09:54:12 2016 +0200
tests: added check for client-side DSA key
This checks whether a client can use and send a DSA key, even
if DSA is not enabled (which should prohibit the server from providing
a DSA certificate).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 22 09:21:06 2016 +0200
certtool: do not require a certificate to generate a PKCS#12 file
That is, allow generating PKCS#12 files with private keys only as well.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 20 09:00:23 2016 +0200
.gitlab-ci.yml: added debian build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 20 14:31:12 2016 +0200
README.md: depend on softhsm2 and net-tools on debian
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 15:36:21 2016 +0200
tests: mini-server-name: skip invalid UTF-8 check if compiled without libidn
This allows the test suite to run in systems without libidn. Reported
by Thomas Klausner.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 14:55:24 2016 +0200
tests: added the macros test_fail() and test_success()
These macros allow test programs which run multiple checks,
to report the name of the check failed. Modified mini-server-name
and x509-dn-decode to use the macro.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 18:55:59 2016 +0200
cfg.mk: removed invalid rule in web target
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 14:24:10 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 14:12:56 2016 +0200
added debugging message when session fails due to handshake hash buffer
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 08:02:14 2016 +0200
tests: check whether large packets are allowed on the handshake
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 08:01:24 2016 +0200
Do not allow sending overflowed extensions field
That is, restrict the extensions to a 2^16 total size.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 19 07:42:41 2016 +0200
tests: minor improvements in mini-extension
This will improve recovery from error conditions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 16 13:12:50 2016 +0200
Increased the maximum size allowed for handshake messages to 128kb
This would allow the library to cope with larger packets, as well
as TLS 1.3 hellos. Suggested by Hubert Kario.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 17 12:52:41 2016 +0200
tests: added check for insecure key
That is, a check which verified whether a connection to a server with
a very small key will fail the certificate verification check.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 17 11:43:45 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 17 11:31:29 2016 +0200
Introduced separate error codes for invalid private and public keys
This allows functions like decryption and verification to report
the specific issue they encountered on public key error.
The new codes are GNUTLS_E_PK_INVALID_PUBKEY and GNUTLS_E_PK_INVALID_PRIVKEY
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 15 16:50:26 2016 +0200
.gitlab-ci.yml: no longer require gnutls-devel
This package is no longer needed to run abi-check.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 15 16:49:37 2016 +0200
Makefile: abi-check no longer require gnutls headers to be installed
This addresses the issue of requiring gnutls-devel in the CI system
to run abi-check.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 15:17:29 2016 +0200
doc: remove the conditional self_test functions
Also prevent them by re-entering the documented functions list
by restricting the header files that contribute functions to the
known list defined by $(HEADER_FILES).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 10:37:54 2016 +0200
Makefile.am: introduced 'make files-update' rule
This rule updates the makefiles in doc/ and the kept symbol list.
This allows for easier automation of the symbol change 'make dist'
breakages.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 10:33:00 2016 +0200
manpages: delete comparison temp file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 10:30:09 2016 +0200
Makefile.am: symbol changes were made more elaborate
During make dist, the makefile will report the appropriate
symbol change message with instructions and fail.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 10:02:48 2016 +0200
updated doc and symbol files for gnutls_certificate_set_ocsp_status_request_function2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 10:00:42 2016 +0200
Makefile.am: print the symbols.last diff on make dist
This allows to manually verify the contents before overriding
the old file.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 17:23:07 2016 +0200
doc: allow creation of gnutls.epub without running epub-fix
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 15:50:52 2016 +0200
.gitlab-ci.yml: use nproc as argument to 'make -j'
That way, we use as many make processes, as the number of
CPUs in the CI system.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 15:31:13 2016 +0200
.gitlab-ci.yml: added build which runs 'make dist'
This tests whether the manpages, info, html, pdf and epub
manual are properly generated, and whether any new functions
were included into makefiles.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 15:30:07 2016 +0200
doc: fixed the epub documentation generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 20:18:03 2016 +0200
gnutls_certificate_set_ocsp_status_request_file: mention version it was enhanced
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 20:11:28 2016 +0200
doc: corrected typo
Author: Alex Monk <krenair@gmail.com>
Date: Mon Sep 12 18:24:49 2016 +0100
Add ECDHE-* to the priority string docs for key exchange algorithms
GNUTLS_KX_ECDHE_PSK was added in 2.99.3 (released 2011-06-18)
The other two were added in 2.99.2 (released 2011-05-26)
Signed-off-by: Alex Monk <krenair@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 08:54:42 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 08:49:10 2016 +0200
.gitlab-ci.yml: added check for position dependent code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 08:46:51 2016 +0200
Makefile.am: added check for position dependent code
This check will verify that the generated library doesn't contain
position dependent code. It depends on elf utilities.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 13 08:38:36 2016 +0200
openssl asm: reverted to AESNI-x86 code to gnutls 3.4.x code
The newer code was creating position dependent code.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 11:59:37 2016 +0200
tests: added checks to verify server understanding of UTF8 hostnames
This verifies whether a server can understand and serve requests
which contain UTF-8 server names.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 11:51:07 2016 +0200
tests: set_key: fixed the time override
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 11:23:25 2016 +0200
tests: set_key: enabled failure_mode test
Also eliminated memory leaks related to it.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 10 10:50:43 2016 +0200
Added IDNA support in server side
Any server names provided to server side by the gnutls_certificate_set_*
functions, are converted to IDNA format for comparison with client provided
values.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 10:52:18 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 10:48:10 2016 +0200
.gitlab-ci.yml: restrict the freebsd builds to local branches only
Author: Alex Monk <krenair@gmail.com>
Date: Sun Sep 11 22:10:14 2016 +0100
Add SIGN-ECDSA-SHA* to the priority strings docs
There were added in version 2.99.2, 2011-05-26
Signed-off-by: Alex Monk <krenair@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 10:22:37 2016 +0200
gnutls_certificate_set_*key: ensure proper cleanup on key mismatch failures
That is, ensure that we keep no local references that are shared with
the caller, and that we properly free all initialized values.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 12 10:23:48 2016 +0200
tests: check key mismatch on gnutls_certificate_set_*key
That is, check whether these functions can successfully
recover from such condition, without leaks or double freeing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 8 15:32:06 2016 +0200
tests: added unit testing for gnutls_certificate_set_ocsp_status_request_function2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 8 15:14:37 2016 +0200
tests: added unit tests for gnutls_certificate_set_x509_key()
In addition these tests verify that the expected index is returned
and that can be used with gnutls_certificate_get_crt_raw() afterwards.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 8 15:03:00 2016 +0200
tests: enhanced set_x509_key tests to include index verification
That is, verify that correct indexes are returned, and these
can be used with gnutls_certificate_get_crt_raw() afterwards.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 8 13:48:30 2016 +0200
tests: enhanced set_x509_key_file tests to include index verification
That is, verify that correct indexes are returned, and these
can be used with gnutls_certificate_get_crt_raw() afterwards.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 17:55:38 2016 +0200
tests: more checks for functionality of gnutls_certificate_set_ocsp_status_request_file
This introduces checks for the cases where gnutls_certificate_set_ocsp_status_request_file()
is called with multiple indexes, to set an OCSP response for different
certificates. The tests then verify whether the expected OCSP response
is received.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 14:49:35 2016 +0200
Added gnutls_certificate_set_ocsp_status_request_function2
That introduces a new function to allow setting an OCSP status
request handling function per certificate. Furthermore it repurposes
the flag parameters to an index option on gnutls_certificate_set_ocsp_status_request_file.
The changes above allow setting a different OCSP status response
file per certificate, and a different function. The indexes they
rely on to associate with existing certs are the indexes returned
by the gnutls_certificate_set_key() and friends functions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 13:38:19 2016 +0200
All the key and chain set functions return an index
When setting key and certificate material to a gnutls_certificate_credentials_t
structure, the corresponding set functions will return an index.
That index could be used later either on the get functions, or
when setting corresponding data (e.g., an OCSP response).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 13:29:54 2016 +0200
doc: clarifications in gnutls_certificate_set_ocsp_status_request_function()
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Sep 11 16:00:57 2016 +0200
Typo fixes found by lintian.
incosistent, ommited
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 20:24:43 2016 +0200
.gitlab-ci.yml: added code-coverage output to clang build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 19:40:25 2016 +0200
.gitlab-ci.yml: the code-coverage command will always succeed
This works around random failures while calculating the code coverage.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 19:37:45 2016 +0200
.gitlab-ci.yml: moved commonly installed packages into the before_script field
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 12:57:04 2016 +0200
.gitlab-ci.yml: added syntax check build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 12:51:11 2016 +0200
cfg.mk: revived 'make release'
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 12:21:59 2016 +0200
several spacing fixes to keep syntax-check happy
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:51:37 2016 +0200
avoid the usage of '-a' and '-o' bash options
This keeps syntax-check happy.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:44:58 2016 +0200
avoid the usage of strncpy
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:40:51 2016 +0200
removed signal.h from files that wasn't used at
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:38:35 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:38:08 2016 +0200
gnutls_x509_cidr_to_rfc5280: removed double semi-colon
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:37:32 2016 +0200
removed c-ctype.h from files that wasn't used at
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:36:27 2016 +0200
configure.ac: quote parameters when needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:35:51 2016 +0200
removed assert.h from files that wasn't used at
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:34:53 2016 +0200
POTFILES: added libdane files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:25:15 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 11 11:23:15 2016 +0200
tests/tools: avoid non-null check before free()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 10 23:02:13 2016 +0200
latex manual: added backwards compatibility options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 10 11:04:51 2016 +0200
.gitlab-ci.yml: windows DLL builds now include all required dependencies
Also improved naming conventions for builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 10 07:49:59 2016 +0200
inet_ntop4: casted signed/unsigned comparison
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 10 07:48:22 2016 +0200
system.h: undefine macros before defining them
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 10 07:44:21 2016 +0200
_gnutls_fbase64_decode: use memsub macro instead of casts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 9 15:04:52 2016 +0200
gnutls-cli: use gnutls_set_default_priority if no priorities are given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 9 15:01:05 2016 +0200
gnutls-serv: removed '...' from documentation
That caused caused problems in generated manpage.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 9 13:59:05 2016 +0200
configure: better document the random generator variant used
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 8 07:30:33 2016 +0200
released 3.5.4
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 22:44:08 2016 +0200
.gitlab-ci.yml: corrected wrong operation in minimal build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 22:25:47 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 22:20:10 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 13:17:56 2016 +0200
bumped versions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 13:16:41 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 09:30:18 2016 +0200
tests: do not run pkcs12-utf8 under windows
This test required to pass UTF8 data under command line, and that
doesn't seem to work under windows.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 7 08:45:24 2016 +0200
_gnutls_ucs2_to_utf8: corrected use of WideCharToMultiByte in windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 18:45:17 2016 +0200
tests: added debugging info in conv-utf8
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 16:45:19 2016 +0200
tests: don't build cmocka tests with libutils - they conflict
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 15:58:59 2016 +0200
.gitlab-ci.yml: keep config.log in windows builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 15:14:01 2016 +0200
.gitlab-ci.yml: corrected typo for libidn installation in windows64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 14:52:54 2016 +0200
.gitlab-ci.yml: install our internal cmocka for windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 13:18:10 2016 +0200
tests: added unit tests of _gnutls_utf8_to_ucs2 and _gnutls_ucs2_to_utf8
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 11:40:36 2016 +0200
libgnutls.map: export _gnutls_utf8_to_ucs2 and _gnutls_ucs2_to_utf8 for testing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 14:49:07 2016 +0200
pkcs12: enhanced to allow encrypting using UCS2 passwords
That is use _gnutls_utf8_to_ucs2() to convert the provided
password to UCS2.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 15:56:19 2016 +0200
_gnutls_ucs2_to_utf8: fixed null termination check in windows code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 14:48:24 2016 +0200
Added _gnutls_utf8_to_ucs2()
This function allows to convert between UTF8 to UCS2 big-endian.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 14:23:13 2016 +0200
tests: added tests for PKCS#12 decoding with UTF8 passwords
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 14:34:07 2016 +0200
pkcs7 encryption: corrected memory leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 14:54:30 2016 +0200
Makefile: local-code-coverage-output always succeeds
Author: Martin Ukrop <mukrop@redhat.com>
Date: Fri Sep 2 10:30:54 2016 +0200
x509: Adjust IP name constraints behavior
- Modified IPv4/IPv6 interaction in name constraints -- IPv4 and IPv6 no have empty intersection (previously: were treated independently).
- Current behavior is more conservative -- in case of IPv4 constraint cert, subcerts will not be able to have IPv6 addresses.
- Tests updated accordingly.
- Behavior now matches NSS.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 09:05:59 2016 +0200
tests: added checks to verify behavior in writing pkcs11 objects
That is, verify that private keys are marked as private by default,
and public objects are marked as non-private by default.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 09:00:20 2016 +0200
p11tool: eliminated memory leak in --list options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 6 08:49:01 2016 +0200
p11tool: do not mark written objects as private by default
That is, when --mark-private or --no-mark-private are not specified,
set non-private for public objects and private for private ones.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 18:16:57 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 18:15:25 2016 +0200
minitasn1: updated to latest git version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 18:08:50 2016 +0200
_gnutls_encode_ber_rs_raw: simplified
That is, use a single allocation for temporary data.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 13:05:17 2016 +0200
.gitlab-ci.yml: use fedora24 with address sanitizer
The fix in fbb9618b25b77c65e24a6ce224d53bc9a0b81457 addresses
the problems with asan in fedora24.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 13:01:31 2016 +0200
tests: use LSAN_OPTIONS instead of ASAN_OPTIONS
New versions of address sanitizer do not parse this file
otherwise.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 09:48:24 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 09:41:30 2016 +0200
tests: corrected detection of 64-bit systems in softhsm.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 09:37:51 2016 +0200
tests: added check for PKCS#11 signature validity
That is, tests whether our generated DSASignatureValue with PKCS#11
contains r, s values that are non-negative, i.e., are zero padded
when necessary. This utilizes _gnutls_decode_ber_rs_raw().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 5 09:29:24 2016 +0200
Introduced helper function _gnutls_decode_ber_rs_raw()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 3 11:39:57 2016 +0200
_gnutls_encode_ber_rs_raw: zero-pad values when necessary
This addresses issue when encoding values obtained via
PKCS#11 which may not be necessarily padded.
Resolves #122
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 3 10:23:49 2016 +0200
tests: template-test: use uniform way to detect 32-bit systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 1 12:35:55 2016 +0200
.gitlab-ci.yml: use the gitlab.com shared runners
This removes the need to administer custom runners (except for
the FreeBSD runner which cannot run under Linux), makes the
testing on other platforms such as Debian simpler, and allows
merge requests to pass through the CI.
Author: David Woodhouse <dwmw2@infradead.org>
Date: Tue Aug 30 15:26:27 2016 +0100
Import DTLS sliding window validation from OpenConnect ESP code
In this implementation, the end of the sliding window is always advanced
to the latest received packet, and we accept up to 64 packets before
that one. We no longer refuse to accept packets because they are
*too* far ahead of what we've already seen.
Some of the test cases are fixed up accordingly.
This matches the code in OpenConnect esp-seqno.c at commit 314ac65.
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date: Wed Aug 31 11:04:06 2016 +0300
tools: Use correct include dir with minitasn
This allows compiling certtool without libtasn headers.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 29 14:16:16 2016 +0200
nettle: removed unused variable in windows rng
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 29 13:52:24 2016 +0200
tests: don't run danetool.sh when not compiled with dane support
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 29 13:48:04 2016 +0200
tests: mini-dtls-record: modified expected order to account for new SW behavior
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 29 13:02:54 2016 +0200
dtls: ensure that the DTLS window doesn't get stalled
That is ensure that it is forwarded at least one place if more than 16
packets have been received since the first one.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 29 13:25:23 2016 +0200
tests: enhance the DTLS window unit test to account for lost packets
This adds tests for cases where many lost packets are encountered,
such as 50% of the packets received, as well as 3 consequent packets
being lost.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 16:52:19 2016 +0200
README.md: added coverage report [ci skip]
Author: David Woodhouse <dwmw2@infradead.org>
Date: Sun Aug 28 21:42:34 2016 +0100
gnutls_pkcs12_simple_parse: set the key value to null on failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 28 00:55:30 2016 +0200
tests: added basic operational check of gnutls_ocsp_resp_get_single()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 28 00:40:49 2016 +0200
gnutls_ocsp_resp_get_single: reorganized function to eliminate memory leaks
Simplified and optimized the function operation, by removing
unecessary memory allocations, as well as eliminate memory leaks
on certain error cases.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 27 17:00:22 2016 +0200
ocsp: corrected the comparison of the serial size in OCSP response
Previously the OCSP certificate check wouldn't verify the serial length
and could succeed in cases it shouldn't.
Reported by Stefan Buehler.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 11:35:50 2016 +0200
tools: eliminated memory leaks in deinitialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 11:28:51 2016 +0200
tools: allow socket_bye() to be used for non-polite terminations
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 26 11:14:19 2016 +0200
tests: added suppressions.valgrind in ocsp-tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 25 15:48:03 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 25 15:46:06 2016 +0200
tests: added check for the decoding of pbes1-des-md5 key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 25 17:27:16 2016 +0200
pkcs8: cleaned up PKCS#8 decoding from common code with PKCS#7
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 25 15:40:28 2016 +0200
pkcs8: added support for decryption with PBES1-DES-CBC-MD5
While this is a legacy (and insecure) cipher combination it is the
default output of openssl up until the 1.0.2 version. We introduce
this option to allow decrypting private keys from these versions of
openssl.
Author: raspa0 <raspa0@protonmail.com>
Date: Thu Aug 25 10:58:22 2016 +0200
fix memleak in pkcs11_get_random
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 25 09:57:55 2016 +0200
ocsptool: reduce memory leaks on execution
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 14:09:13 2016 +0200
tests: enable ocsp-must-staple-connection check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 16:17:20 2016 +0200
doc: be more explicit about the usage of gnutls_global_init/deinit [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 14:41:33 2016 +0200
tests: don't use piped tee in pkcs8-decode
It would prevent error codes from being detected in the tests.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 14:04:52 2016 +0200
ocsptool: corrected bug in session establishment
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 13:57:00 2016 +0200
tests: ocsp-tls-connection: no longer check for netcat; it was not needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 13:39:43 2016 +0200
tests: added decoding of key with pbes2 and SHA256 PRF
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 13:32:04 2016 +0200
Added support for decrypting PKCS#8 files which use HMAC-SHA256 as PRF
This improves compatibility with new openssl versions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 24 10:49:13 2016 +0200
Ported openssl format fix from openconnect
Patch by David Woodhouse
Author: raspa0 <raspa0@protonmail.com>
Date: Wed Aug 24 06:15:03 2016 +0000
src/pkcs11.c: fix mech_list out-of-bounds check
Author: Philippe Proulx <eeppeliteloop@gmail.com>
Date: Mon Aug 15 01:13:16 2016 -0400
gnutls_record_recv(): doc: push -> pull
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 16:32:34 2016 +0200
rnd-linux: added check for SYS_getrandom being defined
This allows to compile the getrandom() code in old Linux systems
which do not have the system call defined.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 16:29:09 2016 +0200
libdane: include minitasn1 headers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 17:11:53 2016 +0200
gnutls-cli: do not exit if fast open is not supported
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 13:21:07 2016 +0200
gnutls-cli: added bufferring in starttls read of packets
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 13:34:44 2016 +0200
tests: added basic test of STARTTLS over FTP for gnutls-cli
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 09:03:41 2016 +0200
tests: added basic starttls functionality testing on gnutls-cli
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 09:13:50 2016 +0200
gnutls-cli: exit with error code 2 on starttls errors
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 08:57:23 2016 +0200
tests: fixed fastopen.sh to operate from cmd
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 08:47:57 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 08:46:04 2016 +0200
gnutls-cli: fixed the behavior when --starttls or --starttls-proto is given
The change of moving the handshake process as part of the socket establishment
broke the starttls functionality in gnutls-cli. This change fixes that functionality.
Reported by Andreas Metzler.
Author: SUMIT AGGARWAL <aggarwal.s@samsung.com>
Date: Fri Aug 19 11:58:39 2016 +0200
Fix HANDLE_LEAK and memory leak issues.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 22 08:18:15 2016 +0200
gnutls-cli: print 'Handshake was completed'
The change of moving the handshake process as part of the socket
establishment, prevented the text 'Handshake was completed' from
being printed as part of a successful handshake. That message was
used by applications like gnus which use gnutls-cli. This patch
reverts that change and prints that message on successful handshakes.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 10 14:43:03 2016 +0200
tests: openpgp-certs tests were moved to cert-tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 10 14:07:03 2016 +0200
gnutls_key_generate: fail if the state of the library is invalid
Suggested by Stephan Mueller.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 10 13:35:33 2016 +0200
tests: mini-dtls-hello-verify: ignore SIGPIPE to avoid unexpected crashes
Resolves: #119
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 12:00:57 2016 +0200
gnutls_safe_renegotiation_status: changed return type to unsigned
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 11:12:16 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 10:54:09 2016 +0200
tests: removed unused variables from tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 10:45:00 2016 +0200
doc update
Author: Martin Ukrop <mukrop@redhat.com>
Date: Thu Jun 23 12:11:18 2016 +0200
tests: Add tests for X509 IP constraints
- Add dedicated test file name-constraints-ip for IP tests.
- Test the following:
* Generation and saving of valid name constraints.
* Trying to save invalid IP constraints.
* Reading the saved constraints.
* constraints_check() calls for both IPv4 and IPv6.
* IP constraints intersection (simple, empty, mediocre, complicated).
* IPv4/IPv6 constraints interaction and various corner cases.
- IPs/CIDRs are printed in logs in case of failure.
- Add 2 new chain tests (positive, negative).
- Add generated test executable to ignored files.
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Jun 29 11:25:59 2016 +0200
x509: Add support for IP constraints
- IP constraints are now checked against the subject alternative
name field.
- Implemented IP name constraints merging.
- Added IP constraints validity checking during loading and getting
the name constraints object from the user.
- Add a convenience function name_constraints_node_new that allocates
a name constraints node and sets its fields. Use this new function
where applicable.
- Add documentation for is_nc_empty, _gnutls_name_constraints_node_free,
_gnutls_name_constraints_intersect.
- Small improvements elsewhere (polishing).
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Aug 3 19:40:55 2016 +0200
tests: Add more IP conversion unit tests
- Renamed ip-in-cidr test to ip-utils.
- Added built binary to .gitignore.
- Added new tests for gnutls_x509_cidr_to_rfc5280.
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 2 15:28:52 2016 +0200
tests: added unit test for ip_in_cidr function
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Jun 29 11:23:40 2016 +0200
x509: Separate out IP handling functions
- Moved IP/CIDR to string conversion functions into separate
header and export privately for the use in tests.
- Placed ip_in_cidr() into separate header for easy testing
- Add publicly available function to convert text CIDR to RFC5280
format for the use in name constraints extension.
- certtool: Use GnuTLS exported CIDR functions instead of local ones.
- Export mask_to_prefix, mask_ip for internal GnuTLS use.
- Introduce new error value (malformed cidr) and add to description
functions in errors.c.
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Martin Ukrop <mukrop@redhat.com>
Date: Thu Jun 23 12:33:15 2016 +0200
tests: Add corner case tests for name constraints, improve doc
- Added corner case test suite for DNS name constraints.
- Documentation update in chain tests.
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Martin Ukrop <mukrop@redhat.com>
Date: Fri Jul 8 11:59:47 2016 +0200
Add more ignored files
* .tmp and .swp for text editor files
* Makefile.user created by Qt Creator
* gl/tests/ctype.h as it is generated from ctype.h.in
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Stefan Sørensen <stefan.sorensen@spectralink.com>
Date: Mon Aug 8 13:31:18 2016 +0200
Change ca3 and related certificate to include an intermediate CA in the chain.
Also update a bunch of test-cases to support chains with an intermediate CA.
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 10:14:08 2016 +0200
Revert "tests: check gnutls_certificate_get_x509_crt with more than one certificates"
This reverts commit f7d884720b128ef86f6b9dc9fc498be89faf1732.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 09:35:03 2016 +0200
tests: do not run srp test when no SRP support is compiled in
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 8 11:49:04 2016 +0200
tests: moved child status error checking code in utils.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 07:46:42 2016 +0200
latex: updated sources for new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 07:28:27 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 9 07:23:36 2016 +0200
released 3.5.3
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 8 16:30:10 2016 +0200
gnutls_transport_set_fastopen: added flags options
This will allow minor modifications to the semantics of the function
in the future, without introducing a new API.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 8 16:22:42 2016 +0200
doc update
Author: Stefan Sørensen <stefan.sorensen@spectralink.com>
Date: Mon Aug 8 13:31:15 2016 +0200
Fix gnutls_pkcs12_simple_parse to always extract the complete chain
gnutls_pkcs12_simple_parse was only collecting extra certificates that was
possible elements of the certificate chain when the extra_certs argument was
not NULL. Fix by allways collecting all the certificates, any unneeded
certificates are released before returning if extra_certs is NULL anyway.
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 8 16:08:29 2016 +0200
tests: check gnutls_certificate_get_x509_crt with more than one certificates
This would detect the issue in the "Fix invalid pointer operation in gnutls_certificate_get_x509_crt"
Author: Stefan Sørensen <stefan.sorensen@spectralink.com>
Date: Mon Aug 8 13:31:17 2016 +0200
tests: Use common ca3 test certificates in x509cert, x509dn and x509self tests.
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Author: Stefan Sørensen <stefan.sorensen@spectralink.com>
Date: Mon Aug 8 13:31:16 2016 +0200
tests: Remove zero-termination of gnutls_datum encapsulated certificates
This allows for memcmp comparison with certificates after processing.
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Author: Stefan Sørensen <stefan.sorensen@spectralink.com>
Date: Mon Aug 8 13:31:14 2016 +0200
Fix invalid pointer operation in gnutls_certificate_get_x509_crt
The access to the allocated crt_list variable was missing a pointer
dereference, leading to memory corruption for any certificate list with more
than one element.
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 7 12:56:21 2016 +0200
tests: added check for errors when importing illegal RSA keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 7 12:45:03 2016 +0200
x509: call the fixup functions after loading private keys
That way we can better report errors which relate to illegal
parameters being detected.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 7 12:06:39 2016 +0200
nettle: use rsa_*_key_prepare on key import
Previously we calculated the size of the key directly, but
by using the rsa_*_key_prepare we benefit from any checks that
may be introduced in the future. Specifically any checks for invalid
public keys (e.g., keys that may crash the underlying gmp functions).
This patch avoids calling rsa_private_key_prepare every time we construct
a nettle private key struct, because this function requires a bigint
multiplication. We call that function once on private key import.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 7 11:53:19 2016 +0200
tests: added missing backslash in key-tests Makefile
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 8 08:25:31 2016 +0200
Revert "nettle: use rsa_*_key_prepare"
This reverts commit c801a15bca9ea8f3f7abd4be48bebd36c54eeba2.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 7 11:41:47 2016 +0200
gnutls.h: moved all compatibility defines outside the enum
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 7 11:31:36 2016 +0200
prepared for release 3.5.3
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 5 15:55:47 2016 +0200
tests: use gnutls_record_set_timeout instead of kill child processes
That way we avoid issues like #118 which are caused by killing the child
process, and we also avoid deadlocks by making sure that recv will terminate
after a long delay.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 5 15:52:17 2016 +0200
tests: mini-record modify in a way to be more fail safe
That is, do not kill the child, but instead switch the roles of
child and parent, and add a timeout on recv to avoid infinite delays.
Relates: #118
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 5 15:20:48 2016 +0200
pkcs11: is_object_pkcs11_url -> is_pkcs11_url_object
Renamed function for clarity.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 5 09:46:14 2016 +0200
tests: ignore sigpipe in mini-record
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 5 09:30:14 2016 +0200
gnutls_fips140_mode_enabled: changed return type to unsigned
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 4 13:58:54 2016 +0200
doc: updated contribution guide with more info on test suite [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 4 10:22:50 2016 +0200
gnutls_pkcs11_privkey_status: return type changed to unsigned
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 4 09:57:04 2016 +0200
doc: added section on SCTP protocol [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 2 13:46:05 2016 +0200
tests: client-fastopen: removed seccomp conditional
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 2 13:34:18 2016 +0200
fastopen: improved error checking at connect()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 1 10:48:46 2016 +0200
nettle: use rsa_*_key_prepare
Previously we calculated the size of the key directly, but
by using the rsa_*_key_prepare we benefit from any checks that
may be introduced in the future. Specifically any checks for invalid
public keys (e.g., keys that may crash the underlying gmp functions).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 29 15:00:06 2016 +0200
gnutls_transport_set_fastopen: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 29 13:47:27 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 29 12:19:25 2016 +0200
getrandom: use SYS_getrandom instead of __NR_getrandom
These are identical definitions, but according to syscall()
SYS_getrandom is the expected value.
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Jul 27 15:41:08 2016 +0200
x059: Fix asymmetry in name constraints intersection
- In _gnutls_name_constraints_intersect, if *_nc had a node of some type not present in _nc2, this was preserved. However, if it was vice versa (_nc2 having a type not present in *_nc), this node was discarded.
- This is now fixed.
- Removed redundant return value check that was accidentally left when refactoring from set_datum to explicit NULL setting.
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Martin Ukrop <mukrop@redhat.com>
Date: Tue Jul 26 17:44:53 2016 +0200
tests: Add and improve chain tests
- Add a new chaintest testing the symmetry of merging name constraints of different types.
- Rename old name_constraints_but_no_name test to match other name constraints tests.
- Improve chain description of older name constraints tests.
Signed-off-by: Martin Ukrop <mukrop@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 14:34:15 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:41:11 2016 +0200
configure: do not generate makefiles in removed dirs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:37:31 2016 +0200
tests: updated paths for new location of p12 files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:34:34 2016 +0200
tests: safe renegotiation tests are run from top dir
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:30:18 2016 +0200
tests: srp tests moved outside subdir
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:24:55 2016 +0200
tests: moved sha2 tests into cert-tests/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:20:25 2016 +0200
tests: moved ecdsa tests to key-tests/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:13:39 2016 +0200
tests: moved dsa tests into key-tests/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:08:57 2016 +0200
tests: moved pkcs8 tests to key-tests/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:04:31 2016 +0200
tests: key-tests: moved data files into data/ subdir
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 12:59:33 2016 +0200
tests: moved pkcs12 tests into cert-certs/ subdir
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 11:23:43 2016 +0200
more files to ignore
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Jul 28 09:55:27 2016 +0200
Require compiler to support C99
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 13:59:26 2016 +0200
doc update
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Jul 9 13:03:55 2016 +0200
Add test for gnutls_x509_crt_list_import2 with flag GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED.
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Jul 9 12:24:33 2016 +0200
gnutls_x509_crl_list_import2 was ignoring the passed flags if all CTLs in the list fit within the initially allocated memory.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 10:51:40 2016 +0200
gnutls_certificate_get_peers may return an unsorted list
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Jul 9 11:53:52 2016 +0200
gnutls_x509_crt_list_import2 was ignoring the passed flags if all certificates in the list fit within the initially allocated memory.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 10:37:00 2016 +0200
x509: parse_tlsfeatures: move limit check at the point of addition
This prevents appending failures when verifying chains on certificates
which use the maximum allowed number of features. Suggested by Tim
Kosse.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 10:33:06 2016 +0200
tests: removed irrelevant comment
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 10:31:25 2016 +0200
correct the sign type of integers in debug message
Suggested by Tim Kosse
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 10:29:18 2016 +0200
verify_crt: simplified error setting
based on suggestion by Tim Kosse.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 28 10:12:46 2016 +0200
verify_crt: removed text on parameter no longer being present
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 23:36:20 2016 +0200
x509: avoid using int declaration within a for-loop
This addresses compilation problem with old compilers,
and brings consistency as this type of declaration is not
used in gnutls' code.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 23:32:28 2016 +0200
gnutls_global_init/deinit: don't use any locking during constructor
This ensures that there is no deadlock on unexpected errors, such
as missing symbols (e.g., on lazy linking). Reported by Ludovic Courtès.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 23:27:07 2016 +0200
rnd-linux: use better define check for linux systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 13:10:28 2016 +0200
gnutls_prf: document when its output matches gnutls_prf_rfc5705
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 11:05:59 2016 +0200
doc: gnutls_session_set_id: added since
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 10:38:47 2016 +0200
.gitlab-ci.yml: keep the guile logs as artifacts on test suite failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 27 09:20:52 2016 +0200
doc update
Author: David Walker <david.walker@vcatechnology.com>
Date: Wed Jul 20 12:43:26 2016 +0100
Add extra dependency flags
This fixes the build when the dependencies are split up during a cross-compile
Resolves: #113
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 15:14:33 2016 +0200
moved system-keys-win.c and system-key-dummy.c under system/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 25 15:47:19 2016 +0200
split system.c to various files under system/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 25 16:26:39 2016 +0200
gnutls.h: giovec_t is a typedef to iovec where that is available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 13:37:43 2016 +0200
tests: added unit test for linux _rnd_get_system_entropy
This tests whether the function can operate as expected while being
interrupted by signals.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 12:03:54 2016 +0200
getrandom: loop around getrandom to get the requested number of bytes
This simplifies and enhanced the previous error handling code.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 11:45:30 2016 +0200
README.ci-runners: document asan and ubsan tags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 15:17:35 2016 +0200
tests: removed pkcs1-padding from subdirs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 15:10:49 2016 +0200
.gitignore: more tests files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 14:59:34 2016 +0200
configure.ac: don't generate makefiles of moved tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 14:57:44 2016 +0200
tests: pkcs1-pad: moved to cert-tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 14:55:25 2016 +0200
tests: userid test moved to cert-tests/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 14:51:59 2016 +0200
tests: rsa-md5-collision: run from top-level
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 14:29:45 2016 +0200
doc: updated documentation for gnutls_transport_set_int*
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 13:59:04 2016 +0200
doc: added section on reducing round-trips
That discusses TCP fast open with gnutls_transport_set_fastopen(), and false start.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 11:38:32 2016 +0200
tests: added test of gnutls_transport_set_fastopen
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jul 25 13:05:30 2016 +0200
tests: added test of TCP fast open using gnutls-cli and gnutls-serv
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jul 25 13:08:28 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 10:33:24 2016 +0200
tools: TLS handling has been incorporated into socket_open()
This is of particular usage to the server IP address loop, since
we can detect fast open errors and retry handshake to the next IP
address.
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jul 25 13:04:11 2016 +0200
gnutls-cli: added example usage of TCP fastopen
It is enabled with the new --fastopen option.
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Jul 25 13:00:12 2016 +0200
Support TCP Fast Open
This introduces a new function gnutls_transport_set_fastopen().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Tim Ruehsen <tim.ruehsen@gmx.de>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 11:09:56 2016 +0200
.gitlab-ci.yml: added asan tag for builds which require asan
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 26 11:08:12 2016 +0200
tests: pkcs11-privkey-fork: added explicit pkcs11 deinitialization
Also ignore known leaks for p11-kit.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 25 11:43:08 2016 +0200
mention ubsan in README [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 21 20:14:39 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 22 14:11:25 2016 +0200
tests: added checks for OCSP response file support
That is, check the usability of the APIs for setting and using
an ocsp response. This improves and makes more generic the
test suite API and test_cli_serv() in particular.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 22 15:36:55 2016 +0200
dtls: added a null pointer check in record_overhead
According to my reading this check is unnecessary as in
no case a null pointer can be encountered. However gcc6
warns about a null pointer derefence and thus adding it,
to be safe.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 22 14:43:49 2016 +0200
gnutls_x509_crt_check_hostname*: use unsigned a return value
This is to prevent issues to callers who may check for negative
error values.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 22 11:17:08 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 22 11:08:32 2016 +0200
introduced: GNUTLS_E_UNAVAILABLE_DURING_HANDSHAKE
This error code is returned when the session resumption parameters
are requested during a handshake. That is, to increase the clarity
when requesting these parameters while false start is active and
the handshake is not complete even if gnutls_handshake() has returned.
Relates #114
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 21 18:58:24 2016 +0200
tests: added check of the return values of resumption data functions during false start
Relates #114
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 22 10:57:37 2016 +0200
doc: mention that the session data functions will fail prior to handshake completion
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Jul 20 14:52:00 2016 +0200
x509: Fix DNS name constraints checking
- If the intersection of name constraints of the given type was empty, the results allowed all names instead of none.
- Fixed by adding an universal excluded name constraint in case the intersection for the particular type is empty.
- Moved the logic of creating a name constraint node copy from _gnutls_name_constraints_intersect to name_constraints_intersect_nodes (previously name_constraints_match), as intersecting IP addresses will require further processing (not just taking one of the compared nodes as was the implementation till now).
- GNUTLS_SAN_MAX added in order to comfortably iterate over SAN type enum.
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Jul 20 14:29:40 2016 +0200
tests: Add DNS name constraints tests
- One chaintest with empty permitted intersection.
- Merge testset with 2 permitted constraints with empty intersection (intersected list is completely empty).
- Merge testset with 3 permitted constraints, 2 of which have empty intersection.
- Merge testset with 2 permitted constraints with empty intersection and one constraints of different type that remains (intersected list is not empty).
- Enhance failing function with suite number for easier comprehension.
Author: Martin Ukrop <mukrop@redhat.com>
Date: Wed Jul 20 14:28:20 2016 +0200
tests: Tidy up old X509 name constraints tests
- Use convenience functions for error checking and failure reporting.
- Drop explicit (de)initialization (prevents some not reed reachable memory due to PKCS11 subsystem not being deinitialized in the destructor).
- Use variables to count set permitted/excluded constraints instead of hard-coded numbers.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 21 16:07:56 2016 +0200
doc: clarify return codes in verification functions [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 21 16:02:42 2016 +0200
gnutls_certificate_verify_peers2: document that hostname comparison follows RFC6125
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 21 11:53:46 2016 +0200
rnd-getentropy: better handling of error printing with errno
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 21 11:51:05 2016 +0200
rnd-linux: make getrandom back-end robust against EINTR failures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 20 13:36:38 2016 +0200
gnutls_init: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 20 13:31:18 2016 +0200
tests: verify that GNUTLS_NONBLOCK is available as a definition
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 20 13:23:16 2016 +0200
gnutls.h: define elements of gnutls_init_flags_t
That is, define all the elements that were available prior
the move from #define to enum, to allow code relying on
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 20 13:07:44 2016 +0200
gnutls.h: documented the version various gnutls_init flags were introduced
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 20 11:27:35 2016 +0200
Moved the gnutls_x509_dn API functions to x509_dn.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 15:12:13 2016 +0200
tests: enhanced DN decoding tests with complex encoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 14:43:52 2016 +0200
RFC4514 DN decoding: allow decoding of raw ('#') items
In addition allow escaping prefix or suffix spaces as well as
the hash.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 14:21:16 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 14:10:08 2016 +0200
tests: enhanced DN decoding tests with encoding
This adds unit tests for gnutls_x509_dn_set_str().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 14:09:06 2016 +0200
Added gnutls_x509_dn_set_str()
This allows initializing a gnutls_x509_dn_t structure via a DN string.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 13:45:08 2016 +0200
tests: utils: use vasprintf() where available
This allows printing long strings.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 19 13:35:13 2016 +0200
tests: added checks for the RFC4514 decoding via gnutls_x509_dn_get_str()
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jul 19 12:08:23 2016 +0200
Remove redundant if expression from tests/mini-loss-time.c
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jul 19 11:08:10 2016 +0200
Fix tests/slow/cipher-openssl-compat.c for OpenSSL 1.1.0
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 18 18:02:25 2016 +0200
cfg.mk: no longer save config.rpath
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 18 16:36:27 2016 +0200
removed auto-generated files from the repository
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 17 09:37:22 2016 +0200
tests: removed an skipped failures due to bugs in softhsm 2.0.0
These are no longer an issue as the CI has been updated to softhsm
2.1.0, which addresses them, and they prevented catching the
GNUTLS-SA-2016-2 regression.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 16 18:12:27 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 16 17:19:02 2016 +0200
Dropped support for EGD random generator
This removes rarely tested code for systems which no longer exist
and simplifies code for Linux random generator.
Resolves #112
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 21:55:04 2016 +0200
configure: prevent a version of getentropy() in a linux libc to be used
For now, we auto-detect and switch between getrandom() and /dev/urandom
when the former is not available. With the complexity of dealing with
libc's that have the feature but kernel not supporting it, or vice versa
it is best keep things simple.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 21:38:02 2016 +0200
rnd-linux: added sanity check in getrandom output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 18:57:01 2016 +0200
nettle: split the rnd-common to rnd-windows, rnd-getentropy, and rnd-linux
That is, to the windows random generator as well as the getentropy()
generator in BSDs, as well as the getrandom(), /dev/urandom,
and EGD generators on Linux systems.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 18:51:14 2016 +0200
rnd-common: added faster detection of getrandom based on GRND_NONBLOCK
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 15:31:16 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 14:58:07 2016 +0200
urandom: use st_ino and st_rdev to determine device uniqueness
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 14:34:38 2016 +0200
Added auto-detection of getrandom() system call in Linux systems
In addition use getrandom() via the syscall interface if it doesn't
exist in Libc. The reason for the latter is that getrandom() support
for glibc is in limbo for several years, and for auto-detection is that
even if it is going to be present in libc we will not be able to guarrantee
that the system call is available just because it is present in glibc.
For that we detect on initialization whether getrandom() can obtain
random data, and if yes, we continue using that.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 15 13:58:16 2016 +0200
tests: seccomp examples: use cert-common.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 14 10:00:19 2016 +0200
tests: enhanced arbitrary extension tests with octet_string encoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 14 09:43:28 2016 +0200
certtool: added the ability to encode arbitrary extensions
That is, added the ability to encode as an octet string any
specified extension data.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 14 09:21:16 2016 +0200
.gitlab-ci.yml: added expiration time of a week for failure artifacts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 16:36:39 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 16:31:47 2016 +0200
tests: added basic testing of gnutls_x509_crq_set_extension_by_oid()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 16:13:12 2016 +0200
tests: added checks on certificate and request generation with arbitrary extensions
This tests the add_extension and add_critical_extension options of certtool.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 11:43:10 2016 +0200
certtool: added options to set arbitrary extensions to certificates and requests
This allows setting arbitrary extensions using the following new template options:
add_extension = "5.6.7.8 0x0001020304050607AAABCD"
add_critical_extension = "9.10.11.12.13.14.15.16.17.1.5 0xCAFE"
The "0x" prefix can be omitted.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 11:41:14 2016 +0200
added gnutls_x509_crq_set_extension_by_oid()
This is a function to add an arbitrary extension into a
certificate request.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 13 13:20:10 2016 +0200
doc: mention the need of libtasn1-tools in Fedora based systems [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 13 12:11:57 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 10:54:09 2016 +0200
doc: mention libcmocka dependency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 9 14:52:42 2016 +0200
tests: added unit testing for DTLS sliding window implementation
This was taken from the unit testing of AF_KTLS.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 10 23:14:03 2016 +0200
dtls: imported Fridolin's DTLS sliding window implementation
This simplifies the current code, and reduces the memory needed.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 10 22:42:21 2016 +0200
dtls: moved DTLS window handling to separate file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 12 18:37:53 2016 +0200
ex-client-x509: removed unused call to gnutls_session_set_ptr()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 12 14:48:14 2016 +0200
libtasn1: updated to allow large OIDs to be used even on 32-bit systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 17:44:28 2016 +0200
doc: updated contribution guide
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 17:43:04 2016 +0200
doc: updated contribution guide
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 11 17:19:16 2016 +0200
tests: link the resume tests to gnulib due to their missing memmem()
This fixes compilation of gnutls in solaris. Reported by Dagobert Michelsen.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 8 14:26:38 2016 +0200
NEWS: corrected release date [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 7 22:55:48 2016 +0200
.gitlab-ci.yml: keep the artifacts on failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 7 21:00:56 2016 +0200
write_nss_key_log: write the premaster secret while it is still valid
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 7 20:55:03 2016 +0200
updated libtasn1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 6 08:43:58 2016 +0200
released 3.5.2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 5 18:40:32 2016 +0200
cfg.mk: reduced the generated changelog size
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 5 18:37:15 2016 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 5 12:03:51 2016 +0200
tests: ignore any memory leaks from libcrypto
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 5 11:33:54 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 1 13:51:18 2016 +0200
asm: updated openssl and the asm sources for AES-GCM from openssl 1.0.2h
This improves the performance of AES-GCM significantly by taking
advantage of AVX and MOVBE instructions where available. This
utilizes Andy Polyakov's code under BSD license.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 5 11:44:59 2016 +0200
tests: when testing with openssl disallow any CPU optimizations
This ensures that we test our optimized code (which is mostly
openssl based), with code that is not identical.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 1 14:29:40 2016 +0200
tests: added openssl compatibility tests for AES-GCM cipher
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 5 11:41:20 2016 +0200
dane: corrected the license of libdane files
The license was always LGPL version 2.1, and these
files mentioned LGPL version 3. Reported by Thomas
Petazzoni.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 4 17:29:30 2016 +0200
tests: ignore leaks due to p11-kit in test suite
This addresses issue in "pkcs11-privkey-fork" which failed
when compiled under asan due to leaks in p11-kit after fork.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 4 15:28:27 2016 +0200
tests: added check to ensure that pkcs11 objects will be reopened on fork
This checks whether C_Initialize() and C_OpenSession() will be called
again when using a PKCS#11 module.
Resolves #95
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 4 15:19:32 2016 +0200
pkcs11: on object import always check for a support public key algorithm
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 1 15:29:58 2016 +0200
gnutls_aead_cipher_decrypt: corrected the return value of ptext_len
That is, do not account the tag_size into the plaintext.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 15:29:44 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 15:22:22 2016 +0200
configure: check for libdl irrespective of FIPS140 configuration
This allows to link to libdl for the tests that require it.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 13:44:57 2016 +0200
tests: account pkcs11/pkcs11-mock-ext.h in Makefile
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 13:41:51 2016 +0200
tests: link pkcs11-import-url-privkey with libdl
That is because it uses dlopen().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 10:47:02 2016 +0200
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 09:34:33 2016 +0200
tests: avoid compiler warning from pkcs11-pubkey-import
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 09:30:47 2016 +0200
tests: added check to verify the tolerance of broken C_GetAttributes
That is, test gnutls_pkcs11_obj_list_import_url4() when importing
private keys from tokens that return CKR_OK on sensitive objects,
and tokens that return CKR_ATTRIBUTE_SENSTIVE.
Relates #108
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 30 09:11:40 2016 +0200
pkcs11_get_attribute_avalue: correctly handle a -1 value length from C_GetAttributeValue
That is, work-around modules which do not return an error on sensitive
objects.
Relates #108
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 29 18:52:22 2016 +0200
pkcs11_get_attribute_avalue: do not assign values on failure
When C_GetAttributeValue() returns size but does not return data
then pkcs11_get_attribute_avalue() would set the return data pointer
to a free'd value. This is against the convention expected by callers,
i.e, set data to NULL. Reported by Anthony Alba in #108.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 29 17:25:06 2016 +0200
tests: use datefudge in name-constraints test
This avoids the expiration of the used certificate to affect the test.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 28 09:17:13 2016 +0200
tests: link libpkcs11mock1 with gnulib
This allows it to use gnulib for strndup where it is needed.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 28 09:15:55 2016 +0200
p11tool: do not return from void functions
This fixes a compilation issue with solaris compiler. Reported
by Peter Eriksson.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 24 11:01:35 2016 +0200
doc: mention the boolean functions in the gnutls API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 24 10:55:37 2016 +0200
tests: removed remainders of pkcs11 tests from suite/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 24 08:37:03 2016 +0200
gnutls_pkcs11_crt_is_known: changed to unsigned type
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 23 23:24:19 2016 +0200
tests: pkcs11-is-known: check that no flags enforce compare
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 23 23:13:50 2016 +0200
gnutls_pkcs11_crt_is_known: always assume GNUTLS_PKCS11_OBJ_FLAG_COMPARE unless GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_DISTRUSTED is given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 23 23:06:29 2016 +0200
tests: moved pkcs11-softhsm test suite into pkcs11/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 23 22:40:26 2016 +0200
find_cert_cb: minor cleanups in find_cert_cb
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 23 22:25:06 2016 +0200
tests: added more unit tests for gnutls_pkcs11_crt_is_known()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 18:04:45 2016 +0200
dn2: updated to account for serial number being printed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 18:01:15 2016 +0200
tests: corrected create-chain.sh to remove the ocsp_signing_key from generated certs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 18:00:03 2016 +0200
tests: replaced tls feature extension checks
The previous checks had incorrect key purpose check on the final
(root) certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 17:31:30 2016 +0200
enhanced debugging messages for cert verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 17:09:54 2016 +0200
x509: print serial number in compact output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 16:49:42 2016 +0200
tests: include softhsm.h into dist files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 15:27:05 2016 +0200
pkcs11: correctly encode the serial number when searching for certificate
In gnutls_pkcs11_crt_is_known() corrected the encoding of the
serial number to TLV DER from LV DER. This is the encoding we
use when storing that number.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 15:50:51 2016 +0200
pkcs11: correctly account check_found_cert()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 22 13:50:48 2016 +0200
gnutls-cli-debug: replaced draft-ietf-tls-chacha20-poly1305-04 with RFC7905
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 20 12:07:03 2016 +0200
gnutls-cli: benchmark the memcpy performance to compare with ciphers
Also ensure that we use different memory areas for each operation
to avoid measuring better performance due to caching.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 16 11:53:55 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 19 15:48:21 2016 +0200
doc: corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 19 13:06:15 2016 +0200
Sync with TP.
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Jun 18 18:36:13 2016 +0200
Typo fixes (found by lintian): extention, reencode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 16 11:51:42 2016 +0200
tests: added check for handshake packet reconstruction
This tests whether a split handshake packet is properly reconstructed
if the parts are switched.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 16 11:37:30 2016 +0200
dtls: corrected reconstruction of handshake packets received out of order
That is, when the handshake packet is split into multiple different
chunks and received out of order, make sure that reconstruction occurs
properly. Reported by Guillaume Roguez.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 16 10:08:34 2016 +0200
Corrected the writing of serial number in PKCS#11 modules
That is previously the serial number was written in raw format, but
in PKCS#11 the serial number must be set encoded as integer. Report
and fix by Stanislav Zidek.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 15 13:50:54 2016 +0200
ext: ecc: replaced SUPPORTED ECC POINT FORMATS with better formatted name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 15 09:21:10 2016 +0200
tests: disable SRP-base64 encode/decoded tests when SRP is disabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 19:46:55 2016 +0200
.gitlab-ci.yml: restrict windows build checks to tests/ subdir [ci skip]
That is because there is an issue with the gnulib self tests when
run under windows.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 16:43:50 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 16:35:55 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 16:32:21 2016 +0200
released 3.5.1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 16:31:35 2016 +0200
tests: added missing files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 15:24:48 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 15:23:04 2016 +0200
tests: fixed the path of cert-tests files and added missing files in Makefile.am
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 15:17:33 2016 +0200
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 10:21:54 2016 +0200
tests: verify the resilience of the TLSFeature handling functions on large number of features
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 10:02:56 2016 +0200
tlsfeature: impose a maximum number of supported TLS features
This avoids many allocations and simplifies handling of the features.
The currently set maximum number of TLS features aligns with the
maximum number of supported TLS extensions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 09:51:01 2016 +0200
tests: added unit test for gnutls_x509_tlsfeatures_check_crt
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 16:07:44 2016 +0200
During PKIX chain verification check the TLSFeatures compliance
This verifies whether a chain complies with RFC7366 p.4.2.2 requirements.
That is whether the issuer's features are a superset of the certificate
under verification.
This enhances gnutls_x509_crt_get_tlsfeatures() to allow appending
of TLSFeatures, and introduces gnutls_x509_tlsfeatures_check_crt().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 15:10:27 2016 +0200
verify_crt: moved all verification state into a common structure
This allows for easier extension of state.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 09:28:28 2016 +0200
tests: added chain verification with TLS features
That adds checks for the RFC7633 requirements for intermediate
and CA certificates (p. 4.2.2).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 14:37:49 2016 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 14:37:12 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 14:01:56 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 13:49:28 2016 +0200
tests: verify the operation of honor_crq_ext template option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 13:41:24 2016 +0200
tests: common.sh will export the required TZ for datefudge tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 13:24:03 2016 +0200
tools: avoid using deprecated types
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 13:23:03 2016 +0200
certtool: allow copying specific certificate request extensions to certificate
This introduces the honor_crq_extension multi-line template option.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 13:13:32 2016 +0200
tests: added check on gnutls_x509_crt_set_crq_extension_by_oid()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 11:19:50 2016 +0200
Added gnutls_x509_crt_set_crq_extension_by_oid()
This allows copying specific OIDs from a certificate
request to the certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 09:59:20 2016 +0200
tests: moved check for datefudge in scripts/common.sh
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 09:55:04 2016 +0200
tests: cert-tests: moved all data files in separate subdir
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 14 09:36:29 2016 +0200
tests: cert-tests: moved templates into subdir
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Fri Jun 10 13:41:22 2016 +0100
tests: test trailing comma in system priorities
Add tests which verify behaviour when the list of system
priorities has a trailing ','. Avoid crash in test suite
if the test unexpectedly succeeds when expected_str is
NULL.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 10 13:56:23 2016 +0200
tests: added check of DTLS rehandshake for upgrade
That is check whether anon -> cert renegotiation works.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 10 13:43:36 2016 +0200
tests: added check of DTLS rehandshake when using PKIX certs
This complements the existing DTLS rehandshake test using anonymous
ciphersuites.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 18:55:02 2016 +0200
tests: document some details in system-prio-file [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 17:40:49 2016 +0200
doc: mention the usage of the _gnutls_resolve_priorities function in testsuite
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 17:38:29 2016 +0200
doc: mention the fallback keyword support in manual
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 17:36:12 2016 +0200
tests: added checks for system priority file fallback mechanism
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Fri Jun 3 16:57:02 2016 +0100
gnutls_priority_init: multiple @KEYWORD lookups with fallback
The support for using "@KEYWORD" as a priority string is very
useful to separate selection of priorities from application
specific code or config files. It is, however, not general
enough to fully serve all reasonable use cases.
For example, consider an application sets
gnutls_priority_set_direct(session, "@SYSTEM", NULL);
The system administrator can modify the global priorities
file to change what "@SYSTEM" resolves to for all apps using
GNUTLS. As soon as one application wishes to have a slightly
different configuration from others on the host, you have to
go back and start modifying application specific configuration
files once more. This is bad for the system administrator as
it means there's no longer one single place where they can
see the priority configuration for all apps.
They may try to get around this problem by configuring the
app to use a different keyword, instead of a full priority
string, eg "@LIBVIRT". So the global priorities file can
now define entries for both "SYSTEM" and "LIBVIRT". This
has still placed a burden on the administrator change the
config in two places - both libvirt config files and the
global priorities file.
What is more desirable is if applications were able to provide
a list of keywords that would be tried in order, picking the
first that existed. For example, libvirt could be written to
request the following by default
gnutls_priority_set_direct(session, "@LIBVIRT,SYSTEM", NULL);
With this, gnutls would first try to find the "LIBVIRT" keyword
in the global configuration file, and if that is not present,
then it would fallback to trying to find the "SYSTEM" keyword.
This provides nice "out of the box" behaviour for system
administrators, whereby the app would be using "SYSTEM" initially
and if the admin wishes to give the app a custom configuration,
they can simply modify the global priorities file to add in the
application specific keyword "LIBVIRT". There is never a need
for the sysadmin to modify any application specific configuration
files any more. It is exclusively controlled in one place via the
global priorities file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 17:20:22 2016 +0200
tests: enhanced system priority file testing
This checks whether appending to system priority options work.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 17:21:57 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 17:01:06 2016 +0200
doc: remove all references to openpgp auth example
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 9 16:48:14 2016 +0200
doc update
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Fri Jun 3 14:59:11 2016 +0100
_gnutls_resolve_priorities: always try to re-read sys priority file
Previously if the system priority file was edited, that would
take effect on the very next TLS session an application created.
As of:
commit 006b89d4464ae1bb6d545ea5716998654124df45
Author: Nikos Mavrogiannopoulos <nmav@redhat.com>
Date: Fri Apr 1 10:46:12 2016 +0200
priorities: preload the system priorities on library loading time
It is required to restart every application after changing the
system priority file to get changes to take effect.
Further, for applications running in a chroot, it will no longer
honour a system priority file that may exist inside the chroot,
always using the originally cached data from outside the chroot.
This patch changes the caching so that we always try to reload
the cache of system priorities. A mtime check is used to avoid
actually re-reading the file unless its content has obviously
changed. If the file no longer exists, the cache will not be
invalidated. This ensures that the current priority file is
always honoured, whether inside a chroot or not, while at the
same time allowing apps to work in a chroot when no system
priority file is present.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 8 19:38:07 2016 +0200
doc: remove references to GNUTLS_KEYLOGFILE
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 6 19:33:34 2016 +0200
tests: renamed rehandshake checks for clarity
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 6 18:47:28 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 6 18:43:12 2016 +0200
keylogfile: only consider the SSLKEYLOGFILE variable
In addition do not check the environment in the constructor
but instead use static variables to save the key file name.
The GNUTLS_KEYLOGFILE environment variable is no longer used
since there is no reason to have a separate one.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 6 18:39:18 2016 +0200
lib: eliminated the use of deprecated variables
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 4 11:42:21 2016 +0200
doc: removed OpenPGP examples
Relates #102
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 4 11:36:34 2016 +0200
pkcs12: corrected return type of gnutls_pkcs12_bag_get_type()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 17:07:28 2016 +0200
tests: move pkcs11-cert-import-url4-exts with the other pkcs11 tests
This prevents a build failure in windows.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 15:01:59 2016 +0200
doc clarify the version since when GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT is accepted
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 14:53:04 2016 +0200
tests: corrected typo in crl-test
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 14:24:32 2016 +0200
tests: check gnutls_pkcs11_obj_list_import_url4() with GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 14:50:45 2016 +0200
gnutls_pkcs11_obj_list_import_url4: accepts the GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT flag
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 14:41:25 2016 +0200
gnutls_pkcs11_obj_list_import_url3: rewritten to use gnutls_pkcs11_obj_list_import_url4
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 14:29:45 2016 +0200
pkcs11: use ctx as variable name for ck_object_handle_t for clarity
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 3 13:47:44 2016 +0200
pkcs11: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 2 14:37:11 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 2 14:28:52 2016 +0200
_gnutls_check_key_purpose: in CA certificates treat the SGC key purpose as GNUTLS_KP_TLS_WWW_SERVER
This is a hack for certain very old CA certificates lurking around which instead
of having the GNUTLS_KP_TLS_WWW_SERVER have some old OIDs for that purpose. Consider
these OIDs equivalent to GNUTLS_KP_TLS_WWW_SERVER in marked as CA certificates.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 2 09:22:26 2016 +0200
gnutls-cli: --save-ocsp will work even if verification fails
That is, allow saving the response even if the OCSP response caused
a verification error. That way the response can be examined for possible
issues.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 2 09:20:13 2016 +0200
ocsp: attempt harder to figure an OCSP staple issuer
That is, check initially against the trust list set on the credentials,
and if verification is not possible attempt with all certificates in
the chain as possible issuers. The reason of this enhancement is the
few servers have an OCSP response signed not by their direct CA but
rather by one of the higher level CAs.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 14:10:59 2016 +0200
tests: added comprehensive OCSP test suite with MUST-staple PKIX extension
This includes the tests:
- Server with valid certificate - no staple
- Server with valid certificate - valid staple
- Server with valid certificate - invalid staple
- Server with valid certificate - unrelated cert staple
- Server with valid certificate - expired staple
- Server with valid certificate - old staple
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 10:09:54 2016 +0200
tests: utils: added c_print()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 10:33:15 2016 +0200
ext: status_request: added more descriptive name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 14:15:49 2016 +0200
ocsp: fail certificate verification on expired or too old revocation data info
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 14:13:52 2016 +0200
ocsp: Introduced GNUTLS_CERT_INVALID_OCSP_STATUS
This verification status flag indicates an OCSP status response
being stapled but it being invalid for some reason (e.g., unable
to parse or doesn't contain the expected certificate).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 1 14:38:32 2016 +0200
doc: improved OCSP description and mention RFC7633
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 16:52:06 2016 +0200
tests: added basic check for gnutls_url_is_supported
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 16:47:34 2016 +0200
gnutls_url_is_supported: type changed to unsigned
In addition function documentation was updated.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 16:42:22 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 16:37:34 2016 +0200
pubkey_to_bits: return type was changed to unsigned
This function did not return signed data, so the "int" return
type was confusing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 16:16:38 2016 +0200
crypto-selftests: removed unneeded cast
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 13:49:13 2016 +0200
several sign-related API changes
This replaces the usage of "int" in functions which could only
have accepted an "unsigned" value. Also functions which return
unsigned values are explicitly tagged as such. The ABI remains
the same with these changes.
This allows easier catching of sign/unsigned related errors from
the calling applications.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 11:40:00 2016 +0200
x509: simplified _gnutls_x509_get_tbs()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 10:08:14 2016 +0200
x509: replace the bool type with the unsigned type
This allows to rely on gcc warnings for improper checks and
conversions. Unfortunately gcc does warn on invalid checks for
the bool type (e.g., b<0).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 10:00:18 2016 +0200
configure: enable the type-limits gcc warnings
In addition remove the unsafe-loop-optimizations warning
as they were not helpful.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 31 08:59:47 2016 +0200
certtool: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 22:28:23 2016 +0200
DCO: added Tim Kosse [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 15:19:15 2016 +0200
tools: modify canonicalize_host to not depend on in6_addr
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 15:17:06 2016 +0200
tests: added unit tests for gnutls_x509_tlsfeatures_t handling funcs
This includes DER import/export as well as feature appending.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 14:19:20 2016 +0200
tests: tlsfeature-test will ignore the 'Algorithm Security Level' line in comparisons
That is to allow depending on the certificate output validation without
relying on "moving" parameters such as the Algorithm Security Level.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 13:47:14 2016 +0200
tests: verify whether the TLSFeatures extension is copied
Verify whether the TLSFeatures extension is copied from the certificate
request to the generated certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 13:34:17 2016 +0200
doc: updated since version of tlsfeature functionality and documented new functions
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Fri Jan 15 14:45:03 2016 +0100
tests: add testcase to check for missing status request
That is verify whether the OCSP MUST-staple extension, as can be
deduced from RFC7633, is accounted during handshake.
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Fri Jan 15 14:45:42 2016 +0100
Reset extensions_sent_size only at start of handshake
That is, do not reset it when completing it so that we can
use the negotiated extensions even after the handshake is
complete.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sun Dec 20 15:09:24 2015 +0100
Account the TLSFeature certificate extension in certificate verification
That is, account for the OCSP-Must staple extension. If we have sent an OCSP
status request and have not gotten anything, but the certificate has the
Status Request TLSFeature extension present, fail to verify the certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 12:57:55 2016 +0200
tools: allow specifying a hostname with a port attached
That is: gnutls-cli www.example.com:443 is equivalent to
gnutls-cli www.example.com -p 443
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 12:35:45 2016 +0200
tests: check the generation and printing of TLS feature PKIX extension
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 11:23:39 2016 +0200
doc: document tls_feature option in the sample template
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 10:55:46 2016 +0200
TLS extensions: use more human-friendly names
This is required to provide better output to gnutls_ext_get_name()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 10:50:38 2016 +0200
exported function to convert TLS extension numbers to strings
The exported function is gnutls_ext_get_name()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 10:45:46 2016 +0200
x509/output: print the extension name of TLSFeatures
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Thu Jan 7 11:27:13 2016 +0100
Implement setting the TLS features extension on certificates via certtool's template file.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 30 10:20:00 2016 +0200
libgnutls.map: exported the tlsfeatures-related functions
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Fri Jan 15 11:34:31 2016 +0100
Add functions to get/set the tlsfeatures to certificate requests.
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Mon May 30 09:57:42 2016 +0200
Added gnutls_x509_crt_set_tlsfeatures
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Mon May 30 09:52:15 2016 +0200
Added functions to add features and convert tlsfeatures back to DER
That adds:
gnutls_x509_ext_export_tlsfeatures
gnutls_x509_tlsfeatures_add
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Fri Jan 15 13:48:10 2016 +0100
Move call to terminate() until after printing the error message.
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Fri Jan 15 12:04:00 2016 +0100
Fix the description of two testcases.
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Mon May 30 09:45:29 2016 +0200
Added functions to parse the TLSFeatures X.509 extension.
In addition provide function to enumerate the features it lists,
and output information with the output functions.
This adds:
gnutls_x509_tlsfeatures_init
gnutls_x509_tlsfeatures_deinit
gnutls_x509_tlsfeatures_get
gnutls_x509_ext_import_tlsfeatures
gnutls_x509_crt_get_tlsfeatures
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun May 29 11:53:22 2016 +0200
Typo fix: auxilary -> auxiliary [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 28 22:26:48 2016 +0200
tests: added DTLS 0.9 check with AES-128-GCM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 28 19:57:09 2016 +0200
gl: secure_getenv() will behave as getenv on windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 28 19:32:12 2016 +0200
tests: corrected definition of CryptSignHash in mock crypt32
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 28 09:55:53 2016 +0200
Rely on gnulib's secure_getenv()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 28 09:55:07 2016 +0200
x86-common: use secure_getenv()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 27 22:48:48 2016 +0200
configure.ac: check for secure_getenv where available and always enable system extensions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 27 22:34:53 2016 +0200
tests: keylog-env will check for SSLKEYLOGFILE as well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 27 22:26:02 2016 +0200
env: use secure_getenv when reading environment variables
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 27 22:21:50 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 27 22:19:40 2016 +0200
Append keys on keylogfile
Also consider the SSLKEYLOGFILE variable, since the format is
identical and we are always appending keys.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 26 11:05:40 2016 +0200
tests: ssl2-hello check is made conditional
It is only run if ENABLE_SSL2 is defined.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 26 11:04:27 2016 +0200
.gitignore: more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 26 11:02:34 2016 +0200
tests: added SSL2.0 client hello parsing check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 26 10:58:19 2016 +0200
tests: added small text clarifying the purpose of the cert-common.h header
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 24 13:45:32 2016 +0200
tests: add an upper limit in the run of compat tests
This allows the test suite to recover from the case of DTLS implementations
that do not properly retransmit and block on lost packets.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 24 13:27:12 2016 +0200
doc: advise against using the TPM-specific API
It is restricted to TPM 1.2, and there are fine PKCS#11 wrappers that
will provide identifical functionality.
Relates #101
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 24 10:08:14 2016 +0200
.gitlab-ci.yml: corrected typo preventing the no-SSL 3.0 test part to be properly run
Also test the --disable-ssl2-support option.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 24 09:58:12 2016 +0200
Amend the "Allow for conditional compilation of SSL 3.0 protocol patch"
That is fix bug introduced by an incorrect #ifdef, and unconditionally
provide access to certificate callbacks.
This amends 89faab9e9e9123f39e8c0c6f8da1f67de423254a
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 24 09:17:53 2016 +0200
doc: updated text on priority strings
Refer to RFC7685 for the TLS padding extension (%DUMBFW),
and mention the default behavior for the TLS client hello record version.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 23 11:33:53 2016 +0200
pkcs11: added sanity check to find_obj_url_cb() for object validity
Also avoid unnecessary recursion.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 21 06:24:47 2016 +0200
tests: run compatibility checks in parallel for various modifiers
That is, the various %NO_ETM, %COMPAT, ... modifiers are checked
in parallel in the testcompat suite, reducing the overall running
time significantly.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 21 05:39:21 2016 +0200
tests: enhance TLS version checks with DTLS
That is we check whether DTLS-1.0 and DTLS-1.2 can be negotiated
using the NORMAL priority string. We also add a custom check for
DTLS-0.9 as this is not fully supported for negotiation.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 17:44:46 2016 +0200
tests: use /bin/bash in tests which require common.sh
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 15:04:22 2016 +0200
.gitlab-ci.yml: minimal build disables SSL2 client hello
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 15:03:41 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 15:01:49 2016 +0200
Allow for conditional compilation of SSL 2.0 client hello support
This allows to completely remove SSL 2.0 support by calling configure
with the '--disable-ssl2-support' option.
Relates #97
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 14:54:38 2016 +0200
Amend: Allow for conditional compilation of SSL 3.0 protocol
This patch makes conditional several more SSL 3.0-only parts of codebase.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 14:47:27 2016 +0200
CONTRIBUTING.md: link to milestones instead of all issues
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 14:42:12 2016 +0200
tests: mini-x509-cas: use cert-common.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 14:41:08 2016 +0200
CONTRIBUTING.md: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 12:07:57 2016 +0200
tests: do not use pkglib to generate libpkcs11mock1.so
This resulted in the test library being installed. Install we use noinst
for the library, but pass -rpath to LDFLAGS as a hack to for libtool
to generate the shared version.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 19 12:08:13 2016 +0200
configure.ac: increased stack size usage to reduce warnings
Also remove gcc flags from the banned list that no longer pose
and issue.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 20 07:45:46 2016 +0200
announce.txt: updated list email address
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 19 10:56:52 2016 +0200
priority: CCM ciphersuites was promoted over the CBC ones
Also make explicit the prioritization rules for the default set
of ciphers.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 19 09:24:13 2016 +0200
gnutls-cli: allow operation with stdin input
That is once commands from stdin are given, they are not only sent to server,
but we also wait for a response prior to exiting.
Resolves #96
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 14:00:06 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 22:24:33 2016 +0200
tests: ocsp-tls-connection: use /bin/bash since we rely on the $RANDOM variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 22:20:47 2016 +0200
tests: use _putenv() for setting environment on windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 21:15:38 2016 +0200
tests: added check to verify that keylog file is being written
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 16:38:13 2016 +0200
doc: documented the GNUTLS_KEYLOGFILE environment variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 16:31:28 2016 +0200
Write session keys into a file when GNUTLS_KEYLOGFILE is exported
That is the file pointed from the variable is written to, and contain
the session parameters in the following format (identical to NSS key
log format):
CLIENT_RANDOM <space> <64 bytes of hex encoded client_random> <space> <96 bytes of hex encoded master secret>
and for the old RSA ciphersuites also in the format:
RSA <space> <16 bytes of hex encoded encrypted pre master secret> <space> <96 bytes of hex encoded master secret>
Resolves #64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 13:39:06 2016 +0200
systemkey: corrected help output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 18 13:36:11 2016 +0200
doc: document the systems supported via systemkeys API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 14:13:26 2016 +0200
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 10:35:39 2016 +0200
gnutls-cli: corrected check for OCSP verification success
Author: Thomas Klute <thomas2.klute@uni-dortmund.de>
Date: Fri Apr 29 02:50:31 2016 +0200
Test case for gnutls-cli --ocsp
This new test case checks if gnutls-cli accepts OCSP responses for a
valid and a revoked server certificate when establishing TLS
connections. Uses the OpenSSL OCSP responder.
Signed-off-by: Thomas Klute <thomas2.klute@uni-dortmund.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 09:23:22 2016 +0200
INSTALL.md: no longer reference libgcrypt
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 09:16:32 2016 +0200
doc: updated README files
This makes the names a bit more reasonable, drops the very generic
INSTALL file, and also allows the github repository to print the
correct README file.
README -> INSTALL.md
README-alpha.md -> README.md
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 08:56:59 2016 +0200
tests: renamed cert-callback checks for simplicity
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 08:55:50 2016 +0200
tests: added check with the legacy cert verification callback
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 08:54:43 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 17 08:43:58 2016 +0200
tests: cert-callbacks check now checks the server-side callback operation as well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 16 18:08:27 2016 +0200
tests: dtls-stress: fix debug argument accounting
It was not being considered when it was not the last argument.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 16 18:05:34 2016 +0200
tests: re-disabled dtls-nb check; it had random failures
This was disabled for quite long time already, and needs to
be investigated.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 16 13:47:23 2016 +0200
tests: added DTLS test suite when in session resumption
While there is already a test suite for DTLS lost packets/rearranges
it does not cover the session resumption flights. This patch
enhances the test suite with these checks.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 15 10:44:42 2016 +0200
dtls-stress: added session resumption option
This allows to perform tests on DTLS resumed sessions for
retransmitions due to lost packets.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 15 11:34:32 2016 +0200
tests: dtls: removed excessive debugging output from test
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 15 11:08:57 2016 +0200
tests: dtls-stress: corrected parsing of -d option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 15 10:49:42 2016 +0200
record.c: removed superfluous debugging
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 15 10:40:38 2016 +0200
gnutls_assert_val: corrected regression from 78ee98e06c7862df38131b12083adc1a0c5eea4a
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 15 09:30:02 2016 +0200
gnutls_assert_val: was modified to be in line with gnutls_assert()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 13:03:27 2016 +0200
.gitlab-ci.yml: added new build target without SSL 3.0
Also disable SSL3.0 in the minimal library compilation.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 11:58:27 2016 +0200
.gitignore: more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 11:57:47 2016 +0200
tests: added key exchange checks for all DTLS protocols
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 11:48:45 2016 +0200
doc: prefer the usage of VERS-ALL in documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 11:47:18 2016 +0200
ext master secret: don't enable when SSL 3.0 is the only protocol
That is on server side only. On client side this logic was already
present.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 11:18:44 2016 +0200
tests: separated the key exchange checks
That is introduce separate checks for each key exchange on every TLS version.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 11:12:56 2016 +0200
doc: mention the TLS 1.2 restriction of sign algo functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 10:28:49 2016 +0200
Allow for conditional compilation of SSL 3.0 protocol
This allows to completely remove SSL 3.0 support by calling configure
with the '--disable-ssl3' option.
Resolves #93
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 08:03:48 2016 +0200
Makefile.am: include renamed files into distribution
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 00:39:23 2016 +0200
README-alpha.md: refer to CONTRIBUTING.md [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 00:38:59 2016 +0200
LICENSE: mention that documentation is under GNU FDL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 00:35:45 2016 +0200
Leave only LICENSE in the root directory and move licenses to doc/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 00:13:44 2016 +0200
Added a LICENSE file [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 14 00:31:43 2016 +0200
Moved coding style and contribution guide to CONTRIBUTION.md
This aligns with gitlab's web interface.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 13 20:39:11 2016 +0200
tests: include unistd.h in tests which call _exit()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 13 13:41:53 2016 +0200
tests: simplified server launching process
Also attempt to use a new port on every started server and
added a waiting period for the port to become re-usable.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 13 11:28:51 2016 +0200
tests: avoid calling exit() from signal handlers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 13 11:16:58 2016 +0200
memmem.m4: don't call exit() from signal handler
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 12 11:24:03 2016 +0200
tests: enhance SNI checking with invalid UTF8 and embedded NULL case
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 12 11:22:51 2016 +0200
Introduce _gnutls_server_name_set_raw
This is an internal function intended for testing, which performs
the same as gnutls_server_name_set() but without any UTF8 conversions
or other checks in the input. It is intended to be used with raw data.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 12 11:21:16 2016 +0200
errors: include GNUTLS_E_IDNA_ERROR to the list
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 12 10:58:58 2016 +0200
server_name: only save the supported server names in the session
Invalid server names with embedded nulls and unsupported types
are not saved.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 12 10:37:56 2016 +0200
gnutls_server_name_get: mention GNUTLS_E_IDNA_ERROR being returned
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 12 09:24:23 2016 +0200
doc: clarify that 'hmac' in the name of functions is only for legacy reasons
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 11 13:23:33 2016 +0200
tests: introduce delay between server restarts in testsrn.sh
This is to reduce test suite random failures on CI.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 11 09:31:28 2016 +0200
tests: CRL test will separate stderr output from stdout
This addresses CI failures due to "Merge mismatch for function" messages
from gcov being inserted into stdout output and messing the base64 encoding.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 11 09:28:55 2016 +0200
Revert "tests: CRL test will not push stderr into output files"
This reverts commit bf1ee75f78cd81ea8309bdfb50f63ed0ab61a23a.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 11 09:27:32 2016 +0200
gnutls_pkcs7_print: avoid warning for signed/unsigned comparison by making everything signed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 11 08:17:37 2016 +0200
tests: CRL test will not push stderr into output files
This addresses CI failures due to "Merge mismatch for function" messages
from gcov being inserted into output and messing the base64 encoding.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 22:46:34 2016 +0200
pack_srp_auth_info: corrected check for uninitialized username
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 22:48:56 2016 +0200
call_get_cert_callback: removed dead code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 22:11:52 2016 +0200
pkcs11: added error check in _gnutls_buffer_append_data()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 22:08:23 2016 +0200
gnutls_pubkey_verify_data2: simplified return logic
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 22:02:54 2016 +0200
gnutls_pkcs7_print: corrected type of unsigned count variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 21:55:07 2016 +0200
_gnutls_krb5_der_to_principal: fixed invalid deinitialization on cleanup
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 20:57:08 2016 +0200
tests: don't run hash-large on freebsd
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 20:06:03 2016 +0200
tests: fix mmap usage of hash-large to correctly detect failures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 15:23:11 2016 +0200
doc: updated documentation for gnutls_x509_crt_get_*_dn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 15:20:09 2016 +0200
certtool: handle empty CNs on verification
That is, handle GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if returned
from gnutls_x509_crt_get_dn() on the end certificate.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 15:17:18 2016 +0200
Revert "x509: allow empty DNs on parsing for subject DNs"
This reverts commit 1641ea943079765d601cf418dc2c89c1c93f0ecf.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 11:40:43 2016 +0200
cert cred: add the CN to the list of known hostnames only if no dns_names
That is, follow rfc6125 and support CN as a fallback only.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 11:23:02 2016 +0200
tests: enhanced set_x509*_key to verify that connections succeed with creds
That is the tests no only verify that credentials are set as expected
but also whether sessions are established with the credentials provided.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 11:15:53 2016 +0200
gnutls_certificate_set_key: import the DNS names of the certificates
That is, only when no (NULL) names are provided.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 11:12:33 2016 +0200
reset the global time func on init/deinit
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 11:05:03 2016 +0200
auth/cert: log the server name requested by client
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 11:00:02 2016 +0200
improved output of gnutls_assert()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 10:44:57 2016 +0200
x509: allow empty DNs on parsing for subject DNs
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Mon May 9 20:57:36 2016 +0300
build: tests/windows/cng-windows.c: fix implicit decleration of exit
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 09:15:29 2016 +0200
.gitlab-ci.yml: enable openssl compat library in minimal build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 10 09:12:51 2016 +0200
openssl_compat: removed unneeded headers
These headers have been renamed, but they were not necessary for
this module's compilation. Report/Patch by Andreas Metzler.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 9 21:47:14 2016 +0200
.gitlab-ci.yml: added build for windows DLLs
This creates the windows DLLs on every tagged release.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 9 08:03:24 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 9 07:52:14 2016 +0200
bumped soversion
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 9 07:51:05 2016 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 7 13:34:34 2016 +0200
x509: use the modified flag in gnutls_x509_crt_t
That will avoid re-encoding or decoding in common operations.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat May 7 13:18:20 2016 +0200
x509: added flag to indicate modification in gnutls_x509_crt_t
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 6 16:55:48 2016 +0200
gnutls_x509_crt_equals*: modified to allow operation with certificates that are not imported
This allows it operating with certificates that are generated from scratch.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 6 16:04:31 2016 +0200
tests: added checks for certificate generation APIs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 6 15:40:14 2016 +0200
doc: fixed documentation of gnutls_x509_crt_set_subject_alternative_name
The previous version could not be parsed by gdoc.
Author: Hubert Kario <hkario@redhat.com>
Date: Fri May 6 11:12:29 2016 +0200
gnutls-serv: sending alerts on mismatched SNI names
Extend serv utility to be able to send alerts when the name advertised
by client does not match the name expected by server.
Author: Hubert Kario <hkario@redhat.com>
Date: Fri May 6 11:05:10 2016 +0200
Add support for sending unrecognized name alerts
To better test support for server_name extension in TLS, it's
necessary to be able to differentiate between name being rejected
because it is unknown to the server and it being malformed.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 6 11:41:12 2016 +0200
doc: TODO list references to gitlab
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 5 11:10:38 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 5 11:01:29 2016 +0200
priorities: when without AES acceleration prefer stream ciphers (i.e., CHACHA20)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 5 22:49:50 2016 +0200
doc: updated documentation on rehandshake and GNUTLS_ALLOW_ID_CHANGE [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 4 09:13:50 2016 +0200
tests: use the 'b' modifier for writing binary data in set_x509_key_file_der
This allows the test to operate properly on windows systems.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 4 08:07:37 2016 +0200
tests: avoid the usage of tmpnam()
Use a simpler version which is confined within the testsuite
build directories.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 4 07:48:37 2016 +0200
tests: disable checks with tmpnam() on windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 20:14:37 2016 +0200
tests: fixed 64-bit check for time_t in mini-x509
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 15:26:52 2016 +0200
tests: added check for gnutls_certificate_set_x509_simple_pkcs12_file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 15:12:47 2016 +0200
.gitignore: more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 15:12:00 2016 +0200
tests: added check of gnutls_certificate_set_x509_key_file2 with DER input
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 14:54:31 2016 +0200
tests: enhanced set_x509_key_file check
That now verifies that the input is the same as the data stored
in the credentials as well checks for valid operation.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 14:29:35 2016 +0200
tests: mini-x509: include the legacy verification functions into the check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 14:28:44 2016 +0200
tests: added check for gnutls_certificate_set_key()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 14:24:08 2016 +0200
gnutls_certificate_set_key: duplicate the provided memory
That is, do not assume that a heap allocated value is provided.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 11:54:04 2016 +0200
.gitlab-ci.yml: enabled coverage run in the x86 build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 11:49:09 2016 +0200
tests: do not block server errors in testdsa from being printed out
Also added a delay prior to launching next server instance.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 11:43:48 2016 +0200
.gitignore: more test files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 11:26:04 2016 +0200
pkcs11: find_ext_cb: eliminated memory leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 10:56:44 2016 +0200
pkcs11: find_cert_cb: do not use C_FindObjectsInit() when another is already running
While some modules implicitly terminated the previous run, this is not
something that PKCS#11 modules are expected to typically do.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 3 09:28:36 2016 +0200
pkcs11: the flag GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT will be respected by imported certificates
That is, certificates imported with gnutls_pkcs11_obj_import_url() or
gnutls_x509_crt_import_url() will be able to be extracted with their
extensions overriden. Previously that was available only on gnutls_pkcs11_get_raw_issuer()
and friends.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 15:36:56 2016 +0200
tests: added a basic PKCS#11 mock module
This is used to test gnutls_pkcs11_obj_get_exts(), gnutls_x509_crt_import_url(),
and gnutls_pkcs11_get_raw_issuer() with the GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT
flag.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 13:13:10 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 13:12:00 2016 +0200
_gnutls_x509_crt_cpy: optimized and simplified
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 12:53:54 2016 +0200
exported gnutls_x509_crt_equals() and gnutls_x509_crt_equals2()
These functions provide a way to compare parsed certificates. They
were used internally and they are quite useful to be made available.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 15:36:37 2016 +0200
gnutls_pkcs11_obj_get_exts: updated documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 12:09:03 2016 +0200
gnutls_x509_crt_import_url: updated documentation for new function name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 12:05:48 2016 +0200
gnutls_pkcs11_add_provider: clarified params description
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 08:38:32 2016 +0200
tests: added checks on PKCS#1 digest info encoding/decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 08:37:45 2016 +0200
gnutls_decode_ber_digest_info: return more precise error code on unknown hash
That is instead of returning GNUTLS_E_UNKNOWN_ALGORITHM on unknown hash,
return GNUTLS_E_UNKNOWN_HASH_ALGORITHM.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 2 08:35:58 2016 +0200
errors.h: removed terminating colon on gnutls_assert() output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 1 12:13:26 2016 +0200
doc: updated PKCS #11 documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 30 18:09:18 2016 +0200
gnutls_certificate_get_crt_raw: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 30 18:06:51 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 30 17:50:45 2016 +0200
doc: mention the version after which gnutls_pem_base64_en/decode2() are available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 30 08:26:37 2016 +0200
tests: use one-time files in crl
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 30 07:14:13 2016 +0200
tests: check whether the randomly generate port is used
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 30 07:05:46 2016 +0200
.gitlab-ci.yml: enabled the code coverage checks in the valgrind and ubsan targets
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 19:38:44 2016 +0200
tests: enhanced the key-import-export tests
This check now includes the abstract privkey import/export interfaces.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 19:38:01 2016 +0200
corrected import issue in gnutls_privkey_import_ecc_raw
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 19:31:48 2016 +0200
x509/privkey: in raw import functions set the parameter's algorithm type
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 19:03:11 2016 +0200
srp base64: return proper gnutls errors codes on error rather than -1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 19:02:45 2016 +0200
tests: added checks for base64 functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 18:04:50 2016 +0200
.gitlab-ci.yml: added code coverage run
This enhances a test to print the code coverage of the test suite,
which in turn is being used/reported by gitlab CI interface.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 14:53:40 2016 +0200
ax_code_coverage.m4: updated to latest version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 13:12:36 2016 +0200
libtasn1: updated to latest version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 12:57:23 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 12:56:24 2016 +0200
errors.h: gnutls_assert() will log the function name in addition to filename/line
This is quite necessary after the filenames were simplified and we have
filenames with identical names in the directory structure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 12:34:43 2016 +0200
tests: added check for SRP ID change during rehandshake
The tests make sure that username changes are allowed if the
flag GNUTLS_ALLOW_ID_CHANGE is specified, and prohibited otherwise.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 11:47:58 2016 +0200
tests: added check for PSK ID change during rehandshake
The tests make sure that username changes are allowed if the
flag GNUTLS_ALLOW_ID_CHANGE is specified, and prohibited otherwise.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 10:23:45 2016 +0200
handshake: enhance same certificate checks to apply to PSK/SRP username
That is, unless GNUTLS_ALLOW_ID_CHANGE is specified, during a rehandshake
clients will not be allowed to present another certificate than the original,
or change their username for PSK or SRP ciphersuites.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 09:39:13 2016 +0200
tests: added 'PFS' and 'SUITEB128' into the list of checked priority strings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 09:29:45 2016 +0200
tests: fail() function will also print function and line information
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 09:36:02 2016 +0200
_gnutls_hex2bin: refuse to decode odd-sized hex data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 29 09:32:52 2016 +0200
tests: added unit tests on the HEX encoding/decoding functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 18:08:56 2016 +0200
certtool: eliminated memory leaks in DH parameter printing/generation.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 17:42:49 2016 +0200
certtool: combined all the seed decoding methods to a single one
That not only simplifies the code, but also allows decoding hex strings
which contain not hex chars (and that allows decoding hex of the form XX:XX:XX)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 17:31:24 2016 +0200
Revert "tests: ensure the seed is provided in plain hex"
This reverts commit 0ea7206e12f52f6ed50c4a76ea0a23f5470115b2.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 16:41:26 2016 +0200
tests: check certtool dh-parameter generation with --provable option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 16:38:16 2016 +0200
tests: ensure the seed is provided in plain hex
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 16:34:29 2016 +0200
certtool: allow specifying seed size when generating provable DH parameters
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 14:34:17 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 14:26:19 2016 +0200
tests: simplified custom-urls check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 14:22:44 2016 +0200
tests: added check on whether builtin URLs cannot be overriden
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 14:09:44 2016 +0200
keys: custom URLs take precedence over pre-defined URLs
This allows applications to define the own 'system:' or 'pkcs11:'
URLs.
Resolves #89
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 16:45:44 2016 +0200
x25519: ensure that a valid private key is present on key derivation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 10:33:47 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 10:32:51 2016 +0200
tests: added check for GNUTLS_FORCE_CLIENT_CERT init flag
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 10:31:50 2016 +0200
instead of assigning a variable per flag use the init flags directly
That is store the flags provided in gnutls_init() in the session structure
and use these flags directly when required.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 09:28:54 2016 +0200
added flag in session to force sending a client certificate
This handles the use case of a client connecting to a server
which incorrectly lists the CA certificates it supports. Without
that change the only option was to avoid using the "automatic"
client certificate functions, but rather utilize callbacks.
With that approach this use case is handled by the "automatic"
certificate selection functions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 13:28:50 2016 +0200
.gitlab-ci.yml: do not load submodules on CI since they are not used
This reduces the CI running time.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 28 09:27:24 2016 +0200
tests: check client behavior of sending CA certificates
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 27 08:18:45 2016 +0200
doc: removed news about feature already backported in 3.4.6
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 27 08:17:45 2016 +0200
examples: introduced basic error checking in more examples
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 27 07:55:50 2016 +0200
examples: simplified the basic client example
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 27 07:50:20 2016 +0200
examples: introduced basic error checking in main client examples
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 27 07:38:47 2016 +0200
examples: corrected the required version of example
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 26 15:03:08 2016 +0200
tests: enhanced dane testing with offline verification checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 26 14:34:26 2016 +0200
dane: verification will not fail if a CA entry is encountered but cannot be verified
That addresses the issue of verifying a single certificate against a list
of TLSA entries that contain an entry with CA usage (cert usage 0). With
the previous behavior verification would have failed, while now this
entry will be skipped.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 26 13:54:17 2016 +0200
doc: improved documentation on certificate and DANE verification functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 26 13:35:35 2016 +0200
dane: updated documentation of dane_verify_crt_raw
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 26 13:00:46 2016 +0200
doc: added clarifications on documentation for dane_state_t
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 26 12:56:35 2016 +0200
manpages: include the dane functions into the distributed pages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 15:35:20 2016 +0200
ecdhe: eliminated unneeded checks for zero of public parameters
There were not required by either draft-ietf-tls-rfc4492bis-07
or rfc7748.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 15:22:55 2016 +0200
doc: added example client application utilizing the 3.1.x APIs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 15:13:42 2016 +0200
examples: added explicit 3.5.0 dependency in ex-client-x509
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 15:11:00 2016 +0200
examples: added error checks and updated verify_certificate_chain()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 14:30:07 2016 +0200
.gitlab-ci.yml: made the linux tag explicit for our runners
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 14:15:04 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 14:13:11 2016 +0200
doc: document curve X25519
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 14:12:46 2016 +0200
doc: clarify what catch all means in all scenarios
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 11:07:46 2016 +0200
gnutls-cli-debug: added tests for supported curves
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 23 15:20:21 2016 +0200
tests: include self tests with CURVE-X25519
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 22 13:17:38 2016 +0200
gnutls-cli: enhanced KX benchmark with X25519
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 22 12:25:59 2016 +0200
handshake: added support for ECDH with curve X25519
This follows draft-ietf-tls-rfc4492bis-07 and rfc7748
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 12:11:48 2016 +0200
tests: updated the openssl compat check to make explicit the used curves
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 11:12:29 2016 +0200
ecdhe: print the received curve from the server on debug mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 24 10:54:54 2016 +0200
gnutls-cli-debug: added CHACHA20-POLY1305 detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 23 22:25:35 2016 +0200
tests: on out of memory conditions do not fail the hash-large test
This test may require a large amount of memory which some CI systems
cannot provide. When an out-of-memory-error is detected skip the test
instead of failing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 23 15:15:50 2016 +0200
session: removed unused parameters from RSA-EXPORT era
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 23 14:52:03 2016 +0200
README-alpha.md: updated badges with the new gitlab URLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 22 09:26:55 2016 +0200
doc: document the TPM 1.2 limitation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 21 16:50:46 2016 +0200
doc: tpm: include short instructions on initializing the TPM chip
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 20 16:19:32 2016 +0200
tests: hash-large: use private mmap()
This reduces the memory usage of the test significantly on Linux.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 20 12:04:09 2016 +0200
tests: use mmap() for large memory allocations in systems that support it
That allows the hash-large test to run on systems which its calloc()
is attempting to allocate an impossible amount of memory.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 20 11:28:21 2016 +0200
tests: use /bin/bash for tests that use bashisms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 20 11:02:10 2016 +0200
tests: don't run danetool.sh if danetool is not present
That prevents test suite failure in systems without libunbound.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 20 10:08:23 2016 +0200
gnutls_int.h: allow compiling with system (gnutls) headers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 20 13:44:59 2016 +0200
.gitlab-ci.yml: added build rule on freebsd
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 23:11:13 2016 +0200
certtool: document sha3 functions in manpage [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 23:06:24 2016 +0200
doc: added missing @end example in danetool documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 22:50:52 2016 +0200
doc: updated documentation on false start
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 22:37:22 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 19:25:08 2016 +0200
gnutls-cli-debug: enable socket verbosity when --verbose is given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 19:23:23 2016 +0200
tools: explicitly initialize socket struct to zero
That resolves issue where verbose was enabled by default.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 19:18:05 2016 +0200
tools: avoid extracting the value of the app-proto alias
Instead always extract the starttls-proto value, as it seems
that libopts doesn't report any value for the former. This
corrects the starttls capability of danetool and gnutls-cli-debug.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 19:12:51 2016 +0200
tools: document the starttls capability
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 19 09:20:04 2016 +0200
tests: do not run danetool.sh on windows
The test fails due to CRLF.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 16:24:34 2016 +0200
tools: avoid relying on static buffers for service name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 16:16:59 2016 +0200
tests: added basic check on danetool --tlsa-rr option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 16:03:37 2016 +0200
danetool: Allow specifying a service name into port option
This makes the tool similar to gnutls-cli.
Author: Kevin Cernekee <cernekee@gmail.com>
Date: Mon Apr 18 15:15:32 2016 +0200
Fix library build on Chrome Native Client (NaCl)
Some supported toolchains define DT_UNKNOWN but do not
define _DIRENT_HAVE_D_TYPE (and do not have the d_type field).
On other platforms GnuTLS may need to second-guess what the
library is reporting, but on NaCl this is unsafe.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 12:03:05 2016 +0200
gnutls-serv: don't send closure messages in failed handshakes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 11:46:39 2016 +0200
client key exchange: fail if the client KX message is padded with additional bytes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 18 11:18:04 2016 +0200
_wrap_nettle_pk_derive: reject values of public key that are over the prime
That is do not canonicalise the value we get from the network, but
rather check it for validity. This saves a modular reduction on handshake
and performs a sanity check on the peer's (client) parameters.
Reported by Hubert Kario.
Resolves #84
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 15 10:17:32 2016 +0200
tests: suite: disable any openssl cpu optimizations
This prevents from valgrind failures on softhsm usage due to
any new instruction optimizations which are not supported by
valgrind.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 15 10:14:22 2016 +0200
doc: further updated documentation on false start [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 19:32:22 2016 +0200
doc: updated documentation on false start
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 19:23:13 2016 +0200
tests: enhanced the false start checks
These now check whether sending and receiving is performed
as expected after handshake, DTLS, as well as test explicit handshake
called by the application.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 19:20:36 2016 +0200
Updated false start support to be transparent to applications.
That is, an additional flag GNUTLS_ENABLE_FALSE_START is introduced
for gnutls_init(), and that enables support for false start. At
this point false start will be performed by the handshake if possible,
and gnutls_record_recv() will handle handshake completion.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 11:11:01 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 11:02:59 2016 +0200
doc: updated docs related to private key generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 10:54:49 2016 +0200
certtool: do not allow combining --provable with --ecc in key generation
There is no such support in the library.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 10:33:55 2016 +0200
updated auto-generated files for new APIs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 14 10:28:36 2016 +0200
doc: added tlsproxy example reference into documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 15:55:56 2016 +0200
tests: pem-decoding: fixed issue preventing out-of-tree checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 15:48:58 2016 +0200
tests: pem-decoding: use unique temp files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 14:06:02 2016 +0200
tests: enhanced mini-x509-kx with ECDHE-ECDSA ciphersuite testing
Also renamed it to cert-key-exchange for easier tracking.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 13:59:02 2016 +0200
handshake: do not overwrite the server's signature algorithm
That is, correct a bug under which a client sending a certificate
would overwrite the server's idea about the used signature algorithm.
Reported by Hubert Kario.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 13:50:59 2016 +0200
tests: enhanced mini-x509-kx with client auth scenarios
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 13:39:38 2016 +0200
tests: verify that the output of gnutls_sign_algorithm_get() is the expected one
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 13:06:23 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 11:43:56 2016 +0200
ocsp: increased the preallocated space in check_ocsp_purpose to account for null terminator
This relates to gnutls_x509_crt_get_key_purpose_oid() change to
return null-terminated OIDs.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 11:28:13 2016 +0200
tests: enhanced and simplified SHA3 tests
Included checks about SHA3-224 and SHA3-384.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 11:05:19 2016 +0200
tests: added check of GOST cert decoding/printing
This verifies whether our printing functions print the
OID on unknown/unsupported algorithms.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 11:04:12 2016 +0200
x509 output: print the OID of certificates/CRLs/CRQs with unknown algorithms
That is, if any unknown signature or subject public key algorithm is
encountered the OID will be printed instead.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 10:27:14 2016 +0200
tests: added basic tests for CSR parsing
This mainly includes tests on the new gnutls_x509_crq_get_signature_oid()
and gnutls_x509_crt_get_algorithm_oid().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 10:16:29 2016 +0200
tests: added basic tests on CRL parsing
That includes testing on the new gnutls_x509_crl_get_signature_oid()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 09:51:46 2016 +0200
tests: added basic functionality tests for gnutls_x509_crt_get_*_oid
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 09:43:31 2016 +0200
Added gnutls_x509_crl_get_signature_oid
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 09:39:21 2016 +0200
Added gnutls_x509_crq_get_signature_oid and gnutls_x509_crq_get_pk_oid
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 09:17:08 2016 +0200
Added gnutls_x509_crt_get_signature_oid and gnutls_x509_crt_get_pk_oid
These functions can directly provide the textual object identifier
of their corresponding fields.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 09:03:56 2016 +0200
gnutls_x509_crt_get_key_purpose_oid: copy the OID as a null-terminated string
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 13 08:53:23 2016 +0200
sign: corrected digest in SHA3-224 OID mapping
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 22:53:57 2016 +0200
configure: corrected regression which prevented the build of tests/suite
This regression was introduced at 8b97662c40c67a6d4087ce6e1f0c6fb6ea4a8b2c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 22:25:06 2016 +0200
gnutls_x509_ext_import_policies: initialize value to avoid compiler warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 22:21:02 2016 +0200
README: removed inexistent package
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 22:16:22 2016 +0200
common.mk: corrected typo on LDFLAGS for coverage
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 19:25:18 2016 +0200
danetool: corrected typo in manual [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 16:07:41 2016 +0200
gnutls_packet_get: avoid null pointer dereference on NULL input
That is, still allow the function to handle a NULL packet
input but reset the data contents.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 16:04:24 2016 +0200
gnutls_x509_privkey_verify_seed: corrected typo that made the function always return true
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 16:02:20 2016 +0200
_gnutls_asn2err: declared as constant function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 15:37:38 2016 +0200
load_dir_certs: use readdir() in all platforms
According to glibc documentation readdir_r() is deprecated
and the use of readdir() is recommended. As such we switch to
it on all platforms.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 15:26:42 2016 +0200
tests: combined the resume checks for Anonymous and PSK ciphersuites
In addition enhanced it to check the resumption on the certificate
ciphersuites as well.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 14:21:04 2016 +0200
configure: Add a code coverage option
Configure with:
./configure --enable-code-coverage
Show coverage output with:
make && make check && make code-coverage-capture
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 14:17:26 2016 +0200
Makefile.am: moved common rules (AM_CFLAGS) to common.mk
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 12:12:40 2016 +0200
gnutls_ocsp_resp_get_single: fail if thisUpdate is not available or unparsable
That is because this field is not optional, and a failure on its
parsing is always fatal. Reported by Yuan Jochen Kang.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 12 12:08:35 2016 +0200
gnutls_x509_privkey_import2: document an intentional fall through
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 11 16:48:46 2016 +0200
README: add abi-compliance-checker into install instructions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 11 08:49:11 2016 +0200
gnutls_x509_crt_get_key_usage: ensure that its returned value is properly handled
Reported by Yuan Jochen Kang.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 10 10:54:29 2016 +0200
tests: do not enable valgrind in non-git builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 13:38:47 2016 +0200
hash: corrected the textual description of hashes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 13:34:39 2016 +0200
corrected SHA3-224 OID
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 13:31:54 2016 +0200
x509 output: don't warn about insecure algorithm when unknown
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 12:43:22 2016 +0200
tests: remove any system specific code of ecore
This was causing issues with certain builds and
was not used for the purpose of testing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 11:51:34 2016 +0200
tests: disable unsupported curves from compatibility checks
This allows running make check even when compiling with disable-suiteb-curves.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 11:49:07 2016 +0200
tests: removed unused scripts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 11:46:27 2016 +0200
.gitlab-ci.yml: combined C99 and undefined sanitizer builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 09:46:06 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 09:43:49 2016 +0200
crywrap: was removed from gnutls tools
Its inclusion did not increase the attention paid to this
tool, not provided any significant advantage to gnutls' users
thus it was unbundled from the main library. The tool can be found at
https://github.com/nmav/crywrap
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 9 08:17:53 2016 +0200
minitasn1: updated to latest git version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 8 19:46:36 2016 +0200
doc: Replace references to select with poll and other fixes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 8 19:40:28 2016 +0200
doc: replace inaccurate sentence with reference to gnutls_record_discard_queued [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 8 15:40:06 2016 +0200
gnutls_record_get_direction: doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 8 14:13:26 2016 +0200
tests: reduce the number of loops in x509sign-verify2
This enables running the test in reasonable time under valgrind.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 8 13:36:44 2016 +0200
pkix.asn: corrected byKey definition
OCSP is defined in an EXPLICIT tags module, and as such
we must tag explicitly all of its tags.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 13:22:29 2016 +0200
tests: check the generation of IP name constraints with certtool
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 13:21:53 2016 +0200
certtool: allow generating IP name constraints
Relates #83
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 13:16:07 2016 +0200
_gnutls_parse_general_name2: allow parsing empty names
This allows parsing empty general names such as an empty DNSname
used in name constraints.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 11:54:50 2016 +0200
name constraints: enforce the rules for IP constraints when adding
This will prevent gnutls from generating badly formed certificates.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 10:36:05 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 10:33:18 2016 +0200
.gitignore: more files to ignore
Author: Daiki Ueno <ueno@gnu.org>
Date: Wed Mar 16 14:21:41 2016 +0900
name constraints: compute permitted set strictly
RFC 5280 6.1.4. states that the permitted_subtrees variable is
constructed as an intersection of its previous value.
Co-authored-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 09:08:14 2016 +0200
.gitlab-ci.yml: added C99 target for the library
This compiles the library using gcc options for the C99
standard.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 5 08:44:34 2016 +0200
README: updated libtasn1 URL [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 3 09:46:24 2016 +0200
x86-common: increase the size of _gnutls_x86_cpuid_s to match the size of assembly files
This resolves issue on certain platforms (e.g., windows) where ld would simply fail,
instead of allocate the largest size of the variable.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 2 12:56:45 2016 +0200
ocsptool: use HTTP/1.0 for requests
This avoids issue with servers serving chunk encoding which
ocsptool doesn't support. Reported by Thomas Klute.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 2 12:02:08 2016 +0200
gnutls_init(): refer to gnutls_init_flags_t for the documentation of available flags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 2 11:16:19 2016 +0200
README.CODING_STYLE: set C99 as the C dialect of choice
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 1 11:10:56 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 1 11:08:38 2016 +0200
tests: added check for system priority file loading and parsing
This checks whether the file is properly loaded and its contents
are parsed as expected.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 1 10:46:12 2016 +0200
priorities: preload the system priorities on library loading time
This allows to rely on the system priorities even in the case of
applications that chroot(). This also introduces the environment
variable GNUTLS_SYSTEM_PRIORITY_FILE which can be used to override
the global priority file.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 17:25:45 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 17:24:37 2016 +0200
tests: added check of verification using MD5 with and without --verify-allow-broken
This tests certtool and whether it fails verification of MD5 chains
with no --verify-allow-broken, or whether it succeeds if given.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 17:15:34 2016 +0200
tests: added PKCS #7 signing/verification test with broken sigs (MD5)
This tests whether we can sign structures using broken algorithms (MD5),
and verify structures signed with broken algoritms if --verify-allow-broken
is given to certtool.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 16:58:37 2016 +0200
certtool: added flag to allow verification using broken algorithms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 09:46:44 2016 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 10:29:59 2016 +0200
tests: check whether resumption data from resumed session work
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 09:40:09 2016 +0200
session resumption: lift the limitation of calling gnutls_session_get_data*() on non-resumed sessions
This allows of obtaining the session data required for proper session resumption
from any available session. This brings the API in par with expectations of its
users.
Resolves #79
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 31 09:45:43 2016 +0200
dtls: added missing dtls.h to state.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 30 12:24:09 2016 +0200
tests: added check for gnutls_record_set_state() under DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 30 11:37:49 2016 +0200
dtls: reset the record number sliding window on gnutls_record_set_state()
This addresses issue where gnutls_record_set_state() was called with a
new state but the sliding window information was not updated, thus
blocking any incoming packets.
Resolves #82
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 30 10:13:18 2016 +0200
x509/output: simplified cidr_to_string()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 16:14:15 2016 +0200
.gitignore: more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 16:11:36 2016 +0200
tests: check gnutls_record_get_state() with DTLS
Since in DTLS we relied on a sliding window to keep track of the
sequence numbers we didn't provide a sensible value to application
via gnutls_record_get_state(). This test makes sure that we report
the "correct" value when asked. Correct being the next number after
the last received packet.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 15:52:59 2016 +0200
DTLS: save last valid record sequence number
This will allow to report a valid number to gnutls_record_get_state() callers
in case of DTLS. Reported by Fridolin Pokorny.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 15:34:37 2016 +0200
tests: delete outfile in certtool-long-cn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 15:33:27 2016 +0200
tests: verify the output of name constraints IP decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 15:04:11 2016 +0200
x509/output: print RFC5280 CIDRs in name constraints
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 14:11:56 2016 +0200
tests: check the sequence numbers produced by gnutls_record_get_state()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 29 14:08:58 2016 +0200
gnutls_record_get_state: Allow for NULL parameters
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 24 07:13:59 2016 +0100
ocsptool: eliminated memory leaks in verify-response option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 24 07:12:34 2016 +0100
ocsptool: don't exit with error code on verification failures when --ignore-errors is given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 23 23:15:24 2016 +0100
tests: added OCSP related checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 23 23:14:01 2016 +0100
ocsptool: exit with error on verification failures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 23 23:00:53 2016 +0100
ocsp: gnutls_ocsp_resp_verify_direct will skip additional checks for certificates matching issuer
That eliminates issue with ocsptool rejecting OCSP responses signed
by the same CA that signed the certificate. Reported by Thomas Klute.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 23 22:46:16 2016 +0100
ocsptool: Allow saving responses even if verification fails
In addition do not enter a spurious newline to responses.
Author: Maya Rashish <coypu@sdf.org>
Date: Wed Mar 23 18:04:07 2016 +0200
Avoid using strerror in dtls stress test
Using it results in build failure on NetBSD:
undefined reference to `rpl_strerror'
Author: Maya Rashish <coypu@sdf.org>
Date: Wed Mar 23 16:08:02 2016 +0200
Add missing header to testsuite
This causes a problem for NetBSD+clang tests, because SIGTERM and
kill are undefined.
Resolves #80
Signed-off-by: Maya Rashish <coypu@sdf.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 23 10:39:59 2016 +0100
session tickets: avoid GCM for session tickets and rely on CBC and HMAC
The latter is more resilient against non-key renewal.
Author: Jaak Ristioja <jaak.ristioja@cyber.ee>
Date: Mon Feb 15 12:14:52 2016 +0200
Broke apart _gnutls_recv_int() to the packet and non-packet cases.
Only gnutls_record_recv_packet() called _gnutls_recv_int() with
(packet != NULL). I refactored this logic directly downstream into
gnutls_record_recv_packet(). The _gnutls_recv_int() function now only
handles non-packet specific logic. The check_session_status() function
was created to deduplicate common code which would otherwise have
ended up in both functions.
The rationale behind this change is to optimize what were previously
calls of _gnutls_recv_int(). First of all _gnutls_recv_int() now has
only 6 parameters, which according to the x86_64 System V Application
Binary Interface should now fit into CPU registers and no longer use
the stack. Secondly this change avoids a number of branching checks
for both packet and non-packet cases.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 21 11:29:08 2016 +0100
gnutls-cli: corrected usage of gnutls_session_get_data()
This is no longer called on resumed sessions, allowing more than
one resumption in servers which use tickets and don't resend the ticket
on subsequent connections.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 18 13:10:40 2016 +0100
testcompat-openssl: enable TLS 1.2 tests with openssl 1.0.1+
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 18 11:21:35 2016 +0100
tests: verify that the post-client-hello callback has access to ALPN data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 18 10:35:46 2016 +0100
.gitlab-ci.yml: don't use git submodule update, not needed for our testsuite
Author: Yuriy M. Kaminskiy <yumkam@gmail.com>
Date: Tue Mar 15 18:21:32 2016 +0300
alpn: ALPN state is per-connection, it should not be saved with session data
In addition the extension was moved to the mandatory to parse to ensure it
is always parsed when sessions are resumed.
rfc7301:
Unlike many other TLS extensions, this extension does not establish
properties of the session, only of the connection. When session
resumption or session tickets [RFC5077] are used, the previous
contents of this extension are irrelevant, and only the values in the
new handshake messages are considered.
Signed-off-by: Yuriy M. Kaminskiy <yumkam@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 18 09:44:40 2016 +0100
tests: added checks for session resumption and ALPN
This checks whether the ALPN extension is re-read on
resumption and is negotiated.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 16 10:00:17 2016 +0100
x86-common: CPUID override will only work if CPU has already the capability present
This resolves test suite failure on CPUs with limited capabilities.
Reported by Andreas Metzler.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 17:35:12 2016 +0100
Introduced GNUTLS_E_ASN1_EMBEDDED_NULL_IN_STRING
This error code is returned when an embedded NULL is detected in
a string.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 16 21:03:54 2016 +0100
gnutls_server_name_set: accept non-null terminated hostnames
The introduction of IDNA support introduced a regression and this
function does not operate correctly when given non-null terminated
strings. Reported by Tim Ruehsen.
Relates #78
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 16 20:57:31 2016 +0100
tests: added check for non-null terminated server name
This checks whether a non-null terminated server name, but with
correct length is correctly accepted by gnutls_server_name_set().
Relates #78
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 15 12:00:39 2016 +0100
tests: template-test was updated for OCSP key purpose reordering
Author: Ludovic Courtès <ludo@gnu.org>
Date: Mon Mar 14 10:44:08 2016 +0100
guile: doc: Mention bytevectors.
* doc/gnutls-guile.texi (Representation of Binary Data): Mention bytevectors.
(Input and Output): Likewise.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Mon Mar 14 10:44:07 2016 +0100
guile: doc: Explain "Application Data" packets and 'session-record-port'.
* doc/gnutls-guile.texi (Input and Output): Mention "Application Data"
packets and buffering.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 15 11:20:16 2016 +0100
certtool: do not require a CA for OCSP signing
This follows the recommendations in RFC6960 in 4.2.2.2
which allow a CA to delegate OCSP signing to another certificate
without requiring it to be a CA.
Reported by Thomas Klute.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 14 14:06:01 2016 +0100
doc: updated text for gnutls_ocsp_status_request_is_checked()
Relates #75
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 14 13:56:17 2016 +0100
doc: clarified expectations on gnutls_datum_t
Relates #77
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 13 20:55:02 2016 +0100
doc update: gnutls_handshake_set_false_start_function() [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 13 11:39:22 2016 +0100
abi-check: corrected type of gnutls_x509_crl_get_issuer_dn
That will avoid any accidental ABI breakage on that symbol.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 11 14:45:02 2016 +0100
.gitlab-ci.yml: added abi-checker rule
This allows to test ABI incompatibilities as soon as possible.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 11 14:36:39 2016 +0100
Makefile: made abi-checks self-contained
That is, they no longer assume a given directory structure to exist
outside git. It now includes a static dump of the symbols in 3.4.0
for x86_64 and we compare with it.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 11 11:52:17 2016 +0100
certtool: better error handling in file_size()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 11 11:47:12 2016 +0100
gnutls-cli: fix invalid initialization in cert_verify_ocsp()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 11 11:45:23 2016 +0100
gnutls-serv: human_addr always returns a non-null argument
This addresses issue with libc's which don't support printf() with
a NULL argument.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 8 15:10:07 2016 +0100
tests: testpkcs11: the test will always fail in code path failures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 8 10:12:22 2016 +0100
README: list the main branches build status [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 7 11:50:34 2016 +0100
gnutls_system_recv_timeout: restore poll on EINTR
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 7 10:47:43 2016 +0100
doc: corrected typo [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 7 10:42:14 2016 +0100
gnutls_ocsp_status_request_is_checked: document the version the flag was introduced at
Relates: #75
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 7 10:25:57 2016 +0100
doc: generate manpages for all functions
That addresses issue where certain manpages were created empty.
See https://bugzilla.redhat.com/show_bug.cgi?id=1306800
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 7 10:11:37 2016 +0100
doc: mention gnutls_certificate_set_x509_trust_dir()
It was not mentioned in the "Client or server certificate verification"
section.
Resolves #76
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 7 09:30:44 2016 +0100
tests: mini-loss-time: improved timeout detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 4 10:16:51 2016 +0100
corrected typo in comment [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 1 16:23:55 2016 +0100
configure: silence clang's warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 3 14:24:13 2016 +0100
tests: added check for version negotiation default prio string
That verifies whether the support versions are negotiated.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 3 09:05:32 2016 +0100
tests: include test-hash-large into dist
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 3 08:50:48 2016 +0100
Sync with TP [ci skip]
Author: Ludovic Courtès <ludo@gnu.org>
Date: Wed Mar 2 09:59:19 2016 +0100
Update NEWS.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 1 14:50:42 2016 +0100
Disable weak symbols for _gnutls_global_init_skip() under windows
That is to avoid an issue with running gnutls under windows;
that renders GNUTLS_SKIP_GLOBAL_INIT a no-op under windows.
Relates #74
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 1 13:19:29 2016 +0100
.gitlab-ci.yml: asan, clang and valgrind builds were made arch-independent
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 20:49:09 2016 +0100
tests: pkcs12: allow multiple in-place builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 19:41:33 2016 +0100
tests: pkcs1-pad,rsa-md5-collision: allow multiple in-place builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 17:12:49 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 17:06:12 2016 +0100
gnutls-cli: fail if gnutls is not compiled with DANE support and --dane is provided
Suggested by Bjorn Jacke.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 13:23:25 2016 +0100
tests: always used the slow (portable) version of get16bits
This prevents issues with misaligned addresses and undefined sanitizer.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 12:46:47 2016 +0100
timespec_sub_ms: fixed operation in 32-bit systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 10:23:20 2016 +0100
.gitlab-ci.yml: don't use the internal libtasn1 when compiling with libubsan
This prevents build failures due to issues in libtasn1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 10:22:13 2016 +0100
tests: Fixes to prevent undefined behavior (found with libubsan)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 10:18:58 2016 +0100
pkcs11: Fixes to prevent undefined behavior (found with libubsan)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 09:58:40 2016 +0100
cipher.c: Fixes to prevent undefined behavior (found with libubsan)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 09:57:40 2016 +0100
ecc: optimized extension parsing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 09:48:12 2016 +0100
opencdk: Fixes to prevent undefined behavior (found with libubsan)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 09:48:02 2016 +0100
gnutls.h: Fixes to prevent undefined behavior (found with libubsan)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 09:43:32 2016 +0100
x509: Fixes to prevent undefined behavior (found with libubsan)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 29 09:27:23 2016 +0100
x509: cleanup in privkey.c
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Feb 28 15:35:01 2016 +0100
Let p11tool --provider option accept filenames.
Drop 'file-exists = yes;' to allow specifying either an absolute pathname
or a file in P11_MODULE_PATH.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 28 13:01:11 2016 +0100
.gitlab-ci.yml: abort on ubsan errors
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 28 12:12:09 2016 +0100
p11tool: addressed memory leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 28 10:45:02 2016 +0100
tests: use 'datefudge -s' to avoid loops
This avoids repeated loops of the same test as well as
random failures in the test suite.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 27 22:37:21 2016 +0100
tests: krb5-test: increased the number of loops
This should prevent random failures in the test suite.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 27 22:23:34 2016 +0100
.gitlab-ci.yml: asan and ubsan include the suite/
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 23 10:35:14 2016 +0100
.gitignore: more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 23 10:33:18 2016 +0100
doc: documented false start functionality
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 23 10:23:57 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 23 10:14:53 2016 +0100
tests: Added checks for false start operation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 23 09:40:26 2016 +0100
Added gnutls_handshake_set_false_start_function()
This function allows to use TLS False-start, by using the provided
function to send data just after finished message.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 27 21:54:51 2016 +0100
tests: enable softhsmv2 test suite by default
Also do not fatally fail with known softhsmv2 bugs.
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Fri Feb 26 16:17:48 2016 +0100
pkcs11: tests for RSA, ECC, DSA private key import
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Fri Feb 26 16:17:47 2016 +0100
pkcs11: tests for DSA key generating
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 27 17:56:36 2016 +0100
added getpid() to the list of system calls used
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 26 14:41:12 2016 +0100
.gitlab-ci.yml: added compilation rule with libubsan
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Thu Feb 25 16:43:36 2016 +0100
gnutls_x509_privkey_import: add missing algorithm setting for DSA keys
The algorithm number was set only in the private key structure, not in
the nested structure with parameters. This made certain operations to
fail (e.g., copying the key into a PKCS #11 token).
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Thu Feb 25 15:21:30 2016 +0100
pkcs11: implement correct DSA key pair generating
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Thu Feb 25 15:21:29 2016 +0100
pkcs11: add interface for C_GenerateKey
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 26 12:00:55 2016 +0100
better match with unknown_tls_aid
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 26 11:54:05 2016 +0100
x509: moved time-specific functions to time.c
Author: Sebastian Dröge <sebastian@centricular.com>
Date: Wed Feb 24 12:42:26 2016 +0200
configure: Android is ELF too
Without this, compiling Android for x86 or x86-64 fails because the assembly
optimizations are not compiled in.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 25 15:45:04 2016 +0100
mentioned the public git URL for cloning [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 24 15:12:23 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 24 14:55:19 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 24 14:53:59 2016 +0100
tests: check functions which export session parameters
That is gnutls_session_get_random() and gnutls_session_get_master_secret().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 24 14:43:17 2016 +0100
Added gnutls_session_get_master_secret
This provides the ability to export all session parameters in various
formats.
Resolves #64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 22 15:51:11 2016 +0100
tests: gnutls_session_get_flags() is checked for extended master secret
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 22 15:49:25 2016 +0100
tests: check gnutls_session_get_flags() for EtM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 22 15:46:33 2016 +0100
tests: check gnutls_session_get_flags() for safe renegotiation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 22 15:26:46 2016 +0100
Added gnutls_session_get_flags()
This function would allow to simplify handling of future
flags which we may want to indicate, and would not require
API additions for new flags.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 22 11:57:30 2016 +0100
Revert ".gitlab-ci.yml: disable guile tests"
This reverts commit 50ce516eebaf011f041002ecbfdb61b113159282.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Sun Feb 21 18:58:35 2016 +0100
guile: Fix out-of-tree builds.
This fixes a regression introduced in 3045a96.
* guile/Makefile.am (.in.scm): Make the parent directory of $@.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 17:04:24 2016 +0100
Improved documentation in _gnutls_sort_clist
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 16:43:51 2016 +0100
gnutls_x509_crt_list_import: corrected memory leak
This was triggered if GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED was specified
and a failure occurred.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 15:59:31 2016 +0100
_gnutls_sort_clist: fixed issues when used with func option
This function would incorrectly call func() on elements that were
included in the list, and would not call func() if the size of the
final chain was one.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 15:10:54 2016 +0100
tests: added tests for gnutls_pcert_list_import_x509_raw()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 14:29:20 2016 +0100
ext master secret: ensure we disable ext master secret if requested
That is, on rehandshakes, as on the standard handshakes it is disabled
by default.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 14:18:04 2016 +0100
tests: verify that we do not allow rehandshakes without ext master
That is, if we have an initial session which uses the extended master
secret do not allow subsequent rehandshakes to skip it.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 11:53:20 2016 +0100
tests: sha3-test: use different dates for generation and validation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 10:55:32 2016 +0100
certtool: eliminated memory leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 10:28:33 2016 +0100
bumped the version of max algorithm num to account for new signing algorithms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 18 09:17:17 2016 +0100
src: added systemkey-args to BUILT_SOURCES
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 17 15:19:08 2016 +0100
tests: simplified sha3-test
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 17 05:43:24 2016 +0100
cross.mk: updated for gnutls 3.4.9, nettle 3.2, gmp 6.1.0 and p11-kit 0.23.2 [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 16 16:46:54 2016 +0100
.gitlab-ci.yml: disable guile tests
This prevents the test suite from failing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 16 16:40:09 2016 +0100
doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 16:18:00 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 16:13:12 2016 +0100
tests: resume: check whether the server does not resume in ext master secret mismatch
Relates #69
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 16:10:31 2016 +0100
Ensure that session resumption does not occur when ext master secret status changes
That is we make sure the server doesn't resume when:
1. Original session had extended master secret but not advertised in resumed
2. Original session did not have extended master secret but is advertised in resumed
Relates #69
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 14:45:40 2016 +0100
tests: resume: simplified structure assignment using C99 syntax
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 15 10:52:55 2016 +0100
tests: added certification generation tests with SHA-3 tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 15 10:37:57 2016 +0100
Added NIST's OIDs for SHA3 signature algorithms
This allows to generate certificates signed with SHA3.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:38 2016 +0100
guile: Work around lack of 'eval-when' on 1.8.
* guile/modules/gnutls.in (eval-when) [!guile-2]: New macro.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:37 2016 +0100
guile: Install modules in versioned directory by default.
* configure.ac: Change default 'GUILE_SITE' value to include
$guile_effective_version.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:36 2016 +0100
guile: build: Make silent rules actually quiet.
* guile/Makefile.am (.in.scm): Use $(AM_V_GEN) and $(AM_V_at).
* guile/src/Makefile.am (enums.h, enum-map.i.c)
(smobs.h, smob-types.i.c, %.x): Likewise.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:35 2016 +0100
guile: Build and install .go files on Guile 2.x.
* configure.ac: Check for 'guild' and substitute 'GUILD'. Define
'HAVE_GUILD'. Substitute 'guileobjectdir'. Don't output
guile/modules/Makefile and guile/tests/Makefile.
* guile/modules/Makefile.am, guile/tests/Makefile.am: Remove. Move
contents to...
* guile/Makefile.am: ... here.
(SUBDIRS): Remove 'modules' and 'tests'.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:34 2016 +0100
guile: doc: Change prompt in examples.
* doc/gnutls-guile.texi (Guile Preparations): Use the prompt found in
2.0. Change "libguile-gnutls-v-0" to "guile-gnutls-v-2".
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:33 2016 +0100
guile: tests: Add Guile 2.2 compatibility layer.
This allows tests to run with Guile 2.1/2.2.
* guile/modules/gnutls/build/tests.scm (define-replacement) [guile-2]:
New macro.
(uniform-vector-read!, uniform-vector-write) [guile-2]: New procedures.
* doc/gnutls-guile.texi (Guile Preparations): Mention 2.2.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:32 2016 +0100
guile: tests: Make sure no processes are left behind.
Before that, child processes would be left behind and become zombies.
* guile/tests/anonymous-auth.scm, guile/tests/openpgp-auth.scm,
guile/tests/session-record-port.scm, guile/tests/x509-auth.scm:
Add (waitpid pid) call on the server side.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Feb 11 23:04:31 2016 +0100
guile: tests: Add 'with-child-process'.
This makes sure that child processes always exit no matter what.
* guile/modules/gnutls/build/tests.scm (define-syntax-rule) [!guile-2]:
New macro.
(call-with-child-process): New procedure.
(with-child-process): New macro.
* guile/tests/anonymous-auth.scm, guile/tests/openpgp-auth.scm,
guile/tests/session-record-port.scm, guile/tests/x509-auth.scm: Use it
instead of an explicit 'primitive-fork' call.
* guile/.dir-locals.el: New file.
* guile/Makefile.am (EXTRA_DIST): New variable.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 15 09:52:10 2016 +0100
tests: mini-loss-time: ensure client timeouts after the server is
This addresses issue with the server detecting the client disconnection
prior to its timeout. Reported by Steven Chamberlain, Andreas Metzler.
Author: Jaak Ristioja <jaak.ristioja@cyber.ee>
Date: Fri Feb 12 16:59:31 2016 +0200
Removed the invariant htype parameter of _gnutls_recv_int()
All uses of _gnutls_recv_int() passed -1 as the htype argument of type
gnutls_handshake_description_t, which had been used for SSLv2 client
hellos. Introduced in 2001 with dc1122e7b6.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 14 18:41:01 2016 +0100
provable RSA key generation: adjust the seed size based on N size
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 14 18:18:38 2016 +0100
provable RSA key generation: allow non-2048 and non-3072 keys
That is enforce the 2048 and 3072-bit limit to FIPS when in FIPS140-2
mode.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 13 18:21:08 2016 +0100
DH/DSA: allow the generation of larger than 15360 bit parameters
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 13 14:50:19 2016 +0100
tests: eliminated mem leak in hash-large
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 12 15:16:55 2016 +0100
tests: check whether large buffer hashes and MAC work as expected
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 12 10:48:12 2016 +0100
nettle: use the correct type for hash and MAC functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 6 22:44:37 2016 +0100
provable prime generation: arbitrary seed lengths are accepted in non-FIPS mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 12:10:57 2016 +0100
gnutls-cli: improved indentation in benchmark output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 11:43:27 2016 +0100
certtool: removed unused variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 11:00:15 2016 +0100
certtool: the --generate-dh-params option can be combined with --provable
This however, will generate provable DSA parameters and import them
as DH parameters.
Resolves #72
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 10:42:34 2016 +0100
certtool: the --dh-info option will retrieve DH parameters from DSA keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 10:34:52 2016 +0100
tests: added check for gnutls_dh_params_import_dsa
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 10:05:58 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 11 10:05:13 2016 +0100
Added gnutls_dh_params_import_dsa() which allows to import DSA parameters into DH ones
This simplifies importing DSA private keys into DH parameters.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 10 14:29:47 2016 +0100
tests: set_pkcs12_cred: existing tests are disabled when in FIPS140-2 mode
The tests require access to the RC4 cipher which is not available.
Author: Attila Molnar <attilamolnar@hush.com>
Date: Wed Feb 10 10:55:15 2016 +0100
Fix memory leak in gnutls_certificate_set_ocsp_status_request_file()
Signed-off-by: Attila Molnar <attilamolnar@hush.com>
Author: Attila Molnar <attilamolnar@hush.com>
Date: Sat Feb 6 18:16:59 2016 +0100
doc: Update description of credential alloc/dealloc functions
Get rid of "This structure is complex enough to manipulate directly..."
text which suggests that these functions are optional, "helper" functions
when in fact their usage is required for encapsulation reasons.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 10 10:11:00 2016 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 8 11:23:33 2016 +0100
ALPN: added the GNUTLS_ALPN_SERVER_PRECEDENCE flag
This allows the server to set precedence on the protocols
it supports, rather than following the client's order.
Resolves #71
Author: Andreas Metzler <ametzler@debian.org>
Date: Tue Feb 9 13:37:49 2016 +0100
improve doc on special keywords in priority string
Special keywords in priority strings like %COMPAT may not be prefixed
with +, - or !, "NORMAL:+%COMPAT is invalid.
Author: Attila Molnar <attilamolnar@hush.com>
Date: Sat Feb 6 18:01:33 2016 +0100
doc: Fix some typos
Author: Attila Molnar <attilamolnar@hush.com>
Date: Sat Feb 6 17:50:05 2016 +0100
Remove remaining RSA-EXPORT support leftovers from doc and messages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 3 09:20:05 2016 +0100
tests: pkcs11-pubkey-import-ecdsa will only work under softhsmv2
Author: Andreas Metzler <ametzler@debian.org>
Date: Sun Jan 31 17:59:37 2016 +0100
Fix some more typos.
certifcate, funtion, withing, missmatch
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 30 12:18:55 2016 +0100
tests: updated check to account for revert in 7d3caedb8df9d04eee9513cb5b3b417ae29927f5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 30 12:15:07 2016 +0100
Revert "tests: updated to account for cert generation after 2adb9b2bfb31afebbdd9f990e2b74c9a3d4e5c57 fix"
This reverts commit 735dbde324be6c8785a3dea5f09c82b6a8ad298b.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 30 11:15:13 2016 +0100
Revert "Fix out-of-bounds read in gnutls_x509_ext_export_key_usage"
This was not really an out-of-bounds check. Added documentation
to make that clear.
This reverts commit ffbc9aaea7dcf29c03784d128b83f0682357858d.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 28 13:14:14 2016 +0100
certtool: corrected email escaping in texinfo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 28 10:45:17 2016 +0100
Replaced select() system call with poll() on POSIX systems
This allows to use the default gnutls functions with file descriptors
over the maximum supported by select.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 25 11:08:21 2016 +0100
tests: windows: fixed check-output call
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 22 16:34:29 2016 +0100
tests: added dummy functions used by CAPI32 implementation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 22 16:33:48 2016 +0100
tests: better checking for failure in windows cng check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 22 12:59:47 2016 +0100
system-key-win: call CertFreeCertificateContext()
Author: Bjørn Christensen <bhc@insight.dk>
Date: Fri Jan 22 11:52:21 2016 +0100
system-key-win: added interface to CAPI, old style crypto api on windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 21 14:45:56 2016 +0100
certtool: corrected texinfo output for krb5_principal
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 21 12:58:56 2016 +0100
tests: priorities: account for the addition of CHACHA20-POLY1305
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 21 12:00:33 2016 +0100
CHACHA20_POLY1305 was added to the default priority strings
That is the NORMAL and PERFORMANCE priority strings now will
enable CHACHA20-POLY1305 by default.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 18 18:38:36 2016 +0100
gnutls_global_init: log gnutls' version on initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 18 15:56:02 2016 +0100
doc: corrected typo [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 16 20:54:20 2016 +0100
README: added trousers to list of dependencies [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 16 20:43:42 2016 +0100
tests: added check for KRB5Principal output
Resolves #67
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 14 17:16:00 2016 +0100
README.md -> README-alpha.md
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 14 17:09:23 2016 +0100
updated copyright info
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 14 17:04:54 2016 +0100
README: auto-generated from README-install.md
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 14 14:50:34 2016 +0100
gnutls_int.h: increased MAX_SERVER_NAME_SIZE to 256 bytes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 13 13:14:55 2016 +0100
gnutls_pubkey_import_x509_raw: fixed memory leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 8 16:26:21 2016 +0100
tests: added check for the krb5_principal template option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 11 15:11:41 2016 +0100
certtool: introduced the krb5_principal template option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 11 15:09:23 2016 +0100
x509: introduced GNUTLS_SAN_OTHERNAME_KRB5PRINCIPAL
That allows to print and write KRB5PrincipalName othernames
in subject alternative name.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 11 15:19:24 2016 +0100
x509: place newline when printing unsupported othernames
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 16:05:41 2016 +0100
x509: moved virtual subject alternative name othername support to virt-san.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 14:46:16 2016 +0100
gnutls_x509_crt_set_subject_alt_name: documented the version after which GNUTLS_SAN_OTHERNAME_XMPP is available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 14:45:03 2016 +0100
tests: added check for XMPP othername generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 14:39:14 2016 +0100
certtool: allow writing xmpp_name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 14:30:56 2016 +0100
Allow assigning 'virtual' SAN types via *_set_subject_alt_name()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 13:47:38 2016 +0100
NEWS: document newly added functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 08:17:51 2016 +0100
alpn: when parsing the list of protocols return at the first mutually common
That resolves an issue where the server wouldn't select the first mutually supported.
Resolves #63
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 08:17:07 2016 +0100
tests: mini-alpn: corrected protocol selection order
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 10 08:04:29 2016 +0100
tests: alpn: enhance the testing of ALPN negotiation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 9 21:42:11 2016 +0100
alpn: document how the selected protocol is selected [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 9 21:20:00 2016 +0100
tests: verify that the selected ALPN protocol is the first advertised
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 8 16:52:44 2016 +0100
gnutls_aead_cipher_decrypt: removed misleading text
Reported by Fridolin Pokorny.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 8 12:16:29 2016 +0100
tests: added check for certtool's othername writing functionality
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 8 11:16:58 2016 +0100
certtool: added ability to generate othernames via template files
Relates #62
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 8 12:05:18 2016 +0100
x509: added flags to enable the encoding of othername data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 8 11:05:36 2016 +0100
x509: introduced functions to set an othername alternative name
That is, added, gnutls_x509_crt_set_subject_alt_othername,
gnutls_x509_crt_set_issuer_alt_othername, gnutls_x509_crq_set_subject_alt_othername
Relates #62
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 7 14:35:59 2016 +0100
trust_list_get_issuer_by_dn: fixed check for DN or SPKI
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 7 14:02:24 2016 +0100
configure: no longer distribute lzip tarballs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 7 14:14:21 2016 +0100
symbols.last: don't include internal symbols into exported list
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 5 11:21:43 2016 +0100
tests: updated to account for cert generation after 2adb9b2bfb31afebbdd9f990e2b74c9a3d4e5c57 fix
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Mon Jan 4 16:40:26 2016 +0100
Fix out-of-bounds read in gnutls_x509_ext_export_key_usage
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 20:16:37 2015 +0200
.gitlab-ci.yml: optimized build process
That is, in slow asan and valgrind builds don't check the full test suite.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 14:35:45 2015 +0200
gnutls_pkcs11_copy_x509_privkey2: corrected the writing of ECC private key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 13:38:34 2015 +0200
tests: pkcs11-pubkey-import will check both RSA and ECDSA keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 13:35:30 2015 +0200
gnutls_pkcs11_copy_x509_privkey2: corrected the type of the written object
Previously only RSA objects were correctly written.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 13:10:37 2015 +0200
tests: added ECDSA key in cert-common.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 12:20:41 2015 +0200
pkcs11: moved default RSA public exponent out of stack
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 12:17:21 2015 +0200
pkcs11: import public keys from any available object
That is, load public keys from the public key object, or
the certificate object if they are present. That affects
non-RSA public keys which do not contain all required fields
on the private key object.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 01:02:30 2015 +0200
session DB: made the magic number depending on gnutls' version
That will make sure that sessions not stored by this version of
gnutls will not be resumed by another (which may be incompatible).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:46:12 2015 +0200
ui.c -> fingerprint.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:45:43 2015 +0200
split OCSP functionality from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:39:19 2015 +0200
split anon credentials functionality from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:38:31 2015 +0200
split psk functionality from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:37:22 2015 +0200
split session info functions from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:34:25 2015 +0200
split certificate credentials functions from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:32:20 2015 +0200
split dh API functions from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 31 00:28:46 2015 +0200
split randomart functionality from ui.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 30 23:18:32 2015 +0200
helper.c -> file.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 30 11:26:30 2015 +0200
certtool: doc update [skip ci]
Author: Andreas Metzler <ametzler@debian.org>
Date: Sat Dec 26 18:24:56 2015 +0100
Fix some typos [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 24 11:54:21 2015 +0200
NEWS: doc update [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 24 11:44:00 2015 +0200
respect the max-record extension under DTLS
This resolves issue with max-record being negotiated but
ignored. Resolves #61
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 24 11:42:58 2015 +0200
tests: added check for max-record extension in TLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 24 11:18:57 2015 +0200
tests: check whether the max-record extension is usable with DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 24 11:13:28 2015 +0200
dtls: print the MTU in debugging messages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 22 17:14:02 2015 +0200
updated documentation on supported algorithms [ci skip]
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 22 11:30:52 2015 +0200
Added SHA384 to the list of TLS support MAC algorithms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 21 12:46:09 2015 +0200
documented the gitlab ci runner tags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 20 11:11:38 2015 +0200
tests: added timeout in long-running checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 20 11:01:48 2015 +0200
certtool: eliminated various memory leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 20 10:48:27 2015 +0200
certtool: prevented memory leak in pkcs8-info cmd
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 19 16:58:03 2015 +0200
certtool: do not use signal() under win32
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Dec 18 17:34:01 2015 +0200
build: configure.ac: manpages cleanups
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri Dec 18 12:14:08 2015 +0200
build: allow installing man(1) even with --disable-doc
Currently these man pages are installed only if --enable-doc
is provided, while these are not actually docs, do not require any
special dependency, nor consume large space.
This adds --enable-manpages to enable/disable manpages installation, and
install the man(1) regardless of --disable-doc.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 14:32:25 2015 +0100
certtool: ignore sigpipe
This signal was observed under certain cirquimstances
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 14:29:05 2015 +0100
certtool: don't close stdout on exit
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 14:24:23 2015 +0100
pkcs7: eliminated leak in gnutls_pkcs7_print
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 13:56:31 2015 +0100
gnutls_pubkey_import_privkey: document that this operation is not possible in certain keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 11:40:59 2015 +0100
doc: replace writev with sendmsg in the list of system calls
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 10:23:22 2015 +0100
tests: don't run the no-signal test in systems which MSG_NOSIGNAL is not available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 18 10:15:10 2015 +0100
Reduce the number of used syscalls by using sendmsg() instead of writev()
We relied on sendmsg() anyway for the MSG_NO_SIGNAL version of the calls,
thus it is a good idea to avoid calling writev() and use sendmsg(). That
way we reduce the number of calls required for seccomp.
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Dec 17 19:57:53 2015 +0200
doc: manpages: remove generated tpmtool.1 page
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Dec 17 19:57:52 2015 +0200
.gitignore: add m4/extern-inline.m4
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 17 14:19:04 2015 +0100
tests: added check to verify that the PKCS#7 embedded data are recovered as expected
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 17 14:18:17 2015 +0100
certtool: introduced the --p7-show-data option
This option allows printing the embedded data in a PKCS#7 signed
structure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 17 14:17:23 2015 +0100
gnutls_pkcs7_get_embedded_data: added function
This function allows extracting the embedded data from a PKCS#7 signed
structure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 16 16:13:41 2015 +0100
tests: updated pkcs7-gen to account for content-type attribute
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 16 14:52:39 2015 +0100
tests: check whether the content-type attribute is set if we sign using time
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 16 14:28:23 2015 +0100
pkcs7: set by default the content type attribute
That is a requirement of rfc5652. Relates #59
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 16 14:02:56 2015 +0100
pkcs7: use the PK_PKIX1_RSA_OID when writing RSA signature OIDs for PKCS#7 structures
That is because there are implementations which cannot cope with the
normal RSA signature OIDs. Relates #59
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 16 10:10:20 2015 +0100
pkcs7: Disable the optional fields prior to generating the PKCS#7 structure
This resolves issue with our PKCS#7 structures not being parsed by
MacOSX' tools. Relates #59
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 15 22:28:55 2015 +0100
certtool: corrected invalid free
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 15 22:27:50 2015 +0100
certtool: warn if an ECDSA key is marked for encryption
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 15 20:36:29 2015 +0100
build: fix make distclean by including src/gl only once
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 15 13:52:20 2015 +0100
make sure gnutls_assert is present at the cases where GNUTLS_E_INTERNAL_ERROR is returned
Author: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Mon Dec 14 15:20:25 2015 -0300
configure: really make --disable-crywrap work
The crywrap variable is set regardless of the state of enable_crywrap,
hence --disable-crywrap never works.
Just put the tests for crywrap deps inside the enable_crywrap
conditional.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 15 11:29:09 2015 +0100
certtool: the --p7-time option was made an enable/disable option
It remains disabled by default.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 14 15:19:59 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 14 15:03:23 2015 +0100
tests: check whether server returns the correct error code if presented with invalid versions
That is gnutls_handshake() will return GNUTLS_E_UNSUPPORTED_VERSION_PACKET in
server side, if the client presents a very old TLS version which is not supported.
Relates #42
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 14 14:34:04 2015 +0100
handshake: when receiving a TLS version which is too low fail
That is, don't treat all unsupported version as being to high. Treat
versions which are not known and lower than the highest as a protocol
error.
Resolves #42
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 13 12:34:47 2015 +0100
.gitlab-ci.yml: valgrind build was moved at the end as it is the slowest build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 13 12:24:44 2015 +0100
certtool: the --p7-include-cert option is enabled by default
This allows to generate PKCS#7 structures by default that can be
read by iOS.
Author: sskaje <sskaje@gmail.com>
Date: Sun Dec 13 16:31:19 2015 +0800
#56 Feature: certtool --p7-sign support GNUTLS_PKCS7_INCLUDE_CERT
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 10 09:35:59 2015 +0100
gnutls-cli-debug: rephrased inappropriate fallback test description to match the rest
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 8 10:59:02 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 8 10:52:43 2015 +0100
Do not allow importing public keys from PKCS #11 private keys for DSA and ECDSA
This prevents the reading of the public key when non-RSA keys are available. This
is a much cleaner approach than 5a4e692511dc3a829eda0d7c5a87e56cbc2055f0.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 8 10:48:13 2015 +0100
Revert "Do not allow importing public keys from PKCS #11 private keys for DSA and ECDSA"
This reverts commit 5a4e692511dc3a829eda0d7c5a87e56cbc2055f0.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 8 10:44:30 2015 +0100
tests: check whether a peer changing certificate is detected
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 8 10:20:34 2015 +0100
tests: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 8 10:17:49 2015 +0100
Do not allow certificate change during a rehandshake
That is require that the certificate of the peer remains the same
and return GNUTLS_E_SESSION_CERTIFICATE_CHANGED otherwise. To revert
to the previous behavior the GNUTLS_ALLOW_CERT_CHANGE flag was introduced.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 6 12:00:46 2015 +0100
tests: check whether gnutls_pubkey_import_privkey() operates well for PKCS#11 RSA keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 6 11:35:57 2015 +0100
Do not allow importing public keys from PKCS #11 private keys for DSA and ECDSA
That is, because they do not contain all the required parameters for a direct
import. Reported by Jan Vcelak.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 6 10:58:45 2015 +0100
pkcs11: avoid setting a variable which isn't used
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 6 10:57:48 2015 +0100
MAX_PK_PARAM_SIZE was moved to gnutls_int.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 6 10:54:37 2015 +0100
pkcs11: deinitialize gnutls_pkcs11_obj_t's pubkey on deinit
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Sun Dec 6 00:46:39 2015 +0100
pkcs11: fix passing of incorrect variable in privkey_get_pubkey
The code worked for RSA because the content of the variables matched.
But it doesn't match for ECC.
CKM_RSA_PKCS_KEY_PAIR_GEN (0x0) == CKK_RSA (0x0)
CKM_ECDSA_KEY_PAIR_GEN (0x1040) != CKK_ECDSA (0x3)
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 2 18:40:28 2015 +0100
gnutls-cli: don't use RSA ciphersuites to test chacha20 as they are not defined
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 2 16:15:03 2015 +0100
documented bug in gnutls_x509_crt_get_*_unique_id()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 1 10:40:23 2015 +0100
tools: don't compile tpmtool if PKCS11 is disabled
That is because GnuTLS' TPM code makes use of the PKCS11 PIN callbacks.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 30 10:34:03 2015 +0100
Amend "When decoding extensions do not ignore decoding errors"
Do not treat an error the fact that no extensions field is present.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 30 09:49:08 2015 +0100
allow specifying NULL buffer in gnutls_x509_crt_get_*_unique_id()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 26 12:46:02 2015 +0100
NEWS: removed functions that were part of 3.4.x releases
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 29 10:37:53 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 29 10:30:01 2015 +0100
tests: added check for TLS extension decoding error propagation
Relates #40
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 29 09:24:12 2015 +0100
When decoding extensions do not ignore decoding errors
That is, move from a parsing error tolerance to a more strict
decoding approach.
Relates #40
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 28 10:43:31 2015 +0100
.gitignore: more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 28 10:11:52 2015 +0100
ocsp_output: when next update is not present don't print error message
That is because this field is optional.
Resolves #53
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 26 11:23:15 2015 +0100
tests: override-ciphers will not run mac tests on windows
There is some issue with symbols for self tests not being exported.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 26 09:37:02 2015 +0100
.gitlab-ci.yml: removed separate builddir build from x86-64 targets to reduce builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 26 09:32:25 2015 +0100
tests: updates for certtool test to run under windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 26 09:25:48 2015 +0100
.gitlab-ci.yml: minimal library no longer requires x86-64 for compilation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 19:24:15 2015 +0100
.gitlab-ci.yml: in windows build skip the gnulib tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 11:57:31 2015 +0100
.gitlab-ci.yml: added windows build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 11:56:49 2015 +0100
tests: changes for running tests under windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 11:56:06 2015 +0100
tests: cipher-test will forward the prog exit code as the script exit code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 11:25:07 2015 +0100
README: added information for windows build
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 10:53:51 2015 +0100
libopts: use the O_BINARY flag in windows for files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 10:49:30 2015 +0100
libopts: updated to 5.18.6
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 10:25:08 2015 +0100
use consistent terms in system.c and system-keys-win.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 10:21:46 2015 +0100
tests: added basic functionality testing for system-keys in windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 09:49:03 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 25 09:46:26 2015 +0100
Added gnutls_encode_ber_digest_info and gnutls_decode_ber_digest_info
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 24 13:27:13 2015 +0100
cross.mk: allow building with mingw64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 24 13:09:40 2015 +0100
tests: use gnulib where needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 24 13:04:28 2015 +0100
cross.mk: updated windows cross compile makefile
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 24 13:03:15 2015 +0100
tests: disable global-init-override test in windows
Gcc does not support weak symbols on this platform.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 24 12:54:32 2015 +0100
tools: don't call endservent in windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 22 13:27:14 2015 +0100
added cast to silence gcc warning
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 21 13:33:42 2015 +0100
tests: added check for multiple extension registering
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 21 13:25:20 2015 +0100
statically initialize extensions instead of using the lib constructor
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 21 13:09:19 2015 +0100
marked all extensions structures as constant
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 21 11:33:45 2015 +0100
system-keys-win: allow reinitialization of the library after a deinitialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 21 01:05:37 2015 +0100
getfuncs.pl: don't consider functions with _gnutls prefix
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 21 00:52:51 2015 +0100
gnutls_global_init_skip: prefixed with an underscore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 20 13:57:09 2015 +0100
.gitlab-ci.yml: added clang compilation target
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 20 10:11:29 2015 +0100
certtool: check fread_file() for errors in all situations
This caused certtool to crash on invalid input on stdin.
Reported by Christoph Biedl.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 19 11:46:39 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 21:44:54 2015 +0100
gnutls_certificate_set_flags: Added since
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 20:16:38 2015 +0100
tests: check gnutls_certificate_flags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 20:13:07 2015 +0100
Added gnutls_certificate_flags() and GNUTLS_CERTIFICATE_SKIP_KEY_CERT_MATCH
That allows a user of the credentials to disable the certificate matching
action. That is, to disable the calls to sign and verify on initialization.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 16:39:36 2015 +0100
link with libdl when trousers is enabled; reported by Andreas Schneider
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 16:30:24 2015 +0100
enhanced cipher selftests with variable key sizes on arcfour
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 15:55:19 2015 +0100
Do not enforce a maximum key size on ARCFOUR
That makes the library consistent with the behavior of previous versions (3.3.x)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 10:22:31 2015 +0100
gnutls-cli-debug: make TLS 1.6 fallback check more reliable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 18 09:24:18 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 17 07:09:05 2015 +0100
README: added non-interactive versions of commands
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 18:52:48 2015 +0100
.gitlab-ci.yml: disable non-suiteb curves in all systems as we have multiple which are fedoras
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 17:28:49 2015 +0100
tests: corrected copyright info
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 16:32:04 2015 +0100
documented GNUTLS_SKIP_GLOBAL_INIT macro
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 16:30:37 2015 +0100
tests: added check for overriding global initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 16:25:31 2015 +0100
Added GNUTLS_SKIP_GLOBAL_INIT macro to allow programs skip implicit global initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 15:02:48 2015 +0100
tests: utils.c: simplify windows check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 16 12:40:14 2015 +0100
.gitlab-ci.yml: added build and check in FIPS140-2 mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 15 20:35:18 2015 +0100
tests: made seccomp tests more reliable by waiting for each side to terminate
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 15 17:06:18 2015 +0100
doc: document how to use gnutls with seccomp
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 15 16:32:47 2015 +0100
.gitlab-ci.yml: reorganized and added a simple build and check on x86-64 rule
The latter also enables the seccomp checks.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 15 15:51:14 2015 +0100
tests: check operation of TLS and DTLS under seccomp when configured with --enable-seccomp-tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 13 16:39:24 2015 +0100
gnutls_x509_crt_set_subject/issuer_unique_id: added Since in doc
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 13 14:40:20 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 13 11:00:10 2015 +0100
Added documentation on PKCS #7 signing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 16:38:02 2015 +0100
updated chacha20 ciphers to conform to latest draft
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 15:03:10 2015 +0100
tests: suite: more shell scripts were given the .sh suffix and simplified makefile
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 12:04:04 2015 +0100
tests: verify that unique IDs are generated as expected
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 12:03:14 2015 +0100
certtool: Allow writing unique IDs in generated certificates
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 11:43:52 2015 +0100
Added gnutls_x509_crt_set_issuer_unique_id() and gnutls_x509_crt_set_subject_unique_id()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 11:10:08 2015 +0100
properly indent unique IDs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 09:48:27 2015 +0100
tests: added check with the various X.509 key exchanges
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 12 09:29:43 2015 +0100
tests: check rehandshake from anon to DHE
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 11 11:37:30 2015 +0100
documented the GNUTLS_NO_EXPLICIT_INIT environment variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 11 11:29:21 2015 +0100
crypto-api: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 11 11:15:51 2015 +0100
Allow switching a ciphersuite to DHE and ECDHE on a rehandshake
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 11 10:49:31 2015 +0100
tests: added check for ciphersuite switch from anonymous to certificate
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 10 13:31:16 2015 +0100
.gitlab-ci.yml: disable guile in asan builds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 10 10:34:56 2015 +0100
tests: suite: don't run shell scripts with valgrind
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 10 10:24:44 2015 +0100
tests: testsrn: output errors on stderr
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 10 10:13:35 2015 +0100
deinitialize all handshake keys when handshake is over
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 23:53:25 2015 +0100
testdane: improved error detection in sites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 23:34:03 2015 +0100
tests: suite: eliminate many leaks in the tests and run them under valgrind
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 23:27:47 2015 +0100
certtool: eliminate leaks in _verify_x509_mem()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 23:04:48 2015 +0100
tests: openpgp-certs: use valgrind
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 23:04:03 2015 +0100
openpgp: eliminate leaks in gnutls_openpgp_keyring_import()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 22:48:47 2015 +0100
tests: eliminate leaks in mini-eagain2.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 22:48:25 2015 +0100
certtool: eliminate memory leaks in certificate generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 22:45:44 2015 +0100
tests: key-tests: use valgrind
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 22:45:13 2015 +0100
gnutls_x509_crt_set_pubkey: clarify usage
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 21:54:54 2015 +0100
pkcs12: correctly set salt size in gnutls_pkcs12_mac_info
Also eliminate leaks in PKCS #12 parsing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 21:54:09 2015 +0100
tests: run the PKCS #12 tests under valgrind
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 18:43:03 2015 +0100
certtool: make sure that pkcs12 structures are deinitialized
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 16:01:55 2015 +0100
tests: provable-privkey: fixed DSA test on FIPS140 enabled systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 15:51:17 2015 +0100
nettle: be more specific in seed size mismatches
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 15:43:20 2015 +0100
crypto-backend: ensure there are no leaks on deinitialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 9 14:29:48 2015 +0100
Require TLS 1.2 for all the ciphersuites which are defined for it only
This solves an interoperability issue with openssl. Reported by Viktor Dukhovni.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 8 09:30:39 2015 +0100
p11tool: introduced --only-urls option
This option allows printing a compact listing containing only of URLs.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 7 21:51:56 2015 +0100
Modified the CHACHA20 cipher to conform to draft-ietf-tls-chacha20-poly1305-02
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 6 15:02:51 2015 +0100
.gitlab-ci.yml: use static libasan
This prevents issues with tests which use LD_PRELOAD.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 6 10:40:39 2015 +0100
.gitlab-ci.yml: disable non-suiteb curves on build on Fedora system
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 5 11:11:29 2015 +0100
tools: better ftp auth tls negotiation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 4 09:49:47 2015 +0100
tests: added check for gnutls_priority_set_default
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 3 10:46:17 2015 +0100
tools: only check for status code in FTP starttls negotiation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 3 10:45:44 2015 +0100
tools: print more info in starttls negotiation when --verbose is given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 3 09:40:39 2015 +0100
gnutls.pc: don't use the libtool version of the link options
Reported by Dan Kegel.
Resolves #49
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 1 01:53:43 2015 +0100
tests: simplified mini-dtls-hello-verify-48
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 30 13:38:36 2015 +0100
tests: added check for blocking on invalid DTLS cookie
Relates to #48
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 29 09:28:59 2015 +0100
removed inacurate text
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 23 15:46:33 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 23 15:44:27 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 23 14:17:23 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 22 13:04:32 2015 +0200
doc: document the sign function requirements in gnutls_privkey_import_ext
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 21 19:57:39 2015 +0200
Mention key protection through isolation in crypto backend section
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 21 19:48:22 2015 +0200
doc: updated supplemental data documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 21 09:13:56 2015 +0200
tests: testdane will not check hosts which are unreachable
Author: Andreas Metzler <ametzler@debian.org>
Date: Tue Oct 20 19:02:25 2015 +0200
Documentation update
The new simple verification functions were backported to 3.4.6, correct
"Since:" to reflect this.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 20 09:40:56 2015 +0200
doc: documented future level
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 20 09:24:36 2015 +0200
pkcs11.h: relocated gnutls_pkcs11_copy_pubkey to allow discovery by buggy doc scripts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 20 09:16:20 2015 +0200
bumped version to distinguish from 3.4 branch
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 20 09:03:25 2015 +0200
ext master secret: extension is marked as mandatory
This forces the extension to be sent even where resuming sessions.
Resolves #45
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 20 08:44:04 2015 +0200
tests: Check whether a resumed session contains the ext master secret extension
Relates #45
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 17 09:22:28 2015 +0200
alpn: avoid warning on signed/unsigned
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 17 09:20:52 2015 +0200
README: updated CI link
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 17 09:12:09 2015 +0200
doc: set a path which includes new binaries when running autogen
That makes sure that autogen will discover the binaries to obtain the
--help output.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Oct 17 08:57:02 2015 +0200
gnutls-cli-debug: updated doc
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 22:58:54 2015 +0200
tools: when the starttls-proto is specified automatically detect the port if not given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 15:05:09 2015 +0200
tests: verify that public keys are properly written
Also disable parts of the suite that softhsm2 cannot properly work with,
to allow running parts of the suite even with broken softhsm.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 15:39:05 2015 +0200
cleanup in gnutls_pubkey_import_rsa_raw
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 15:33:21 2015 +0200
pkcs11_read_pubkey: make input type more clear
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 14:13:47 2015 +0200
p11tool: Allow writing a PKCS #11 pubkey object
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 13:16:36 2015 +0200
tools: allow importing a pubkey from a certificate
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 16 13:03:57 2015 +0200
pkcs11: introduced gnutls_pkcs11_copy_pubkey
That allows copying a public key to a PKCS #11 module.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 15 21:23:44 2015 +0200
.gitlab-ci.yml: combined the slow build with the separate build dir
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 15 21:16:52 2015 +0200
Disable the NULL cipher on runtime when FIPS140 mode is enabled instead of statically
That way the NULL cipher can be used when not in FIPS140 mode.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 15 21:09:06 2015 +0200
re-enable NULL ciphersuites
They were accidentally disabled by b237b37d4d17ee4f98629aae9d72aec87f434cb8
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 15 18:35:44 2015 +0200
tests: check whether the RSA-EXPORT and ARCFOUR-40 legacy strings are accepted
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 15 18:20:38 2015 +0200
Tolerate priority strings with names of legacy ciphers and key exchanges
That enables better backwards compatibility with old applications
which disable or enable algorithms which no longer are supported.
Relates #44
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Oct 15 16:21:43 2015 +0200
pkcs11: write CKA_ISSUER and CKA_SERIAL_NUMBER when writing on a certificate
That allows NSS to read and use the written certificate.
Relates #43
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Oct 13 04:01:04 2015 +0200
tests: enhanced sec-params check to account for future sec-param
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 12 22:11:16 2015 +0200
certtool: recognize the future sec-param
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 12 22:10:25 2015 +0200
Introduced the security parameter future (256) and switched ultra to 192 bits
For ultra, this was its documented strength, and now follows RFC3766 recommendations
for sizes.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 12 21:54:09 2015 +0200
certtool: be more specific on the help message for --sec-param when --bits are given
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 12 14:54:04 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 12 14:15:28 2015 +0200
tests: added test case for record timeout values
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 12 13:52:03 2015 +0200
Introduced GNUTLS_INDEFINITE_TIMEOUT
This allows to specify an indefinite timeout to gnutls_record_set_timeout().
In addition this flag is accepted by gnutls_handshake_set_timeout() and
cancels out a previously set timeout.
Resolves #41
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Oct 7 10:38:25 2015 +0200
tests: better detection of softhsm library
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 5 14:31:53 2015 +0200
added text on _gnutls_dh_compute_key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Oct 5 17:11:37 2015 +0200
gnutls_record_recv: simplified text on GNUTLS_E_REHANDSHAKE
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 22 14:31:00 2015 +0200
certtool: print 16-bytes of hex values per line
Also avoid a colon on the end of the line.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Sep 22 08:31:04 2015 +0200
fips140: set the key via a configure argument
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 12:37:51 2015 +0200
tests: disable cipher-test on windows platform; they don't seem to work
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 21 14:47:41 2015 +0200
README.md: added build instructions for Fedora/RHEL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 21 14:25:12 2015 +0200
priorities: sort algorithms by security strength unless performance is requested
That is prioritize 256-bit ciphers over 128-bit ciphers. This would protect
secrecy of current data even after a PQ future.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 12:12:18 2015 +0200
.gitlab-ci.yml: reduce the number of CPUs used in slow on make check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 11:36:48 2015 +0200
use time_t for internal type to avoid warnings on signed/unsigned comparison
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 11:30:39 2015 +0200
DSA FIPS186-4 key generation: print the required seed length on mismatch
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 11:22:04 2015 +0200
certtool: added more friendly error on seed_size mismatch
That prints more useful information when generating provable private keys.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 11:14:29 2015 +0200
tests: use the corrected seed for default provable private key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 06:52:13 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 19 06:50:45 2015 +0200
certtool: switched the default level to HIGH for key generation
That requires 3072 bits for RSA and DSA keys.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 18 23:49:46 2015 +0200
tools: added xmpp into the starttls-proto options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 18 15:57:14 2015 +0200
tools: added ldap into the starttls-proto options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 17 14:52:27 2015 +0200
system.c: simplify gnutls_system_recv_timeout
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 17 13:15:54 2015 +0200
gnutls-cli-debug: use RFC7627 instead of draft-ietf-tls-session-hash
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 17 10:45:30 2015 +0200
updated documentation on gnutls_vdata_types_t based on DKG's suggestions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Sep 17 10:10:47 2015 +0200
doc update
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed Sep 16 19:59:12 2015 -0400
improve docs for gnutls_certificate_verify_peers*()
The gnutls_certificate_verify_peers{,2,3}() functions all return
GNUTLS_E_SUCCESS (0) even in situations when the peer's certificate
was not verified. This is explained in the first paragraphs
("i.e. failure to trust a certificate does not imply a negative return
value"), but the Returns: line isn't comparably clear.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 14 21:36:24 2015 +0200
certtool: increased seed size to allow for DSA seeds
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Sep 14 21:32:05 2015 +0200
_gnutls_hex2bin: avoid overrun in the provided buffer
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 19:29:41 2015 +0200
certtool: don't output PKCS #8 on key-info option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 13:57:26 2015 +0200
better error checking in seed decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 13:52:30 2015 +0200
gnutls_x509_privkey_verify_seed: fail on keys without seed information
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 13:39:13 2015 +0200
certtool: on provable keys always print the legacy format
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 13:27:12 2015 +0200
Use separate PEM headers for provable private keys
Also introduce GNUTLS_PRIVKEY_FLAG_EXPORT_COMPAT to allow exporting
provable private keys in the old compatibility format.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 11:06:39 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 11:06:00 2015 +0200
certtool: provable key generation was moved to a separate flag that can be combined with --generate-privkey
Also enhanced the test suite with DSA provable key generation/verification.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 10:57:39 2015 +0200
Allow verifying and generating provable DSA keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 09:51:25 2015 +0200
tests: added checks for provable key generation and verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 09:36:46 2015 +0200
certtool: added provable key verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 09:32:32 2015 +0200
Made the new key generation API flexible to allow extensions in the future
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 09:06:12 2015 +0200
Added API to verify private keys generated with seed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Sep 13 09:01:41 2015 +0200
gnutls_asn1_tab: updated auto-generated file
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 12 16:20:13 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 12 16:18:10 2015 +0200
certtool: allow the generation of "provable" private keys
Relates to #34
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 12 15:47:38 2015 +0200
Added API to generate private keys from a given seed
Currently it is restricted to RSA and FIPS 186-4 key generation with SHA384.
Relates to #34
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 12 14:47:02 2015 +0200
properly generate asn1_tab.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 11 15:44:06 2015 +0200
Don't use formatted output for fixed strings
Resolves #35
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Sep 9 22:24:27 2015 +0200
README.md: updated information
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Sep 5 06:20:58 2015 +0200
renamed the auto-verification functions
The names are more consistent with the rest of the library.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Sep 4 14:05:02 2015 +0200
pkcs11: when storing public keys, make sure they are marked as not private
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 31 14:22:02 2015 +0200
README.md: mention the testsuite
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 30 23:41:11 2015 +0200
README.md: print build status
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 30 23:31:06 2015 +0200
README.md: refer to files using markdown
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 30 23:26:27 2015 +0200
Updated coding style
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 28 16:54:47 2015 +0200
gnutls-cli-debug: corrected typo in inappropriate fallback check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 28 16:51:35 2015 +0200
.gitlab-ci.yml: use the same number of CPUs in all the checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 28 12:05:02 2015 +0200
gnutls-cli-debug: added check for inappropriate fallback support
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 27 22:12:55 2015 +0200
Introduced GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR to be returned by the auto-verification functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 19:39:22 2015 +0200
nettle: simplified SHA3 checks for nettle
nettle 3.1 doesn't have the functions nettle for
runtime version checking.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 19:34:59 2015 +0200
export _gnutls_digest_exists for self tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 11:51:09 2015 +0200
x509: tolerate missing subject or issuer fields
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 11:42:01 2015 +0200
certtool: added support for sha3
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 11:37:13 2015 +0200
gnutls_oid_to_digest(): don't return supported but disabled algorithms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 11:02:39 2015 +0200
Added support for the SHA3 digest algorithm
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 26 09:13:52 2015 +0200
corrected typo in ex-server-anon
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 14:13:24 2015 +0200
Define more precisely the auto verification function semantics.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 13:59:21 2015 +0200
Allow overriding the verification flags from the auto-verification functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 13:43:09 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 13:39:33 2015 +0200
Document the new verification functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 13:19:51 2015 +0200
examples: simplify the X.509 client example by using the new verification API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 13:13:57 2015 +0200
tests: check the auto-verification functionality
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 12:00:10 2015 +0200
Added simpler verification functions for clients
The major use-case for the TLS protocol is verification of PKIX
certificates. However, certificate verification support while is
similar for almost all projects it requires around 100 lines of code
(a callback) to be duplicated to all applications. That patch
set gets rid of the callback and simplifies certificate verification
support, by introducing a very simple API; one that would accept
the session and the hostname only.
Resolves #27
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 11:10:26 2015 +0200
tests: added test for gnutls_session_set_verify_function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 24 11:03:09 2015 +0200
Added gnutls_session_set_verify_function
That allows to set a verification callback per session rather
than only globally on the credentials structure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 23 22:54:22 2015 +0200
getfuncs.pl: ignore defines in headers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 23 22:33:59 2015 +0200
Makefiles: updated for new filenames
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 23 19:28:09 2015 +0200
Moved pk_* functions to pk.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 23 19:19:45 2015 +0200
Removed the 'gnutls_' prefix from files to simplify file naming
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 23 18:44:26 2015 +0200
Moved the PRF functions to prf.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 23 14:19:17 2015 +0200
hex decoding: more reasonable error codes
That is, return GNUTLS_E_PARSING_ERROR instead of base64 decoding
error, and document that fact.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 15:10:46 2015 +0200
tests: Added resumption tests for PSK ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 14:35:09 2015 +0200
Set the extended master secret status based on resumption data only
That is, don't require a new negotiation with extensions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 14:23:38 2015 +0200
tests: corrected resumption tests to disable tickets when needed
That is, perform the tests that require no tickets, with tickets disabled.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 14:06:51 2015 +0200
session packing: corrected issue in PSK session unpack
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 13:54:41 2015 +0200
PSK: save the username in client side in the auth structure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 13:26:08 2015 +0200
_gnutls_hash() returns error code if any.
Ideally we would like to eliminate any return codes from that
function. However, since that's on exported API we cannot easily
do without breaking the ABI. Reported by Benedikt Klotz.
Resolves #28
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 13:15:11 2015 +0200
x509: when appending CRLs to a trust list ensure that we don't have duplicates
That is, overwrite CRLs if they have been obsoleted.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 21 11:34:39 2015 +0200
certtool: allow exporting very long CRLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 14 12:15:16 2015 +0200
tests: verify that a key usage violation is detected
That is that the certificate key usage flags are respected
by either the client side or the server side.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 14 12:14:55 2015 +0200
Enable key usage checks in the client side of RSA ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 14 12:14:08 2015 +0200
priorities: Added internal option to allow key usage violations in server side
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 14 11:55:04 2015 +0200
fix typo in comment
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 14 11:27:50 2015 +0200
Re-enable the certificate key usage checks for compliance with ciphersuite
There is a new attack on the TLS protocol which relies on using certificates
for ECDSA as certificates for ECDH ciphersuites. That attack while it doesn't
affect gnutls, which doesn't support static ECDH, assumes that implementations
ignore the key usage bits in the certificate. We have done it since 3.1.0 for
compatibility reasons (see http://www.gnutls.org/faq.html#key-usage-violation),
but that clearly opens the door for real attacks in the future.
For this reason the key usage bits will no longer be ignored.
Resolves #24
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 13 12:10:59 2015 +0200
tests: verify whether CRL date setting works as expected
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 13 12:05:35 2015 +0200
certtool: Allow specifying CRL dates as fixed dates
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 13 11:48:15 2015 +0200
tests: verify CRL appending effectiveness
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 13 11:45:50 2015 +0200
gnutls_x509_crl_set_authority_key_id, gnutls_x509_crl_set_number allow overwritting
That allows them to overwrite values which were previously set (e.g.,
on an imported CRL).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 13 11:36:17 2015 +0200
certtool: allow appending certificates to a CRL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 12 23:03:20 2015 +0200
certtool: removed limit on maximum imported certificates in the -i option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 12 22:49:15 2015 +0200
tests: check whether the CRL generation code works as expected
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 12 22:48:45 2015 +0200
certtool: eliminated memory leaks due to new cert loading code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Aug 12 22:22:55 2015 +0200
certtool: lifted limits on file size to load
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 10 16:43:28 2015 +0200
before dist ensure that included libopts matches autogen
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 10 16:12:05 2015 +0200
configure: use ':' instead of /bin/true for programs not found
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 9 21:20:33 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Aug 9 20:58:40 2015 +0200
tests: include all cert-tests into dist
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 7 16:59:18 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 7 16:13:12 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 7 16:04:12 2015 +0200
tests: check gnutls_check_version_numeric()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 7 15:45:21 2015 +0200
gnutls.h: added macro gnutls_check_version_numeric
This simplifies version checking, and allows the compiler to optimize
out. It can only accept numerals.
Patch by David Woodhouse.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 7 15:19:33 2015 +0200
use pure and const gcc attributes in headers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Aug 7 14:14:44 2015 +0200
mention version macro
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Aug 6 10:37:15 2015 +0200
p11tool: test-sign will not fail if a pubkey is not found
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 4 20:32:25 2015 +0200
key decoding: set key to null for consistency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 4 14:08:37 2015 +0200
key decoding: simplify decoding logic by removing the fallback
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 4 13:56:41 2015 +0200
key decoding: corrected regression with PKCS #8 key decoding
Reported by Daniel Berrange.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Aug 4 13:55:56 2015 +0200
tests: added check for decoding of a PKCS #8 key as fallback
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Aug 3 14:17:16 2015 +0200
pkcs11: set the CKA_TOKEN attribute on generated public keys
That also introduces the GNUTLS_PKCS11_OBJ_FLAG_NO_STORE_PUBKEY flag,
to simulate the previous behavior.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 17:03:33 2015 +0200
tests: added check for the fallback SCSV
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 17:02:00 2015 +0200
handshake: check inappropriate fallback against the configured max version
That allows to operate on a server which is explicitly configured to
utilize earlier than TLS 1.2 versions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 17:01:36 2015 +0200
corrected GNUTLS_E_INAPPROPRIATE_FALLBACK error code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 16:44:13 2015 +0200
DCO: added Alessandro Ghedini
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 14:21:59 2015 +0200
copy_ciphersuites: use definition for reserved ciphersuites
Author: Alessandro Ghedini <alessandro@ghedini.me>
Date: Sat Aug 1 00:38:10 2015 +0200
handshake: add FALLBACK_SCSV priority option
This allows clients to enable the TLS_FALLBACK_SCSV mechanism during
the handshake, as defined in RFC7507.
Author: Alessandro Ghedini <alessandro@ghedini.me>
Date: Sat Aug 1 00:04:16 2015 +0200
handshake: check for TLS_FALLBACK_SCSV
If TLS_FALLBACK_SCSV was sent by the client during the handshake, and
the advertised protocol version is lower than GNUTLS_TLS_VERSION_MAX,
send the "Inappropriate fallback" fatal alert and abort the handshake.
This mechanism was defined in RFC7507.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 09:10:53 2015 +0200
cfg.mk: fix order of arguments in gnulib-tool
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 08:38:50 2015 +0200
use gettext-h gnulib module
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Aug 1 00:12:25 2015 +0200
tests: added missing certtool-long-cn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 22:42:42 2015 +0200
safe renegotiation: simulate receiving the extension on receival of SCSV
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 22:00:53 2015 +0200
made data2hex() safer, and eliminated mem leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 22:17:17 2015 +0200
tests: added check for proper handling of very long CNs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 21:26:25 2015 +0200
updated the required gettext version to match the macros from gnulib
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 16:03:25 2015 +0200
safe renegotiation: handle case where client didn't send any extension
That was affected by the "don't try to send extensions we didn't receive".
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 15:02:01 2015 +0200
tpm: avoid warning
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 14:57:33 2015 +0200
As server don't try to send extensions we didn't receive.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 14:33:00 2015 +0200
tests: added check for server sending (or not) status request messages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 31 14:30:00 2015 +0200
fips140: corrected hex decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 11:48:51 2015 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 11:45:51 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 10:30:20 2015 +0200
verify-tofu: use nettle's base64 functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 10:24:39 2015 +0200
gnulib: removed base64 implementation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 10:20:40 2015 +0200
openpgp: use nettle's base64 functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 10:11:48 2015 +0200
x509_b64: switch to nettle's base64 functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:57:52 2015 +0200
tests: added check for PSK file parsing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:37:34 2015 +0200
fips: use gnutls_hex_decode for MAC decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:36:32 2015 +0200
tpm: use gnutls_hex_decode for uuid decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:36:14 2015 +0200
psk: use gnutls_hex_decode2 for key decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:35:47 2015 +0200
system-keys-win: use gnutls_hex_decode for ID decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:35:11 2015 +0200
openpgp: use gnutls_hex_decode for keyid decoding
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:34:52 2015 +0200
DN decoding: use gnutls_hex_encode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 21 08:19:17 2015 +0200
Introduced gnutls_hex_encode2() and gnutls_hex_decode2()
These also use safer hex decoding functions which don't skip
invalid input.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 22:37:40 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 22:09:28 2015 +0200
x509: simplified data to hex conversion in unknown DN names
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 21:26:36 2015 +0200
gnutls_prf_rfc5705: Allow for non-null context and zero context length
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 13 20:19:28 2015 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 15:42:21 2015 +0200
tests: added cross-check between gnutls_prf_rfc5705() and gnutls_prf()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 15:07:05 2015 +0200
removed legacy libgcrypt flags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 14:59:37 2015 +0200
gnutls_prf_rfc5705: optimize in the common use case, by avoiding malloc
Also don't handle specially the case of non-NULL context and context_size of zero.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 14:03:34 2015 +0200
ignore more files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 14:03:22 2015 +0200
p11tool: fix documentation for --generate-ecc and generate-dsa
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 10:49:48 2015 +0200
gnutls_prf_rfc5705: mention the version it was introduced at
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 10:39:37 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 10:35:08 2015 +0200
tests: added check for gnutls_prf() and gnutls_prf_rfc5705
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 20 10:03:37 2015 +0200
gnutls_prf_rfc5705: added
That includes support for RFC5705 when the context field is used.
Initial patch by Rick van Rein.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 17 11:38:17 2015 +0200
doc update: explain more about PKCS #11 and fork
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 14 09:55:50 2015 +0200
configure: print the trousers lib only when set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jul 14 09:44:30 2015 +0200
tpmtool: Added --test-sign parameter
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 13 20:04:41 2015 +0200
Deinitialize the TPM subsystem only when trousers support is enabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jul 13 16:25:16 2015 +0200
TPM: don't link to trousers, use dlopen()
That introduces --with-trousers-lib which can be used to specify the
library to dlopen().
Resolves #18
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 12 15:21:13 2015 +0200
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jul 12 15:15:00 2015 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jul 11 12:05:56 2015 +0200
pkcs11: mention the version GNUTLS_PKCS11_TOKEN_MODNAME is available from
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 21:20:23 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 21:17:48 2015 +0200
PSK: set the hint in DHE-PSK and ECDHE-PSK ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 19:17:23 2015 +0200
tests: updated pskself to check the hint in all PSK ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 16:57:19 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 16:55:48 2015 +0200
p11tool: be more compact in token URL printing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 16:52:57 2015 +0200
p11tool: group the provided options for readability
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 16:31:02 2015 +0200
p11tool: keep backwards compatibility by introducing --list-token-urls
That is, the output of --list-tokens remains the same.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 16:25:48 2015 +0200
p11tool: print the module name of a token in verbose mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 16:24:11 2015 +0200
Added GNUTLS_PKCS11_TOKEN_MODNAME for gnutls_pkcs11_token_get_info
That allows to obtain the shared module name of a token URL.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 13:36:51 2015 +0200
pkcs11.h: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jul 10 13:12:00 2015 +0200
p11tool: less verbose output in --list-tokens unless --verbose is specified
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 9 14:10:23 2015 +0200
tests: added suppression for bash mem leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 9 22:50:11 2015 +0200
tests: don't run certtool-utf8 when libidn is 1.30 or less
This avoids test suite failures due to libidn.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 9 13:45:58 2015 +0200
gnutls-cli: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jul 9 13:26:14 2015 +0200
dumbfw: don't append a size prefix in the pad
Reported by Hannes Mehnert.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 8 09:47:52 2015 +0200
gl: use /bin/true to run valgrind during configure
Bash has memory leaks, which prevents the valgrind check to
operate using the SHELL variable.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 8 09:38:37 2015 +0200
tests: added check for invalid UTF8 encoded string
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 8 09:19:00 2015 +0200
Revert "libidn support is disabled by default"
This reverts commit 5fdffb2c177cb990480fb8b93c9257ccc5dfcaad.
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Thu Jul 2 14:28:32 2015 -0400
certtool --outder should not emit signature verification status
When emitting binary-formatted output, send signature verification
status to stderr, since it is not binary-formatted output.
A simpler version of this patch would be to always send signature
verification to stderr, but that would change the text-formatted
output.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 1 21:13:23 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 1 15:25:30 2015 +0200
DSA: the numeric number of bits returned from public key should depend on P not Y
That allows to do the proper evaluation to check certificate strength.
Reported by Hubert Kario.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 1 15:36:20 2015 +0200
tests: check whether we print the prime size in DSA keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 1 11:15:38 2015 +0200
name constraints: simplified gnutls_x509_name_constraints_check_crt()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 1 11:08:11 2015 +0200
tests: verify that unsupported name constraints are properly handled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jul 1 11:01:20 2015 +0200
name constraints: don't reject certificates if a CA has the URI or IPADDRESS constraints
Don't reject certificates if a CA has the URI or IPADDRESS constraints, and
the end certificate doesn't have an IPaddress name or a URI set.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 29 19:52:15 2015 +0200
Sync with TP.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jun 28 13:09:42 2015 +0200
libidn support is disabled by default
That is until the issues with libidn get resolves.
Relates #10
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 27 08:05:10 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 27 07:57:21 2015 +0200
tests: added a test for the fork detection interface
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 27 07:51:05 2015 +0200
tests: resume-dtls: increased timeouts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 26 16:31:21 2015 +0200
Don't use pthread_atfork(), it is not safe to use with dlopen()
http://austingroupbugs.net/view.php?id=851
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 26 14:47:39 2015 +0200
atfork: added underscore to gnutls_forkid
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 26 09:08:20 2015 +0200
simplified fork detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 26 08:07:01 2015 +0200
enhanced header matching code for private keys to skip unrelated data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 26 08:00:24 2015 +0200
tests: added private key import checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 25 15:08:54 2015 +0200
gnutls_x509_privkey_import: optimized private key loading
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 25 15:01:17 2015 +0200
gnutls_x509_privkey_import2: better behavior when provided with an unencrypted file
That is, it will attempt to decode it first as plain file prior to
trying all encrypted options.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 25 14:47:52 2015 +0200
tests: added check to verify that gnutls_x509_privkey_import2 works for plain keys
That is, when a password is provided and the key is non encrypted.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 25 11:08:19 2015 +0200
_gnutls_get_asn_mpis() will release any data on failure
Resolves #15
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jun 21 20:42:12 2015 +0300
tests: tab indent + minor style changes
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 23 11:53:23 2015 +0200
tests: modified test-ciphersuite-names to work with cpp 5.1.1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 22 23:49:32 2015 +0200
tests: test-ciphersuite-names: create any needed dirs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 22 21:24:55 2015 +0200
tests: moved test-ciphersuites.sh one level up
That simplifies running the script outside make check.
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jun 21 20:43:34 2015 +0300
tests: suite: ciphersuite: fixups
fix separate builddir issue, without modifying locations, quite ugly.
re-indent using tab.
fix shebang.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jun 21 03:00:05 2015 +0300
tests: enforce UTC timezone in datefudge tests
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jun 21 03:00:04 2015 +0300
tests: misc: shell cleanup
leftovers minor sync.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jun 21 03:00:03 2015 +0300
tests: suite: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Cleanup indentation to be consistent with other tests.
Fix separate builddir issues.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sun Jun 21 03:00:02 2015 +0300
tests: misc: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Cleanup indentation to be consistent with other tests.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 18:38:24 2015 +0200
tests: fixed includes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 12:27:54 2015 +0200
move all gettext definitions in gnutls_str.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 12:23:40 2015 +0200
cross.mk: updated for 3.4.2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 12:18:26 2015 +0200
gnutls_str: include gettext.h when dgettext is available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 12:09:14 2015 +0200
tests: don't depend on gnulib
That dependency unfortunately causes many portability problems
on platforms where it should have worked out of the box.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 10:43:12 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jun 20 10:31:27 2015 +0200
use the same shebang for perl
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 19 22:55:04 2015 +0200
tests: added a verify-chain test case
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 19 21:53:27 2015 +0200
tests: don't quote provider in common.sh
That caused testpkcs11 to fail.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 22:50:18 2015 +0200
tests: don't enforce alignment rules for caller buffers
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed Jun 17 14:05:54 2015 +0300
tests: cert-tests: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Cleanup trailing spaces.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 16:20:50 2015 +0200
Added gitlab-ci.yml
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 15:52:39 2015 +0200
reduced the exported functions to the minimum needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 15:49:39 2015 +0200
_gnutls_ext_register was made static
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 15:49:06 2015 +0200
libgnutls.map: use a 3.4 related name for private functions
This eliminates any collisions with functions from 3.3.x
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jun 18 09:41:54 2015 +0300
tests: nist-pkits: cleanup shell/perl usage
Add quotes for most usages of variables.
Added ${} for variables.
Consistent indent.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 14:15:18 2015 +0200
tests: force link with nettle of mini-alignment
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 14:11:08 2015 +0200
tests: Check the OID functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 14:01:42 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 13:59:57 2015 +0200
Exported functions to convert from and to OIDs
Author: Saurav Babu <saurav.babu@samsung.com>
Date: Thu Jun 18 12:50:32 2015 +0530
gnutls-cli: Fixed Possible Memory Leak
This patch fixes possible memory leak in psk_callback() function, rawkey
is allocated memory by gnutls_malloc() and is not freed when
gnutls_hex_decode() returns with error
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 11:19:37 2015 +0200
pkcs7: corrected write_signer_id() when GNUTLS_PKCS7_WRITE_SPKI was used
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jun 18 09:41:55 2015 +0300
tests: openpgp-certs: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jun 18 09:41:53 2015 +0300
tests: key-tests: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jun 18 09:41:52 2015 +0300
tests: ecdsa: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Cleanup trailing spaces.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Thu Jun 18 00:57:04 2015 +0300
tests: dsa: cleanup shell usage
Add quotes for most usages of variables.
Added ${} for variables.
Cleanup trailing spaces.
Removal of unneeded ';'.
Minor fix in tests/scripts/common.sh at trap to pass message and avoid
killing.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 10:51:09 2015 +0200
indentation fix
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 10:46:13 2015 +0200
Always align in 16-byte boundary our input to crypto
That allows faster operations in almost all instruction sets.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 18 10:44:45 2015 +0200
tests: added check for memory alignment
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 22:26:51 2015 +0200
tests: only run test with long dates in 64-bit systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 17:17:10 2015 +0200
tests: regenerate the results in template-test using UTC times
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 16:48:36 2015 +0200
ensure that gnutls_pubkey_verify_data2 returns 0 on success
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 16:40:15 2015 +0200
Added gnutls_pkcs7_get_signature_count
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed Jun 17 11:59:55 2015 +0300
tests: suite: run testpkcs11 if PKCS#11 is enabled
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed Jun 17 11:59:56 2015 +0300
tests: remove bash usage
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 11:34:46 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 11:19:10 2015 +0200
tests: verify that we generate dates with UTCTime prior to 2050
Also that we generate dates with GeneralizedTime format after 2050.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 11:12:03 2015 +0200
When writing the Time ASN.1 structure follow the RFC5280 recommendations
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 11:03:29 2015 +0200
Set time in PKCS #7 structures properly (in UTCTime format).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 17 10:42:54 2015 +0200
doc update
Author: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Tue Jun 16 23:48:58 2015 +0300
tests: cert-tests: pkcs7: support separate builddir
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 22:00:41 2015 +0200
account new symbols
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 22:00:01 2015 +0200
updated makefiles for the new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 21:53:29 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 21:47:37 2015 +0200
use common base for pkcs7 files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 21:41:42 2015 +0200
added missing symbol
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 21:34:30 2015 +0200
released 3.4.2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 17:18:51 2015 +0200
certtool: made explicit the inclusion of time in PKCS #7 signatures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 17:15:04 2015 +0200
pkcs7: write the DER encoded time
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 16:56:30 2015 +0200
certtool: include the signature time in PKCS #7 signatures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 16:55:40 2015 +0200
pkcs7: corrected usage of GNUTLS_PKCS7_INCLUDE_TIME flag
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 13:31:54 2015 +0200
tests: minor updates in pkcs7 output checks to match new certtool
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 13:31:30 2015 +0200
certtool: rely on gnutls_pkcs7_print() even more
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 13:27:43 2015 +0200
pkcs7: print certificates and CRLs in FULL mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 12:29:53 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 12:29:38 2015 +0200
certtool: use gnutls_pkcs7_print() - partially
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 16 12:18:55 2015 +0200
Added gnutls_pkcs7_print()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 15 11:36:58 2015 +0200
bumped version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 11 10:34:55 2015 +0200
tests: added signature/verification stress test
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jun 11 10:11:35 2015 +0200
tests: check also individual ciphers for interoperability
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 8 11:38:54 2015 +0200
fips140: better debug messages when verifying MAC
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jun 5 11:19:13 2015 +0200
tpmtool: added newline in error messages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 16:10:30 2015 +0200
fips140: added check for reseed detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 15:48:23 2015 +0200
tests: check random generator for long outputs as well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 15:42:42 2015 +0200
fips140: when GNUTLS_SKIP_FIPS_INTEGRITY_CHECKS is setup do not perform integrity tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 15:38:09 2015 +0200
fips140: reset the reseed counter only on reseed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 15:37:39 2015 +0200
fips140: when reseeding only reseed the required context not all
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 14:37:11 2015 +0200
fips140: added more checks on the reseed and generate function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 14:36:35 2015 +0200
fips140: enforce the max_number_of_bits_per_request
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 16:36:32 2015 +0200
tests: do not include times in the PKCS #7 checks as they depend on local timezone
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 13:28:59 2015 +0200
pkcs7: addressed memory leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 11:42:30 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 11:38:55 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 11:35:04 2015 +0200
tests: Added PKCS #7 attribute generation check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 10:44:25 2015 +0200
tests: updated for new certtool output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 10:40:54 2015 +0200
certtool: print signed and unsigned PKCS #7 attributes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jun 3 10:24:05 2015 +0200
Added code to parse and set PKCS #7 attributes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 16:34:45 2015 +0200
tests: added PKCS #7 verification check with MD5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 16:31:49 2015 +0200
use the same flags in all verification functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 16:05:46 2015 +0200
_decode_pkcs7_signed_data: fixed mem leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 15:58:14 2015 +0200
Initialization of gnutls_x509_dn_t was modified to allow deinitialization after failure
Part2: made gnutls_x509_crt_get_subject() and gnutls_x509_crt_get_issuer()
return a constant value and avoid leaks.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 14:40:56 2015 +0200
doc: Separated the PKCS #7 in manual
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 14:35:26 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 14:26:20 2015 +0200
tests: check PKCS #7 structure signature generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 14:16:58 2015 +0200
tests: check PKCS #7 bundle generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 14:08:13 2015 +0200
certtool: added --p7-generate, --p7-sign and --p7-detached-sign
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 12:58:34 2015 +0200
Added gnutls_pkcs7_sign()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 11:13:41 2015 +0200
Added gnutls_pkcs7_get_crl_raw2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 11:00:39 2015 +0200
certtool: print the signing time when available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 11:00:26 2015 +0200
pkcs7 verification: parse the signing time
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 09:54:38 2015 +0200
on PKCS #7 verification check the the content type matches the signed data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 09:22:36 2015 +0200
certtool: print more info about the PKCS #7 struct
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 09:15:53 2015 +0200
certtool: allow verification against a direct PKCS #7 signer
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 09:05:27 2015 +0200
tests: added checks with PKCS #7 detached data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 09:03:34 2015 +0200
pkcs7 verification: return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE when no encapsulated data exist
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jun 2 08:57:34 2015 +0200
certtool: allow verifying PKCS #7 with detached data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 21:37:44 2015 +0200
certtool: improved PKCS #7 verification output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 21:33:02 2015 +0200
tests: check the key purpose in PKCS #7 verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 20:07:57 2015 +0200
tests: added PKCS #7 test with more than 1 certs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 18:56:51 2015 +0200
certtool: allow verification of PKCS #7 structures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 18:55:37 2015 +0200
Initialization of gnutls_x509_dn_t was modified to allow deinitialization after failure
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 15:19:03 2015 +0200
Added PKCS #7 signature(s) verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 15:13:10 2015 +0200
Added gnutls_pkcs11_get_raw_issuer_by_subject_key_id and gnutls_x509_trust_list_get_issuer_by_subject_key_id
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 14:34:57 2015 +0200
tests: added check for gnutls_x509_dn_get_str
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 14:26:19 2015 +0200
added gnutls_x509_dn_get_str
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 11:52:58 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 11:51:32 2015 +0200
Added gnutls_x509_crt_verify_data2() and kept gnutls_privkey_sign_data()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 10:43:46 2015 +0200
verify PKCS #7 signed data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 29 14:41:13 2015 +0200
updated PKCS #7 code to cache signed_data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jun 1 21:48:48 2015 +0200
When manual PKCS #11 configuration is requested don't initialize other providers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 31 08:51:26 2015 +0200
certtool: deinitialize PKCS #7 resources
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 31 08:50:09 2015 +0200
tests: Added tests for PKCS7 cert extraction
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 29 16:37:36 2015 +0200
Revert "updated gnulib"
This reverts commit c040ce6dd05b48b971d8dcc8fc8f23957ed15f9c.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 29 14:39:58 2015 +0200
silence format-signness warnings in gcc5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 29 14:34:53 2015 +0200
updated gnulib
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 26 22:12:19 2015 +0200
Check the OID size for match when comparing for the OCSP nonce extension
Reported by Hanno Böck.
Author: Armin Burgmeier <armin@arbur.net>
Date: Sat May 23 23:30:18 2015 -0400
gnutls_dh_get_prime_bits: return 0 if DH is not used
Before, the number of bits of a zero-length number was attempted to be
extracted, resulting in an error. The changed behaviour is consistent with
the documentation which explicitly states that 0 should be returned if no DH
key exchange was performed.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 22 09:08:00 2015 +0200
gnutls_dh_get_group: mention that the values may include a leading zero
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 21 11:55:06 2015 +0200
gnutls_dh_set_prime_bits: warn when overriding the DH max prime size with 1007 bits or less
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 21 10:52:37 2015 +0200
cleanup unused variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 21 10:51:17 2015 +0200
corrected allocation check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 21 10:46:26 2015 +0200
removed useless check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 21 10:43:06 2015 +0200
document intentional fallthrough in switch
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 21 10:41:11 2015 +0200
ecc ext: check return code of _gnutls_buffer_append_data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 17 21:11:14 2015 +0200
tests: enhance the no-signal check to include proper data sending
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 17 20:59:14 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 17 20:57:48 2015 +0200
tests: check the operation of GNUTLS_NO_SIGNAL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 17 20:33:48 2015 +0200
Allow the usage of MSG_NOSIGNAL in send functions
That introduces the GNUTLS_NO_SIGNAL flag for gnutls_init(),
which is available in systems that support the MSG_NOSIGNAL
flag to send(). That eases the usage of the library within
other libraries.
Resolves #11
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 15 12:03:23 2015 +0200
include nettle/memxor when needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri May 15 12:02:56 2015 +0200
gnutls-serv: send alert when wrong data have been received from client
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 14 15:32:09 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu May 14 14:00:11 2015 +0200
camellia256-gcm: corrected regression
Reported by Manuel Pegourie-Gonnard.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon May 11 18:41:09 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 6 15:22:05 2015 +0200
doc: added section about subject alternative names
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 6 11:17:09 2015 +0200
handshake_start_time was moved out of the DTLS-specific variables
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 6 11:13:05 2015 +0200
apply default timeout for DTLS in gnutls_handshake_set_timeout
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 6 10:03:16 2015 +0200
tests: do not perform internationalized name checks without libidn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed May 6 09:52:39 2015 +0200
tests: updated sign-md5-rep to reduce false failures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 16:40:37 2015 +0200
tests: eliminate mem leaks in mini-loss-time
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 15:55:19 2015 +0200
tests: testdane: remove dane.nox.su from the list of known to be good hosts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 14:43:42 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 14:41:55 2015 +0200
tests: mini-loss-time enhanced to check proper timeouts in both client and server
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 14:35:45 2015 +0200
dtls: combined the total timeouts of DTLS and TLS handshake
That also makes the waits for packets more robust against blocking.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 09:36:17 2015 +0200
define GNUTLS_SUPPLEMENTAL_USER_MAPPING_DATA
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue May 5 07:57:16 2015 +0200
doc: updated text to account for pkcs11-url standardization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 3 19:43:40 2015 +0200
tests: mini-dtls-mtu: compile in windows
Author: Jaak Ristioja <jaak.ristioja@cyber.ee>
Date: Mon May 4 10:53:10 2015 +0300
doc: Fixed typo in heartbeat documentation.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 3 19:39:52 2015 +0200
cross.mk: updated for 3.4.1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 3 19:36:02 2015 +0200
updated abi base for 3.4
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 3 19:24:23 2015 +0200
NEWS: updated
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun May 3 19:09:19 2015 +0200
released 3.4.1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 18:48:57 2015 +0200
doc: updated gnutls_dtls_set_timeouts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 16:40:24 2015 +0200
doc: fixed example with DTLS timeouts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 16:32:40 2015 +0200
use macro for DTLS default timeout
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 16:28:24 2015 +0200
gnutls_handshake_set_timeout will properly work with DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 14:09:22 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 14:53:17 2015 +0200
document the need for gnutls_transport_set_pull_timeout_function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 14:06:09 2015 +0200
doc: updated async operation text
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 13:53:19 2015 +0200
disable default handshake timeout
It caused issues with non-blocking TLS clients and servers
which may not want to block while the pull timeout function
waits.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 13:38:26 2015 +0200
tests: added check to verify that pull timeout is not called on non-blocking sessions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 30 13:22:34 2015 +0200
GNUTLS_NONBLOCK can be used for non-DTLS sessions as well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 29 14:44:30 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 29 14:44:30 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 28 16:12:13 2015 +0200
tests: key generation test was moved to main checks
This will allow to catch memory leaks with valgrind.
Author: Jan Vcelak <jan.vcelak@nic.cz>
Date: Tue Apr 28 13:50:40 2015 +0200
fix memory leak in ECDSA key parameters verification
Signed-off-by: Jan Vcelak <jan.vcelak@nic.cz>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 28 14:30:35 2015 +0200
updated minitasn1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 28 14:29:41 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 28 14:26:57 2015 +0200
Handle DNS name constraints with leading dot
Patch by Fotis Loukos.
Resolves 3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 28 09:02:12 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 27 09:16:42 2015 +0200
updated text for gnutls_pkcs11_init
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 27 09:08:10 2015 +0200
updated pkcs11 loading documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 26 08:31:12 2015 +0200
tests: mini-etm: use TLS as the transport layer
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 26 08:29:19 2015 +0200
tests: added comment for sign-md5-rep
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 26 08:11:17 2015 +0200
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 26 00:04:13 2015 +0200
Sync with TP.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 21:23:38 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 20:00:04 2015 +0200
tests: added reproducer for the MD5 acceptance issue
Reported by Karthikeyan Bhargavan.
http://lists.gnutls.org/pipermail/gnutls-devel/2015-April/007572.html
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 19:34:34 2015 +0200
before falling back to SHA1 as signature algorithm in TLS 1.2 check if it is enabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 19:14:07 2015 +0200
_gnutls_session_sign_algo_enabled: do not consider any values from the extension data to decide acceptable algorithms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 09:28:57 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 09:13:04 2015 +0200
tests: added unit tests for gnutls_certificate_client_get_request_status
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 09:12:04 2015 +0200
set the value used by gnutls_certificate_client_get_request_status prior to selecting certificate
That allows gnutls_certificate_client_get_request_status() to be properly operating
from the callback. Reported by Anton Lavrentiev.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 25 09:10:15 2015 +0200
updated doc for retrieve function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 24 16:04:44 2015 +0200
updated PKCS #11 URL references to rfc7512
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 22 14:00:45 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 22 13:54:18 2015 +0200
tests: added check for gnutls_credentials_get
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 22 13:49:10 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 22 13:41:17 2015 +0200
fixed doc: reported by Anton Lavrentiev
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 22 11:33:34 2015 +0200
doc: corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 22:08:56 2015 +0200
tests: resume-dtls: remove global variables
Author: Andreas Metzler <ametzler@debian.org>
Date: Tue Apr 21 19:18:00 2015 +0200
List all certificate type priority strings.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 19 21:23:21 2015 +0200
tls-rsa: keep a common code path when doing RSA decryption
Suggested by Nimrod Aviram.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 15:20:38 2015 +0200
tests: initialize status where needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 15:18:11 2015 +0200
tests: cleanup openpgp-auth2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 15:17:38 2015 +0200
tests: cleanup mini-dtls-rehandshake
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 13:46:36 2015 +0200
tests: resume: check for signals
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 10:42:50 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 10:40:41 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 10:36:07 2015 +0200
tests: reduced compiler warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 10:07:30 2015 +0200
tests: verify the return value of gnutls_certificate_get_ours when no cert is sent
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 21 10:07:11 2015 +0200
tests: close unused file descriptors in resume checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 23:39:08 2015 +0200
libopts: fixed the reading of the --enable-local-libopts flag
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 17:51:20 2015 +0200
gnutls-cli: when no certificate is sent, notify the user
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 17:45:33 2015 +0200
tests: added check with X.509 certificates and callbacks
That corresponds to functionality checked in openpgp-callback.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 17:38:10 2015 +0200
tests: added check for gnutls_certificate_get_ours() when used in combination with callbacks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 16:46:34 2015 +0200
tests: improved x509dn check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 16:43:51 2015 +0200
gnutls_certificate_get_ours: will return the certificate even if a callback was used
This corrects a bug where this function would not work, when
gnutls_certificate_set_retrieve_function2() was used.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 16:31:55 2015 +0200
gnutls-cli: when a certificate is specified require the corresponding private key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 16:25:21 2015 +0200
ensure that the X.509 version number is one byte only
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 14:04:37 2015 +0200
Check for invalid length in the X.509 version field
If such an invalid length is detected, reject the certificate.
Reported by Hanno Böck.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 13:57:31 2015 +0200
ocsp: initialize certs to NULL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 20 12:45:56 2015 +0200
gnutls-serv: print when the peer's certificate is not verified
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 19 09:42:05 2015 +0200
Sync with TP.
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Apr 18 11:38:57 2015 +0200
ncrypt.h lacks some defines with some versions of MinGW.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 19 09:19:22 2015 +0200
updated auto-generated files
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Apr 18 11:38:56 2015 +0200
Fix a preprocessor warning about mismatched quotes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Apr 18 11:38:55 2015 +0200
Set _WIN32_WINNT to 0x600, at least with some MinGW versions ncrypt.h checks this define to be at least 0x600.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Tim Kosse <tim.kosse@filezilla-project.org>
Date: Sat Apr 18 11:38:54 2015 +0200
Fix include order, include gnutls_int.h before gnutls.h, otherwise undefined external references to gnutls_free and gnutls_strdup are the result when statically linking against GnuTLS built by MinGW.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 16 19:36:32 2015 +0300
gnutls-cli: removed CCM from the ciphers tested with the old API
That prevents a crash of the benchmark. Reported by James Cloos.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 16 19:24:46 2015 +0300
refuse to use the old cipher API with AEAD-only ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 16 00:16:22 2015 +0300
tests: ignore sigpipe in resume and termination tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 20:05:59 2015 +0300
doc: added error check in example
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 20:03:06 2015 +0300
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 16:00:53 2015 +0300
doc: removed stray @end
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:53:39 2015 +0300
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:49:26 2015 +0300
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:48:21 2015 +0300
x509: when printing the keyid of a certificate use the curve name for randomart
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:47:39 2015 +0300
gnutls_x509_crt_get_pk_* are based on gnutls_pubkey_export_*
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:45:08 2015 +0300
gnutls_pubkey_export_* are tolerable in null input
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:41:54 2015 +0300
Added gnutls_x509_crt_get_pk_ecc_raw()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 15 11:24:01 2015 +0300
randomart: corrected usage of snprintf
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 14 22:11:14 2015 +0300
certtool: when generating an ECDSA key use the curve name in random art
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 14 22:08:18 2015 +0300
randomart: only print key size if it is non-zero
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 14 22:01:29 2015 +0300
cross.mk: updated for 3.4.0
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 14 21:33:19 2015 +0300
Remove SOCK_CLOEXEC from socket() call.
That allows compilation in systems where this
flag doesn't exist.
Resolves #7
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 14 16:06:39 2015 +0300
document the recommended re-handshake process
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 9 16:00:43 2015 +0200
remove duplicate entries from manpages Makefile
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 17:08:07 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 17:07:11 2015 +0200
tests: enhanced cert tests with SHA256 key IDs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 16:56:44 2015 +0200
certtool: modified to allow different key ID algorithms
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 16:48:46 2015 +0200
Added flags which modify the algorithm used for key ID calculation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 16:33:47 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 16:18:37 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 16:16:42 2015 +0200
gnutls_record_discard_queued() is both for TLS and DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 08:59:54 2015 +0200
document the new crypto register functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 08:53:39 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 08:49:45 2015 +0200
doc: avoid spaces in showfunc
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 08:15:24 2015 +0200
tests: added files into dist
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 08:08:14 2015 +0200
configure: ask for nettle 3.1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 8 08:06:52 2015 +0200
released 3.4.0
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 23:28:06 2015 +0200
gnutls-cli: document the method to override the detected ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 23:21:23 2015 +0200
fixed AESNI CCM encryption
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 23:14:48 2015 +0200
cleanups in CCM-aesni
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 22:28:29 2015 +0200
tests: test CCM-8 against polarssl
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 22:21:45 2015 +0200
gnutls-cli-debug: test for AES-CCM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 22:10:43 2015 +0200
doc: added 'git submodule update' to clone steps
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 22:00:17 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 21:38:11 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 20:24:10 2015 +0200
removed unused functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 16:03:16 2015 +0200
extend the fallback to setkey in addition to init
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 15:50:23 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 15:48:41 2015 +0200
tests: verify the behavior of GNUTLS_E_NEED_FALLBACK
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 15:39:18 2015 +0200
introduced GNUTLS_E_NEED_FALLBACK to allow falling back from registered ciphers
That allows a registered cipher to indicate that it cannot operate
(e.g., due to memory constraints, or internal limits), and gnutls should
proceed with the default algorithms.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 10:53:54 2015 +0200
ciphersuites: moved CCM ciphersuites in the appropriate ifdefs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 10:51:25 2015 +0200
tests: ciphersuite test will ignore the invalid names of TLS_DHE_PSK_WITH_AES_128_CCM_8
That is because the names in rfc6655 are for some reason different
than the expected.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 10:47:00 2015 +0200
document CCM and CCM-8
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 10:44:02 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 10:42:36 2015 +0200
tests: added CCM and CCM_8 into ciphersuite tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Apr 7 10:31:23 2015 +0200
Added CCM-8 ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 6 19:14:31 2015 +0200
updated announce text
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 6 10:49:15 2015 +0200
symbols: added the new supplemental functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Apr 6 10:08:16 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Apr 5 20:43:18 2015 +0200
tests: delay tests that depend on timing when they fail
That often prevents failures on busy systems.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 18:31:28 2015 +0200
don't enforce iv_size > block_size; it is no longer true for all ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 15:10:26 2015 +0200
simplified calc_enc_length_stream
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 14:49:03 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 14:29:58 2015 +0200
tests: updated supplemental API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 12:42:21 2015 +0200
gnutls_ext_register will fail on double registration
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 12:37:38 2015 +0200
gnutls_supplemental_register will fail on double registration
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 12:05:40 2015 +0200
symbols: added new exported functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 12:04:34 2015 +0200
doc: updated makefiles to include new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 12:03:37 2015 +0200
libgnutls.map: remove gnutls_record_set_max_empty_records
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 11:54:03 2015 +0200
account for the renamed gnutls_supplemental_recv/send
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 11:50:54 2015 +0200
document the export supplemental data API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 11:45:28 2015 +0200
gnutls_do_recv/send_supplemental -> gnutls_supplemental_recv/send
Also added the gnutls_ prefix to new types.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 11:34:55 2015 +0200
Added documentation for gnutls_do_send/recv_supplemental
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 10:30:56 2015 +0200
doc updates
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 09:43:16 2015 +0200
the base64 xxx_alloc functions were renamed to xxx2
That brings them in par with the rest of the allocation
functions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 09:36:34 2015 +0200
p11tool: use the key usage flags to set PKCS #11 properties
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 09:31:00 2015 +0200
pkcs11: use key_usage to set the appropriate flags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 08:53:33 2015 +0200
cleanups in supplemental data support
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Apr 4 07:36:47 2015 +0200
DH: do not warn on zero q_bits
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 3 22:52:17 2015 +0200
NEWS: rearrange entries
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Apr 3 22:35:24 2015 +0200
certtool: certtool --generate-dh-params will account for --outder
Resolves #5
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 2 15:30:20 2015 +0200
chacha20-poly1305: ciphersuite numbers correspond to the latest draft
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 2 15:27:51 2015 +0200
p11tool: improved output message
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Apr 2 12:54:45 2015 +0200
removed unecessary warning
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 19:08:33 2015 +0200
doc update: account for new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 18:42:13 2015 +0200
p11tool: better output text
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 18:40:47 2015 +0200
pkcs11: added GNUTLS_PKCS11_OBJ_FLAG_EXPECT_PUBKEY
Also enforce the expected flags despite any given flags
in the URL.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 18:29:08 2015 +0200
p11tool: added the --test-sign parameter
That allows to check an existing key for signing/verification.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 16:52:48 2015 +0200
gnutls_priv/pubkey_import_url replace: gnutls_privkey_import_pkcs11_url and gnutls_pubkey_import_pkcs11_url
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 16:02:02 2015 +0200
certtool: corrected import of pubkey in DER format
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 10:50:08 2015 +0200
tests: added check for EtM negotiation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 10:42:28 2015 +0200
only send EtM extension if we have CBC ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 10:04:54 2015 +0200
mention gnutls_privkey_sign_raw_data in upgrade section
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 09:55:09 2015 +0200
gnutls_privkey_sign_raw_data: converted to macro over gnutls_privkey_sign_hash
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Apr 1 10:00:31 2015 +0200
tests: added check for the legacy gnutls_privkey_sign_raw_data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 11:16:45 2015 +0200
avoid compilation warnings in self checks (take 2)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 11:15:04 2015 +0200
Revert "selftests: avoid compilatio warnings"
This reverts commit 196477d68f32b30d0de8e203a5c1c405af429603.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 08:50:45 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 08:48:37 2015 +0200
tests: check whether PKCS #11 ID set on copy/generation is correct
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 08:29:33 2015 +0200
p11tool: allow setting the CKA_ID on object initialization/generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 08:22:58 2015 +0200
exported new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 08:19:18 2015 +0200
pkcs11: enhanced key generation functions to allow specifying a CKA_ID
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 31 08:14:27 2015 +0200
selftests: avoid compilatio warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 16:12:27 2015 +0200
enhanced copy functions to allow specifying a CKA_ID
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 09:57:41 2015 +0200
tests: mini-server-name: ignore sigpipe
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 07:48:15 2015 +0200
tests: added more libidn-related valgrind suppressions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 07:05:27 2015 +0200
doc: increase border spacing in HTML tables
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 06:59:19 2015 +0200
doc: list chacha20-poly1305 to the list of ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 06:47:51 2015 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 06:37:52 2015 +0200
manpages: automatically adjust the copyright year on generated pages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 30 06:34:37 2015 +0200
tests: added check for gnutls_server_name_get and gnutls_server_name_set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 29 10:54:11 2015 +0200
test-ciphers.js: improved ciphersuite checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 29 10:49:23 2015 +0200
corrected GNUTLS_ECDHE_ECDSA_CHACHA20_POLY1305
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Mar 29 10:27:57 2015 +0200
updated test-ciphersuite.sh for new types
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 23:18:06 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 22:41:03 2015 +0100
Better fix for the double free in dist point parsing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 22:31:09 2015 +0100
updated minitasn1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 19:34:29 2015 +0100
gnutls_pkcs11_copy_x509_privkey: increase size for attributes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 19:21:48 2015 +0100
moved chacha20-poly1305 ciphersuites to the 0xCD space
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 13:45:23 2015 +0100
doc update: replace cryptographic algorithm by encryption algorithm
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 12:43:58 2015 +0100
gnutls_subject_alt_names_set and gnutls_x509_aki_set_cert_issuer will set null-terminated strings
Author: Jiří Klimeš <jklimes@redhat.com>
Date: Fri Mar 27 19:55:40 2015 +0100
doc: be consistent in the function descriptions
Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
Author: Jiří Klimeš <jklimes@redhat.com>
Date: Fri Mar 27 20:00:45 2015 +0100
doc: correct the description of crypto API functions
Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
Author: Jiří Klimeš <jklimes@redhat.com>
Date: Fri Mar 27 12:58:34 2015 +0100
Fix a few compiler warnings about unused variables
[-Wunused-variable]
Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 12:00:36 2015 +0100
fixed CHACHA20-POLY1305 in DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 11:08:28 2015 +0100
gnutls-cli: added chacha-poly1305 into benchmarks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 10:57:54 2015 +0100
when calculating record overhead account for chacha20 which doesn't send the nonce on the wire
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 10:54:02 2015 +0100
tests: include chacha20 into transfer tests
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 10:40:47 2015 +0100
Added the CHACHA20-POLY1305 ciphersuites (with random IDs)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 09:59:38 2015 +0100
added chacha20-poly1305 as cipher
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 09:09:02 2015 +0100
tests: check retvals in block ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 09:06:16 2015 +0100
do not penalize CBC ciphers with the maximum send data size
That reduced the maximum send size for CBC ciphers from 16384
to 16384-(block size), which was unnecessary and was causing issues:
https://bugs.winehq.org/show_bug.cgi?id=37500
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 08:18:32 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 28 08:18:17 2015 +0100
gnutls_record_set_max_empty_records: removed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 23 22:55:29 2015 +0100
eliminated double-free in the parsing of dist points
Reported by Robert Święcki.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 23 22:29:23 2015 +0100
Added a tight loop around the legacy push function
That reduces the need for more expensive outer loops.
Originally suggested by Anton Lavrentiev.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 23 19:19:49 2015 +0100
updated gnulib
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 14:01:20 2015 +0100
p11tool: more precise documentation of --set-id parameter
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 11:05:08 2015 +0100
depend on nettle 3.1 or later
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 10:42:48 2015 +0100
tests: updated email check for renamed --verify-email option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 10:32:29 2015 +0100
gnutls_pkcs11_privkey_generate2: increased the size of ck_attributes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 10:31:03 2015 +0100
pkcs11: check gnutls_rnd() for error condition
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 10:27:10 2015 +0100
gnutls_pkcs11_privkey_generate2: set a CKA_ID on key generation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 10:25:59 2015 +0100
p11tool: reduced debugging output
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 09:47:40 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 27 09:47:12 2015 +0100
certtool: --purpose, --hostname were renamed to --verify-purpose, --verify-hostname
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 16:46:43 2015 +0100
p11tool: added --mark-no-sign and --mark-no-decrypt options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 16:34:46 2015 +0100
pkcs11: added flags to mark keys as not-being signable or decryptable
That adds GNUTLS_PKCS11_OBJ_FLAG_MARK_NO_DECRYPT and GNUTLS_PKCS11_OBJ_FLAG_MARK_NO_SIGN
which can be set during generation or write of keys.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 16:21:28 2015 +0100
pkcs11: set the CKA_SIGN and CKA_DECRYPT flags when writing a private key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 13:16:52 2015 +0100
tests: cleanups in resume-dtls
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 11:26:14 2015 +0100
ext: server_name: move name length check prior to IDN convertion
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 11:04:37 2015 +0100
When an application calls gnutls_server_name_set() with a name of zero size disable the extension
Resolves #2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 09:25:10 2015 +0100
gnutls_x509_crt_check_hostname2: check CN for match only if certificate would have been acceptable for GNUTLS_KP_TLS_WWW_SERVER
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 26 09:20:34 2015 +0100
Apply DNS name constraints on CN field only on certificates acceptable for TLS WWW SERVER purpose
Suggested by Fotis Loukos.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 17:10:06 2015 +0100
tests: mini-loss-time is less prone to timeouts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 15:56:32 2015 +0100
tests: added valgrind suppressions in cert-tests for libidn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 15:52:15 2015 +0100
certtool: eliminated memory leaks on verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 10:39:35 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 10:21:31 2015 +0100
tests: Added email verification tests with certtool
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 10:05:33 2015 +0100
certtool: added the --email option, to use in verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 10:04:56 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 09:42:16 2015 +0100
Added gnutls_x509_crt_check_email(), gnutls_openpgp_crt_check_email() and GNUTLS_DT_RFC822NAME
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 09:02:53 2015 +0100
tests: verify that we accept a certificate with no name even if its CA has nameconstraints
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 25 08:38:47 2015 +0100
name constraints: when no name of the type is found, accept the certificate
This follows RFC5280 advice closely. Reported by Fotis Loukos.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 24 10:49:32 2015 +0100
tests: increase the timeout in resume-dtls
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 24 10:09:43 2015 +0100
gnutls_pkcs11_obj_export3: allow operation when raw.data is NULL and we have a public key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 24 09:58:17 2015 +0100
pkcs11: simplified export of objects
That also allows to export public keys, even when a CKA_VALUE
with the public key is not present. For that we use the key
parameters, which we encode into a key. Issue reported by
Frank Leavis.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 24 08:37:35 2015 +0100
gnulib: removed u64 module
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 24 08:36:33 2015 +0100
drop support for gnulib's u64
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 23 13:09:08 2015 +0100
tests: check legacy RC4 in testcompat
That would prevent losing compatibility without detecting it.
That is currently the case since it is no longer enabled by default.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 23 10:28:28 2015 +0100
tests: added check to verify the correctness of the record function return values
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 21 11:14:15 2015 +0100
tools: enable compilation with all options disabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 21 11:13:58 2015 +0100
enable compilation with several options disabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 21 10:38:28 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 14:04:26 2015 +0100
doc: avoid mentioning pointers when not needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 13:46:24 2015 +0100
increase the maximum stack frame the compiler will warn for
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 13:22:43 2015 +0100
doc: avoid using structure for opaque types
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 09:42:28 2015 +0100
tests: include gnutls_ext_s/get_data into tests of mini-extension
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 09:41:59 2015 +0100
updated documentation on non-return value of gnutls_ext_set_data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 09:35:51 2015 +0100
tests: fixed buffers in mini-dtls0-9
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 09:32:19 2015 +0100
avoid overflow when receiving DTLS 0.9 CCS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 20 08:35:48 2015 +0100
added gnutls_ext_set_data() and gnutls_ext_get_data()
As a side effect the type which holds private data was reduced
from union to void * pointer. That simplifies the exported API
without reducing the options in the internal API.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 22:04:48 2015 +0100
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 22:03:22 2015 +0100
set GNUTLS_DTLS_VERSION_MIN to be DTLS0.9
That allows standard DTLS ciphersuites to be used with DTLS0.9
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:59:06 2015 +0100
tests: added test for DTLS 0.9
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:30:42 2015 +0100
tests: updated mini-extension
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:29:34 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:27:35 2015 +0100
mention the new functionality briefly in documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:23:29 2015 +0100
mention that the registration functions are not thread safe
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:22:29 2015 +0100
store a copy of the extensions name
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:21:00 2015 +0100
deinitialize supplemental data on deinit
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:15:24 2015 +0100
removed unused epoch change callback
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:12:27 2015 +0100
deinitialize supplemental data on deinit
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:06:14 2015 +0100
reduce warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 21:00:26 2015 +0100
added documentation for the new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 20:47:51 2015 +0100
tests: remove warnings in mini-supplementaldata.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 20:46:57 2015 +0100
updated types
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 20:41:03 2015 +0100
more files to ignore
Author: Thierry Quemerais <tquemerais@awox.com>
Date: Thu Mar 19 20:40:25 2015 +0100
Added a way to add custom supplemental data from public API.
Signed-off-by: Thierry Quemerais <tquemerais@awox.com>
Author: Thierry Quemerais <tquemerais@awox.com>
Date: Thu Mar 19 16:24:15 2015 +0100
Fixed extension test.
Signed-off-by: Thierry Quemerais <tquemerais@awox.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 20:35:22 2015 +0100
renamed gnutls_buffer_st -> gnutls_buffer_t
Author: Thierry Quemerais <tquemerais@awox.com>
Date: Thu Mar 19 20:15:11 2015 +0100
Added a way to add custom extensions from public API.
Signed-off-by: Thierry Quemerais <tquemerais@awox.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 20:11:18 2015 +0100
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 11:43:52 2015 +0100
gnutls_x509_crt_import_pkcs11_url moved to pkcs11.h as it was always defined there
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 11:06:28 2015 +0100
inet_ntop replacement: include sys/socket.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 19 11:03:24 2015 +0100
inet_ntop replacement: do not depend on socklen_t
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 22:48:06 2015 +0100
tests: link cipher tests directly with nettle when needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 22:39:19 2015 +0100
tests: mini-dtls-record: increase timeouts to avoid failure of test due to slow system
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 19:46:00 2015 +0100
tests: mini-dtls-record: removed the need for 64-bit number
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 19:34:14 2015 +0100
tests: increase verbosity of mini-dtls-record
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 14:05:51 2015 +0100
document the cipher override API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 13:47:03 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 13:42:55 2015 +0100
added test suite for overriden digests and MACs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 13:04:43 2015 +0100
Added API to register MAC and digest algorithms.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 11:46:06 2015 +0100
added test suite for overriden ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 11:44:26 2015 +0100
Added API to register AEAD and legacy ciphers.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 11:30:44 2015 +0100
cryptodev: provide the new AEAD API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 10:34:47 2015 +0100
Added environment variable which can override automatic global initialization
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 10:09:34 2015 +0100
removed unused functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 10:07:09 2015 +0100
configure: fail compilation if the minimum required libtasn1 is not present
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 18 09:53:06 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 16 13:52:05 2015 +0100
tests: long-session-id uses the test framework
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 17 09:29:52 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 17 09:23:51 2015 +0100
depend on p11-kit 0.23.1 to conform to draft-pechanec-pkcs11uri-21
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 16 13:23:20 2015 +0100
tests: fixed shadowed variable in mini-dtls-record
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 16 11:38:56 2015 +0100
tests: use nanosleep for sleeping
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 14 08:41:33 2015 +0100
README-alpha: move valgrind to testing tools
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 14 08:40:29 2015 +0100
updated README-alpha
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 16:30:55 2015 +0100
Fixed handling of supplemental data with types > 255.
Patch by Thierry Quemerais.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 16:20:54 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 16:12:17 2015 +0100
gnutls_priority_init: document that priorities can be NULL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 13:30:12 2015 +0100
testpkcs11: disallow softhsm 2.0.0b1 from being used to test PKCS #11
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 13:24:18 2015 +0100
tests: mini-eagain2: call gnutls_handshake_set_timeout() at the proper time
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 10:10:23 2015 +0100
added libasan as dependency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 13 09:52:15 2015 +0100
corrected self test for 3DES
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 12 06:58:02 2015 +0100
pkcs11: correctly set the size of type
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 22:51:25 2015 +0100
pkcs11: combined the fill for object attributes set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 22:35:53 2015 +0100
pkcs11: only set ID and label when both size and data are set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 16:14:32 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 16:10:46 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 16:10:36 2015 +0100
p11tool: exit with non-zero reason if no objects are found
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 16:02:44 2015 +0100
tests: added checks for p11tool --set-id and --set-label
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 16:02:21 2015 +0100
p11tool: added --set-id and --set-label options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 14:49:04 2015 +0100
added gnutls_pkcs11_obj_set_info()
This function allows setting information such as the CKA_ID
and the CKA_LABEL of an object.
Resolves #1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 11 09:30:37 2015 +0100
Added check for GNUTLS-SA-2015-1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 22:31:38 2015 +0100
tests: removed test with invalid DER encoding in chainverify
These certificates are now rejected earlier.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 22:31:03 2015 +0100
tests: added a check for certificates with invalid DER encodings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 22:19:33 2015 +0100
x509: use libtasn1's strict DER decoding rules in network obtained structures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 21:57:25 2015 +0100
depend on libtasn1 4.3
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 21:54:13 2015 +0100
minitasn1: updated to libtasn1 4.3
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 19:09:34 2015 +0100
rearranged internal documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 12:38:52 2015 +0100
tools: added ftp as a starttls protocol
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 9 12:38:01 2015 +0100
gnutls-cli: starttls and starttls-proto can't mix
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 7 19:58:00 2015 +0100
expand on SECURE256 being an alias to SECURE192
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 7 13:10:53 2015 +0100
tests: do not run polarssl interop test on VIA
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 7 13:08:47 2015 +0100
use common license in all testcompat scripts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 7 11:47:19 2015 +0100
removed unused function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Mar 7 09:56:10 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 18:02:28 2015 +0100
README-alpha is README.md on repository
It contains information for developers.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 18:00:41 2015 +0100
Revert "auto-generate README from README.md"
This reverts commit aff4b2151b42c6a59e490c3714d3e1e64d2921dd.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:36:15 2015 +0100
cleaned up licensing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:32:10 2015 +0100
auto-generate README from README.md
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:17:53 2015 +0100
Revert "added README.md as link to README"
This reverts commit 041d4f947eb6937d4af62eb35055668825c36833.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:17:26 2015 +0100
added README.md as link to README
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:15:41 2015 +0100
Revert "renamed README files"
This reverts commit 05b4fa46667d3f5972f6de6ac61ff959382c67a5.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:14:50 2015 +0100
renamed README files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 17:12:09 2015 +0100
README: converted to mark-down
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 15:58:37 2015 +0100
gnutls-cli-debug: corrected check of certificate chain order
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 15:52:01 2015 +0100
tests: added small test to verify that GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED succeeds with a single cert
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 15:42:40 2015 +0100
gnutls-cli-debug: disable unsupported TLS protocols as soon
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 15:30:42 2015 +0100
cli sockets: check for a digit prior using atoi
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 15:14:14 2015 +0100
gnutls-cli-debug: a cert list of size 1 is always sorted
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 15:11:35 2015 +0100
gnutls-cli-debug: do not warn multiple times about unknown protocols
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Mar 6 10:52:32 2015 +0100
updated documentation on FIPS140-2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 22:30:31 2015 +0100
tests: speed up testcompat check by remove less important options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 22:27:51 2015 +0100
tests: updated paths for softhsm detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 22:16:34 2015 +0100
README: mention nodejs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 21:04:58 2015 +0100
configure: check for /usr/share/dns/root.key as well for dns root key
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 21:03:20 2015 +0100
README: mention dependency on dns-root-data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 19:03:34 2015 +0100
tests: don't perform the overflow check in 32-bit systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 18:46:44 2015 +0100
tests: date parsing test was modified to work in 32-bit systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 18:59:25 2015 +0100
certtool: in 32-bit systems use PRIu64 to print 64-bit values
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 18:56:34 2015 +0100
certtool: exit when there is an overflow in parsing days
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 11:40:17 2015 +0100
README: mention that openssl and polarssl will be used for interop testing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 10:40:20 2015 +0100
Revert "tests: increased the retries with datefudge cert generation"
This reverts commit a381fd148d2e181e19aad9ab9a9c5993080ce869.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 10:40:10 2015 +0100
Revert "tests: template-test: added a baseline check to detect slow systems"
This reverts commit b7ef1265810ec55d0912db2e3fa4204d8c412377.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 09:25:58 2015 +0100
tests: template-test: added a baseline check to detect slow systems
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Mar 5 08:09:54 2015 +0100
tests: increased the retries with datefudge cert generation
There are slow systems that are not always capable of generating the
certificate within a single second.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 23:25:56 2015 +0100
add bison as a dependency
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 22:45:09 2015 +0100
build documentation last
That allows the examples to depend on libgnu_gpl.la
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 20:50:37 2015 +0100
list unbound dependency for DANE
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 20:44:29 2015 +0100
tests: removed dane hosts which don't behave well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 20:37:32 2015 +0100
updated instructions for installed packages
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 17:24:20 2015 +0100
latex doc: updated copyright dates
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 17:23:32 2015 +0100
updated copyright date
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 14:59:58 2015 +0100
use asn1_decode_simple_ber if available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 11:25:30 2015 +0100
corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 10:47:30 2015 +0100
mention libidn
Author: Ilya V. Matveychikov <i.matveychikov@securitycode.ru>
Date: Wed Mar 4 03:25:42 2015 +0300
asn1random.pl: generate simple tags only
Do not emit tags with numbers greater than or equal 31 as they must be
encoded an octet sequence (ref X.690-0207 # 8.1.2.4)
Signed-off-by: Ilya V. Matveychikov <i.matveychikov@securitycode.ru>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 10:07:01 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 22:24:23 2015 +0100
tests: added checks for invalid X.509 certificate signatures
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 08:20:35 2015 +0100
added the change of priority string NORMAL in documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Mar 4 08:15:16 2015 +0100
document the usage of a PKCS #11 trust module for verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 3 19:44:38 2015 +0100
tests: updated the suite to account for the removal of DSA by default
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 3 18:52:22 2015 +0100
tests: updated the suite to account for the removal of DSA by default
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 3 18:51:22 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 3 17:44:00 2015 +0100
cross-implementation test suite was relicensed to 3-clause BSD
That way the suite can be used by projects with other licenses.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 3 09:34:26 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Mar 3 09:31:16 2015 +0100
DSA signatures and DHE-DSS are disabled by default
DSA was an algorithm that was never deployed on the Internet
and had, until very recently, several limitations such as
restriction of its keys to 1024 bits, SHA1-only etc. Given
that there are literally 0 internet (HTTPS) certificates using
DSA, there is no point to enable it by default and increase
our attack surface.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Mar 2 08:12:28 2015 +0100
gnutls-cli: include AES_128_CCM in benchmark-ciphers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 28 12:55:09 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 28 12:22:10 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 28 09:43:16 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 28 09:33:12 2015 +0100
bundle inet_ntop in systems that don't have it
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 27 16:31:50 2015 +0100
updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 27 16:26:34 2015 +0100
removed gnutls_pubkey_get_verify_algorithm from abstract.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 26 13:03:35 2015 +0100
corrected typo in gnutls_handshake(), spotted by Andris Mednis
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 24 10:28:26 2015 +0100
doc update: document that session_get_data() must be used in non-resumed sessions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Feb 23 13:50:00 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 22 11:47:25 2015 +0100
added comments
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 22 11:39:49 2015 +0100
Use p11_kit_uri_get_pin_value() if available in p11-kit
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 12:00:13 2015 +0100
fixed handling of GNUTLS_E_INT_CHECK_AGAIN
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:50:40 2015 +0100
removed unnecessary check and optimized function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:46:13 2015 +0100
corrected check which prevented client to sent an unacceptable for the version ciphersuite
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:40:50 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:38:49 2015 +0100
tests: mini-key-material: avoid memory leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:35:04 2015 +0100
tests: require DTLS 1.2 when using GCM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:32:36 2015 +0100
handle GNUTLS_E_INT_CHECK_AGAIN
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 11:28:57 2015 +0100
check the negotiated TLS/DTLS version prior to offering a ciphersuite a server
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 10:57:14 2015 +0100
remove unnecessary assert
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 10:53:25 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 10:51:49 2015 +0100
tests: modified tests with obsolete APIs with their replacement API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 07:35:21 2015 +0100
doc: added deprecated functions into upgrade plan
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 07:35:01 2015 +0100
tests: added checks for gnutls_x509_crt_get_signature_algorithm and gnutls_x509_crt_get_preferred_hash_algorithm
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 07:25:24 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 07:24:13 2015 +0100
removed gnutls_pubkey_get_verify_algorithm() and unnecessary internal APIs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 07:13:37 2015 +0100
removed gnutls_x509_crt_get_verify_algorithm()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 21 07:07:54 2015 +0100
removed gnutls_pubkey_verify_hash() and gnutls_pubkey_verify_data()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 23:47:25 2015 +0100
certtool: use unsigned for bits
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 23:46:35 2015 +0100
certtool/p11tool: avoid cast to function call
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 23:42:47 2015 +0100
certtool: allow specifying a purpose and a hostname for chain verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 22:17:15 2015 +0100
tests: added check for invalid X.509 certificate
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 17:09:57 2015 +0100
tests: added check for gnutls_record_get_state()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 17:09:34 2015 +0100
removed unused constants
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 16:58:41 2015 +0100
memcpy fix in gnutls_record_get_state
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 16:23:33 2015 +0100
removed ltmain.sh from root
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 11:18:45 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 11:16:44 2015 +0100
Added gnutls_record_get_state() and gnutls_record_set_state()
These functions allow to export the key material and sequence numbers.
That allows offloading the sending and receiving of individual records.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 11:13:55 2015 +0100
fixed sequence number copy
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 10:56:54 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 20 10:56:35 2015 +0100
gnutls_handshake_set_hook_function: will provide the raw handshake data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 18 23:04:24 2015 +0100
use explicit casts to unsigned int in the CURVE_TO_BITS et al
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 18 22:55:38 2015 +0100
use cast in _gnutls_hash_fast
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Feb 17 14:20:10 2015 +0100
when importing a certificate ensure that the signature parameters match
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Feb 14 18:02:01 2015 +0100
Allow AESNI GCM accelaration in x86
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Feb 6 20:22:42 2015 +0100
gnutls-cli: added --save-cert option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Feb 5 05:39:13 2015 +0100
added missing prototypes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Feb 4 10:14:55 2015 +0100
handle differently OCSP responses that are revoked and of unknown status
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Feb 1 13:35:40 2015 +0100
compilation fix with return on void function; reported by David Marx
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 29 14:31:08 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 29 14:21:18 2015 +0100
set the appropriate direction when _gnutls_io_write_flush() is called
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 28 10:32:16 2015 +0100
tests: added check for operation under different threads and DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 28 10:22:37 2015 +0100
tests: added check for operation under different processes and DTLS
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 28 09:57:13 2015 +0100
Revert "doc update"
This reverts commit eabf1f27d255577bad60d302abf46a969848fcd7.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 28 09:56:56 2015 +0100
Revert "Added gnutls_record_is_async()"
This reverts commit 2232822aabe473d124f924d64ff52981d685fd41.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 28 09:56:21 2015 +0100
documented using a session with fork or multiple threads
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 27 13:07:19 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 27 13:06:10 2015 +0100
Added gnutls_record_is_async()
That function indicates whether gnutls_record_recv() and
gnutls_record_send() can be used independently and in
parallel.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 25 10:17:06 2015 +0100
print errno in a more uniform way
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 25 08:28:13 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 25 08:27:08 2015 +0100
exported gnutls_system_recv_timeout()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 25 08:15:01 2015 +0100
simplified _gnutls_writev() by requiring the total length
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 20 09:39:44 2015 +0100
opencdk: small fixed to reduce warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 19 15:36:22 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 19 15:32:09 2015 +0100
don't be so verbose about the OCSP nonce; it is universally unsupported
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Jan 17 14:32:35 2015 +0100
OCSP check the whole cert chain
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 19 09:29:31 2015 +0100
on certificate import check whether the two signature algorithms match
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 17 09:49:17 2015 +0100
cross.mk: use 3.3.12
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 17 09:01:37 2015 +0100
doc update
Author: Luke Dashjr <luke-jr+git@utopios.org>
Date: Mon Jan 12 19:32:38 2015 +0000
Added configure option --disable-tools
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 16 15:54:53 2015 +0100
corrected typos
Reported by Guido Kroon.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 16 14:16:58 2015 +0100
Added the notion of obsolete versions
That prevents using these versions as record version numbers, unless
they are the only protocol supported. This avoids the issues with
servers that have banned SSL 3.0 record versions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 16 10:16:47 2015 +0100
ocsptool: follow the documented process for gnutls_x509_crt_get_authority_info_access
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 16 10:15:08 2015 +0100
gnutls_x509_crt_get_authority_info_access: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 15 15:49:53 2015 +0100
ocsptool-common: iterate through all AIA items prior to decidig the OCSP server
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 14 08:11:17 2015 +0100
use a FIPS key that agree's with fedora's fipshmac
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Jan 14 22:51:55 2015 +0100
DCO: Added Luke Dashjr
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 13 22:47:59 2015 +0100
simplified text for inline-commands-prefix
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 23:14:35 2015 +0100
gnutls-cli: added --starttls-proto option
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 17:28:50 2015 +0100
pkcs11: cleanup the name of types
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 17:19:48 2015 +0100
tests: updates in softhsm detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 17:12:56 2015 +0100
pkcs11: when importing a public key, import it's data as well (version 2 fix)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 17:02:03 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 11:50:53 2015 +0100
testpkcs11: do not ignore the failure to write a trusted CA
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 11:17:24 2015 +0100
removed gnutls_pubkey_get_pk_* from the exported function list
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 10:33:21 2015 +0100
tests: key-import-export: enhanced to test gnutls_pubkey_*_ecc_x962
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 10:32:13 2015 +0100
gnutls_pubkey_t: allow the import of another parameter set without a leak
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 12 10:19:47 2015 +0100
removed ABI-compatibility functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 9 13:59:34 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 11 22:41:01 2015 +0100
testpkcs11: modified to support both softhsmv1 and v2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 11 22:15:10 2015 +0100
pkcs11: when importing a public key, import it's data as well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 11 18:00:38 2015 +0100
tests: enhanced key-import-export to check output of pubkeys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 11 16:25:01 2015 +0100
tests: eliminated leaks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 11 16:16:49 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 11 16:06:26 2015 +0100
tests: added checks for private key import/export functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 10 21:56:21 2015 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 10 12:13:29 2015 +0100
tests: Added test case for openpgp keys loaded by callback
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 10 12:12:25 2015 +0100
When setting up TLS with cert-type OpenPGP from a client,
the server verifies if it supports the extension’s contents
in _gnutls_session_cert_type_supported(). This function
checks for cred->get_cert_callback but not cred->get_cert_callback2.
As a result, servers setup for OpenPGP certificate credential
callback with gnutls_certificate_set_retrieve_function2() are
unable to use the OpenPGP certificate type.
The solution is to consider cred->get_cert_callback2 alongside
cred->get_cert_callback in _gnutls_session_cert_type_supported().
Patch by Rick van Rein.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Jan 10 11:56:48 2015 +0100
gnutls_privkey_import_openpgp_raw: do not release the cached value
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Jan 8 10:18:07 2015 +0100
guile: Call 'load-extension' both during expansion and at run time.
Fixes <https://bugzilla.redhat.com/show_bug.cgi?id=1177847>.
* guile/modules/gnutls.in: Wrap '%libdir' definition and
'load-extension' call in 'eval-when'.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 8 09:35:59 2015 +0100
When receiving a TLS record with multiple handshake packets, parse them in one go
That resolves:
https://savannah.gnu.org/support/?108712
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Jan 8 09:25:15 2015 +0100
tests: updated mini-dtls-record-asym
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 21:36:33 2015 +0100
tests: better documentation of mini-dtls-record-asym purpose
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 21:27:14 2015 +0100
tests: moved udp_socketpair to utils
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 21:22:02 2015 +0100
tests: corrected asymmetric MTU test for DTLS and added caching
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 17:32:44 2015 +0100
Added test case for DTLS handshake packet reconstruction when it exceeds MTU
https://savannah.gnu.org/support/?108712
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 17:18:57 2015 +0100
simplified _gnutls_dgram_read()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 13:39:19 2015 +0100
danetool: only compile when dane is enabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 10:17:14 2015 +0100
in DTLS don't combine multiple packets which exceed MTU
Resolves: https://savannah.gnu.org/support/?108715
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 10:01:47 2015 +0100
Added more precise check of push functions availability
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 09:59:33 2015 +0100
Revert "in DTLS don't use writev() when multiple packets which exceed MTU are queued"
This reverts commit 43082a67c7514d65301d157fb567a133138a85ab.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Jan 6 09:59:25 2015 +0100
Revert "Give precedence to vector push function"
This reverts commit cb4ea413569803cbbf291abb27d30d14bfa971c5.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 5 15:08:28 2015 +0100
Give precedence to vector push function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 5 15:08:28 2015 +0100
in DTLS don't use writev() when multiple packets which exceed MTU are queued
That change requires the system_write() to be registered unconditionally,
even when writev() is available.
Resolves: https://savannah.gnu.org/support/?108715
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 5 16:28:58 2015 +0100
tests: added check to ensure that DTLS handshake packets will not exceed MTU
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 5 16:21:57 2015 +0100
certtool: warn when setting a certificate's expiration longer than the CA's expiration
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 5 15:01:22 2015 +0100
testpkcs11: detect softhsm2
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Jan 5 14:40:51 2015 +0100
tests: account for disabling of ARCFOUR where needed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 4 23:19:33 2015 +0100
certtool: modified check for READ_NUMERIC
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 4 22:46:16 2015 +0100
certtool: use 64-bit type for CRL serial number
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 4 22:43:00 2015 +0100
certtool: check for overflows when reading serial numbers
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 4 20:44:21 2015 +0100
certtool: use int64_t as type for integers read
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 4 20:30:39 2015 +0100
gnutls-cli-debug: more precise handling of SMTP protocol
Patch by Andreas Metzler.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Jan 4 11:11:51 2015 +0100
updated gnulib
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Jan 2 12:49:55 2015 +0200
gnutls-cli-debug: corrected the skip of ignored checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 22:50:17 2014 +0200
use explicit casts in the dummy ip conversion functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 22:41:24 2014 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 22:40:55 2014 +0200
ARCFOUR-128 is disabled by default
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 22:38:51 2014 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 16:53:57 2014 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:48:06 2014 +0200
system-keys-win: use LoadLibraryA to load ncrypt.dll
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:23:04 2014 +0200
Updated abi-compliance-checker for 3.4 API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:17:51 2014 +0200
updated export symbols list (due to ABI breakage)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:15:16 2014 +0200
doc: updated auto-generated files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:09:41 2014 +0200
generate manpages for urls.h and system-keys.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:07:37 2014 +0200
tests: added check for gnutls_x509_trust_list_get_issuer_by_dn()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 12:00:11 2014 +0200
updated libgnutls.map for new functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 11:49:40 2014 +0200
doc: updated auto-generated files and added urls.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 11:17:55 2014 +0200
tests: added checks for the new --key-id and --fingerprint certtool options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 11:11:40 2014 +0200
certtool: Added --fingerprint and --key-id options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 10:00:11 2014 +0200
certtool: --pubkey-info will load a public key from stdin
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 09:40:03 2014 +0200
include netinet/in.h if present to access ipv6 related structures
Based on patch by Rumko.
https://savannah.gnu.org/support/?108713
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 09:34:24 2014 +0200
VERS-ALL adds all protocols if used with '+'
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 09:14:15 2014 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 09:04:27 2014 +0200
priority strings VERS-TLS-ALL and VERS-DTLS-ALL are restricted to the corresponding protocols
That introduces VERS-ALL which behaves as VERS-TLS-ALL previously.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 31 08:49:13 2014 +0200
gnutls.h: made DTLS protocol version numbering distinct
Author: Matthias-Christian Ott <ott@mirix.org>
Date: Tue Dec 30 11:58:43 2014 +0200
Don't call _gnutls_cipher_encrypt2 with textlen = 0 in _gnutls_auth_cipher_encrypt2_tag
If the plaintext is shorter than the block size of the used cipher,
_gnutls_auth_cipher_encrypt2_tag calls _gnutls_cipher_encrypt2 with
textlen = 0. By definition _gnutls_cipher_encrypt2 does nothing in this
case and thus does not need to be called.
Author: Matthias-Christian Ott <ott@mirix.org>
Date: Tue Dec 30 11:57:36 2014 +0200
Handle zero length plaintext for VIA PadLock functions
If the plaintext is shorter than the block size of the used cipher,
_gnutls_auth_cipher_encrypt2_tag calls _gnutls_cipher_encrypt2 with
textlen = 0. padlock_ecb_encrypt and padlock_cbc_encrypt assume that the
plaintext length (last parameter) is greater than zero and segfault
otherwise. The assembler code for both functions is automatically
generated and imported from OpenSSL, so to ease maintenance the length
should be validated in the functions that call padlock_ecb_encrypt or
padlock_cbc_encrypt.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 13:29:57 2014 +0200
use backslashes in windows path
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 11:14:47 2014 +0200
tests: enhanced openpgp-keyring test
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 11:13:10 2014 +0200
openpgp: properly print names in oneline output as well
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 11:11:18 2014 +0200
updates in openpgp DSA key printing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 10:59:23 2014 +0200
properly print openpgp names
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 10:47:37 2014 +0200
opencdk: print all warnings on compilation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 10:47:20 2014 +0200
opencdk: eliminated warning from armor.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 28 10:45:30 2014 +0200
removed cache support for opencdk's keydb
It's implementation looked buggy.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 27 22:41:53 2014 +0200
updated guile comments
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 25 00:16:17 2014 +0200
tools: use OCSP functions only when OCSP is enabled
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 24 19:08:54 2014 +0200
Corrected encoding and decoding of ANSI X9.62
That affects gnutls_pubkey_export_ecc_x962() and
gnutls_pubkey_import_ecc_x962().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 24 18:34:04 2014 +0200
tools: document the available curves
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 24 08:54:19 2014 +0200
PKCS #11 tests: ported to softhsmv2
The C programs still rely on softhsmv1 since there
are issues with softhsmv2 and CKA_TRUSTED.
https://bugzilla.redhat.com/show_bug.cgi?id=1177086
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 18:33:22 2014 +0200
updated documentation of gnutls_memcmp()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 13:41:35 2014 +0200
use everywhere the new name of gnutls_x509_crt_import_pkcs11_url
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 13:29:13 2014 +0200
better cleanup in gnutls_pkcs11_privkey_import_url and allow reuse
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 12:54:23 2014 +0200
completely separated the two gnulibs to avoid conflicts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 12:40:17 2014 +0200
updated gnulib
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 12:28:03 2014 +0200
dropped the sanitize URL approach
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 12:24:35 2014 +0200
Instead of sanitizing URLs, use hints to support incomplete PKCS#11 URIs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 12:04:45 2014 +0200
gnutls_x509_crt_import_url replaces gnutls_x509_crt_import_pkcs11_url
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 23 08:52:24 2014 +0200
use p11_kit_uri_get_pin_source instead of p11_kit_uri_get_pinfile
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 22 12:16:05 2014 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 22 11:59:41 2014 +0200
ex-pkcs11-list.c: updated for new API
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 22 11:43:49 2014 +0200
combined gnutls_pkcs11_obj_attr_t with gnutls_pkcs11_obj_flags
That was done in an API-backwards compatible way. That
introduces gnutls_pkcs11_obj_list_import_url3() and
gnutls_pkcs11_obj_list_import_url4().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 21 20:33:22 2014 +0200
first attempt to unify obj_attrs with obj_flags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 21 19:33:53 2014 +0200
tests: pkcs11-is-known checks whether the import of PKCS #11 objects as trusted certs works
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 21 13:16:17 2014 +0200
Added softhsm.h to share code in softhsm detection
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Dec 21 13:00:53 2014 +0200
Directly import PKCS #11 object URLs as trusted certificates
That is, don't treat them as trusted modules, because they aren't
a token URL, but rather a direct reference to specific objects.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 20 20:37:35 2014 +0200
PSK: added sanity check on PSK key size set
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 19 12:56:11 2014 +0200
gnutls-cli-debug: removed ARCFOUR-40 from the ciphers to use
It is no longer supported.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 19 12:07:17 2014 +0200
_gnutls_buffer_append_data returns zero on success
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 19 10:40:58 2014 +0200
corrected documentation for the cork/uncork functions
Reported by Jaak Ristioja.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 19 10:35:10 2014 +0200
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 19 10:25:40 2014 +0200
Added more precise version check in _gnutls_version_lowest
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 19 08:56:44 2014 +0200
corrected documentation of gnutls_cork()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 17 14:50:52 2014 +0200
Added 32-bit overflow protection in _gnutls_buffer_append_data()
Author: Jaak Ristioja <jaak.ristioja@cyber.ee>
Date: Wed Dec 17 13:55:10 2014 +0200
Remove redundant condition in align_allocd_with_data().
At all call-sites of align_allocd_with_data() dest->data is non-NULL.
Signed-off-by: Jaak Ristioja <jaak.ristioja@cyber.ee>
Author: Jaak Ristioja <jaak.ristioja@cyber.ee>
Date: Wed Dec 17 13:55:09 2014 +0200
Deduplicated some code in _gnutls_buffer_append_data().
Signed-off-by: Jaak Ristioja <jaak.ristioja@cyber.ee>
Author: Jaak Ristioja <jaak.ristioja@cyber.ee>
Date: Wed Dec 17 13:55:07 2014 +0200
Explicitly marked some variables const in _gnutls_buffer_append_data().
Signed-off-by: Jaak Ristioja <jaak.ristioja@cyber.ee>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 17 14:37:31 2014 +0200
DCO: added Jaak Ristioja
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 16 22:36:17 2014 +0200
test-ciphers: do not fail on processor which don't have the AES-NI instructions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 16 15:39:24 2014 +0100
_gnutls_buffer_*: moved common operations to function
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 16 15:35:10 2014 +0100
_gnutls_buffer_append_data: moved common code outside the if-clause
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 12 18:42:04 2014 +0100
tests: disable SSL 3.0 checks with polarssl
It seems that SSL 3.0 is disabled in Debian's polarssl.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 12 18:41:50 2014 +0100
testdane: removed www.vulcano.cl from good hosts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 4 14:26:05 2014 +0100
tests: enhanced x509cert-tl
Verify gnutls_x509_trust_list_verify_crt2() in combination with
gnutls_x509_trust_list_add_named_crt().
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 4 14:21:46 2014 +0100
use gnutls_x509_trust_list_verify_named_crt in gnutls_x509_trust_list_verify_crt2
Author: Ludovic Courtès <ludo@gnu.org>
Date: Fri Dec 12 14:24:14 2014 +0100
Update 'NEWS'.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 12 09:35:29 2014 +0100
gnutls_rnd: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 12 08:48:24 2014 +0100
gnutls_pkcs12_simple_parse: doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 12 08:26:53 2014 +0100
improved documentation on dane
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Dec 11 19:06:18 2014 +0100
guile: Open binary file in binary mode, for the sake of MinGW.
Reported by Eli Zaretskii <eliz@gnu.org>.
* guile/tests/openpgp-keyring.scm: Use 'open-file' with "rb" instead of
'open-input-file'.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Dec 11 19:04:17 2014 +0100
guile: Link with '-no-undefined'.
Fixes builds on MinGW.
Reported by Eli Zaretskii <eliz@gnu.org>.
* guile/src/Makefile.am (guile_gnutls_v_2_la_LDFLAGS): Add
-no-undefined.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 19:03:28 2014 +0100
p11tool: use Sleep() in windows
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 19:01:16 2014 +0100
certtool: ensure that default_serial_int is 64-bits or more
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 18:59:27 2014 +0100
use select() instead of alarm for better portability
Based on patch by Eli Zaretskii.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 18:53:21 2014 +0100
cross.mk: updated for 3.3.11
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 10:15:54 2014 +0100
Allow a random generator with the same priority to re-register
That corrects an issue where the library is deinitialized, and
reinitialization wouldn't register the same rnd module.
Reported by Stanislav Zidek.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 09:27:58 2014 +0100
tests: x509cert: verify that length returned from gnutls_x509_crt_get_dn matches strlen
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 11 06:08:33 2014 +0100
testcompat: corrected usage of null cipher
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 10 15:40:49 2014 +0100
added the .check function in FIPS140-2 code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Dec 8 23:30:07 2014 +0100
corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 10:48:52 2014 +0100
configure: added option --without-idn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 10:46:24 2014 +0100
accelerated: added required casts
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 10:40:48 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 10:40:09 2014 +0100
the priority string EXPORT is no more
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 10:27:00 2014 +0100
aesni-ccm: removed unused struct entries
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 09:41:08 2014 +0100
added AESNI accelerated CCM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Dec 6 09:33:20 2014 +0100
more nettle3 related changes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 19:58:42 2014 +0100
dane: use the new _gnutls_buffer_to_datum
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 10:36:34 2014 +0100
tests: corrected the expected lengths in ocsp
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 10:31:41 2014 +0100
_gnutls_buffer_to_datum: includes code for exporting strings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 10:04:50 2014 +0100
when the trusted list contains a non-CA certificate warn via the audit log
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 09:52:40 2014 +0100
modified the CCM ciphersuite's name to match the one in the IANA registry
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 09:52:14 2014 +0100
ciphersuite test: enhanced check for correct ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 09:35:46 2014 +0100
ciphersuites tests: add missing includes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Dec 5 09:00:04 2014 +0100
ciphersuite tests: define HAVE_CONFIG_H
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Dec 4 22:15:57 2014 +0100
guile: Build with warnings.
* guile/src/Makefile.am (AM_CFLAGS) [HAVE_GCC]: Add -Wall -Wextra
-Wno-unused-parameter.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Dec 4 22:14:57 2014 +0100
guile: Remove the deprecated priority API.
* guile/modules/gnutls/build/priorities.scm: Remove.
* guile/src/make-session-priorities.scm: Remove.
* guile/modules/Makefile.am (EXTRA_DIST): Adjust accordingly.
* guile/src/Makefile.am (EXTRA_DIST): Likewise.
(GENERATED_BINDINGS): Remove 'priorities.i.c'.
(priorities.i.c): Remove target.
* guile/src/core.c: Don't include it.
(scm_gnutls_set_default_priority_x): Remove.
* guile/modules/gnutls.in (gnutls): Adjust export list.
* guile/tests/session-record-port.scm: Use 'set-session-priorities!'.
* guile/tests/x509-auth.scm: Likewise.
Author: Ludovic Courtès <ludo@gnu.org>
Date: Thu Dec 4 22:15:16 2014 +0100
guile: Remove RSA parameters and related procedures.
* guile/modules/gnutls/build/smobs.scm (%rsa-parameters-smob): Remove.
(%gnutls-smobs): Remove it.
* guile/src/core.c (scm_gnutls_make_rsa_parameters,
scm_gnutls_pkcs1_import_rsa_parameters,
scm_gnutls_pkcs1_export_rsa_parameters,
scm_gnutls_set_certificate_credentials_rsa_export_params_x): Remove.
* guile/modules/gnutls.in: Adjust export list.
* guile/tests/openpgp-auth.scm (import-rsa-params): Remove.
Remove references to it and to
'set-certificate-credentials-rsa-export-parameters!'.
* guile/tests/x509-auth.scm: Likewise.
* doc/gnutls-guile.texi (Representation of Binary Data): Remove
references to RSA parameters. Adjust example accordingly.
(OpenPGP Authentication Guile Example): Likewise.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 4 16:05:58 2014 +0100
updated TODO list
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Dec 4 14:39:03 2014 +0100
removed several of the unneeded exported internal symbols
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 10:53:25 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 10:39:51 2014 +0100
doc: corrected typo
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 20:21:52 2014 +0100
use unsigned long in gcm_cast_st
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 26 15:43:55 2014 +0100
corrected issue in AES-256-GCM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 26 15:20:07 2014 +0100
tests: enhanced cipher check to include all ciphers.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 26 14:56:27 2014 +0100
simplified abstractions over nettle based on Niels' comments.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 26 11:21:29 2014 +0100
API doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 26 11:20:26 2014 +0100
Added test vectors for CCM mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 26 10:27:23 2014 +0100
CCM: corrected AEAD decryption
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 20:27:05 2014 +0100
CCM mode moved to the lowest priority
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 19:42:10 2014 +0100
aes-gcm-aead.h: generalized
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 17:57:15 2014 +0100
gnutls-cli: added benchmark for CCM
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 17:46:55 2014 +0100
tests: updated for AES-128-CCM ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 17:27:03 2014 +0100
use the new AEAD API in gnutls_cipher.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 17:04:25 2014 +0100
Added definitions for CCM ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 16:02:25 2014 +0100
Modified crypto backend to accomodate for the CCM ciphersuites
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 10:54:55 2014 +0100
More nettle2 updates (in FIPS140-2 mode)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 22:58:41 2014 +0100
ported to nettle 3.0
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 10:10:05 2014 +0100
reduced current soversion
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 10:06:32 2014 +0100
documented the removal of deprecated functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:53:52 2014 +0100
corrected comparison
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:49:24 2014 +0100
removed the old gnutls_retr_st compatibility functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:45:19 2014 +0100
Removed binary compatibility with RSA-EXPORT using applications
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:41:33 2014 +0100
removed the old priority functions
That is:
gnutls_cipher_set_priority
gnutls_mac_set_priority
gnutls_compression_set_priority
gnutls_kx_set_priority
gnutls_protocol_set_priority
gnutls_certificate_type_set_priority
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:37:55 2014 +0100
removed gnutls_x509_crt_verify_hash() and gnutls_x509_crt_verify_data()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:35:26 2014 +0100
gnutls_sign_callback_set() and gnutls_sign_callback_get() were removed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:32:21 2014 +0100
renumbered fields in gnutls.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Dec 3 09:28:10 2014 +0100
increased gnutls' soversion
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Dec 2 10:50:45 2014 +0100
if the rnd structure doesn't provide check, _gnutls_rnd_check() will succeed
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 30 22:17:31 2014 +0100
tests: Added check for verification using CRLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 30 21:44:10 2014 +0100
Reorganized, and eliminated memory leak in _gnutls_x509_crt_check_revocation()
Reported by Tim Rühsen.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 29 15:27:34 2014 +0100
systemkey: updated for new gnutls_system_key_iter_get_info
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 16:16:19 2014 +0100
gnutls_system_key_iter_get_info() allows restricting results to a specific certificate type
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 16:12:31 2014 +0100
removed unneeded variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 14:39:58 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 13:18:49 2014 +0100
doc: added recommendation to use the higher level functions to load keys
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 10:40:34 2014 +0100
certtool: avoid gcc warnings
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 11:47:56 2014 +0100
gnutls-cli-debug: Added check for whether %NO_EXTENSIONS is required
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 10:32:22 2014 +0100
gnutls_session_get_desc: allow proper printing of the NULL KX
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 28 09:30:04 2014 +0100
gnutls_session_get_desc will return NULL if initial negotiation is not complete
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 23:17:29 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 23:16:04 2014 +0100
tests: small fix in mini-chain-unsorted
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 22:39:08 2014 +0100
GNUTLS_E_CERTIFICATE_LIST_UNSORTED can be returned from gnutls_pcert_import_x509_list
That is when it cannot sort the list and GNUTLS_X509_CRT_LIST_SORT is specified.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 16:28:10 2014 +0100
gnutls_pcert_import_x509_list: only sort the lists it can sort
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 16:12:33 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 16:10:44 2014 +0100
simplified windows URLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 16:08:46 2014 +0100
system-keys-win: include urls.h
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 16:06:46 2014 +0100
tests: added mini-chain-unsorted
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 27 15:06:11 2014 +0100
Added flag GNUTLS_X509_CRT_LIST_SORT for gnutls_x509_crt_list_import*
That also allows automatically sorting input chains to the
gnutls_certificate_credentials_t structure.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 21:53:03 2014 +0100
tests: Added check for memory leaks when a file cannot be loaded.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 21:52:23 2014 +0100
gnutls_certificate_set_x509_key_*: eliminated memory leak when certificate could not be parsed
Reported by Georg Richter.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 25 20:33:15 2014 +0100
libdane: undef gnutls_assert() before redefining it
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 22:39:23 2014 +0100
gnutls-cli-debug: do not print error on unknown protocols
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 20:22:35 2014 +0100
tests: added leak check for gnutls_set_x509_key_mem2()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 19:16:42 2014 +0100
documented the limitations of the loading functions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 18:54:28 2014 +0100
corrected memleak in read_key_mem()
Patch by Georg Richter.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 13:27:09 2014 +0100
gnutls-cli-debug: Added check for sorted certificate chain
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 24 10:40:24 2014 +0100
do not allow the resumption of a session which switches the state of ext_master_secret
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 22:23:55 2014 +0100
tests: run rfc2253-escape-test under valgrind
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 19:43:44 2014 +0100
tests: enhanced custom-url check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 19:43:01 2014 +0100
sanitize URLs at the proper place
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 19:42:43 2014 +0100
corrected freeing of custom URL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 13:03:50 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 12:43:27 2014 +0100
Added memxor_different_alignment into suppressions
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 12:36:22 2014 +0100
Allow the construction of chains with custom URLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 11:04:47 2014 +0100
updated ignored files
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 11:04:15 2014 +0100
renamed systemkey-tool to systemkey, and don't install it by default
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 10:51:30 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 10:49:59 2014 +0100
tests: added check for registration of custom URLs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 10:49:32 2014 +0100
export gnutls_register_custom_url
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 10:48:56 2014 +0100
correctly handle non-pkcs11 URLs in read_cert_url
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 09:30:29 2014 +0100
more files to ignore
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 09:11:38 2014 +0100
Added the ability to register application specific URLs for keys and certs
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 23 08:47:41 2014 +0100
system-keys-win: use macros for the URL
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 22 10:49:52 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 20:42:21 2014 +0100
tests: added test for GNUTLS_E_GOT_APPLICATION_DATA on rehandshake
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 20:18:08 2014 +0100
treat GNUTLS_E_GOT_APPLICATION_DATA as non-fatal if initial negotiation is complete
This corrects a regression introduced in b5a0de2e6da98866cafb770c3141b7353d030ab2
Reported by Dan Winship. https://savannah.gnu.org/support/?108690
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 16:48:45 2014 +0100
removed old news
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 16:10:33 2014 +0100
The record version in the client Hello will be set to the lowest supported protocol
There should have been no harm in keeping it SSL 3.0 but
unfortunately in draft-thomson-sslv3-diediedie-00
it has been marked as MUST NOT do that. That will be fixed in a later
revision but since then there are servers not accepting SSL 3.0
as a valid record version (note that this is about the record
version, which describes the format of the packet, nothing to
do with the negotiated version).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 15:41:25 2014 +0100
Revert "The priority modifier %LATEST_RECORD_VERSION is now the default"
This reverts commit 66c419cc6336ea9a2747574588ffee77458b838f.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 15:02:40 2014 +0100
deinitialize the OCSP response der data
That also makes sure that reinitialization of ASN1 structures
are done when it is required only.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 14:48:50 2014 +0100
gnutls_priority_string_list: allow printing the special keywords as well.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 21 14:18:15 2014 +0100
simplified code involving getrandom() and getentropy()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 20 10:36:23 2014 +0100
configure: detect android system and define a variable
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 20 10:35:26 2014 +0100
separated system-keys implementations
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 20 22:52:43 2014 +0100
removed redundant local
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 20 00:15:02 2014 +0100
tests: added check for the abbreviated URLs which don't contain object information
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 20 00:13:45 2014 +0100
prior to importing objects with URLs sanitize them
That allows to use out of band information to complete missing
parts in URLs (e.g., object-type=cert, when there is a certificate).
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 19 23:53:50 2014 +0100
compilation fixes
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 19 11:28:38 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 7 16:14:08 2014 +0100
Added API to read/write/delete key-cert pairs (limited to windows for now)
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 17 20:26:26 2014 +0100
NORMAL priority: prioritize the less than 256-bits curves at the lowest level
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 17 18:21:48 2014 +0100
certtool: Allow to set the nonRepudiation, keyAgreement and dataEncipherment flags
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 17 18:09:36 2014 +0100
list the OIDs in the certtool cfg file documentation
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sun Nov 16 18:27:01 2014 +0100
properly reset the zombie mode in FIPS mode
This amends 9158f590f4a18c84fc9eb41877b29d73b30af879
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 15 10:06:12 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 22:17:42 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 22:16:09 2014 +0100
partially reverted 999d221fd2241ff73f884bf33d8cbe6eb8299184
That change allows to use the intermediate certificates in chains
as OCSP anchors.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 21:21:53 2014 +0100
certtool: print message when the system trust is used
Author: David Weber <dave@veryflatcat.com>
Date: Fri Nov 14 14:49:24 2014 +0200
Fixed SRTP profile configuration in cli.c and serv.c.
I have tested the fix in 3.3.10. This commit is UNTESTED as i am unable
to compile gnutls (./configure complains about gl_INIT and ggl_INIT).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 20:13:36 2014 +0100
tests: ocsp: added the signature in check
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 20:10:06 2014 +0100
only print about additional certificates if they are present
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 17:22:07 2014 +0100
ocsp: fix DN decoding in gnutls_ocsp_resp_get_responder_raw_id
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 11:42:42 2014 +0100
tests: ocsp: added check with a long response
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 16:17:58 2014 +0100
use the original DER/BER data when verifying an OCSP response
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 11:55:21 2014 +0100
_pkcs1_rsa_verify_sig() simplify hashing
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 11:42:15 2014 +0100
ocsp: eliminated duplicate code
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 11:05:18 2014 +0100
clarified the multiple paths printing of the verify options
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 10:53:31 2014 +0100
gnutls-cli: allow printing the certificates in OCSP responses when --print-cert is specified
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 10:47:55 2014 +0100
updated OCSP verification code to better use the trust list, and the KeyHash
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 09:34:13 2014 +0100
OCSP printing: Add header in front of certificates
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 09:32:40 2014 +0100
added gnutls_pkcs11_get_raw_issuer_by_dn and gnutls_x509_trust_list_get_issuer_by_dn
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 07:57:19 2014 +0100
gnutls-cli-debug: check for OCSP status response
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 14 07:45:49 2014 +0100
corrected crq test case; reported by Andreas Metzler
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 20:56:27 2014 +0100
set the GNUTLS_PIN_CONTEXT_SPECIFIC flag on PIN callback
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 16:31:21 2014 +0100
replaced gnutls_ocsp_resp_get_responder_by_key with gnutls_ocsp_resp_get_responder_raw_id
In addition reverted gnutls_ocsp_resp_get_responder() to the old
buggy behavior of returning 0 if the element was missing.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 16:05:44 2014 +0100
certtool: make sure that GNUTLS_PKCS_PLAIN is set when no password should be asked
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 16:05:21 2014 +0100
gnutls_x509_privkey_import2: will not use a callback if GNUTLS_PKCS_PLAIN is specified
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 15:55:50 2014 +0100
the FIPS140-2 testing mode is disabled after self-checks
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 15:50:05 2014 +0100
updated OCSP tests to account for the new key ID
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 15:43:04 2014 +0100
doc update and gnutls_ocsp_resp_get_responder() will always initialized output data
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 15:38:34 2014 +0100
_rnd_get_event: use memset to avoid valgrind complaints
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 15:34:23 2014 +0100
gnutls-cli: print the OCSP response in verbose mode
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 15:30:55 2014 +0100
corrected documentation of OCSP response verification
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 14:39:41 2014 +0100
Added gnutls_ocsp_resp_get_responder_by_key()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 14:39:07 2014 +0100
dn parsing: return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE when DN is not available
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 14:12:15 2014 +0100
gnutls-cli: added option to save the OCSP response
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 12:06:32 2014 +0100
added the notion of preferred sign algorithm in a private key
This can be set for keys imported with gnutls_privkey_import_ext3()
with the info callback. It is only considered for client side keys
in TLS sessions.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 10:18:03 2014 +0100
Added priority string %NO_SESSION_HASH to prevent advertising the extended master secret extension
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 10:06:51 2014 +0100
certificate status requestion response is optional according to RFC6066
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 09:52:43 2014 +0100
Added flag GNUTLS_OCSP_SR_IS_AVAIL for gnutls_ocsp_status_request_is_checked
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 09:27:38 2014 +0100
rnd: removed the packed attribute from event_st
That prevents a SIGBUS on solaris sparc systems.
Reported by Thomas Thorberger.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 09:18:31 2014 +0100
The priority modifier %LATEST_RECORD_VERSION is now the default
This works-around issue with servers that forbit the SSL 3.0
version number from the first packet of the record protocol.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Thu Nov 13 09:16:29 2014 +0100
added check for servers that disallow the SSL 3.0 record version
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 12 19:44:18 2014 +0100
gnutls-cli: print whether status request has been checked
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 12 16:14:55 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed Nov 12 15:44:53 2014 +0100
Enable PIN support to gnutls_x509_privkey_t
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 11 15:16:12 2014 +0100
_gnutls_ucs2_to_utf8() can handle little endian strings.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 11 11:25:57 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 11 11:25:44 2014 +0100
Added gnutls_memcmp() and exported it.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 11 10:47:56 2014 +0100
indentation fix
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Tue Nov 11 10:40:21 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 7 16:05:10 2014 +0100
added gnutls_pkcs12_bag_set_privkey()
Conflicts:
lib/libgnutls.map
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 10 12:59:39 2014 +0100
dropped unused copy_func
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Mon Nov 10 11:38:58 2014 +0100
silence warning
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 31 10:08:00 2014 +0100
Added check with the invalid crq sent by Sean Burford
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Oct 31 10:00:32 2014 +0100
when exporting curve coordinates to X9.63 format, perform additional sanity checks on input
Reported by Sean Burford.
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 8 09:06:36 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 8 08:38:44 2014 +0100
doc update
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 8 08:36:16 2014 +0100
exported gnutls_memset()
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat Nov 8 08:35:01 2014 +0100
doc: updated text on session tickets
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 7 21:46:58 2014 +0100
tools: include arpa/inet.h in socket.c
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 7 19:18:22 2014 +0100
doc: use the same port for DTLS client and server
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Fri Nov 7 19:01:57 2014 +0100
pkcs11: pass the correct user type to protected authentication login
|