mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-22 20:59:45 -04:00
Safer rsids API
Deprecate unsafe costructor, substituted by fromBufferUnsafe which explicitely marked suggest the caller to pay attention. Use enum class for id types instead of constants Make size constants more private Use internal Id_t alias to avoid huge template lines Remove and deprecate oguly names in favor of consistent names
This commit is contained in:
parent
ccf7dc24b8
commit
7642216912
12 changed files with 337 additions and 267 deletions
|
@ -92,8 +92,6 @@
|
|||
* as these will be used very frequently.
|
||||
*****/
|
||||
|
||||
typedef PGPIdType RsPgpId;
|
||||
|
||||
/* Identity Interface for GXS Message Verification.
|
||||
*/
|
||||
class RsGixs
|
||||
|
|
|
@ -217,7 +217,9 @@ bool GrpCircleVetting::expired()
|
|||
{
|
||||
return time(NULL) > (mTimeStamp + EXPIRY_PERIOD_OFFSET);
|
||||
}
|
||||
bool GrpCircleVetting::canSend(const SSLIdType& peerId, const RsGxsCircleId& circleId,bool& should_encrypt)
|
||||
bool GrpCircleVetting::canSend(
|
||||
const RsPeerId& peerId, const RsGxsCircleId& circleId,
|
||||
bool& should_encrypt )
|
||||
{
|
||||
if(mCircles->isLoaded(circleId))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue