ENGINE-421: Removed direction check in encrypt_message_for_self - appears to be unnecessary, and is causing problems with OUT-431. local_cmocka
authorKrista Bennett <krista@pep-project.org>
Wed, 18 Apr 2018 09:41:28 +0200
branchlocal_cmocka
changeset 261006915ad82a51
parent 2609 83d11374a328
child 2611 5ca43900bc58
child 2627 518c493198a9
ENGINE-421: Removed direction check in encrypt_message_for_self - appears to be unnecessary, and is causing problems with OUT-431.
src/message_api.c
     1.1 --- a/src/message_api.c	Mon Apr 16 15:27:50 2018 +0200
     1.2 +++ b/src/message_api.c	Wed Apr 18 09:41:28 2018 +0200
     1.3 @@ -2015,8 +2015,8 @@
     1.4      if (!(session && src && dst && enc_format != PEP_enc_none))
     1.5          return PEP_ILLEGAL_VALUE;
     1.6  
     1.7 -    if (src->dir == PEP_dir_incoming)
     1.8 -        return PEP_ILLEGAL_VALUE;
     1.9 +    // if (src->dir == PEP_dir_incoming)
    1.10 +    //     return PEP_ILLEGAL_VALUE;
    1.11  
    1.12      determine_encryption_format(src);
    1.13      if (src->enc_format != PEP_enc_none)