mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-02-22 21:14:59 +01:00
Merge pull request #4052 from elms/gcc11_fixes
fixes for gcc 11 compile and other whitespace
This commit is contained in:
@@ -14467,7 +14467,10 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
|
||||
idx += (int)iov[i].iov_len;
|
||||
}
|
||||
|
||||
/* myBuffer may not initialized fully, but the sending length will be */
|
||||
PRAGMA_GCC_IGNORE("GCC diagnostic ignored \"-Wmaybe-uninitialized\"");
|
||||
ret = wolfSSL_write(ssl, myBuffer, sending);
|
||||
PRAGMA_GCC_POP;
|
||||
|
||||
if (dynamic)
|
||||
XFREE(myBuffer, ssl->heap, DYNAMIC_TYPE_WRITEV);
|
||||
@@ -27326,7 +27329,7 @@ int wolfSSL_X509_VERIFY_PARAM_set1_host(WOLFSSL_X509_VERIFY_PARAM* pParam,
|
||||
if (nameSz > 0)
|
||||
XMEMCPY(pParam->hostName, name, nameSz);
|
||||
|
||||
pParam->hostName[nameSz] = '\0';
|
||||
pParam->hostName[nameSz] = '\0';
|
||||
|
||||
return WOLFSSL_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -421,6 +421,7 @@ static int DeriveKey(WOLFSSL* ssl, byte* output, int outputLen,
|
||||
#endif
|
||||
|
||||
default:
|
||||
ret = HASH_TYPE_E;
|
||||
break;
|
||||
}
|
||||
if (ret != 0)
|
||||
@@ -435,9 +436,12 @@ static int DeriveKey(WOLFSSL* ssl, byte* output, int outputLen,
|
||||
if (includeMsgs)
|
||||
hashOutSz = hashSz;
|
||||
|
||||
/* myBuffer may not initialized fully, but the sending length will be */
|
||||
PRAGMA_GCC_IGNORE("GCC diagnostic ignored \"-Wmaybe-uninitialized\"");
|
||||
return HKDF_Expand_Label(output, outputLen, secret, hashSz,
|
||||
protocol, protocolLen, label, labelLen,
|
||||
hash, hashOutSz, digestAlg);
|
||||
PRAGMA_GCC_POP;
|
||||
}
|
||||
|
||||
#ifndef NO_PSK
|
||||
|
||||
Reference in New Issue
Block a user