be sure decrypted messages are PEP_enc_none
authorKrista Bennett <krista@pep-project.org>
Tue, 07 Nov 2017 10:08:30 +0100
changeset 2276d6207c0fd201
parent 2275 de17b80d7394
child 2277 ce605cb377ef
child 2279 41b26d4e30ee
be sure decrypted messages are PEP_enc_none
src/message_api.c
     1.1 --- a/src/message_api.c	Mon Nov 06 11:25:41 2017 +0100
     1.2 +++ b/src/message_api.c	Tue Nov 07 10:08:30 2017 +0100
     1.3 @@ -2463,7 +2463,9 @@
     1.4  
     1.5          if (status != PEP_STATUS_OK)
     1.6              GOTO(pep_error);
     1.7 -            
     1.8 +        
     1.9 +        /* We decrypted ok, hallelujah. */
    1.10 +        msg->enc_format = PEP_enc_none;    
    1.11      } 
    1.12      else {
    1.13          // We did not get a plaintext out of the decryption process.