From 33f21e8b8d8873e44d7c3800e7e35c8489230ed3 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 14 Dec 2016 11:34:10 -0700 Subject: [PATCH] set correct cert type in CertificateRequest when using ChaCha suite with ECDSA --- src/internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index a62c1e634..ae9c84175 100644 --- a/src/internal.c +++ b/src/internal.c @@ -10611,7 +10611,8 @@ int SendCertificateRequest(WOLFSSL* ssl) /* write to output */ output[i++] = (byte)typeTotal; /* # of types */ #ifdef HAVE_ECC - if (ssl->options.cipherSuite0 == ECC_BYTE && + if ((ssl->options.cipherSuite0 == ECC_BYTE || + ssl->options.cipherSuite0 == CHACHA_BYTE) && ssl->specs.sig_algo == ecc_dsa_sa_algo) { output[i++] = ecdsa_sign; } else