- Add test framework (test.h) with assertion macros and test runner - Add comprehensive unit tests (test_network.c) covering: - Packet parsing and error handling - User registration and authentication - Room operations (create, join, leave, delete, list) - Direct messaging functionality - Message broadcasting - Password hashing - Update Makefile with 'make test' target - Rewrite PROTOCOL file with complete specification: - All 14 packet types with data layouts - All error codes with descriptions - Typical usage flows
7 lines
199 B
C
7 lines
199 B
C
/* See LICENSE file for copyright and license details. */
|
|
|
|
#define CONFIG_ALLOW_REGISTER true
|
|
|
|
#define CONFIG_CERT_FILE "cert.pem"
|
|
#define CONFIG_KEY_FILE "key.pem"
|
|
#define CONFIG_DB_PATH "asfur.db"
|