From 76cf64f8d52bc220b96720ebb470e2bd5f86fd50 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 10 Jun 2019 00:02:03 +0200 Subject: [PATCH] fixed compilation --- libretroshare/src/retroshare/rspeers.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/retroshare/rspeers.h b/libretroshare/src/retroshare/rspeers.h index a077fd638..7e2bc898b 100644 --- a/libretroshare/src/retroshare/rspeers.h +++ b/libretroshare/src/retroshare/rspeers.h @@ -503,6 +503,9 @@ public: virtual bool getAssociatedSSLIds(const RsPgpId& gpg_id, std::list& ids) = 0; virtual bool gpgSignData(const void *data, const uint32_t len, unsigned char *sign, unsigned int *signlen, std::string reason = "") = 0; + // Note: the two methods below could be unified. The fact that one of them can take an optional RsPeerDetails struct as parameter + // seems quite inconsistent. + /** * @brief Add trusted node * @jsonapi{development} @@ -523,12 +526,13 @@ public: * SSL+PGP friend. * @jsonapi{development} * @param[in] sslId SSL id of the node to add + * @param[in] pgpId PGP id of the node to add. Will be used for validation when the key is available. * @param[in] details Optional extra details known about the node to add * @return false if error occurred, true otherwise */ virtual bool addSslOnlyFriend( const RsPeerId& sslId, - const RsPgpId& pgp_id, + const RsPgpId& pgpId, const RsPeerDetails& details = RsPeerDetails() ) = 0; /**