|
UDIF: Universal Digital Identification Framework 1.1.0.0a (A1)
A quantum-secure cryptographic identification
|
The UDIF server state. More...
#include <server.h>
The UDIF server state.
Central application state shared by all UDIF entity types.
This structure holds all state information used by the UDIF server. It includes the command prompt, network domain and host names, certificate issuer, IP address, log path, username, key chain, signing key, file names and paths for various configuration files, certificate structures, topology list, current action, console mode, network port, server type designation, timeout value, number of retries, and flags indicating whether the server has joined a network or is logging host activity.
Allocated on the stack inside each server's start_server() function and passed by pointer to all support functions. Never heap-allocated.
Field groups: Console strings — cmdprompt, hostname, domain, localip, logpath, username Resource pointers — banner, srvname, wtitle, promptdef, aplpath, cfgname, certname, keynamepub, keynamepri (all static, never freed) UDIF identity — selfcert, parentcert, rootcert, selfkeypair QSTP transport — qstprootcert, qstpserverkey (NULL for UA) MCEL ledger — mcelmgr (NULL for UA) Tunnel table — tunnels (shared with entity layer) Anchor cadence — nextanchorsecs Console state — action, mode, role Loop status — cmdloopstatus, srvloopstatus Configuration scalars — port, timeout, retries, joined, loghost
| udif_command_actions action |
The current command action.
Current parsed command action.
| udif_child_certificate ads |
The ADC (Device-Level Authority) certificate.
| const char * aplpath |
The application path.
Application subdirectory path (e.g. "\\Root").
| const char * banner |
The application banner text.
Multi-line startup banner text.
| const char* certname |
UDIF certificate file name (e.g. "udif-root.cert").
| const char * cfgname |
The configuration file name.
Config file name (e.g. "\\userconfig.rtcfg").
| udif_server_loop_status cmdloopstatus |
Command loop status.
| char cmdprompt |
The current command prompt string.
Current command prompt string.
| char domain |
The network domain name.
Network domain name.
| char hostname |
The server hostname.
Server host name.
| char issuer[UDIF_CERTIFICATE_ISSUER_SIZE] |
The certificate issuer string.
| bool joined |
True if the server has joined the network.
True once enrolled with parent.
| uint8_t* kchain |
Pointer to the key chain array.
| const char* keynamepri |
UDIF private key file name (e.g. "udif-root.key").
| const char* keynamepub |
QSTP server key file name (e.g. "qstp-server.key").
| char localip |
The server's local IP address.
Bound IPv4 address string.
| bool loghost |
True if host logging is enabled.
True when activity logging is enabled.
| char logpath |
The full path to the log file.
Full path to the activity log file.
| udif_mcel_manager* mcelmgr |
Ledger manager; NULL for UA.
| udif_console_modes mode |
The current console mode.
Current console mode.
| uint64_t nextanchorsecs |
UTC epoch at which to push the next anchor.
| udif_certificate parentcert |
Parent entity's certificate (zeroed for Root).
| uint16_t port |
The network port number.
Network listen port.
| const char* prikeyname |
The private key file name.
| const char * promptdef |
The default prompt string.
Default prompt string (e.g. "Root> ").
| const char* pubkeyname |
The public key file name.
| qstp_root_certificate qstprootcert |
QSTP root certificate (loaded from file).
| qstp_root_signature_key qstprootkey |
QSTP root signing key (populated for Root role only).
| qstp_server_signature_key qstpserverkey |
QSTP server signing key (populated for listeners).
| uint8_t retries |
The allowed number of password retries.
Max login retries.
| udif_roles role |
Entity role (governs help and cert generation).
| udif_root_certificate root |
The root certificate.
| udif_certificate rootcert |
Root certificate.
| udif_certificate selfcert |
This entity's UDIF certificate.
| udif_signature_keypair selfkeypair |
Long-term signing keypair.
| uint8_t* sigkey |
Pointer to the secret signing key.
| udif_server_loop_status srvloopstatus |
Network service loop status.
| const char * srvname |
The server name.
Short server name (e.g. "Root").
| udif_network_designations srvtype |
The server type designation.
| uint16_t timeout |
The console timeout in minutes.
Console idle timeout in minutes.
| udif_topology_list_state tlist |
The topology list state.
| const char* topname |
The topology file name.
| udif_tunnel_table tunnels |
Active tunnel table.
| char username |
The username used for login.
Operator user name (set on first run).
| const char * wtitle |
The window title.
Window title (e.g. "UDIF Root Authority v1.0").