diff options
Diffstat (limited to 'ffi/src/lib.rs')
-rw-r--r-- | ffi/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ffi/src/lib.rs b/ffi/src/lib.rs index 92cfab0d..0bf46056 100644 --- a/ffi/src/lib.rs +++ b/ffi/src/lib.rs @@ -96,13 +96,13 @@ //! #include <error.h> //! //! pgp_error_t err; -//! pgp_tpk_t tpk; +//! pgp_cert_t cert; //! -//! tpk = pgp_tpk_from_file (&err, "../openpgp/tests/data/keys/testy.pgp"); -//! if (tpk == NULL) -//! error (1, 0, "pgp_tpk_from_bytes: %s", pgp_error_to_string (err)); +//! cert = pgp_cert_from_file (&err, "../openpgp/tests/data/keys/testy.pgp"); +//! if (cert == NULL) +//! error (1, 0, "pgp_cert_from_bytes: %s", pgp_error_to_string (err)); //! -//! pgp_tpk_free (tpk); +//! pgp_cert_free (cert); //! ``` #![warn(missing_docs)] |