summaryrefslogtreecommitdiffstats
path: root/net/tests
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-28 15:27:33 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-11-28 16:26:43 +0100
commitbbbc6da375d6584c7b2bcc74e838fff943f489d4 (patch)
tree0a965698c96dbc0fc8541c6adc2224935b68bc07 /net/tests
parentf53c77752ff04c3713c175a76a06723042e681ae (diff)
Call TPKs Certificates, update identifiers, documentation.
- Fixes #387.
Diffstat (limited to 'net/tests')
-rw-r--r--net/tests/hkp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tests/hkp.rs b/net/tests/hkp.rs
index 6005cc69..971a10cd 100644
--- a/net/tests/hkp.rs
+++ b/net/tests/hkp.rs
@@ -25,7 +25,7 @@ extern crate sequoia_core;
extern crate sequoia_net;
use crate::openpgp::armor::Reader;
-use crate::openpgp::TPK;
+use crate::openpgp::Cert;
use crate::openpgp::{Fingerprint, KeyID};
use crate::openpgp::parse::Parse;
use sequoia_core::{Context, NetworkPolicy};
@@ -93,7 +93,7 @@ fn service(req: Request<Body>)
for (key, value) in url::form_urlencoded::parse(b.as_ref()) {
match key.clone().into_owned().as_ref() {
"keytext" => {
- let key = TPK::from_reader(
+ let key = Cert::from_reader(
Reader::new(Cursor::new(value.into_owned()),
None)).unwrap();
assert_eq!(
@@ -175,7 +175,7 @@ fn send() {
eprintln!("{}", format!("hkp://{}", addr));
let mut keyserver =
KeyServer::new(&ctx, &format!("hkp://{}", addr)).unwrap();
- let key = TPK::from_reader(Reader::new(Cursor::new(RESPONSE),
+ let key = Cert::from_reader(Reader::new(Cursor::new(RESPONSE),
None)).unwrap();
core.run(keyserver.send(&key)).unwrap();
}