1#ifndef MPDC_RESOURCES_H
2#define MPDC_RESOURCES_H
9#define MPDC_APPLICATION_MESSAGE_STRING_DEPTH 167
10#define MPDC_APPLICATION_MESSAGE_STRING_SIZE 128
11#define MPDC_APPLICATION_COMMAND_STRING_DEPTH 10
12#define MPDC_APPLICATION_COMMAND_STRING_SIZE 64
13#define MPDC_APPLICATION_CONSOLE_MODE_STRING_DEPTH 14
14#define MPDC_APPLICATION_CONSOLE_MODE_STRING_SIZE 23
15#define MPDC_APPLICATION_HELP_STRING_DEPTH 48
16#define MPDC_APPLICATION_HELP_STRING_SIZE 128
18static const char MPDC_APPLICATION_MESSAGE_STRINGS[MPDC_APPLICATION_MESSAGE_STRING_DEPTH][MPDC_APPLICATION_MESSAGE_STRING_SIZE] =
20 "The command was not recognized.",
21 "The system will be erased, including configuration and log files, do you want to proceed Y | N",
22 "The user configuration will be erased, do you want to proceed Y | N",
23 "The log files will be erased, do you want to proceed Y | N",
24 "The user is not authorized. Press any key to terminate the application.",
25 "Login has exceeded maximum retries. Press any key to terminate the application.",
26 "The quit command has been entered. Press any key to terminate the application.",
27 "Activity logging has been disabled.",
28 "Activity logging has been enabled.",
29 "User authentication has failed. Press any key to terminate the application.",
30 "The operation was aborted by the user.",
31 "System reset : The application log and configuration have been erased.",
32 "System reset : The application log and configuration have been erased.",
33 "The log file has been erased.",
34 "The retry setting is invaid; valid retry range is between one and five[1-5] login attempts.",
35 "The timeout setting is invalid; valid timeout setting is between one and sixty[1-60] minutes.",
36 "The domain name setting is invalid; valid domain name length is between two and thirty[2-32] characters.",
37 "The hostname setting is invalid; valid hostname length is between two and thirty[2-32] characters.",
38 "Printing configuration details : ",
39 "Printing connection details : ",
41 "The log file is empty.",
42 "Running for the first time; please set the applications device name, username and password.",
43 "Please choose a user name, minimum 6 characters, to a maximum 128 characters.",
44 "Password must be 8-128 characters long[a-z, A-Z], at least 1 number, and 1 symbol[0-9][!#$ & '()*+,_./].",
45 "The user name and password have been set.",
46 "Please enter the user name : ",
47 "The user name entered is not recognized.",
48 "Please enter the password : ",
49 "The password entered is invalid.",
50 "Please enter the device name, minimum 2 characters, to a maximum of 16 characters",
51 "The device name has been set.",
52 "The device name is invalid.",
53 "Enter the IPv4 or IPv6 address of the host name.",
54 "No public key is associated with that address.Enter the encoded public key.",
55 "Connecting to the server...",
56 "Connection attempt failed! The server is unreachable.",
57 "The host has entered server mode. Type quit to exit server mode.",
58 "The listener failed to initialize. The host could not enter the listening state.",
59 "The listener has initialized : The server is now in the listening state.",
60 "Generating the public/private signature key-pair.",
61 "The certificate could not be generated.",
62 "The public key was saved to: ",
63 "The signature key-pair already exists, do you want to overwite it ? Y | N",
64 "The operation was cancelled by the user.",
65 "Enter the path to the remote hosts public key.",
66 "Invalid path, could not find the hosts public key.",
67 "Client disconnected from the remote host successfully.",
68 "Connection attempt failed! Could not connect to the remote server.",
69 "The IP address format was invalid! Enter a valid address format, ex.n.n.n.n",
70 "Warning! The local certificate exists, do you want to overwite it ? Y | N",
71 "Cannot delete an active certificate; revoke the certificate before deleting the file.",
72 "The console timeout period has expired, set to user mode.",
73 "Enter the full path to the RDS root certificate.",
74 "The root certificate has been stored successfully.",
75 "Could not find the certificate, or the file is invalid, please enter the path again.",
76 "The root certificate has been copied successfully.",
77 "The root certificate could not be copied, check the path and permissions.",
78 "The certificate signing failed. File permissions, the certificate is invalid, or has incompatible parameters.",
79 "The certificate was signed successfully.",
80 "The command input was invalid, operation failed.",
81 "The network join request has failed, check the address.",
82 "The network join request has succeeded.",
83 "The node is joined to an existing network, rejoin the dla ? Y | N",
84 "The certificate announce operation has failed, check the path.",
85 "The certificate has been announced to the network.",
86 "The topology convergence has been processed by the network.",
87 "The topology update has failed, memory or signing failure.",
88 "The network time is invalid or has substantial delay.",
89 "The root, dla, or agent certificate could not be found.",
90 "The signature could not be generated for a message.",
91 "The network resign has failed, check the address.",
92 "This node has resigned from the network.",
93 "The certificate revocation has failed, check the path.",
94 "The certificate revocation has been broadcast to the network.",
95 "The address is not routable, or not properly formed.",
96 "The server ip address has been changed, restart the server for changes to take effect.",
97 "Do you want to change the ip address ? Y | N",
98 "The auto-detected ip address is : ",
99 "Enter a routable IPv4 or IPv6 address.",
100 "The server service could not be started, check for a valid signed certificate and network membership.",
101 "The server service was started successfully.",
102 "The server service has been stopped, use the command 'service start' to run.",
103 "The server service has been paused, use the command 'service resume' to restart.",
104 "The server service could not be resumed, use the command 'service start' to run.",
105 "The server service has resumed successfully.",
106 "The server certificate already exists, do you want to replace it ? Y | N",
107 "Changing the server name or the domain name requires recreating the certificate, do you want to proceed ? Y | N",
108 "The server certificate could not be updated, check the path and root signature",
109 "The server certificate was updated successfully",
110 "The server certificate could not be exported, check the path",
111 "The server certificate was exported successfully",
112 "Do you want to change the servers domain name ? Y | N",
113 "The current domain name string : ",
114 "The server could not update the domain name.",
115 "The domain name has been updated successfully.",
116 "The days entered exceeds the root expiration period; days reduced to: ",
117 "The certificate must be signed by the RDS server before joining the network.",
118 "The command is not supported on this server or version.",
119 "The network address is invalid or not set.",
120 "Received a network error from remote host : ",
121 "A network error occured with remote host : ",
122 "The query name format is invalid, use the remote device name, ex. MAS1",
123 "The device is offline or unknown to the DLA",
124 "The device is online and available for connection",
125 "The certificate was not found or is not signed.",
126 "Provide the full path to the signed DLA certificate.",
127 "Provide the IP address of the DLA server.",
128 "The DLA IP address format is invalid.",
129 "Restore the configuration files from the last backup?",
130 "The configuration files have been backed up.",
131 "The proxy service could not sign the certificate.",
132 "The certificate was signed by the proxy service.",
133 " - The server address has been changed by the administrator ",
134 " - The domain name was changed to ",
135 " - The host name was changed to ",
136 " - Local user logged in: ",
137 " - Log file created: ",
138 " - Logging has been disabled on ",
139 " - Logging has been enabled on ",
140 "MPDC version 1.0a, created September 2022.",
141 " - The login retries setting was changed to ",
142 " - The session timeout was changed to ",
143 " - Added user configuration: ",
144 " - The server state has been restored ",
145 " - The server state has been backed up ",
146 " - The server service was paused ",
147 " - The server service was resumed ",
148 " - The server service was started ",
149 " - The server service was stopped ",
150 " - The network mfk exchange has failed ",
151 " - The network mfk exchange has succeeded ",
152 " - The server generated a replacement certificate: ",
153 " - The certificate generation has failed. ",
154 " - The certificate generation has succeeded: ",
155 " - The certificate announcement has succeeded ",
156 " - The certificate revocation has failed ",
157 " - The converce call has returned a failure ",
158 " - The remote host has converged and updated its certificate ",
159 " - The topological update request failed or was denied ",
160 " - The topological update request was sent ",
161 " - Memory allocation failure, connection aborted to host ",
162 " - Connection terminated by remote host ",
163 " - The configuration was erased by user: ",
164 " - The network session has timed out ",
165 " - The network dla join request was denied ",
166 " - The network dla join request has succeeded ",
167 " - The key fragment exchange has failed ",
168 " - The key fragment exchange has succeeded ",
169 " - The host resignation from the network failed ",
170 " - The host has resigned from the network ",
171 " - The remote device sent an invalid or unknown request ",
172 " - The remote device responded with an error code ",
173 " - Remote connection failed at ",
174 " - Connected to remote host: ",
175 " - The node query failed ",
176 " - The device answered a node query successfully ",
177 " - The node was not found in the topological database ",
178 " - The certificate announcement has failed ",
179 " - The remote certificate could not be signed ",
180 " - The remote certificate was signed successfully ",
181 " - The remote host resignation from the network failed ",
182 " - The remote host has resigned from the network ",
183 "Do you want to revoke this device and remove it from the database?",
184 "Provide the IP address of the RDS server.",
185 "The RDS IP address format is invalid.",
186 "The server service must be started before issuing this command."
189static const char MPDC_APPLICATION_HELP_STRINGS[MPDC_APPLICATION_HELP_STRING_DEPTH][MPDC_APPLICATION_HELP_STRING_SIZE] =
193 "address[ip-address] -Assign the server's network interface address; requires a restart.",
194 "certificate -enter the certificate command interface",
195 "clear all -requires auth challenge, deletes everything",
196 "clear config -requires auth challenge, deletes public key cache",
197 "clear log -requires auth challenge, clears the logs",
198 "exit -exits to enable mode",
199 "help -config mode command help",
200 "log - [enable | disable] log command and connection activity",
201 "name domain[domain-name] -fully qualified domain -name",
202 "name host[host-name]",
203 "retries[count] -authentication retries, default is 2",
204 "server -enter server configuration mode",
205 "timeout[seconds] -session default 120",
207 "clear -clear the screen",
208 "config -enter configuration mode",
209 "exit -exits to user mode",
210 "help -enable mode command help",
211 "quit -closes the application",
212 "show config -show configuration",
213 "show log -show the user activity log",
215 "enable -triggers authentication challenge",
216 "help -user mode command help",
217 "quit -closes the application",
219 "exit -exits to config mode",
220 "export[certificate-directory] -exports the local certificate to a file",
221 "generate[period-days] -generate the public certificate",
222 "help -certificate mode command help",
223 "import[certificate-path] -imports a certificate from a file",
224 "print -print a certificate",
226 "backup -save a backup of the agent state",
227 "connect [canonical-name] -connects to an application server or client",
228 "exit -exits to config mode",
229 "help -server mode command help",
230 "list -display the topological database",
231 "register [ip-address] -register agent with the DLA",
232 "resign [ip-address] -resign from the DLA",
233 "restore -restore the device state from backup",
234 "service -[start|stop|pause|resume] the server service",
236 "query [canonical-name] -Request node information for a device from the DLA",
237 "help -connect mode command help",
238 "quit -quits the remote server connection",
240 "revoke [certificate-path] -revoke the local device certificate",
242 "announce [certificate-path, ip-address] -announce an agent to servers in the network",
243 "converge -announce a topology update to the network",
244 "revoke [certificate-path] -revoke an agent's credentials by announcing it to the network",
245 "sproxy [certificate-path] -send a remote certificate signing request to the RDS server",
247 "sign [certificate-path] -sign a child certificate"
250static const char MPDC_APPLICATION_MODE_STRINGS[MPDC_APPLICATION_CONSOLE_MODE_STRING_DEPTH][MPDC_APPLICATION_CONSOLE_MODE_STRING_SIZE] =
256 "(config-certificate)# ",
259 "(login-password)> ",
260 "(login-username)> ",
261 "(login-devicename)> ",
264 "(login-rootpath)> ",
265 "(server-connected)# "