Send PGP full fingerprint in broadcast discovery

This commit is contained in:
Gioacchino Mazzurco 2019-09-25 16:33:13 +02:00
parent 5acb6c266e
commit 2aade543f3
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 16 additions and 10 deletions

View file

@ -41,11 +41,12 @@ class RsBroadcastDiscovery;
* TODO: this should become std::weak_ptr once we have a reasonable services
* management.
*/
extern std::shared_ptr<RsBroadcastDiscovery> rsBroadcastDiscovery;
extern RsBroadcastDiscovery* rsBroadcastDiscovery;
struct RsBroadcastDiscoveryResult : RsSerializable
{
RsPgpFingerprint mPgpFingerprint;
RsPeerId mSslId;
std::string mProfileName;
RsUrl mLocator;
@ -54,6 +55,7 @@ struct RsBroadcastDiscoveryResult : 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(mLocator);