添加缓存时间判断
修改编译错误
This commit is contained in:
@@ -484,6 +484,10 @@ struct key_keeper* key_keeper_init(const char * profile, const char* section, vo
|
||||
|
||||
MESA_load_profile_int_def(profile, section, "cert_expire_time", &(keeper->cert_expire_time), 24);
|
||||
keeper->cert_cache = create_hash_table(keeper->hash_slot_size, keeper->hash_expire_seconds);
|
||||
if (keeper->cert_expire_time != -1)
|
||||
{
|
||||
keeper->hash_expire_seconds = MIN(keeper->cert_expire_time * 1800, (int)(keeper->hash_expire_seconds));
|
||||
}
|
||||
if(0==strcmp(keeper->untrusted_ca_path, keeper->trusted_ca_path))
|
||||
{
|
||||
TFE_LOG_ERROR(logger, "Warnning: Trusted and Untrusted Root CA share the same path %s .", keeper->trusted_ca_path);
|
||||
|
||||
Reference in New Issue
Block a user