mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Warnings and error fixes
This commit is contained in:
@ -8132,7 +8132,7 @@ int wolfSSL_CTX_set_groups(WOLFSSL_CTX* ctx, int* groups, int count)
|
||||
for (i = 0; i < count; i++) {
|
||||
/* Call to wolfSSL_CTX_UseSupportedCurve also checks if input groups
|
||||
* are valid */
|
||||
if ((ret = wolfSSL_CTX_UseSupportedCurve(ctx, groups[i]))
|
||||
if ((ret = wolfSSL_CTX_UseSupportedCurve(ctx, (word16)groups[i]))
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
TLSX_Remove(&ctx->extensions, TLSX_SUPPORTED_GROUPS, ctx->heap);
|
||||
return ret;
|
||||
@ -8167,7 +8167,7 @@ int wolfSSL_set_groups(WOLFSSL* ssl, int* groups, int count)
|
||||
for (i = 0; i < count; i++) {
|
||||
/* Call to wolfSSL_UseSupportedCurve also checks if input groups
|
||||
* are valid */
|
||||
if ((ret = wolfSSL_UseSupportedCurve(ssl, groups[i]))
|
||||
if ((ret = wolfSSL_UseSupportedCurve(ssl, (word16)groups[i]))
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
TLSX_Remove(&ssl->extensions, TLSX_SUPPORTED_GROUPS, ssl->heap);
|
||||
return ret;
|
||||
|
@ -4798,7 +4798,7 @@ static void AES_GCM_encrypt(const unsigned char *in, unsigned char *out,
|
||||
const unsigned char* addt,
|
||||
const unsigned char* ivec, unsigned char *tag,
|
||||
word32 nbytes, word32 abytes, word32 ibytes,
|
||||
wrd32 tbytes, const unsigned char* key, int nr)
|
||||
word32 tbytes, const unsigned char* key, int nr)
|
||||
{
|
||||
int i, j ,k;
|
||||
__m128i ctr1;
|
||||
|
Reference in New Issue
Block a user