Skip to content

Commit

Permalink
fixed missing initialization of secret keyring map
Browse files Browse the repository at this point in the history
  • Loading branch information
csoler committed Dec 17, 2024
1 parent 88be169 commit 80b40a6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pgp/rnppgphandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,16 @@ void RNPPGPHandler::initCertificateInfo(const rnp_key_handle_t& key_handle)

signers.insert(RsPgpId(key_id)); // in libRNP the signer of self-signed certificates is not reported in signers.

auto& cert(_public_keyring_map[ RsPgpId(key_id)]);

fill_cert(cert,key_uid,signers) ;
{
auto& cert(_public_keyring_map[ RsPgpId(key_id)]);
fill_cert(cert,key_uid,signers) ;
}

if(have_secret)
{
auto& cert(_secret_keyring_map[ RsPgpId(key_id)]);
fill_cert(cert,key_uid,signers) ;
}
}

#ifdef TODO
Expand Down

0 comments on commit 80b40a6

Please sign in to comment.