Skip to content

Commit

Permalink
const-oid v0.10.0-rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jul 26, 2024
1 parent a3c986b commit 3038be1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
29 changes: 19 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion const-oid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "const-oid"
version = "0.10.0-pre.2"
version = "0.10.0-rc.0"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = """
Expand Down
10 changes: 9 additions & 1 deletion x509-cert/src/builder/profile/devid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ use crate::{
},
name::Name,
};
use const_oid::db::tcgtpm;
use der::{asn1::OctetString, ErrorKind};
use spki::{ObjectIdentifier, SubjectPublicKeyInfoRef};

// TODO(tarcieri): use this when `const-oid` has been bumped to v0.10.0-rc.0
//use const_oid::db::tcgtpm;
#[allow(missing_docs)]
pub mod tcgtpm {
use const_oid::ObjectIdentifier;
pub const TCG_SV_TPM_12: ObjectIdentifier = ObjectIdentifier::new_unwrap("2.23.133.1.0");
pub const TCG_SV_TPM_20: ObjectIdentifier = ObjectIdentifier::new_unwrap("2.23.133.1.2");
}

/// DevID Certificate
///
/// See: section 8 DevID certificate fields and extensions
Expand Down

0 comments on commit 3038be1

Please sign in to comment.