pubkey-authenticator: Fix build with DEBUG_LEVEL < 1
This commit is contained in:
@@ -371,11 +371,13 @@ static status_t sign_signature_auth(private_pubkey_authenticator_t *this,
|
|||||||
{
|
{
|
||||||
if (params->scheme == SIGN_RSA_EMSA_PSS)
|
if (params->scheme == SIGN_RSA_EMSA_PSS)
|
||||||
{
|
{
|
||||||
|
#if DEBUG_LEVEL >= 1
|
||||||
rsa_pss_params_t *pss = params->params;
|
rsa_pss_params_t *pss = params->params;
|
||||||
DBG1(DBG_IKE, "authentication of '%Y' (myself) with %N_%N_SALT_%zd "
|
DBG1(DBG_IKE, "authentication of '%Y' (myself) with %N_%N_SALT_%zd "
|
||||||
"%s", id, signature_scheme_names, params->scheme,
|
"%s", id, signature_scheme_names, params->scheme,
|
||||||
hash_algorithm_short_names_upper, pss->hash, pss->salt_len,
|
hash_algorithm_short_names_upper, pss->hash, pss->salt_len,
|
||||||
status == SUCCESS ? "successful" : "failed");
|
status == SUCCESS ? "successful" : "failed");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -573,7 +575,7 @@ METHOD(authenticator_t, process, status_t,
|
|||||||
key_type_t key_type = KEY_ECDSA;
|
key_type_t key_type = KEY_ECDSA;
|
||||||
signature_params_t *params;
|
signature_params_t *params;
|
||||||
status_t status = NOT_FOUND;
|
status_t status = NOT_FOUND;
|
||||||
const char *reason = "unsupported";
|
const char *reason DBG_UNUSED = "unsupported";
|
||||||
bool online;
|
bool online;
|
||||||
|
|
||||||
auth_payload = (auth_payload_t*)message->get_payload(message, PLV2_AUTH);
|
auth_payload = (auth_payload_t*)message->get_payload(message, PLV2_AUTH);
|
||||||
@@ -647,10 +649,12 @@ METHOD(authenticator_t, process, status_t,
|
|||||||
}
|
}
|
||||||
else if (params->scheme == SIGN_RSA_EMSA_PSS)
|
else if (params->scheme == SIGN_RSA_EMSA_PSS)
|
||||||
{
|
{
|
||||||
|
#if DEBUG_LEVEL >= 1
|
||||||
rsa_pss_params_t *pss = params->params;
|
rsa_pss_params_t *pss = params->params;
|
||||||
DBG1(DBG_IKE, "authentication of '%Y' with %N_%N_SALT_%zd "
|
DBG1(DBG_IKE, "authentication of '%Y' with %N_%N_SALT_%zd "
|
||||||
"successful", id, signature_scheme_names, params->scheme,
|
"successful", id, signature_scheme_names, params->scheme,
|
||||||
hash_algorithm_short_names_upper, pss->hash, pss->salt_len);
|
hash_algorithm_short_names_upper, pss->hash, pss->salt_len);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user