diff --git a/libretroshare/src/retroshare/rsinit.h b/libretroshare/src/retroshare/rsinit.h index 031423819..2e8009b3c 100644 --- a/libretroshare/src/retroshare/rsinit.h +++ b/libretroshare/src/retroshare/rsinit.h @@ -288,6 +288,14 @@ struct RsLoginHelper RsInit::LoadCertificateStatus attemptLogin( const RsPeerId& account, const std::string& password ); + /** + * @brief Feed extra entropy to the crypto libraries + * @jsonapi{development,unauthenticated} + * @param[in] bytes number to feed to the entropy pool + * @return false if error occurred, true otherwise + */ + static bool collectEntropy(uint32_t bytes); + struct Location : RsSerializable { RsPeerId mLocationId; diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index e3f1f141e..86e26c55b 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -1934,6 +1934,9 @@ RsInit::LoadCertificateStatus RsLoginHelper::attemptLogin( return RsInit::ERR_UNKOWN; } +/*static*/ bool RsLoginHelper::collectEntropy(uint32_t bytes) +{ return RsInit::collectEntropy(bytes); } + void RsLoginHelper::getLocations(std::vector& store) { std::list locIds;