cleanups in kernel interface code
added proper traffic selector to string conversion some cleanups here & there
This commit is contained in:
@@ -391,7 +391,7 @@ static void import_certificate(private_ike_auth_t *this, cert_payload_t *cert_pa
|
||||
encoding = cert_payload->get_cert_encoding(cert_payload);
|
||||
if (encoding != CERT_X509_SIGNATURE)
|
||||
{
|
||||
this->logger->log(this->logger, CONTROL,
|
||||
this->logger->log(this->logger, ERROR,
|
||||
"certificate payload %s not supported, ignored",
|
||||
enum_name(&cert_encoding_names, encoding));
|
||||
return;
|
||||
@@ -401,7 +401,7 @@ static void import_certificate(private_ike_auth_t *this, cert_payload_t *cert_pa
|
||||
if (charon->credentials->verify(charon->credentials, cert, &found))
|
||||
{
|
||||
this->logger->log(this->logger, CONTROL|LEVEL1,
|
||||
"end entity certificate is trusted");
|
||||
"received end entity certificate is trusted, added to store");
|
||||
if (found)
|
||||
{
|
||||
cert->destroy(cert);
|
||||
@@ -413,8 +413,8 @@ static void import_certificate(private_ike_auth_t *this, cert_payload_t *cert_pa
|
||||
}
|
||||
else
|
||||
{
|
||||
this->logger->log(this->logger, ERROR,
|
||||
"end entity certificate is not trusted");
|
||||
this->logger->log(this->logger, CONTROL,
|
||||
"received end entity certificate is not trusted, discarded");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ static chunk_t generate_natd_hash(private_ike_sa_init_t *this,
|
||||
this->nat_hasher->allocate_hash(this->nat_hasher, natd_string, &natd_hash);
|
||||
|
||||
sprintf(buf, "natd_hash(%016llx %016llx %s:%d) == SHA1(", spi_i, spi_r,
|
||||
host->get_address(host), host->get_port(host));
|
||||
host->get_string(host), host->get_port(host));
|
||||
chunk_to_hex(buf + strlen(buf), sizeof(buf) - strlen(buf), natd_string);
|
||||
strcat(buf, ") == ");
|
||||
chunk_to_hex(buf + strlen(buf), sizeof(buf) - strlen(buf), natd_hash);
|
||||
@@ -520,7 +520,7 @@ static status_t get_response(private_ike_sa_init_t *this,
|
||||
|
||||
this->logger->log(this->logger, AUDIT,
|
||||
"no connection for hosts %s...%s found, deleting IKE_SA",
|
||||
me->get_address(me), other->get_address(other));
|
||||
me->get_string(me), other->get_string(other));
|
||||
return DESTROY_ME;
|
||||
}
|
||||
this->ike_sa->set_connection(this->ike_sa, this->connection);
|
||||
|
||||
Reference in New Issue
Block a user