From a25ef6974e0ba3989f6205c19a1f9ccfc81db584 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 15 May 2019 16:28:11 +0200 Subject: core, store, tool: Use realm instead of domain. - Remove the domain parameter from core::Context. - Replace it with a realm to be passed in when opening a store. - For sq, merge store name and realm into the --store parameter. - Fixes #105. --- net/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/src') diff --git a/net/src/lib.rs b/net/src/lib.rs index db52333d..c9f7cd0a 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -22,7 +22,7 @@ //! # use sequoia_net::{KeyServer, Result}; //! # fn main() { f().unwrap(); } //! # fn f() -> Result<()> { -//! let ctx = Context::new("org.sequoia-pgp.example")?; +//! let ctx = Context::new()?; //! let mut ks = KeyServer::sks_pool(&ctx)?; //! let keyid = KeyID::from_hex("31855247603831FD").unwrap(); //! println!("{:?}", ks.get(&keyid)); @@ -195,7 +195,7 @@ mod tests { #[test] fn uris() { - let ctx = Context::configure("foo") + let ctx = Context::configure() .network_policy(sequoia_core::NetworkPolicy::Insecure) .build().unwrap(); @@ -203,7 +203,7 @@ mod tests { assert!(KeyServer::new(&ctx, "hkp://keys.openpgp.org").is_ok()); assert!(KeyServer::new(&ctx, "hkps://keys.openpgp.org").is_ok()); - let ctx = Context::configure("foo") + let ctx = Context::configure() .network_policy(sequoia_core::NetworkPolicy::Encrypted) .build().unwrap(); -- cgit v1.2.3