diff --git a/Cargo.lock b/Cargo.lock index a57c46f06..eee788924 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -288,7 +288,7 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" name = "cmpv2" version = "0.2.0" dependencies = [ - "const-oid 0.9.5", + "const-oid 0.9.6", "crmf", "der", "hex-literal 0.4.1", @@ -303,7 +303,7 @@ dependencies = [ "aes", "cbc", "cipher", - "const-oid 0.9.5", + "const-oid 0.9.6", "der", "ecdsa", "getrandom", @@ -330,9 +330,9 @@ checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" [[package]] name = "const-oid" -version = "0.9.5" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" dependencies = [ "arbitrary", ] @@ -393,7 +393,7 @@ name = "crmf" version = "0.2.0" dependencies = [ "cms", - "const-oid 0.9.5", + "const-oid 0.9.6", "der", "spki", "x509-cert", @@ -428,7 +428,7 @@ version = "0.7.8" dependencies = [ "arbitrary", "bytes", - "const-oid 0.9.5", + "const-oid 0.9.6", "der_derive", "flagset", "hex-literal 0.4.1", @@ -483,7 +483,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", - "const-oid 0.9.5", + "const-oid 0.9.6", "crypto-common", "subtle", ] @@ -954,7 +954,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" name = "pkcs1" version = "0.7.5" dependencies = [ - "const-oid 0.9.5", + "const-oid 0.9.6", "der", "hex-literal 0.4.1", "pkcs8", @@ -967,7 +967,7 @@ name = "pkcs12" version = "0.0.0" dependencies = [ "cms", - "const-oid 0.9.5", + "const-oid 0.9.6", "der", "digest", "hex-literal 0.3.4", @@ -1212,7 +1212,7 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" dependencies = [ - "const-oid 0.9.5", + "const-oid 0.9.6", "digest", "num-bigint-dig", "num-integer", @@ -1838,7 +1838,7 @@ name = "x509-cert" version = "0.2.5" dependencies = [ "arbitrary", - "const-oid 0.9.5", + "const-oid 0.9.6", "der", "ecdsa", "hex-literal 0.4.1", @@ -1868,7 +1868,7 @@ dependencies = [ name = "x509-ocsp" version = "0.2.0-pre" dependencies = [ - "const-oid 0.9.5", + "const-oid 0.9.6", "der", "hex-literal 0.4.1", "rand_core", diff --git a/const-oid/CHANGELOG.md b/const-oid/CHANGELOG.md index aad6aa595..bc03342a1 100644 --- a/const-oid/CHANGELOG.md +++ b/const-oid/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.9.6 (2023-12-15) +### Added +- RFC6962 (Certificate Transparency) OIDs ([#1134]) + +[#1134]: https://github.com/RustCrypto/formats/pull/1134 + ## 0.9.5 (2023-08-02) ### Added - RFC8410 (curve25519) OIDs ([#867]) diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml index a1b681b1c..cc0848924 100644 --- a/x509-cert/Cargo.toml +++ b/x509-cert/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" rust-version = "1.65" [dependencies] -const-oid = { version = "0.9.3", features = ["db"] } +const-oid = { version = "0.9.6", features = ["db"] } der = { version = "0.7.6", features = ["alloc", "derive", "flagset", "oid"] } spki = { version = "0.7.3", features = ["alloc"] } diff --git a/x509-cert/src/ext/pkix/sct.rs b/x509-cert/src/ext/pkix/sct.rs index 32539a562..f03b71ff5 100644 --- a/x509-cert/src/ext/pkix/sct.rs +++ b/x509-cert/src/ext/pkix/sct.rs @@ -6,7 +6,7 @@ #![cfg(feature = "sct")] use alloc::{format, vec::Vec}; -use const_oid::{AssociatedOid, ObjectIdentifier}; +use const_oid::{db::rfc6962::CT_PRECERT_SCTS, AssociatedOid, ObjectIdentifier}; use der::asn1::OctetString; use tls_codec::{ DeserializeBytes, SerializeBytes, TlsByteVecU16, TlsDeserializeBytes, TlsSerializeBytes, @@ -23,10 +23,6 @@ use tls_codec::{ #[derive(Debug, PartialEq)] pub struct SignedCertificateTimestampList(OctetString); -//TODO: Remove this and use const-oid's rfc6962::CT_PRECERT_SCTS once a const-oid version -// containing it is published -const CT_PRECERT_SCTS: ObjectIdentifier = ObjectIdentifier::new_unwrap("1.3.6.1.4.1.11129.2.4.2"); - impl AssociatedOid for SignedCertificateTimestampList { const OID: ObjectIdentifier = CT_PRECERT_SCTS; }