ENGINE-543: private_only was always set to true and shouldn't be. sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 02 May 2019 11:23:22 +0200
branchsync
changeset 36031546d058cd26
parent 3600 07d9a2af323f
child 3604 4bf5759ea073
ENGINE-543: private_only was always set to true and shouldn't be.
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Thu May 02 08:46:59 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Thu May 02 11:23:22 2019 +0200
     1.3 @@ -1668,7 +1668,7 @@
     1.4  
     1.5      // If the caller asks for a secret key and we only have a
     1.6      // public key, then we return an error.
     1.7 -    status = tpk_find_by_fpr_hex(session, fpr, true, &tpk, NULL);
     1.8 +    status = tpk_find_by_fpr_hex(session, fpr, secret, &tpk, NULL);
     1.9      ERROR_OUT(NULL, status, "Looking up TSK for %s", fpr);
    1.10  
    1.11      pgp_writer_t memory_writer = pgp_writer_alloc((void **) key_data, size);