mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fixes for different build scenarios:
- fix the type cast in SMALL_STACK builds - only use new behviour when wolfSSL_set_groups() is available
This commit is contained in:
@@ -33939,8 +33939,8 @@ static int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx, const char* names)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
groups = (byte*)XMALLOC(sizeof(int)*WOLFSSL_MAX_GROUP_COUNT,
|
groups = (int*)XMALLOC(sizeof(int)*WOLFSSL_MAX_GROUP_COUNT,
|
||||||
heap, DYNAMIC_TYPE_TMP_BUFFER);
|
heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
if (groups == NULL) {
|
if (groups == NULL) {
|
||||||
ret = MEMORY_E;
|
ret = MEMORY_E;
|
||||||
goto leave;
|
goto leave;
|
||||||
@@ -34042,7 +34042,7 @@ static int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx, const char* names)
|
|||||||
curve = (word16)groups[i];
|
curve = (word16)groups[i];
|
||||||
disabled &= ~(1U << curve);
|
disabled &= ~(1U << curve);
|
||||||
|
|
||||||
#ifndef WOLFSSL_OLD_SET_CURVES_LIST
|
#if defined(HAVE_SUPPORTED_CURVES) && !defined(WOLFSSL_OLD_SET_CURVES_LIST)
|
||||||
/* using the wolfSSL API to set the groups, this will populate
|
/* using the wolfSSL API to set the groups, this will populate
|
||||||
* (ssl|ctx)->groups and reset any TLSX_SUPPORTED_GROUPS.
|
* (ssl|ctx)->groups and reset any TLSX_SUPPORTED_GROUPS.
|
||||||
* The order in (ssl|ctx)->groups will then be respected
|
* The order in (ssl|ctx)->groups will then be respected
|
||||||
|
Reference in New Issue
Block a user