@@ -669,7 +669,7 @@ static int wc_partition_static_memory(byte* buffer, word32 sz, int flag,
669
669
}
670
670
671
671
static int wc_init_memory_heap (WOLFSSL_HEAP * heap , unsigned int listSz ,
672
- const unsigned int * sizeList , const unsigned int * distList )
672
+ const word32 * sizeList , const word32 * distList )
673
673
{
674
674
unsigned int i ;
675
675
@@ -695,8 +695,8 @@ static int wc_init_memory_heap(WOLFSSL_HEAP* heap, unsigned int listSz,
695
695
}
696
696
697
697
int wc_LoadStaticMemory_ex (WOLFSSL_HEAP_HINT * * pHint ,
698
- unsigned int listSz , const unsigned int * sizeList ,
699
- const unsigned int * distList , unsigned char * buf ,
698
+ unsigned int listSz , const word32 * sizeList ,
699
+ const word32 * distList , unsigned char * buf ,
700
700
unsigned int sz , int flag , int maxSz )
701
701
{
702
702
WOLFSSL_HEAP * heap = NULL ;
@@ -773,13 +773,8 @@ int wc_LoadStaticMemory_ex(WOLFSSL_HEAP_HINT** pHint,
773
773
int wc_LoadStaticMemory (WOLFSSL_HEAP_HINT * * pHint ,
774
774
unsigned char * buf , unsigned int sz , int flag , int maxSz )
775
775
{
776
- #ifdef WOLFSSL_LEAN_STATIC_PSK
777
- word16 sizeList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_BUCKETS };
778
- byte distList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_DIST };
779
- #else
780
776
word32 sizeList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_BUCKETS };
781
777
word32 distList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_DIST };
782
- #endif
783
778
int ret = 0 ;
784
779
785
780
WOLFSSL_ENTER ("wc_LoadStaticMemory" );
@@ -817,7 +812,7 @@ int wolfSSL_MemoryPaddingSz(void)
817
812
/* Used to calculate memory size for optimum use with buckets.
818
813
returns the suggested size rounded down to the nearest bucket. */
819
814
int wolfSSL_StaticBufferSz_ex (unsigned int listSz ,
820
- const unsigned int * sizeList , const unsigned int * distList ,
815
+ const word32 * sizeList , const word32 * distList ,
821
816
byte * buffer , word32 sz , int flag )
822
817
{
823
818
word32 ava = sz ;
0 commit comments