this->public.send_queue = send_queue_create();
this->public.connections = (connection_store_t*)local_connection_store_create();
this->public.policies = (policy_store_t*)local_policy_store_create();
- this->public.credentials = (credential_store_t*)(cred_store = local_credential_store_create());
+ this->public.credentials = (credential_store_t*)(cred_store = local_credential_store_create(strict));
/* load keys & certs */
cred_store->load_ca_certificates(cred_store, CA_CERTIFICATE_DIR);
&preshared_secret);
if (status != SUCCESS)
{
- this->logger->log(this->logger, ERROR|LEVEL1, "no shared secret found for '%s'",
+ this->logger->log(this->logger, ERROR, "no shared secret found for '%s'",
other_id->get_string(other_id));
other_id->destroy(other_id);
return status;
other_id);
if (public_key == NULL)
{
- this->logger->log(this->logger, ERROR|LEVEL1, "no public key found for '%s'",
+ this->logger->log(this->logger, ERROR, "no public key found for '%s'",
other_id->get_string(other_id));
other_id->destroy(other_id);
return NOT_FOUND;
identification_t *my_id = my_id_payload->get_identification(my_id_payload);
- this->logger->log(this->logger, CONTROL, "looking for public key belonging to '%s'",
+ this->logger->log(this->logger, CONTROL|LEVEL1, "looking for public key belonging to '%s'",
my_id->get_string(my_id));
my_pubkey = charon->credentials->get_rsa_public_key(charon->credentials, my_id);
char buf[BUF_LEN];
chunk_to_hex(buf, BUF_LEN, my_pubkey->get_keyid(my_pubkey));
- this->logger->log(this->logger, ERROR, "no private key found with keyid %s",
- buf);
+ this->logger->log(this->logger, ERROR, "no private key found with for %s with keyid %s",
+ my_id->get_string(my_id), buf);
goto end_rsa;
}
this->logger->log(this->logger, CONTROL|LEVEL2, "matching private key found");