summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/sign-detached.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/sign-detached.rs')
-rw-r--r--openpgp/examples/sign-detached.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/sign-detached.rs b/openpgp/examples/sign-detached.rs
index 8d5f9cfa..9990f770 100644
--- a/openpgp/examples/sign-detached.rs
+++ b/openpgp/examples/sign-detached.rs
@@ -20,7 +20,7 @@ fn main() {
// Read the transferable secret keys from the given files.
let mut keys = Vec::new();
for filename in &args[1..] {
- let tsk = openpgp::TPK::from_file(filename)
+ let tsk = openpgp::Cert::from_file(filename)
.expect("Failed to read key");
let mut n = 0;