mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Fix typo in PGP fingerprint type
This commit is contained in:
parent
7642216912
commit
e118b4dbf8
@ -915,7 +915,7 @@ bool PGPHandler::checkAndImportKeyPair(ops_keyring_t *tmp_keyring, RsPgpId &impo
|
||||
}
|
||||
if(memcmp( pubkey->fingerprint.fingerprint,
|
||||
seckey->fingerprint.fingerprint,
|
||||
RsPpgFingerprint::SIZE_IN_BYTES ) != 0)
|
||||
RsPgpFingerprint::SIZE_IN_BYTES ) != 0)
|
||||
{
|
||||
import_error = "Public and private keys do nt have the same fingerprint. Sorry!" ;
|
||||
return false ;
|
||||
@ -945,7 +945,7 @@ bool PGPHandler::checkAndImportKeyPair(ops_keyring_t *tmp_keyring, RsPgpId &impo
|
||||
if(!memcmp(
|
||||
static_cast<uint8_t*>(result->valid_sigs[i].signer_id),
|
||||
pubkey->key_id,
|
||||
RsPpgFingerprint::SIZE_IN_BYTES ))
|
||||
RsPgpFingerprint::SIZE_IN_BYTES ))
|
||||
{
|
||||
found = true ;
|
||||
break ;
|
||||
@ -1095,7 +1095,7 @@ bool PGPHandler::LoadCertificateFromString(const std::string& pgp_cert,RsPgpId&
|
||||
if(!memcmp(
|
||||
static_cast<uint8_t*>(result->valid_sigs[i].signer_id),
|
||||
keydata->key_id,
|
||||
RsPpgFingerprint::SIZE_IN_BYTES ))
|
||||
RsPgpFingerprint::SIZE_IN_BYTES ))
|
||||
{
|
||||
found = true ;
|
||||
break ;
|
||||
@ -1174,7 +1174,7 @@ bool PGPHandler::locked_addOrMergeKey(ops_keyring_t *keyring,std::map<RsPgpId,PG
|
||||
{
|
||||
if(memcmp( existing_key->fingerprint.fingerprint,
|
||||
keydata->fingerprint.fingerprint,
|
||||
RsPpgFingerprint::SIZE_IN_BYTES ))
|
||||
RsPgpFingerprint::SIZE_IN_BYTES ))
|
||||
{
|
||||
std::cerr << "(EE) attempt to merge key with identical id, but different fingerprint!" << std::endl;
|
||||
return false ;
|
||||
|
@ -325,7 +325,7 @@ using RsPeerId = t_RsGenericIdType<_RsIdSize::SSL_ID , false, R
|
||||
using RsPgpId = t_RsGenericIdType<_RsIdSize::PGP_ID , true, RsGenericIdType::PGP_ID >;
|
||||
using Sha1CheckSum = t_RsGenericIdType<_RsIdSize::SHA1 , false, RsGenericIdType::SHA1 >;
|
||||
using Sha256CheckSum = t_RsGenericIdType<_RsIdSize::SHA256 , false, RsGenericIdType::SHA256 >;
|
||||
using RsPpgFingerprint = t_RsGenericIdType<_RsIdSize::PGP_FINGERPRINT, true, RsGenericIdType::PGP_FINGERPRINT>;
|
||||
using RsPgpFingerprint = t_RsGenericIdType<_RsIdSize::PGP_FINGERPRINT, true, RsGenericIdType::PGP_FINGERPRINT>;
|
||||
using Bias20Bytes = t_RsGenericIdType<_RsIdSize::SHA1 , true, RsGenericIdType::BIAS_20_BYTES >;
|
||||
using RsGxsGroupId = t_RsGenericIdType<_RsIdSize::CERT_SIGN , false, RsGenericIdType::GXS_GROUP >;
|
||||
using RsGxsId = t_RsGenericIdType<_RsIdSize::CERT_SIGN , false, RsGenericIdType::GXS_ID >;
|
||||
@ -335,4 +335,4 @@ using DistantChatPeerId = t_RsGenericIdType<_RsIdSize::SSL_ID , false, R
|
||||
using RsNodeGroupId = t_RsGenericIdType<_RsIdSize::CERT_SIGN , false, RsGenericIdType::NODE_GROUP >;
|
||||
|
||||
/// @deprecated Ugly name kept temporarly only because it is used in many places
|
||||
using PGPFingerprintType RS_DEPRECATED_FOR(RsPpgFingerprint) = RsPpgFingerprint;
|
||||
using PGPFingerprintType RS_DEPRECATED_FOR(RsPpgFingerprint) = RsPgpFingerprint;
|
||||
|
@ -44,7 +44,7 @@ struct BroadcastDiscoveryPack : RsSerializable
|
||||
{
|
||||
BroadcastDiscoveryPack() : mLocalPort(0) {}
|
||||
|
||||
PGPFingerprintType mPgpFingerprint;
|
||||
RsPgpFingerprint mPgpFingerprint;
|
||||
RsPeerId mSslId;
|
||||
uint16_t mLocalPort;
|
||||
std::string mProfileName;
|
||||
|
Loading…
Reference in New Issue
Block a user