@@ -669,7 +669,7 @@ static int wc_partition_static_memory(byte* buffer, word32 sz, int flag,
669669}
670670
671671static 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 )
673673{
674674 unsigned int i ;
675675
@@ -695,8 +695,8 @@ static int wc_init_memory_heap(WOLFSSL_HEAP* heap, unsigned int listSz,
695695}
696696
697697int 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 ,
700700 unsigned int sz , int flag , int maxSz )
701701{
702702 WOLFSSL_HEAP * heap = NULL ;
@@ -773,13 +773,8 @@ int wc_LoadStaticMemory_ex(WOLFSSL_HEAP_HINT** pHint,
773773int wc_LoadStaticMemory (WOLFSSL_HEAP_HINT * * pHint ,
774774 unsigned char * buf , unsigned int sz , int flag , int maxSz )
775775{
776- #ifdef WOLFSSL_LEAN_STATIC_PSK
777- word16 sizeList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_BUCKETS };
778- byte distList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_DIST };
779- #else
780776 word32 sizeList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_BUCKETS };
781777 word32 distList [WOLFMEM_DEF_BUCKETS ] = { WOLFMEM_DIST };
782- #endif
783778 int ret = 0 ;
784779
785780 WOLFSSL_ENTER ("wc_LoadStaticMemory" );
@@ -817,7 +812,7 @@ int wolfSSL_MemoryPaddingSz(void)
817812/* Used to calculate memory size for optimum use with buckets.
818813 returns the suggested size rounded down to the nearest bucket. */
819814int wolfSSL_StaticBufferSz_ex (unsigned int listSz ,
820- const unsigned int * sizeList , const unsigned int * distList ,
815+ const word32 * sizeList , const word32 * distList ,
821816 byte * buffer , word32 sz , int flag )
822817{
823818 word32 ava = sz ;
0 commit comments