Skip to content
Snippets Groups Projects
Commit 41afa490 authored by Moe Jette's avatar Moe Jette
Browse files

Print error message if crypto sign or verify fails for greater clarity

parent 23eba27d
No related branches found
No related tags found
No related merge requests found
......@@ -1465,8 +1465,11 @@ _slurm_cred_sign(slurm_cred_ctx_t ctx, slurm_cred_t cred)
&cred->signature, &cred->siglen);
free_buf(buffer);
if (rc)
if (rc) {
error("Credential sign: %s",
(*(g_crypto_context->ops.crypto_str_error))());
return SLURM_ERROR;
}
return SLURM_SUCCESS;
}
......@@ -1491,8 +1494,8 @@ _slurm_cred_verify_signature(slurm_cred_ctx_t ctx, slurm_cred_t cred)
free_buf(buffer);
if (rc) {
info("Credential signature check: %s",
(*(g_crypto_context->ops.crypto_str_error))());
error("Credential signature check: %s",
(*(g_crypto_context->ops.crypto_str_error))());
return SLURM_ERROR;
}
return SLURM_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment