mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
JSON API to collect extra entropy
This commit is contained in:
parent
abec811d31
commit
81d23fa607
@ -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;
|
||||
|
@ -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<RsLoginHelper::Location>& store)
|
||||
{
|
||||
std::list<RsPeerId> locIds;
|
||||
|
Loading…
Reference in New Issue
Block a user