mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
fix sigAlgo unused-but-set gcc 4.6 warning
This commit is contained in:
@@ -8815,6 +8815,10 @@ int SetCipherList(Suites* s, const char* list)
|
|||||||
int typeH = SHAh;
|
int typeH = SHAh;
|
||||||
int digestSz = SHA_DIGEST_SIZE;
|
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) {
|
if (hashAlgo == sha256_mac) {
|
||||||
#ifndef NO_SHA256
|
#ifndef NO_SHA256
|
||||||
digest = ssl->certHashes.sha256;
|
digest = ssl->certHashes.sha256;
|
||||||
@@ -8853,6 +8857,9 @@ int SetCipherList(Suites* s, const char* list)
|
|||||||
CYASSL_MSG("Doing ECC peer cert verify");
|
CYASSL_MSG("Doing ECC peer cert verify");
|
||||||
|
|
||||||
if (IsAtLeastTLSv1_2(ssl)) {
|
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) {
|
if (hashAlgo == sha256_mac) {
|
||||||
#ifndef NO_SHA256
|
#ifndef NO_SHA256
|
||||||
digest = ssl->certHashes.sha256;
|
digest = ssl->certHashes.sha256;
|
||||||
|
Reference in New Issue
Block a user