mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -04:00
JSON API to collect extra entropy
This commit is contained in:
parent
abec811d31
commit
81d23fa607
2 changed files with 11 additions and 0 deletions
|
@ -288,6 +288,14 @@ struct RsLoginHelper
|
||||||
RsInit::LoadCertificateStatus attemptLogin(
|
RsInit::LoadCertificateStatus attemptLogin(
|
||||||
const RsPeerId& account, const std::string& password );
|
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
|
struct Location : RsSerializable
|
||||||
{
|
{
|
||||||
RsPeerId mLocationId;
|
RsPeerId mLocationId;
|
||||||
|
|
|
@ -1934,6 +1934,9 @@ RsInit::LoadCertificateStatus RsLoginHelper::attemptLogin(
|
||||||
return RsInit::ERR_UNKOWN;
|
return RsInit::ERR_UNKOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*static*/ bool RsLoginHelper::collectEntropy(uint32_t bytes)
|
||||||
|
{ return RsInit::collectEntropy(bytes); }
|
||||||
|
|
||||||
void RsLoginHelper::getLocations(std::vector<RsLoginHelper::Location>& store)
|
void RsLoginHelper::getLocations(std::vector<RsLoginHelper::Location>& store)
|
||||||
{
|
{
|
||||||
std::list<RsPeerId> locIds;
|
std::list<RsPeerId> locIds;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue