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_arm/trunk/wolfssl-3.12.2/wolfssl/openssl/crypto.h

    r352 r372  
     1/* crypto.h
     2 *
     3 * Copyright (C) 2006-2017 wolfSSL Inc.
     4 *
     5 * This file is part of wolfSSL.
     6 *
     7 * wolfSSL is free software; you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation; either version 2 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * wolfSSL is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with this program; if not, write to the Free Software
     19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
     20 */
     21
    122/* crypto.h for openSSL */
    223
     
    1637WOLFSSL_API unsigned long wolfSSLeay(void);
    1738
     39#ifdef OPENSSL_EXTRA
     40WOLFSSL_API void wolfSSL_OPENSSL_free(void*);
     41WOLFSSL_API void *wolfSSL_OPENSSL_malloc(size_t a);
     42#endif
     43
    1844#define CRYPTO_THREADID void
    1945
     
    2450#define SSLEAY_VERSION 0x0090600fL
    2551#define SSLEAY_VERSION_NUMBER SSLEAY_VERSION
     52#define CRYPTO_lock wc_LockMutex_ex
    2653
    27 #if defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
     54/* this function was used to set the default malloc, free, and realloc */
     55#define CRYPTO_malloc_init() /* CRYPTO_malloc_init is not needed */
     56
     57#define OPENSSL_free wolfSSL_OPENSSL_free
     58#define OPENSSL_malloc wolfSSL_OPENSSL_malloc
     59
     60#if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || \
     61    defined(WOLFSSL_HAPROXY) || defined(OPENSSL_EXTRA)
    2862#define CRYPTO_set_mem_ex_functions      wolfSSL_CRYPTO_set_mem_ex_functions
    2963#define FIPS_mode                        wolfSSL_FIPS_mode
     
    3569#define CRYPTO_THREADID_set_numeric wolfSSL_THREADID_set_numeric
    3670
    37 #define CRYPTO_lock wc_LockMutex
    38 #define CRYPTO_r_lock wc_LockMutex
    39 #define CRYPTO_unlock wc_UnLockMutex
     71#define CRYPTO_r_lock wc_LockMutex_ex
     72#define CRYPTO_unlock wc_LockMutex_ex
    4073
    4174#define CRYPTO_THREAD_lock wc_LockMutex
     
    4376#define CRYPTO_THREAD_unlock wc_UnLockMutex
    4477
    45 #define OPENSSL_malloc(a)  XMALLOC(a, NULL, DYNAMIC_TYPE_OPENSSL)
    46 
    47 #endif /* HAVE_STUNNEL || WOLFSSL_NGINX || WOLFSSL_HAPROXY */
     78#endif /* OPENSSL_ALL || HAVE_STUNNEL || WOLFSSL_NGINX || WOLFSSL_HAPROXY */
    4879
    4980#endif /* header */
    50 
Note: See TracChangeset for help on using the changeset viewer.