- Timestamp:
- Feb 7, 2019, 8:36:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/memory.h
r352 r372 23 23 /* submitted by eof */ 24 24 25 /*! 26 \file wolfssl/wolfcrypt/memory.h 27 */ 25 28 26 29 #ifndef WOLFSSL_MEMORY_H … … 32 35 #ifdef __cplusplus 33 36 extern "C" { 37 #endif 38 39 #ifdef WOLFSSL_FORCE_MALLOC_FAIL_TEST 40 WOLFSSL_API void wolfSSL_SetMemFailCount(int memFailCount); 34 41 #endif 35 42 … … 75 82 wolfSSL_Free_cb, 76 83 wolfSSL_Realloc_cb); 77 78 84 WOLFSSL_API int wolfSSL_GetAllocators(wolfSSL_Malloc_cb*, 79 85 wolfSSL_Free_cb*, … … 89 95 #endif 90 96 #define WOLFMEM_DEF_BUCKETS 9 /* number of default memory blocks */ 97 #ifndef WOLFMEM_IO_SZ 91 98 #define WOLFMEM_IO_SZ 16992 /* 16 byte aligned */ 99 #endif 92 100 #ifndef WOLFMEM_BUCKETS 93 /* default size of chunks of memory to seperate into94 * having session certs enabled makes a 21k SSL struct */95 101 #ifndef SESSION_CERTS 102 /* default size of chunks of memory to separate into */ 96 103 #define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,16128 104 #elif defined (WOLFSSL_CERT_EXT) 105 /* certificate extensions requires 24k for the SSL struct */ 106 #define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,24576 97 107 #else 98 #define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,21056 108 /* increase 23k for object member of WOLFSSL_X509_NAME_ENTRY */ 109 #define WOLFMEM_BUCKETS 64,128,256,512,1024,2432,3456,4544,23440 99 110 #endif 100 111 #endif 101 112 #ifndef WOLFMEM_DIST 102 #define WOLFMEM_DIST 8,4,4,12,4,5,8,1,1113 #define WOLFMEM_DIST 49,10,6,14,5,6,9,1,1 103 114 #endif 104 115
Note:
See TracChangeset
for help on using the changeset viewer.