Skip to content

Commit

Permalink
Missed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 6, 2019
1 parent 70842aa commit a40f0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_cipher/rlm_cipher.c
Expand Up @@ -492,7 +492,7 @@ static xlat_action_t cipher_rsa_encrypt_xlat(TALLOC_CTX *ctx, fr_cursor_t *out,
/*
* Figure out the buffer we need
*/
RHEXDUMP(L_DBG_LVL_3, plaintext, plaintext_len, "Plaintext (%zu bytes)", plaintext_len);
RHEXDUMP(L_DBG_LVL_3, (uint8_t const *)plaintext, plaintext_len, "Plaintext (%zu bytes)", plaintext_len);
if (EVP_PKEY_encrypt(xt->evp_encrypt_ctx, NULL, &ciphertext_len,
(unsigned char const *)plaintext, plaintext_len) <= 0) {
tls_log_error(request, "Failed getting length of encrypted plaintext");
Expand Down Expand Up @@ -670,7 +670,7 @@ static xlat_action_t cipher_rsa_decrypt_xlat(TALLOC_CTX *ctx, fr_cursor_t *out,
tls_log_error(request, "Failed decrypting ciphertext");
return XLAT_ACTION_FAIL;
}
RHEXDUMP(L_DBG_LVL_3, plaintext, plaintext_len, "Plaintext (%zu bytes)", plaintext_len);
RHEXDUMP(L_DBG_LVL_3, (uint8_t const *)plaintext, plaintext_len, "Plaintext (%zu bytes)", plaintext_len);

/*
* Fixup the output buffer (and ensure it's \0 terminated)
Expand Down

0 comments on commit a40f0a7

Please sign in to comment.