增加和kni通信接口
This commit is contained in:
@@ -39,7 +39,7 @@ struct key_keeper
|
||||
void* logger;
|
||||
X509* trusted_ca_cert;
|
||||
EVP_PKEY* trusted_ca_key;
|
||||
|
||||
|
||||
X509* untrusted_ca_cert;
|
||||
EVP_PKEY* untrusted_ca_key;
|
||||
unsigned int no_cache;
|
||||
@@ -385,7 +385,7 @@ static void certstore_rpc_on_succ(void* result, void* user)
|
||||
{
|
||||
key_keeper_free_keyring((struct keyring*)kyr);
|
||||
}
|
||||
}
|
||||
}
|
||||
ctx->ref_keeper->stat.new_issue++;
|
||||
promise_success(p, (void*)kyr);
|
||||
key_keeper_free_keyring((struct keyring*)kyr);
|
||||
@@ -492,7 +492,7 @@ struct key_keeper* key_keeper_init(const char * profile, const char* section, vo
|
||||
{
|
||||
TFE_LOG_ERROR(logger, "Load Trusted Root CA %s failed.", keeper->trusted_ca_path);
|
||||
goto error_out;
|
||||
}
|
||||
}
|
||||
keeper->untrusted_ca_cert=ssl_x509_load(keeper->untrusted_ca_path);
|
||||
keeper->untrusted_ca_key=ssl_key_load(keeper->untrusted_ca_path);
|
||||
if(keeper->untrusted_ca_cert==NULL||keeper->trusted_ca_key==NULL)
|
||||
@@ -503,13 +503,13 @@ struct key_keeper* key_keeper_init(const char * profile, const char* section, vo
|
||||
}
|
||||
TFE_LOG_INFO(logger, "MESA_load_profile, [%s]: mode:%s, no_cache:%u ,ca_path:%s, untrusted_ca_path:%s, cert_store_host:%s, cert_store_port:%d, hash_slot_size:%d, hash_expire_seconds:%d",
|
||||
section, tmp, keeper->no_cache, keeper->trusted_ca_path, keeper->untrusted_ca_path, keeper->cert_store_host, keeper->cert_store_port, keeper->hash_slot_size, keeper->hash_expire_seconds);
|
||||
|
||||
|
||||
return keeper;
|
||||
|
||||
|
||||
error_out:
|
||||
key_keeper_destroy(keeper);
|
||||
return NULL;
|
||||
|
||||
|
||||
}
|
||||
|
||||
struct keyring* key_keeper_release_keyring(future_result_t* result)
|
||||
@@ -644,7 +644,7 @@ void key_keeper_async_ask(struct future * f, struct key_keeper * keeper, const c
|
||||
key_keeper_free_keyring((struct keyring*)kyr);
|
||||
}
|
||||
}
|
||||
promise_success(p, (void*)kyr);
|
||||
promise_success(p, (void*)kyr);
|
||||
keeper->stat.new_issue++;
|
||||
key_keeper_free_keyring((struct keyring*)kyr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user