Remove PGP fingerprint from broadcast discovery

Sending PGP fingerprint trough broadcast discovery is misleading in
terms of security, as those packets cannot be trusted for PGP
fingerprint verification, removing it reduce packet size and reduce the
risc of wrong usage of untrusted information
This commit is contained in:
Gioacchino Mazzurco 2019-05-17 12:07:52 +02:00
parent 427503df0d
commit f2fb0d7cfc
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 6 additions and 12 deletions

View file

@ -46,19 +46,17 @@ extern std::shared_ptr<RsBroadcastDiscovery> rsBroadcastDiscovery;
struct RsBroadcastDiscoveryResult : RsSerializable
{
PGPFingerprintType mPgpFingerprint;
RsPeerId mSslId;
std::string mProfileName;
RsUrl locator;
RsUrl mLocator;
/// @see RsSerializable
void serial_process( RsGenericSerializer::SerializeJob j,
RsGenericSerializer::SerializeContext& ctx) override
{
RS_SERIAL_PROCESS(mPgpFingerprint);
RS_SERIAL_PROCESS(mSslId);
RS_SERIAL_PROCESS(mProfileName);
RS_SERIAL_PROCESS(locator);
RS_SERIAL_PROCESS(mLocator);
}
RsBroadcastDiscoveryResult() = default;