forked from lei.chen/myxce
security communication with openssl and simplify netio
This commit is contained in:
parent
2a7b7c39bb
commit
8f796b3109
20 changed files with 1176 additions and 922 deletions
|
|
@ -89,6 +89,8 @@ int main(int argc, char* argv[])
|
|||
int logsize = 64 * 1024 * 1024;
|
||||
int logcount = 10;
|
||||
char conf_file[XCE_MAXPATH_LEN + 1];
|
||||
char key_file[XCE_MAXPATH_LEN + 1];
|
||||
char cert_file[XCE_MAXPATH_LEN + 1];
|
||||
char myname[XCE_MAXNAME_LEN + 1];
|
||||
|
||||
memset(&arguments, 0x0, sizeof(arguments));
|
||||
|
|
@ -124,9 +126,13 @@ int main(int argc, char* argv[])
|
|||
memset(&conf_file, 0x0, sizeof(conf_file));
|
||||
snprintf(conf_file, XCE_MAXPATH_LEN, "%s/%s/conf/current_config",
|
||||
arguments.workdir, myname);
|
||||
snprintf(key_file, XCE_MAXPATH_LEN, "%s/certs/xce.key", arguments.workdir);
|
||||
snprintf(cert_file, XCE_MAXPATH_LEN, "%s/certs/xce.crt", arguments.workdir);
|
||||
|
||||
myconf.cluster_config = NULL;
|
||||
myconf.conffile = conf_file;
|
||||
myconf.certfile = cert_file;
|
||||
myconf.keyfile = key_file;
|
||||
|
||||
myapp_run(&myconf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue