You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
8 months ago
|
From c7c182f3b04e2a40733a72164cb950157e92e35f Mon Sep 17 00:00:00 2001
|
||
|
From: Dan Streetman <ddstreet@ieee.org>
|
||
|
Date: Mon, 21 Aug 2023 19:07:38 -0400
|
||
|
Subject: [PATCH] tpm2: remove unnecessary void* cast
|
||
|
|
||
|
(cherry picked from commit 70cb382d368518d69e99b5e384e2456eb2d9916e)
|
||
|
|
||
|
Related: RHEL-16182
|
||
|
---
|
||
|
src/shared/tpm2-util.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c
|
||
|
index 48bb25a417..9ef69fb7d8 100644
|
||
|
--- a/src/shared/tpm2-util.c
|
||
|
+++ b/src/shared/tpm2-util.c
|
||
|
@@ -3602,7 +3602,7 @@ int tpm2_tpm2b_public_from_openssl_pkey(const EVP_PKEY *pkey, TPM2B_PUBLIC *ret)
|
||
|
"RSA key e size %zu too large.", e_size);
|
||
|
|
||
|
uint32_t exponent = 0;
|
||
|
- memcpy((void*) &exponent, e, e_size);
|
||
|
+ memcpy(&exponent, e, e_size);
|
||
|
exponent = be32toh(exponent) >> (32 - e_size * 8);
|
||
|
if (exponent == TPM2_RSA_DEFAULT_EXPONENT)
|
||
|
exponent = 0;
|