NetBurner 3.5.0
PDF Version
 
SSL/SslClientVerifyPeerEffs/src/serialburnerdata.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5#ifndef _SERIALBURNERDATA_H_
6#define _SERIALBURNERDATA_H_
7
8#include <config_obj.h>
9#include <netbios.h>
10
11extern MonitorRecord monitor_config;
12
13#define DEVICE_NAME_LENGTH (15)
14
21#define SERIAL_BURNER_CERTIFICATE_SIZE_MAX ((5 * 1024) - 1)
22#define SERIAL_BURNER_CERTIFICATE_SIZE_MAX_PEM ((5 * 1024) - 1)
23
24/* Certificate and key status */
25#define SERIAL_BURNER_LIBRARY_DEFAULT ((uint8_t)0x00)
26#define SERIAL_BURNER_DEFAULT ((uint8_t)0x01)
27#define SERIAL_BURNER_USER_INSTALLED ((uint8_t)0x02)
28
35#define SERIAL_BURNER_KEY_SIZE_MAX_PEM ((4 * 1024) - 1)
36
40#define boot_iprintf(...) \
41 { \
42 if (monitor_config.Quiet == 0) \
43 { \
44 iprintf("%s : ", NV_Settings.DeviceName); \
45 iprintf(__VA_ARGS__); \
46 iprintf("\r\n"); \
47 } \
48 }
49
53#define debug_iprintf(...) \
54 { \
55 if (bShowDebug == true) \
56 { \
57 iprintf("%s : ", NV_Settings.DeviceName); \
58 iprintf(__VA_ARGS__); \
59 iprintf("\r\n"); \
60 } \
61 }
62
83{
84 /* NetBurner address configuration */
85 char DeviceName[(DEVICE_NAME_LENGTH + 1)];
86 char NetBIOSName[(NETBIOS_NAME_SIZE_IN_CHARS + 1)];
87
88 /* SSL certificate and keys file lengths */
89 uint8_t SslCertificateSource;
90 uint16_t SslCertificateLength;
91 uint16_t SslKeyLength;
92
93 /* Version verification key */
94 uint32_t VerifyKey;
95 /* Flash File System Version verification key */
96 uint32_t STDEFFSVerifyKey;
97};
98
99/* User parameters */
100extern NV_SettingsStruct NV_Settings;
101
102/* User parameters change candidate */
103extern NV_SettingsStruct gNV_SettingsChangeCopy;
104
105/* User parameters change flag */
106extern volatile bool gChangedUserParameters;
107
108/* Debugging flag */
109extern bool bShowDebug;
110
111/* Register a post */
112extern void RegisterPost(void);
113
114extern void CheckNVSettings(bool returnToFactory = false);
115
116extern void SetAndSaveDefaults(void);
117
118/* For processing hexadecimal break key value */
119extern char GetHexByte(const char *cp);
120
121#endif /* _SERIALBURNERDATA_H_ */
Configuration object header file.
Configuration Settings.
Definition Parallax/src/nvsettings.h:13