mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Accept any six-digit invitation/confirmation code.
Rejecting codes greater than 2^19 - 1 creates a confusing user experience.
This commit is contained in:
@@ -2,14 +2,12 @@ package net.sf.briar.api.plugins;
|
||||
|
||||
public interface InvitationConstants {
|
||||
|
||||
long CONNECTION_TIMEOUT = 15 * 1000; // Milliseconds
|
||||
long CONNECTION_TIMEOUT = 30 * 1000; // Milliseconds
|
||||
|
||||
long CONFIRMATION_TIMEOUT = 60 * 1000; // Milliseconds
|
||||
|
||||
int CODE_BITS = 19; // Codes must fit into six decimal digits
|
||||
|
||||
int MAX_CODE = (1 << CODE_BITS) - 1; // 524287
|
||||
|
||||
int HASH_LENGTH = 48; // Bytes
|
||||
|
||||
int MAX_PUBLIC_KEY_LENGTH = 97; // Bytes
|
||||
|
||||
Reference in New Issue
Block a user