From 178d2f61f44ec163583bee18bc168953e3c85ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Frauenschl=C3=A4ger?= Date: Wed, 8 Apr 2026 10:18:00 +0200 Subject: [PATCH] Fix build with WOLFSSL_DUAL_ALG_CERTS and HAVE_PK_CALLBACKS --- src/tls13.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tls13.c b/src/tls13.c index e46a518f71d..b963ab0e3d7 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -10125,11 +10125,16 @@ static int SendTls13CertificateVerify(WOLFSSL* ssl) /* check for signature faults */ byte* sigOut = args->verify + HASH_SIG_SIZE + VERIFY_HEADER + args->sigLen + OPAQUE16_LEN + OPAQUE16_LEN; + #ifdef HAVE_PK_CALLBACKS + buffer tmp; + tmp.length = ssl->buffers.altKey->length; + tmp.buffer = ssl->buffers.altKey->buffer; + #endif ret = EccVerify(ssl, sigOut, args->altSigLen, args->altSigData, args->altSigDataSz, (ecc_key*)ssl->hsAltKey, #ifdef HAVE_PK_CALLBACKS - ssl->buffers.altKey + &tmp #else NULL #endif