1.添加本地生成证书接口
[DEL]
1.删除获取本地信息文件
This commit is contained in:
fengweihao
2018-06-27 10:58:23 +08:00
parent 8cfaa483e1
commit a45c39aa78
10 changed files with 243 additions and 134 deletions

View File

@@ -11,7 +11,6 @@
#include "rt_string.h"
#include "rt_common.h"
#include "rt_util.h"
#include "rt_file.h"
#include "cert_init.h"
#include "logging.h"
@@ -19,6 +18,7 @@
struct config_bucket_t certConfig = {
.thread_nu = 1,
.days = 30,
.ca_path = "/usr/local/bin/",
.e_port = 9995,
.r_ip = "0.0.0.0",
@@ -41,6 +41,11 @@ static int load_system_config(char *config)
mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Reading the number of running threads failed");
}
xret = MESA_load_profile_uint_nodef(config, "CONFIG", "valid-days", &(rte->days));
if (xret < 0){
mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Reading the number of valid time failed");
}
xret = MESA_load_profile_string_nodef(config, "CONFIG", "ca-path", rte->ca_path, 128);
if (xret < 0){
mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Reading the CA path failure");