ENGINE-390: fixed deprecated _decrypt_in_pieces; we need to talk about how much backward compatibility we'll maintain.
authorKrista Bennett <krista@pep-project.org>
Thu, 22 Feb 2018 17:18:24 +0100
changeset 253168b7fb2ad5b2
parent 2530 f460c1c5f1cb
child 2532 4d46b7dd0fce
child 2533 722b45fd4e67
ENGINE-390: fixed deprecated _decrypt_in_pieces; we need to talk about how much backward compatibility we'll maintain.
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Feb 21 17:05:56 2018 +0100
     1.2 +++ b/src/message_api.c	Thu Feb 22 17:18:24 2018 +0100
     1.3 @@ -2661,11 +2661,13 @@
     1.4                  break;
     1.5  
     1.6              case PEP_enc_pieces:
     1.7 -                status = _decrypt_in_pieces(session, src, &msg, ptext, psize);
     1.8 +                decrypt_status = _decrypt_in_pieces(session, src, &msg, ptext, psize);
     1.9              
    1.10 -                if (status == PEP_OUT_OF_MEMORY)
    1.11 +                if (decrypt_status == PEP_OUT_OF_MEMORY)
    1.12                      goto enomem;
    1.13 -
    1.14 +                else
    1.15 +                    status = PEP_STATUS_OK;
    1.16 +                     
    1.17                  break;
    1.18  
    1.19              default: