From 5e8b09843de5d9af115c588f611747d921e982bf Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Fri, 20 Aug 2021 13:13:17 +0200 Subject: [PATCH] Have the engine pass the size of stringpair_t and stringpair_list_t. - stringpair_t and stringpair_list_t will be needed by the implementation of pgp_list_keyinfo. --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ba8043e..357d7f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -216,7 +216,9 @@ ffi!(fn pgp_init_(session: *mut Session, _in_first: bool, string_list_item_size: c_uint, pep_identity_size: c_uint, pep_identity_list_item_size: c_uint, - timestamp_size: c_uint) + timestamp_size: c_uint, + _stringpair_size: c_uint, + _stringpair_list_size: c_uint) -> Result<()> { use std::mem::size_of; @@ -242,7 +244,8 @@ ffi!(fn pgp_init_(session: *mut Session, _in_first: bool, assert_eq!(pep_identity_size as usize, size_of::()); assert_eq!(pep_identity_list_item_size as usize, size_of::()); assert_eq!(timestamp_size as usize, size_of::()); - + // assert_eq!(stringpair_size as usize, size_of::()); + // assert_eq!(stringpair_list_size as usize, size_of::()); let session = Session::as_mut(session); -- GitLab