Added the ability to trust signing keys & resolve signing keys for peers, minor improvements and added new standard error "CONFLICT"
This commit is contained in:
parent
4e22a8bacd
commit
330e7f876b
14 changed files with 427 additions and 42 deletions
|
@ -7,6 +7,7 @@
|
|||
class PoliciesConfiguration
|
||||
{
|
||||
private int $maxSigningKeys;
|
||||
private int $maxContactSigningKeys;
|
||||
private int $sessionInactivityExpires;
|
||||
private int $imageCaptchaExpires;
|
||||
private int $peerSyncInterval;
|
||||
|
@ -37,6 +38,7 @@
|
|||
public function __construct(array $data)
|
||||
{
|
||||
$this->maxSigningKeys = $data['max_signing_keys'];
|
||||
$this->maxContactSigningKeys = $data['max_contact_signing_keys'];
|
||||
$this->sessionInactivityExpires = $data['session_inactivity_expires'];
|
||||
$this->imageCaptchaExpires = $data['image_captcha_expires'];
|
||||
$this->peerSyncInterval = $data['peer_sync_interval'];
|
||||
|
@ -61,6 +63,11 @@
|
|||
return $this->maxSigningKeys;
|
||||
}
|
||||
|
||||
public function getMaxContactSigningKeys(): int
|
||||
{
|
||||
return $this->maxContactSigningKeys;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the maximum amount of seconds before the session is considered expired due to inactivity
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue