1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

tpm2: remove unnecessary void* cast

This commit is contained in:
Dan Streetman 2023-08-21 19:07:38 -04:00
parent ed35ac3155
commit 70cb382d36

View File

@ -3663,7 +3663,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;