NetBurner 3.1
SSH/SshServerUserKey/src/nvsettings.h
1 /* Revision: 2.8.7 */
2 
3 /******************************************************************************
4 * Copyright 1998-2018 NetBurner, Inc. ALL RIGHTS RESERVED
5 *
6 * Permission is hereby granted to purchasers of NetBurner Hardware to use or
7 * modify this computer program for any use as long as the resultant program
8 * is only executed on NetBurner provided hardware.
9 *
10 * No other rights to use this program or its derivatives in part or in
11 * whole are granted.
12 *
13 * It may be possible to license this or other NetBurner software for use on
14 * non-NetBurner Hardware. Contact sales@Netburner.com for more information.
15 *
16 * NetBurner makes no representation or warranties with respect to the
17 * performance of this computer program, and specifically disclaims any
18 * responsibility for any damages, special or consequential, connected with
19 * the use of this program.
20 *
21 * NetBurner
22 * 5405 Morehouse Dr.
23 * San Diego, CA 92121
24 * www.netburner.com
25 ******************************************************************************/
26 
27 
28 #ifndef NVSETTINGS_H_
29 #define NVSETTINGS_H_
30 
31 #include <basictypes.h>
32 #include "nbfactory.h"
33 
34 
35 // Configuration verify key (increment if data changed, added, reorganized)
36 #define NB_FACTORY_VERIFY_KEY ( 0x5e545064 )
37 #define NTP_NAME_LENGTH ( 35 )
38 #define DEVICE_NAME_LENGTH ( 15 )
39 
40 
41 struct NV_SettingsStruct
42 {
43  char DeviceName[ ( DEVICE_NAME_LENGTH + 1 ) ];
44  char NTPName[ NTP_NAME_LENGTH+ 1 ];
45  //IPADDR NTP_Addr;
46 
47  /* SSH key source and lengths (default and user installed) */
48  uint8_t SshKeyRsaSource; // Library default, app default, or user installed
49  uint16_t SshKeyRsaLength;
50  uint8_t SshKeyDsaSource; // Library default, app default, or user installed
51  uint16_t SshKeyDsaLength;
52 
53  /* Version verification key */
54  uint32_t VerifyKey;
55 };
56 
57 
58 extern void CheckNVSettings( BOOL returnToFactory );
59 
60 
61 #endif /* NVSETTINGS_H_ */
62 
63 
64 
65 
void CheckNVSettings()
Definition: webif.cpp:40