opsick
|
Opsick constants (pre-processor #defines). More...
Go to the source code of this file.
Opsick constants (pre-processor #defines).
#define OPSICK_2FA_DIGITS 6 |
Standard 2FA token digit count of 6 digits.
#define OPSICK_2FA_HASH_ALGO 0 |
Standard 2FA token HMAC hash algo SHA-1.
#define OPSICK_2FA_STEPS 30 |
Standard 2FA token stepcount of 30 seconds.
#define OPSICK_DEFAULT_API_KEY_ALGO 0 |
Default API key algo ( currently 0
which is ed25519
).
#define OPSICK_DEFAULT_API_KEY_PUBLIC_HEXSTR "F407F5E089CE64002EB417FB683A7302287BE84108BB8E62FD8ED647DC62805C" |
Default API Key (public ed25519 key as hex-encoded string).
#define OPSICK_DEFAULT_ARGON2_MEMORY_COST_KiB (1024 * 64) |
Default Argon2 memory cost parameter (in KiB).
#define OPSICK_DEFAULT_ARGON2_PARALLELISM 2 |
Default Argon2 parallelism setting.
#define OPSICK_DEFAULT_ARGON2_TIME_COST 16 |
Default Argon2 time cost parameter (iterations).
#define OPSICK_DEFAULT_KEY_REFRESH_INTERVAL_HOURS 72 |
Default key regeneration interval in hours.
#define OPSICK_DEFAULT_LOG 0 |
Boolean setting that determines whether or not Opsick should log all HTTP-requests by default.
0
means false
and any non-zero value means true
#define OPSICK_DEFAULT_MAX_BODY_SIZE (1024 * 1024 * 16) |
Default body size limit in bytes for all endpoints.
#define OPSICK_DEFAULT_MAX_CLIENTS 0 |
Default max client count limit. 0
means unlimited.
#define OPSICK_DEFAULT_MAX_HEADER_SIZE (1024 * 16) |
Default header size limit in bytes for all endpoints.
#define OPSICK_DEFAULT_MAX_USERS 0 |
Default maximum users limit for the Opsick instance (0
means unlimited users).
#define OPSICK_DEFAULT_PORT 6677 |
Default port to which Opsick should listen to.
#define OPSICK_DEFAULT_THREADS 2 |
Default amount of threads that the Opsick instance should use to serve its endpoints.
#define OPSICK_DEFAULT_USE_INDEX_HTML 1 |
Boolean setting for whether or not Opsick should serve the index.html
file by default.
#define OPSICK_DEFAULT_USER_CREATION_PASSWORD_ARGON2_HASH "$argon2id$v=19$m=65536,t=16,p=2$kgiReuAb6UDkBgssL08W9OoHkkDzNV++5cWzHB5fUbE$JG8ODw0sHhBuROEF3iA8w9RbrUF59UGnOz3bmkY4SAy0MzJ6tL+HG9j2ipxcvHnpZC1H6HeHJqaAb1Yqplevcw" |
Default user registration password is "opsick_registration_password"
.
#define OPSICK_FAVICON_PATH_HASH 1051445893 |
murmur3("/favicon.ico")
#define OPSICK_HOME_PATH_HASH 2818192833 |
murmur3("/")
#define OPSICK_MAX_ARGON2_PARALLELISM 16 |
Maximum amount of threads to allow for usage by Argon2.
#define OPSICK_MAX_USER_CREATION_PASSWORD_LENGTH 256 |
The maximum length of the instance's user creation endpoint password hash.
#define OPSICK_MURMUR3_SEED 133769420 |
The seed value to use for the MurmurHash v3 algo. Since all of the hash lookups are only correlated to endpoint routing, this value needn't be secret.
#define OPSICK_PASSWD_PATH_HASH 2697305887 |
murmur3("/users/passwd")
#define OPSICK_PRVKEY_PATH_HASH 944329335 |
murmur3("/users/prvkey")
#define OPSICK_PUBKEY_PATH_HASH 3855421118 |
murmur3("/pubkey")
#define OPSICK_SERVER_VERSION 100 |
Opsick current version number.
#define OPSICK_SERVER_VERSION_STR "1.0.0" |
Opsick current version number string.
#define OPSICK_STRPREALLOC_INDEX_ACTION 13 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "action".
#define OPSICK_STRPREALLOC_INDEX_BODY 6 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "body".
#define OPSICK_STRPREALLOC_INDEX_BODY_SHA512 12 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "body_sha512".
#define OPSICK_STRPREALLOC_INDEX_ED25519_SIG 0 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "ed25519-signature".
#define OPSICK_STRPREALLOC_INDEX_EXP_UTC 5 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "exp_utc".
#define OPSICK_STRPREALLOC_INDEX_EXT 11 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "ext".
#define OPSICK_STRPREALLOC_INDEX_NEW_PW 4 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "new_pw".
#define OPSICK_STRPREALLOC_INDEX_PRVKEY_CURVE448 10 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "encrypted_private_key_curve448".
#define OPSICK_STRPREALLOC_INDEX_PRVKEY_ED25519 8 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "encrypted_private_key_ed25519".
#define OPSICK_STRPREALLOC_INDEX_PUBKEY_CURVE448 9 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "public_key_curve448".
#define OPSICK_STRPREALLOC_INDEX_PUBKEY_ED25519 7 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "public_key_ed25519".
#define OPSICK_STRPREALLOC_INDEX_PW 2 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "pw".
#define OPSICK_STRPREALLOC_INDEX_TOTP 3 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "totp".
#define OPSICK_STRPREALLOC_INDEX_USER_CREATION_PW 14 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "ucpw".
#define OPSICK_STRPREALLOC_INDEX_USER_ID 1 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "user_id".
#define OPSICK_STRPREALLOC_INDEX_WWW_AUTHENTICATE_HEADER 15 |
Index to pass to opsick_get_preallocated_string() to receive back the FIOBJ string "www-authenticate".
#define OPSICK_USER2FA_PATH_HASH 2196777087 |
murmur3("/users/2fa")
#define OPSICK_USERADD_PATH_HASH 4242582731 |
murmur3("/users/create")
#define OPSICK_USERBODY_PATH_HASH 413204006 |
murmur3("/users/body")
#define OPSICK_USERCHK_PATH_HASH 4075223429 |
murmur3("/users/check")
#define OPSICK_USERDEL_PATH_HASH 1184612068 |
murmur3("/users/delete")
#define OPSICK_USEREXT_PATH_HASH 628309221 |
murmur3("/users/extend")
#define OPSICK_USERGET_PATH_HASH 456400922 |
murmur3("/users")
#define OPSICK_USERKEYS_PATH_HASH 773720762 |
murmur3("/users/keys")
#define OPSICK_USERKEYS_UPDATE_PATH_HASH 589266831 |
murmur3("/users/keys/update")
#define OPSICK_VERSION_PATH_HASH 692047655 |
murmur3("/version")