IOS-1912 message->enc_format = encFormat IOS-1912
authorDirk Zimmermann <dz@pep.security>
Mon, 07 Oct 2019 15:47:58 +0200
branchIOS-1912
changeset 1301f0b9f563d979
parent 1300 0a0968bb887a
child 1430 3a32555b6c91
IOS-1912 message->enc_format = encFormat
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Mon Oct 07 14:01:15 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Mon Oct 07 15:47:58 2019 +0200
     1.3 @@ -269,6 +269,7 @@
     1.4      PEP_encrypt_flags_t flags = 0;
     1.5  
     1.6      message *_src = PEP_messageDictToStruct([self removeEmptyRecipients:messageDict]);
     1.7 +    _src->enc_format = (PEP_enc_format) encFormat;
     1.8      message *_dst = NULL;
     1.9      stringlist_t *_keys = PEP_arrayToStringlist(extraKeys);
    1.10  
    1.11 @@ -416,6 +417,7 @@
    1.12                                      error:(NSError * _Nullable * _Nullable)error __deprecated
    1.13  {
    1.14      message *src = PEP_messageDictToStruct([self removeEmptyRecipients:messageDict]);
    1.15 +    src->enc_format = (PEP_enc_format) encFormat;
    1.16      message *dst = NULL;
    1.17  
    1.18      PEPStatus theStatus = (PEPStatus)