Skip to content

Commit

Permalink
fixup! fixup! Implement tr_serialize and tr_deserialize
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Brand <simon.brand@postadigitale.de>
  • Loading branch information
brandsimon committed Oct 25, 2023
1 parent f2f86c7 commit 9c98521
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ mod test_tr_serialize_tr_deserialize {
.key_handle;
let data = context.tr_serialize(key_handle.into()).unwrap();
// Load handle in a new context
let mut context_new = create_ctx_with_session();
let new_handle = context_new.tr_deserialize(data).unwrap().into();
let mut new_context = create_ctx_with_session();
let new_handle = new_context.tr_deserialize(data).unwrap().into();
assert_eq!(
context.read_public(key_handle).unwrap(),
context_new.read_public(new_handle).unwrap()
new_context.read_public(new_handle).unwrap()
);
}
}

0 comments on commit 9c98521

Please sign in to comment.