Skip to content

Commit fce41f7

Browse files
ctzcpu
authored andcommitted
Support code-signing trust bit
1 parent f19c83f commit fce41f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webpki-ccadb/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,16 @@ pub enum TrustBits {
250250
Websites,
251251
/// certificate is trusted for Email (e.g. S/MIME).
252252
Email,
253+
/// certificate is trusted for code signing
254+
Code,
253255
}
254256

255257
impl From<&str> for TrustBits {
256258
fn from(value: &str) -> Self {
257259
match value {
258260
"Websites" => TrustBits::Websites,
259261
"Email" => TrustBits::Email,
262+
"Code" => TrustBits::Code,
260263
val => panic!("unknown trust bit: {:?}", val),
261264
}
262265
}

0 commit comments

Comments
 (0)