mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 14:20:44 -04:00
fixup! Safer rsids API
This commit is contained in:
parent
e118b4dbf8
commit
1b02c748fa
1 changed files with 2 additions and 2 deletions
|
@ -945,7 +945,7 @@ bool PGPHandler::checkAndImportKeyPair(ops_keyring_t *tmp_keyring, RsPgpId &impo
|
||||||
if(!memcmp(
|
if(!memcmp(
|
||||||
static_cast<uint8_t*>(result->valid_sigs[i].signer_id),
|
static_cast<uint8_t*>(result->valid_sigs[i].signer_id),
|
||||||
pubkey->key_id,
|
pubkey->key_id,
|
||||||
RsPgpFingerprint::SIZE_IN_BYTES ))
|
RsPgpId::SIZE_IN_BYTES ))
|
||||||
{
|
{
|
||||||
found = true ;
|
found = true ;
|
||||||
break ;
|
break ;
|
||||||
|
@ -1095,7 +1095,7 @@ bool PGPHandler::LoadCertificateFromString(const std::string& pgp_cert,RsPgpId&
|
||||||
if(!memcmp(
|
if(!memcmp(
|
||||||
static_cast<uint8_t*>(result->valid_sigs[i].signer_id),
|
static_cast<uint8_t*>(result->valid_sigs[i].signer_id),
|
||||||
keydata->key_id,
|
keydata->key_id,
|
||||||
RsPgpFingerprint::SIZE_IN_BYTES ))
|
RsPgpId::SIZE_IN_BYTES ))
|
||||||
{
|
{
|
||||||
found = true ;
|
found = true ;
|
||||||
break ;
|
break ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue