Accept any six-digit invitation/confirmation code.

Rejecting codes greater than 2^19 - 1 creates a confusing user
experience.
This commit is contained in:
akwizgran
2013-03-11 10:30:20 +00:00
parent 1ece8a05fb
commit 4d590f4533
2 changed files with 1 additions and 5 deletions

View File

@@ -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