6 #ifndef __SHEPP_GLOBAL_H__
7 #define __SHEPP_GLOBAL_H__
17 #define DEFAULT_PORT 700
18 #define CLIENT_PEM SSLCERTDIR "/client.pem"
19 #define ROOT_PEM SSLCERTDIR "/root.pem"
22 #define MAX_TERM_DEV_LINE_SIZE 4096
26 #define MAX_WORD_LENGTH 2048
41 int _port = DEFAULT_PORT;
42 string _user =
"test";
43 string _passphrase =
"client passphrase";
44 string _client_pem = CLIENT_PEM;
45 string _root_pem = ROOT_PEM;
46 bool _connected =
false;
49 string _login_pw =
"";
50 string _login_new_pw =
"";
58 bool _keepalive =
false;
59 bool _ka_running =
false;
60 bool _cmd_running=
false;
61 static int _keepalive_timer = 180;
63 bool _peer_crt_check =
true;
68 string _serverSecDnsVersion =
"0";
76 printf(
"shepp version 0.0, an EPP shell client!\n");
77 printf(
"${copyright_short}$ <libepp@registro.br>\n");
78 printf(
"shepp is distributed with libepp-nicbr: "
79 "http://registro.br/epp/index-EN.html\n");
81 set<string> extensions;
84 extensions.insert(
"brorg");
85 extensions.insert(
"lacnicorg");
88 extensions.insert(
"brdomain");
89 #endif //USE_BR_DOMAINS
91 extensions.insert(
"ipnetwork");
92 extensions.insert(
"asn");
93 extensions.insert(
"asnreserve");
94 #endif //USE_IP_MANAGEMENT
95 extensions.insert(
"launch");
96 extensions.insert(
"mark");
97 extensions.insert(
"smd");
98 extensions.insert(
"rgp");
99 extensions.insert(
"secDNS");
100 extensions.insert(
"lacniccontact");
102 printf(
"extensions: ");
103 if (!extensions.empty()) {
104 set<string>::iterator ext;
105 for (ext = extensions.begin(); ext != extensions.end(); ext++) {
106 printf(
"%s ", (*ext).c_str());
113 #endif //__SHEPP_GLOBAL_H__
EPP command-line shell client Command class.
string _server
Global connection setup variables.
Definition: SheppGlobal.H:40
auto_ptr< Session > _session
Reference to session.
Definition: SheppGlobal.H:71
void about()
shepp build info
Definition: SheppGlobal.H:74
LIBEPP_NICBR_NS_USE list< SheppCommand > _commands
Global container of available commands.
Definition: SheppGlobal.H:37