source: asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/openssl/crypto.h@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.4 KB
Line 
1/* crypto.h for openSSL */
2
3#ifndef WOLFSSL_CRYPTO_H_
4#define WOLFSSL_CRYPTO_H_
5
6#include <wolfssl/openssl/opensslv.h>
7
8#include <wolfssl/wolfcrypt/settings.h>
9
10#ifdef WOLFSSL_PREFIX
11#include "prefix_crypto.h"
12#endif
13
14
15WOLFSSL_API const char* wolfSSLeay_version(int type);
16WOLFSSL_API unsigned long wolfSSLeay(void);
17
18#define CRYPTO_THREADID void
19
20#define SSLeay_version wolfSSLeay_version
21#define SSLeay wolfSSLeay
22
23
24#define SSLEAY_VERSION 0x0090600fL
25#define SSLEAY_VERSION_NUMBER SSLEAY_VERSION
26
27#if defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
28#define CRYPTO_set_mem_ex_functions wolfSSL_CRYPTO_set_mem_ex_functions
29#define FIPS_mode wolfSSL_FIPS_mode
30#define FIPS_mode_set wolfSSL_FIPS_mode_set
31typedef struct CRYPTO_EX_DATA CRYPTO_EX_DATA;
32typedef void (CRYPTO_free_func)(void*parent, void*ptr, CRYPTO_EX_DATA *ad, int idx,
33 long argl, void* argp);
34#define CRYPTO_THREADID_set_callback wolfSSL_THREADID_set_callback
35#define CRYPTO_THREADID_set_numeric wolfSSL_THREADID_set_numeric
36
37#define CRYPTO_lock wc_LockMutex
38#define CRYPTO_r_lock wc_LockMutex
39#define CRYPTO_unlock wc_UnLockMutex
40
41#define CRYPTO_THREAD_lock wc_LockMutex
42#define CRYPTO_THREAD_r_lock wc_LockMutex
43#define CRYPTO_THREAD_unlock wc_UnLockMutex
44
45#define OPENSSL_malloc(a) XMALLOC(a, NULL, DYNAMIC_TYPE_OPENSSL)
46
47#endif /* HAVE_STUNNEL || WOLFSSL_NGINX || WOLFSSL_HAPROXY */
48
49#endif /* header */
50
Note: See TracBrowser for help on using the repository browser.