ENGINE-2: this isn't really ENGINE-2, but Huss added it there - fixed skipping of unencrypted keys introduced by other bug fix some time back
authorKrista Bennett <krista@pep-project.org>
Mon, 18 Jun 2018 14:35:23 +0200
changeset 2753bbe4cd45a94e
parent 2751 66c8218f81e8
child 2754 78c467823210
ENGINE-2: this isn't really ENGINE-2, but Huss added it there - fixed skipping of unencrypted keys introduced by other bug fix some time back
src/message_api.c
     1.1 --- a/src/message_api.c	Fri Jun 15 22:35:41 2018 +0200
     1.2 +++ b/src/message_api.c	Mon Jun 18 14:35:23 2018 +0200
     1.3 @@ -1365,7 +1365,10 @@
     1.4              size_t blob_size = bl->size;
     1.5              bool free_blobval = false;
     1.6              
     1.7 -            if (is_encrypted_attachment(bl)) {
     1.8 +            if (is_encrypted_attachment(bl) &&
     1.9 +                    strstr(blob_value, "BEGIN PGP PUBLIC KEY") == NULL &&
    1.10 +                    strstr(blob_value, "BEGIN PGP PRIVATE KEY") == NULL) {
    1.11 +                    
    1.12                  char* bl_ptext = NULL;
    1.13                  size_t bl_psize = 0;
    1.14                  stringlist_t* bl_keylist = NULL;