Skip to content

Commit 4ea48e0

Browse files
committed
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>
1 parent d2254c6 commit 4ea48e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/ibmca_pkey.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static int ibmca_x448_derive(EVP_PKEY_CTX *pkey_ctx, unsigned char *key, size_t
258258

259259
/* ED25519 */
260260

261-
static int ibmca_ed25519_copy(EVP_PKEY_CTX *to, EVP_PKEY_CTX *from)
261+
static int ibmca_ed25519_copy(EVP_PKEY_CTX *to, const EVP_PKEY_CTX *from)
262262
{
263263
return 1;
264264
}
@@ -402,7 +402,7 @@ static int ibmca_ed25519_verify(EVP_MD_CTX *md_ctx, const unsigned char *sig,
402402

403403
/* ED448 */
404404

405-
static int ibmca_ed448_copy(EVP_PKEY_CTX *to, EVP_PKEY_CTX *from)
405+
static int ibmca_ed448_copy(EVP_PKEY_CTX *to, const EVP_PKEY_CTX *from)
406406
{
407407
return 1;
408408
}

0 commit comments

Comments
 (0)