From cf4c70b46040a53bf3992a124ba70b1b1ca852f1 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 10 Dec 2021 13:02:52 +0100 Subject: Remove the ffi crates. - Remove the general-purpose ffi crates. They will be moved into their own repository. Note that we consider general-purpose ffi crates to be a dead end: exposing Sequoia's interface requires a large number of types and functions, and using the interface from C turned out to be verbose and error-prone. Instead, we prefer to write point solutions in Rust that implement exactly the functionality the downstream consumer needs, then expose this via ffi bindings. - See https://gitlab.com/sequoia-pgp/sequoia-ffi. --- openpgp-ffi/src/tsk.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 openpgp-ffi/src/tsk.rs (limited to 'openpgp-ffi/src/tsk.rs') diff --git a/openpgp-ffi/src/tsk.rs b/openpgp-ffi/src/tsk.rs deleted file mode 100644 index 324ac082..00000000 --- a/openpgp-ffi/src/tsk.rs +++ /dev/null @@ -1,20 +0,0 @@ -//! Transferable secret keys. -//! -//! Wraps [`sequoia-openpgp::serialize::TSK`]. -//! -//! [`sequoia-openpgp::serialize::TSK`]: sequoia_openpgp::serialize::TSK - -use sequoia_openpgp as openpgp; - -/// A transferable secret key (TSK). -/// -/// A TSK (see [RFC 4880, section 11.2]) can be used to create -/// signatures and decrypt data. -/// -/// [RFC 4880, section 11.2]: https://tools.ietf.org/html/rfc4880#section-11.2 -/// -/// Wraps [`sequoia-openpgp::serialize::TSK`]. -/// -/// [`sequoia-openpgp::serialize::TSK`]: sequoia_openpgp::serialize::TSK -#[crate::ffi_wrapper_type(prefix = "pgp_", name = "tsk", derive = "Serialize")] -pub struct TSK<'a>(openpgp::serialize::TSK<'a>); -- cgit v1.2.3