Skip to main content

max / makenotwork

pom: bump x509-parser to 0.18 No source change; the error enum gained variants but nothing here matches on it exhaustively. 456 tests green, clippy clean. This parses untrusted certificate input, so it was checked live rather than on the suite alone: a valid cert still yields the right subject, issuer, and validity window, and both expired and self-signed hosts fail closed against the web-PKI and OS trust stores. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-22 19:07 UTC
Commit: 668651f20419110093a5e066b403260789411d9c
Parent: 18a1d8e
2 files changed, +26 insertions, -114 deletions
M pom/Cargo.lock +25 -113
@@ -84,50 +84,22 @@ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
84 84
85 85 [[package]]
86 86 name = "asn1-rs"
87 - version = "0.6.2"
88 - source = "registry+https://github.com/rust-lang/crates.io-index"
89 - checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048"
90 - dependencies = [
91 - "asn1-rs-derive 0.5.1",
92 - "asn1-rs-impl",
93 - "displaydoc",
94 - "nom",
95 - "num-traits",
96 - "rusticata-macros",
97 - "thiserror 1.0.69",
98 - "time",
99 - ]
100 -
101 - [[package]]
102 - name = "asn1-rs"
103 87 version = "0.7.1"
104 88 source = "registry+https://github.com/rust-lang/crates.io-index"
105 89 checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60"
106 90 dependencies = [
107 - "asn1-rs-derive 0.6.0",
91 + "asn1-rs-derive",
108 92 "asn1-rs-impl",
109 93 "displaydoc",
110 94 "nom",
111 95 "num-traits",
112 96 "rusticata-macros",
113 - "thiserror 2.0.18",
97 + "thiserror",
114 98 "time",
115 99 ]
116 100
117 101 [[package]]
118 102 name = "asn1-rs-derive"
119 - version = "0.5.1"
120 - source = "registry+https://github.com/rust-lang/crates.io-index"
121 - checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490"
122 - dependencies = [
123 - "proc-macro2",
124 - "quote",
125 - "syn",
126 - "synstructure",
127 - ]
128 -
129 - [[package]]
130 - name = "asn1-rs-derive"
131 103 version = "0.6.0"
132 104 source = "registry+https://github.com/rust-lang/crates.io-index"
133 105 checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c"
@@ -573,25 +545,11 @@ checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea"
573 545
574 546 [[package]]
575 547 name = "der-parser"
576 - version = "9.0.0"
577 - source = "registry+https://github.com/rust-lang/crates.io-index"
578 - checksum = "5cd0a5c643689626bec213c4d8bd4d96acc8ffdb4ad4bb6bc16abf27d5f4b553"
579 - dependencies = [
580 - "asn1-rs 0.6.2",
581 - "displaydoc",
582 - "nom",
583 - "num-bigint",
584 - "num-traits",
585 - "rusticata-macros",
586 - ]
587 -
588 - [[package]]
589 - name = "der-parser"
590 548 version = "10.0.0"
591 549 source = "registry+https://github.com/rust-lang/crates.io-index"
592 550 checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6"
593 551 dependencies = [
594 - "asn1-rs 0.7.1",
552 + "asn1-rs",
595 553 "displaydoc",
596 554 "nom",
597 555 "num-bigint",
@@ -977,7 +935,7 @@ dependencies = [
977 935 "ipnet",
978 936 "jni",
979 937 "rand 0.10.2",
980 - "thiserror 2.0.18",
938 + "thiserror",
981 939 "tinyvec",
982 940 "tokio",
983 941 "tracing",
@@ -998,7 +956,7 @@ dependencies = [
998 956 "prefix-trie",
999 957 "rand 0.10.2",
1000 958 "ring",
1001 - "thiserror 2.0.18",
959 + "thiserror",
1002 960 "tinyvec",
1003 961 "tracing",
1004 962 "url",
@@ -1025,7 +983,7 @@ dependencies = [
1025 983 "resolv-conf",
1026 984 "smallvec",
1027 985 "system-configuration",
1028 - "thiserror 2.0.18",
986 + "thiserror",
1029 987 "tokio",
1030 988 "tracing",
1031 989 ]
@@ -1373,7 +1331,7 @@ dependencies = [
1373 1331 "jni-sys",
1374 1332 "log",
1375 1333 "simd_cesu8",
1376 - "thiserror 2.0.18",
1334 + "thiserror",
1377 1335 "walkdir",
1378 1336 "windows-link",
1379 1337 ]
@@ -1627,20 +1585,11 @@ dependencies = [
1627 1585
1628 1586 [[package]]
1629 1587 name = "oid-registry"
1630 - version = "0.7.1"
1631 - source = "registry+https://github.com/rust-lang/crates.io-index"
1632 - checksum = "a8d8034d9489cdaf79228eb9f6a3b8d7bb32ba00d6645ebd48eef4077ceb5bd9"
1633 - dependencies = [
1634 - "asn1-rs 0.6.2",
1635 - ]
1636 -
1637 - [[package]]
1638 - name = "oid-registry"
1639 1588 version = "0.8.1"
1640 1589 source = "registry+https://github.com/rust-lang/crates.io-index"
1641 1590 checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
1642 1591 dependencies = [
1643 - "asn1-rs 0.7.1",
1592 + "asn1-rs",
1644 1593 ]
1645 1594
1646 1595 [[package]]
@@ -1761,7 +1710,7 @@ dependencies = [
1761 1710 "serde_json",
1762 1711 "sqlx",
1763 1712 "subtle",
1764 - "thiserror 2.0.18",
1713 + "thiserror",
1765 1714 "tokio",
1766 1715 "tokio-rustls",
1767 1716 "tokio-util",
@@ -1771,7 +1720,7 @@ dependencies = [
1771 1720 "tracing-subscriber",
1772 1721 "uuid",
1773 1722 "webpki-roots",
1774 - "x509-parser 0.16.0",
1723 + "x509-parser",
1775 1724 ]
1776 1725
1777 1726 [[package]]
@@ -1848,7 +1797,7 @@ dependencies = [
1848 1797 "rustc-hash",
1849 1798 "rustls",
1850 1799 "socket2 0.6.3",
1851 - "thiserror 2.0.18",
1800 + "thiserror",
1852 1801 "tokio",
1853 1802 "tracing",
1854 1803 "web-time",
@@ -1870,7 +1819,7 @@ dependencies = [
1870 1819 "rustls",
1871 1820 "rustls-pki-types",
1872 1821 "slab",
1873 - "thiserror 2.0.18",
1822 + "thiserror",
1874 1823 "tinyvec",
1875 1824 "tracing",
1876 1825 "web-time",
@@ -1967,7 +1916,7 @@ dependencies = [
1967 1916 "ring",
1968 1917 "rustls-pki-types",
1969 1918 "time",
1970 - "x509-parser 0.18.1",
1919 + "x509-parser",
1971 1920 "yasna",
1972 1921 ]
1973 1922
@@ -1988,7 +1937,7 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
1988 1937 dependencies = [
1989 1938 "getrandom 0.2.17",
1990 1939 "libredox",
1991 - "thiserror 2.0.18",
1940 + "thiserror",
1992 1941 ]
1993 1942
1994 1943 [[package]]
@@ -2080,7 +2029,7 @@ dependencies = [
2080 2029 "schemars",
2081 2030 "serde",
2082 2031 "serde_json",
2083 - "thiserror 2.0.18",
2032 + "thiserror",
2084 2033 "tokio",
2085 2034 "tokio-util",
2086 2035 "tracing",
@@ -2530,7 +2479,7 @@ dependencies = [
2530 2479 "serde_json",
2531 2480 "sha2 0.10.9",
2532 2481 "smallvec",
2533 - "thiserror 2.0.18",
2482 + "thiserror",
2534 2483 "tokio",
2535 2484 "tokio-stream",
2536 2485 "tracing",
@@ -2571,7 +2520,7 @@ dependencies = [
2571 2520 "sqlx-postgres",
2572 2521 "sqlx-sqlite",
2573 2522 "syn",
2574 - "thiserror 2.0.18",
2523 + "thiserror",
2575 2524 "tokio",
2576 2525 "url",
2577 2526 ]
@@ -2598,7 +2547,7 @@ dependencies = [
2598 2547 "sha1",
2599 2548 "sha2 0.11.0",
2600 2549 "sqlx-core",
2601 - "thiserror 2.0.18",
2550 + "thiserror",
2602 2551 "tracing",
2603 2552 ]
2604 2553
@@ -2632,7 +2581,7 @@ dependencies = [
2632 2581 "smallvec",
2633 2582 "sqlx-core",
2634 2583 "stringprep",
2635 - "thiserror 2.0.18",
2584 + "thiserror",
2636 2585 "tracing",
2637 2586 "whoami",
2638 2587 ]
@@ -2656,7 +2605,7 @@ dependencies = [
2656 2605 "percent-encoding",
2657 2606 "serde",
2658 2607 "sqlx-core",
2659 - "thiserror 2.0.18",
2608 + "thiserror",
2660 2609 "tracing",
2661 2610 "url",
2662 2611 ]
@@ -2750,31 +2699,11 @@ checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417"
2750 2699
2751 2700 [[package]]
2752 2701 name = "thiserror"
2753 - version = "1.0.69"
2754 - source = "registry+https://github.com/rust-lang/crates.io-index"
2755 - checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
2756 - dependencies = [
2757 - "thiserror-impl 1.0.69",
2758 - ]
2759 -
2760 - [[package]]
2761 - name = "thiserror"
2762 2702 version = "2.0.18"
2763 2703 source = "registry+https://github.com/rust-lang/crates.io-index"
2764 2704 checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
2765 2705 dependencies = [
2766 - "thiserror-impl 2.0.18",
2767 - ]
2768 -
2769 - [[package]]
2770 - name = "thiserror-impl"
2771 - version = "1.0.69"
2772 - source = "registry+https://github.com/rust-lang/crates.io-index"
2773 - checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
2774 - dependencies = [
2775 - "proc-macro2",
2776 - "quote",
2777 - "syn",
2706 + "thiserror-impl",
2778 2707 ]
2779 2708
2780 2709 [[package]]
@@ -3679,36 +3608,19 @@ checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"
3679 3608
3680 3609 [[package]]
3681 3610 name = "x509-parser"
3682 - version = "0.16.0"
3683 - source = "registry+https://github.com/rust-lang/crates.io-index"
3684 - checksum = "fcbc162f30700d6f3f82a24bf7cc62ffe7caea42c0b2cba8bf7f3ae50cf51f69"
3685 - dependencies = [
3686 - "asn1-rs 0.6.2",
3687 - "data-encoding",
3688 - "der-parser 9.0.0",
3689 - "lazy_static",
3690 - "nom",
3691 - "oid-registry 0.7.1",
3692 - "rusticata-macros",
3693 - "thiserror 1.0.69",
3694 - "time",
3695 - ]
3696 -
3697 - [[package]]
3698 - name = "x509-parser"
3699 3611 version = "0.18.1"
3700 3612 source = "registry+https://github.com/rust-lang/crates.io-index"
3701 3613 checksum = "d43b0f71ce057da06bc0851b23ee24f3f86190b07203dd8f567d0b706a185202"
3702 3614 dependencies = [
3703 - "asn1-rs 0.7.1",
3615 + "asn1-rs",
3704 3616 "data-encoding",
3705 - "der-parser 10.0.0",
3617 + "der-parser",
3706 3618 "lazy_static",
3707 3619 "nom",
3708 - "oid-registry 0.8.1",
3620 + "oid-registry",
3709 3621 "ring",
3710 3622 "rusticata-macros",
3711 - "thiserror 2.0.18",
3623 + "thiserror",
3712 3624 "time",
3713 3625 ]
3714 3626
M pom/Cargo.toml +1 -1
@@ -59,7 +59,7 @@ hostname = "0.4"
59 59 hickory-resolver = "0.26"
60 60
61 61 # TLS certificate checking
62 - x509-parser = "0.16"
62 + x509-parser = "0.18"
63 63 tokio-rustls = "0.26"
64 64 rustls-pki-types = "1"
65 65 webpki-roots = "1"