summaryrefslogtreecommitdiffstats
path: root/ffi/src/openpgp/crypto.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ffi/src/openpgp/crypto.rs')
-rw-r--r--ffi/src/openpgp/crypto.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffi/src/openpgp/crypto.rs b/ffi/src/openpgp/crypto.rs
index b4da7553..0055d68f 100644
--- a/ffi/src/openpgp/crypto.rs
+++ b/ffi/src/openpgp/crypto.rs
@@ -27,9 +27,10 @@ pub extern "system" fn sq_key_pair_new
-> *mut crypto::KeyPair
{
let ctx = ffi_param_ref_mut!(ctx);
+ ffi_make_fry_from_ctx!(ctx);
let public = ffi_param_move!(public);
let secret = ffi_param_move!(secret);
- fry_box!(ctx, crypto::KeyPair::new(*public, *secret))
+ ffi_try_box!(crypto::KeyPair::new(*public, *secret))
}
/// Frees a key pair.