Limit length of Domain and MessageKey fields.

This commit is contained in:
Arthur Britto
2013-01-16 19:48:22 -08:00
parent 29ead4e3e0
commit 2775d76df3
4 changed files with 28 additions and 7 deletions

View File

@@ -28,6 +28,9 @@
#define DEFAULT_VALIDATORS_SITE ""
#define VALIDATORS_FILE_NAME "validators.txt"
const int DOMAIN_BYTES_MAX = 256;
const int PUBLIC_BYTES_MAX = 2048; // Maximum bytes for an account public key.
const int SYSTEM_PEER_PORT = 6561;
const int SYSTEM_WEBSOCKET_PORT = 6562;
const int SYSTEM_WEBSOCKET_PUBLIC_PORT = 6563; // XXX Going away.