diff --git a/src/pEp.yml2 b/src/pEp.yml2 index 0b3573c..b970aee 100644 --- a/src/pEp.yml2 +++ b/src/pEp.yml2 @@ -84,7 +84,7 @@ namespace pEp { sync_handshake_cancel > -1 sync_handshake_accepted > 0 sync_handshake_rejected > 1 - } + }; interface Engine { method encrypt_message( diff --git a/src/types_c.ysl2 b/src/types_c.ysl2 index 24aa23e..8c1de1b 100644 --- a/src/types_c.ysl2 +++ b/src/types_c.ysl2 @@ -14,6 +14,7 @@ function "toC" { when "$type='bool'" > bool when "$type='DecryptFlags'" > PEP_decrypt_flags_t when "$type='Color'" > PEP_color + when "$type='SyncHandshakeResult'" > sync_handshake_result otherwise value "$type"; } diff --git a/src/types_java.ysl2 b/src/types_java.ysl2 index 9dc0de7..c52fd03 100644 --- a/src/types_java.ysl2 +++ b/src/types_java.ysl2 @@ -1,4 +1,4 @@ -function "toJava" { + function "toJava" { param "type"; choose { @@ -61,6 +61,7 @@ function "toSig" { when "$type='message'" > org/pEp/jniadapter/Message when "$type='Color'" > org/pEp/jniadapter/Color when "$type='DecryptFlags'" > org/pEp/jniadapter/DecryptFlags + when "$type='SyncHandshakeResult'" > org/pEp/jniadapter/SyncHandshakeResult } > ; } @@ -79,6 +80,7 @@ function "toIntermediate" { when "$type='bloblist'" > Vector<_Blob> when "$type='bool'" > boolean when "$type='DecryptFlags'" > DecryptFlags + when "$type='SyncHandshakeResult'" > SyncHandshakeResult otherwise call "toJava" with "type", "$type"; }