Skip to content

Commit 139042e

Browse files
authored
Merge pull request #10159 from Frauschi/dual_alg_fix
Fix build failure for DUAL_ALG_CERTS
2 parents 1d363f3 + 178d2f6 commit 139042e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/tls13.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10125,11 +10125,16 @@ static int SendTls13CertificateVerify(WOLFSSL* ssl)
1012510125
/* check for signature faults */
1012610126
byte* sigOut = args->verify + HASH_SIG_SIZE + VERIFY_HEADER +
1012710127
args->sigLen + OPAQUE16_LEN + OPAQUE16_LEN;
10128+
#ifdef HAVE_PK_CALLBACKS
10129+
buffer tmp;
10130+
tmp.length = ssl->buffers.altKey->length;
10131+
tmp.buffer = ssl->buffers.altKey->buffer;
10132+
#endif
1012810133
ret = EccVerify(ssl, sigOut, args->altSigLen,
1012910134
args->altSigData, args->altSigDataSz,
1013010135
(ecc_key*)ssl->hsAltKey,
1013110136
#ifdef HAVE_PK_CALLBACKS
10132-
ssl->buffers.altKey
10137+
&tmp
1013310138
#else
1013410139
NULL
1013510140
#endif

0 commit comments

Comments
 (0)