summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-08-16 13:39:07 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-08-16 13:39:07 +0200
commit533047c9bf6d56f3935a32033e21696fbbc6d705 (patch)
tree189bbfbf46bae1d0d5af66e5392e06ad74417047 /ffi
parentcbf7abff93df12a6354b259bf9f23e29b15d5e06 (diff)
openpgp: Delete deprecated TPK::new().
Diffstat (limited to 'ffi')
-rw-r--r--ffi/include/sequoia/openpgp.h4
-rw-r--r--ffi/src/openpgp.rs13
2 files changed, 0 insertions, 17 deletions
diff --git a/ffi/include/sequoia/openpgp.h b/ffi/include/sequoia/openpgp.h
index b3cfb4d7..3c8ebec3 100644
--- a/ffi/include/sequoia/openpgp.h
+++ b/ffi/include/sequoia/openpgp.h
@@ -303,10 +303,6 @@ typedef struct sq_tpk *sq_tpk_t;
/*/
typedef struct sq_tsk *sq_tsk_t;
-/*/
-/// Generates a new RSA 3072 bit key with UID `primary_uid`.
-/*/
-sq_tpk_t sq_tpk_new (sq_context_t ctx, char *primary_uid);
/*/
/// Returns the first TPK encountered in the reader.
diff --git a/ffi/src/openpgp.rs b/ffi/src/openpgp.rs
index c71d7676..6c5cae93 100644
--- a/ffi/src/openpgp.rs
+++ b/ffi/src/openpgp.rs
@@ -666,19 +666,6 @@ pub extern "system" fn sq_packet_pile_serialize(ctx: Option<&mut Context>,
/* sequoia::keys. */
-/// Generates a new RSA 3072 bit key with UID `primary_uid`.
-#[no_mangle]
-pub extern "system" fn sq_tpk_new(ctx: Option<&mut Context>,
- primary_uid: *const c_char)
- -> *mut TPK {
- let ctx = ctx.expect("CONTEXT is NULL");
- assert!(!primary_uid.is_null());
- let primary_uid = unsafe {
- CStr::from_ptr(primary_uid)
- };
- fry_box!(ctx, TPK::new(&primary_uid.to_string_lossy()))
-}
-
/// Returns the first TPK encountered in the reader.
#[no_mangle]
pub extern "system" fn sq_tpk_from_reader(ctx: Option<&mut Context>,