37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 4ea48e0682ff9a58340421dc9d896c7ca06a2621 Mon Sep 17 00:00:00 2001
|
|
From: Ingo Franzki <ifranzki@linux.ibm.com>
|
|
Date: Mon, 13 May 2024 08:53:56 +0200
|
|
Subject: [PATCH] engine: Fix compile error on Fedora 40
|
|
|
|
ibmca_pkey.c:627:47: error: passing argument 2 of 'EVP_PKEY_meth_set_copy'
|
|
from incompatible pointer type [-Wincompatible-pointer-types]
|
|
627 | EVP_PKEY_meth_set_copy(ibmca_ed448_pmeth, ibmca_ed448_copy);
|
|
|
|
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
|
|
---
|
|
src/engine/ibmca_pkey.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/engine/ibmca_pkey.c b/src/engine/ibmca_pkey.c
|
|
index 9c8de94c..6cd8fcd9 100644
|
|
--- a/src/engine/ibmca_pkey.c
|
|
+++ b/src/engine/ibmca_pkey.c
|
|
@@ -258,7 +258,7 @@ static int ibmca_x448_derive(EVP_PKEY_CTX *pkey_ctx, unsigned char *key, size_t
|
|
|
|
/* ED25519 */
|
|
|
|
-static int ibmca_ed25519_copy(EVP_PKEY_CTX *to, EVP_PKEY_CTX *from)
|
|
+static int ibmca_ed25519_copy(EVP_PKEY_CTX *to, const EVP_PKEY_CTX *from)
|
|
{
|
|
return 1;
|
|
}
|
|
@@ -402,7 +402,7 @@ static int ibmca_ed25519_verify(EVP_MD_CTX *md_ctx, const unsigned char *sig,
|
|
|
|
/* ED448 */
|
|
|
|
-static int ibmca_ed448_copy(EVP_PKEY_CTX *to, EVP_PKEY_CTX *from)
|
|
+static int ibmca_ed448_copy(EVP_PKEY_CTX *to, const EVP_PKEY_CTX *from)
|
|
{
|
|
return 1;
|
|
}
|