Ignore:
Timestamp:
Feb 7, 2019, 8:36:33 AM (5 years ago)
Author:
coas-nagasima
Message:

wolfsslを3.15.7にバージョンアップ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/memory.h

    r337 r372  
    2323/* submitted by eof */
    2424
     25/*!
     26    \file wolfssl/wolfcrypt/memory.h
     27*/
    2528
    2629#ifndef WOLFSSL_MEMORY_H
     
    3235#ifdef __cplusplus
    3336    extern "C" {
     37#endif
     38
     39#ifdef WOLFSSL_FORCE_MALLOC_FAIL_TEST
     40    WOLFSSL_API void wolfSSL_SetMemFailCount(int memFailCount);
    3441#endif
    3542
     
    7582                                      wolfSSL_Free_cb,
    7683                                      wolfSSL_Realloc_cb);
    77 
    7884WOLFSSL_API int wolfSSL_GetAllocators(wolfSSL_Malloc_cb*,
    7985                                      wolfSSL_Free_cb*,
     
    8995    #endif
    9096    #define WOLFMEM_DEF_BUCKETS  9     /* number of default memory blocks */
     97    #ifndef WOLFMEM_IO_SZ
    9198    #define WOLFMEM_IO_SZ        16992 /* 16 byte aligned */
     99    #endif
    92100    #ifndef WOLFMEM_BUCKETS
    93         /* default size of chunks of memory to seperate into
    94          * having session certs enabled makes a 21k SSL struct */
    95101        #ifndef SESSION_CERTS
     102            /* default size of chunks of memory to separate into */
    96103            #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
    97107        #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
    99110        #endif
    100111    #endif
    101112    #ifndef WOLFMEM_DIST
    102         #define WOLFMEM_DIST    8,4,4,12,4,5,8,1,1
     113        #define WOLFMEM_DIST    49,10,6,14,5,6,9,1,1
    103114    #endif
    104115
Note: See TracChangeset for help on using the changeset viewer.