From 4fe2a1ec421e0312116f75ae6a55536ece609b66 Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 25 Feb 2013 10:42:51 -0800 Subject: [PATCH] fix sigAlgo unused-but-set gcc 4.6 warning --- src/internal.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/internal.c b/src/internal.c index c9790fa5e..d4bd38a87 100644 --- a/src/internal.c +++ b/src/internal.c @@ -8815,6 +8815,10 @@ int SetCipherList(Suites* s, const char* list) int typeH = SHAh; int digestSz = SHA_DIGEST_SIZE; + if (sigAlgo != rsa_sa_algo) { + CYASSL_MSG("Oops, peer sent RSA key but not in verify"); + } + if (hashAlgo == sha256_mac) { #ifndef NO_SHA256 digest = ssl->certHashes.sha256; @@ -8853,6 +8857,9 @@ int SetCipherList(Suites* s, const char* list) CYASSL_MSG("Doing ECC peer cert verify"); if (IsAtLeastTLSv1_2(ssl)) { + if (sigAlgo != ecc_dsa_sa_algo) { + CYASSL_MSG("Oops, peer sent ECC key but not in verify"); + } if (hashAlgo == sha256_mac) { #ifndef NO_SHA256 digest = ssl->certHashes.sha256;