diff options
author | Neal H. Walfield <neal@pep.foundation> | 2021-02-21 23:48:09 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2021-02-21 23:48:09 +0100 |
commit | b4b9203cb139eb5269209d9cf3f31d31f77d85f4 (patch) | |
tree | ac94f15f8f6b51f5ff8758b3ddfa220ea8be6a94 | |
parent | 88b835631a60fade67907e394fce8d3476b9ae36 (diff) |
WIP: Web of Trustneal/wot
113 files changed, 17641 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index da44fb4c..fee1c694 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -161,6 +161,7 @@ mod keyhandle; pub use keyhandle::KeyHandle; pub mod regex; pub mod policy; +pub mod wot; pub(crate) mod seal; pub(crate) mod utils; diff --git a/openpgp/src/tests.rs b/openpgp/src/tests.rs index 6c241555..70b03be6 100644 --- a/openpgp/src/tests.rs +++ b/openpgp/src/tests.rs @@ -88,6 +88,11 @@ pub fn message(name: &str) -> &'static [u8] { file(&format!("messages/{}", name)) } +/// Returns the content of the given file below `openpgp/tests/data/wot`. +pub fn wot(name: &str) -> &'static [u8] { + file(&format!("wot/{}", name)) +} + /// Returns the cypherpunks manifesto. pub fn manifesto() -> &'static [u8] { message("a-cypherpunks-manifesto.txt") diff --git a/openpgp/src/wot.rs b/openpgp/src/wot.rs new file mode 100644 index 00000000..9c0ea0da --- /dev/null +++ b/openpgp/src/wot.rs @@ -0,0 +1,1553 @@ +//! Web of trust support. + +use std::collections::HashMap; +use std::fmt; + +use cr |