summaryrefslogtreecommitdiffstats
path: root/ffi/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ffi/src/lib.rs')
-rw-r--r--ffi/src/lib.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/ffi/src/lib.rs b/ffi/src/lib.rs
index f7202cc7..2f5f3bbe 100644
--- a/ffi/src/lib.rs
+++ b/ffi/src/lib.rs
@@ -96,22 +96,13 @@
//! #include <error.h>
//!
//! sq_error_t err;
-//! sq_context_t ctx;
//! sq_tpk_t tpk;
//!
-//! ctx = sq_context_new ("org.sequoia-pgp.example", &err);
-//! if (ctx == NULL)
-//! error (1, 0, "Initializing sequoia failed: %s", sq_error_string (err));
-//!
-//! tpk = sq_tpk_from_file (ctx, "../openpgp/tests/data/keys/testy.pgp");
+//! tpk = sq_tpk_from_file (&err, "../openpgp/tests/data/keys/testy.pgp");
//! if (tpk == NULL)
-//! {
-//! err = sq_context_last_error (ctx);
-//! error (1, 0, "sq_tpk_from_bytes: %s", sq_error_string (err));
-//! }
+//! error (1, 0, "sq_tpk_from_bytes: %s", sq_error_string (err));
//!
//! sq_tpk_free (tpk);
-//! sq_context_free (ctx);
//! ```
#![warn(missing_docs)]