Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
crypto.h File Reference
#include <stdlib.h>
#include <time.h>
#include <openssl/e_os2.h>
#include <stdio.h>
#include <openssl/safestack.h>
#include <openssl/opensslv.h>
#include <openssl/ossl_typ.h>
#include <openssl/opensslconf.h>
#include <openssl/cryptoerr.h>
#include <openssl/symhacks.h>
+ Include dependency graph for crypto.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CRYPTO_dynlock
 
struct  crypto_ex_data_st
 
struct  crypto_threadid_st
 

Macros

#define SSLeay   OpenSSL_version_num
 
#define SSLeay_version   OpenSSL_version
 
#define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER
 
#define SSLEAY_VERSION   OPENSSL_VERSION
 
#define SSLEAY_CFLAGS   OPENSSL_CFLAGS
 
#define SSLEAY_BUILT_ON   OPENSSL_BUILT_ON
 
#define SSLEAY_PLATFORM   OPENSSL_PLATFORM
 
#define SSLEAY_DIR   OPENSSL_DIR
 
#define CRYPTO_MEM_CHECK_OFF   0x0 /* Control only */
 
#define CRYPTO_MEM_CHECK_ON   0x1 /* Control and mode bit */
 
#define CRYPTO_MEM_CHECK_ENABLE   0x2 /* Control and mode bit */
 
#define CRYPTO_MEM_CHECK_DISABLE   0x3 /* Control only */
 
#define CRYPTO_EX_INDEX_SSL   0
 
#define CRYPTO_EX_INDEX_SSL_CTX   1
 
#define CRYPTO_EX_INDEX_SSL_SESSION   2
 
#define CRYPTO_EX_INDEX_X509   3
 
#define CRYPTO_EX_INDEX_X509_STORE   4
 
#define CRYPTO_EX_INDEX_X509_STORE_CTX   5
 
#define CRYPTO_EX_INDEX_DH   6
 
#define CRYPTO_EX_INDEX_DSA   7
 
#define CRYPTO_EX_INDEX_EC_KEY   8
 
#define CRYPTO_EX_INDEX_RSA   9
 
#define CRYPTO_EX_INDEX_ENGINE   10
 
#define CRYPTO_EX_INDEX_UI   11
 
#define CRYPTO_EX_INDEX_BIO   12
 
#define CRYPTO_EX_INDEX_APP   13
 
#define CRYPTO_EX_INDEX_UI_METHOD   14
 
#define CRYPTO_EX_INDEX_DRBG   15
 
#define CRYPTO_EX_INDEX__COUNT   16
 
#define OPENSSL_malloc_init()   while(0) continue
 
#define OPENSSL_malloc(num)    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_zalloc(num)    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_realloc(addr, num)    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_clear_realloc(addr, old_num, num)    CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_clear_free(addr, num)    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_free(addr)    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_memdup(str, s)    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_strdup(str)    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_strndup(str, n)    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_secure_malloc(num)    CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_secure_zalloc(num)    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_secure_free(addr)    CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_secure_clear_free(addr, num)    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_secure_actual_size(ptr)    CRYPTO_secure_actual_size(ptr)
 
#define OPENSSL_MALLOC_MAX_NELEMS(type)   (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))
 
#define OPENSSL_VERSION   0
 
#define OPENSSL_CFLAGS   1
 
#define OPENSSL_BUILT_ON   2
 
#define OPENSSL_PLATFORM   3
 
#define OPENSSL_DIR   4
 
#define OPENSSL_ENGINES_DIR   5
 
#define CRYPTO_cleanup_all_ex_data()   while(0) continue
 
#define CRYPTO_num_locks()   (1)
 
#define CRYPTO_set_locking_callback(func)
 
#define CRYPTO_get_locking_callback()   (NULL)
 
#define CRYPTO_set_add_lock_callback(func)
 
#define CRYPTO_get_add_lock_callback()   (NULL)
 
#define CRYPTO_LOCK   1
 
#define CRYPTO_UNLOCK   2
 
#define CRYPTO_READ   4
 
#define CRYPTO_WRITE   8
 
#define CRYPTO_THREADID_set_numeric(id, val)
 
#define CRYPTO_THREADID_set_pointer(id, ptr)
 
#define CRYPTO_THREADID_set_callback(threadid_func)   (0)
 
#define CRYPTO_THREADID_get_callback()   (NULL)
 
#define CRYPTO_THREADID_current(id)
 
#define CRYPTO_THREADID_cmp(a, b)   (-1)
 
#define CRYPTO_THREADID_cpy(dest, src)
 
#define CRYPTO_THREADID_hash(id)   (0UL)
 
#define CRYPTO_set_id_callback(func)
 
#define CRYPTO_get_id_callback()   (NULL)
 
#define CRYPTO_thread_id()   (0UL)
 
#define CRYPTO_set_dynlock_create_callback(dyn_create_function)
 
#define CRYPTO_set_dynlock_lock_callback(dyn_lock_function)
 
#define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function)
 
#define CRYPTO_get_dynlock_create_callback()   (NULL)
 
#define CRYPTO_get_dynlock_lock_callback()   (NULL)
 
#define CRYPTO_get_dynlock_destroy_callback()   (NULL)
 
#define OPENSSL_mem_debug_push(info)    CRYPTO_mem_debug_push(info, OPENSSL_FILE, OPENSSL_LINE)
 
#define OPENSSL_mem_debug_pop()    CRYPTO_mem_debug_pop()
 
#define OpenSSLDie(f, l, a)   OPENSSL_die((a),(f),(l))
 
#define OPENSSL_assert(e)    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
 
#define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS   0x00000001L
 
#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS   0x00000002L
 
#define OPENSSL_INIT_ADD_ALL_CIPHERS   0x00000004L
 
#define OPENSSL_INIT_ADD_ALL_DIGESTS   0x00000008L
 
#define OPENSSL_INIT_NO_ADD_ALL_CIPHERS   0x00000010L
 
#define OPENSSL_INIT_NO_ADD_ALL_DIGESTS   0x00000020L
 
#define OPENSSL_INIT_LOAD_CONFIG   0x00000040L
 
#define OPENSSL_INIT_NO_LOAD_CONFIG   0x00000080L
 
#define OPENSSL_INIT_ASYNC   0x00000100L
 
#define OPENSSL_INIT_ENGINE_RDRAND   0x00000200L
 
#define OPENSSL_INIT_ENGINE_DYNAMIC   0x00000400L
 
#define OPENSSL_INIT_ENGINE_OPENSSL   0x00000800L
 
#define OPENSSL_INIT_ENGINE_CRYPTODEV   0x00001000L
 
#define OPENSSL_INIT_ENGINE_CAPI   0x00002000L
 
#define OPENSSL_INIT_ENGINE_PADLOCK   0x00004000L
 
#define OPENSSL_INIT_ENGINE_AFALG   0x00008000L
 
#define OPENSSL_INIT_ATFORK   0x00020000L
 
#define OPENSSL_INIT_NO_ATEXIT   0x00080000L
 
#define OPENSSL_INIT_ENGINE_ALL_BUILTIN
 
#define CRYPTO_ONCE_STATIC_INIT   0
 

Typedefs

typedef void CRYPTO_RWLOCK
 
typedef void CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, long argl, void *argp)
 
typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, long argl, void *argp)
 
typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, void *from_d, int idx, long argl, void *argp)
 
typedef struct crypto_threadid_st CRYPTO_THREADID
 
typedef unsigned int CRYPTO_ONCE
 
typedef unsigned int CRYPTO_THREAD_LOCAL
 
typedef unsigned int CRYPTO_THREAD_ID
 

Functions

CRYPTO_RWLOCKCRYPTO_THREAD_lock_new (void)
 
int CRYPTO_THREAD_read_lock (CRYPTO_RWLOCK *lock)
 
int CRYPTO_THREAD_write_lock (CRYPTO_RWLOCK *lock)
 
int CRYPTO_THREAD_unlock (CRYPTO_RWLOCK *lock)
 
void CRYPTO_THREAD_lock_free (CRYPTO_RWLOCK *lock)
 
int CRYPTO_atomic_add (int *val, int amount, int *ret, CRYPTO_RWLOCK *lock)
 
int CRYPTO_mem_ctrl (int mode)
 
size_t OPENSSL_strlcpy (char *dst, const char *src, size_t siz)
 
size_t OPENSSL_strlcat (char *dst, const char *src, size_t siz)
 
size_t OPENSSL_strnlen (const char *str, size_t maxlen)
 
char * OPENSSL_buf2hexstr (const unsigned char *buffer, long len)
 
unsigned char * OPENSSL_hexstr2buf (const char *str, long *len)
 
int OPENSSL_hexchar2int (unsigned char c)
 
unsigned long OpenSSL_version_num (void)
 
const char * OpenSSL_version (int type)
 
int OPENSSL_issetugid (void)
 
__owur int CRYPTO_get_ex_new_index (int class_index, long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
 
int CRYPTO_free_ex_index (int class_index, int idx)
 
int CRYPTO_new_ex_data (int class_index, void *obj, CRYPTO_EX_DATA *ad)
 
int CRYPTO_dup_ex_data (int class_index, CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from)
 
void CRYPTO_free_ex_data (int class_index, void *obj, CRYPTO_EX_DATA *ad)
 
int CRYPTO_set_ex_data (CRYPTO_EX_DATA *ad, int idx, void *val)
 
void * CRYPTO_get_ex_data (const CRYPTO_EX_DATA *ad, int idx)
 
int CRYPTO_set_mem_functions (void *(*m)(size_t, const char *, int), void *(*r)(void *, size_t, const char *, int), void(*f)(void *, const char *, int))
 
int CRYPTO_set_mem_debug (int flag)
 
void CRYPTO_get_mem_functions (void *(**m)(size_t, const char *, int), void *(**r)(void *, size_t, const char *, int), void(**f)(void *, const char *, int))
 
void * CRYPTO_malloc (size_t num, const char *file, int line)
 
void * CRYPTO_zalloc (size_t num, const char *file, int line)
 
void * CRYPTO_memdup (const void *str, size_t siz, const char *file, int line)
 
char * CRYPTO_strdup (const char *str, const char *file, int line)
 
char * CRYPTO_strndup (const char *str, size_t s, const char *file, int line)
 
void CRYPTO_free (void *ptr, const char *file, int line)
 
void CRYPTO_clear_free (void *ptr, size_t num, const char *file, int line)
 
void * CRYPTO_realloc (void *addr, size_t num, const char *file, int line)
 
void * CRYPTO_clear_realloc (void *addr, size_t old_num, size_t num, const char *file, int line)
 
int CRYPTO_secure_malloc_init (size_t sz, int minsize)
 
int CRYPTO_secure_malloc_done (void)
 
void * CRYPTO_secure_malloc (size_t num, const char *file, int line)
 
void * CRYPTO_secure_zalloc (size_t num, const char *file, int line)
 
void CRYPTO_secure_free (void *ptr, const char *file, int line)
 
void CRYPTO_secure_clear_free (void *ptr, size_t num, const char *file, int line)
 
int CRYPTO_secure_allocated (const void *ptr)
 
int CRYPTO_secure_malloc_initialized (void)
 
size_t CRYPTO_secure_actual_size (void *ptr)
 
size_t CRYPTO_secure_used (void)
 
void OPENSSL_cleanse (void *ptr, size_t len)
 
int CRYPTO_mem_debug_push (const char *info, const char *file, int line)
 
int CRYPTO_mem_debug_pop (void)
 
void CRYPTO_get_alloc_counts (int *mcount, int *rcount, int *fcount)
 
void CRYPTO_mem_debug_malloc (void *addr, size_t num, int flag, const char *file, int line)
 
void CRYPTO_mem_debug_realloc (void *addr1, void *addr2, size_t num, int flag, const char *file, int line)
 
void CRYPTO_mem_debug_free (void *addr, int flag, const char *file, int line)
 
int CRYPTO_mem_leaks_cb (int(*cb)(const char *str, size_t len, void *u), void *u)
 
int CRYPTO_mem_leaks_fp (FILE *)
 
int CRYPTO_mem_leaks (BIO *bio)
 
ossl_noreturn void OPENSSL_die (const char *assertion, const char *file, int line)
 
int OPENSSL_isservice (void)
 
int FIPS_mode (void)
 
int FIPS_mode_set (int r)
 
void OPENSSL_init (void)
 
struct tm * OPENSSL_gmtime (const time_t *timer, struct tm *result)
 
int OPENSSL_gmtime_adj (struct tm *tm, int offset_day, long offset_sec)
 
int OPENSSL_gmtime_diff (int *pday, int *psec, const struct tm *from, const struct tm *to)
 
int CRYPTO_memcmp (const void *in_a, const void *in_b, size_t len)
 
void OPENSSL_cleanup (void)
 
int OPENSSL_init_crypto (uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
 
int OPENSSL_atexit (void(*handler)(void))
 
void OPENSSL_thread_stop (void)
 
OPENSSL_INIT_SETTINGSOPENSSL_INIT_new (void)
 
int OPENSSL_INIT_set_config_filename (OPENSSL_INIT_SETTINGS *settings, const char *config_filename)
 
void OPENSSL_INIT_set_config_file_flags (OPENSSL_INIT_SETTINGS *settings, unsigned long flags)
 
int OPENSSL_INIT_set_config_appname (OPENSSL_INIT_SETTINGS *settings, const char *config_appname)
 
void OPENSSL_INIT_free (OPENSSL_INIT_SETTINGS *settings)
 
int CRYPTO_THREAD_run_once (CRYPTO_ONCE *once, void(*init)(void))
 
int CRYPTO_THREAD_init_local (CRYPTO_THREAD_LOCAL *key, void(*cleanup)(void *))
 
void * CRYPTO_THREAD_get_local (CRYPTO_THREAD_LOCAL *key)
 
int CRYPTO_THREAD_set_local (CRYPTO_THREAD_LOCAL *key, void *val)
 
int CRYPTO_THREAD_cleanup_local (CRYPTO_THREAD_LOCAL *key)
 
CRYPTO_THREAD_ID CRYPTO_THREAD_get_current_id (void)
 
int CRYPTO_THREAD_compare_id (CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b)
 

Macro Definition Documentation

◆ CRYPTO_cleanup_all_ex_data

#define CRYPTO_cleanup_all_ex_data ( )    while(0) continue

Definition at line 200 of file crypto.h.

◆ CRYPTO_EX_INDEX__COUNT

#define CRYPTO_EX_INDEX__COUNT   16

Definition at line 110 of file crypto.h.

◆ CRYPTO_EX_INDEX_APP

#define CRYPTO_EX_INDEX_APP   13

Definition at line 107 of file crypto.h.

◆ CRYPTO_EX_INDEX_BIO

#define CRYPTO_EX_INDEX_BIO   12

Definition at line 106 of file crypto.h.

◆ CRYPTO_EX_INDEX_DH

#define CRYPTO_EX_INDEX_DH   6

Definition at line 100 of file crypto.h.

◆ CRYPTO_EX_INDEX_DRBG

#define CRYPTO_EX_INDEX_DRBG   15

Definition at line 109 of file crypto.h.

◆ CRYPTO_EX_INDEX_DSA

#define CRYPTO_EX_INDEX_DSA   7

Definition at line 101 of file crypto.h.

◆ CRYPTO_EX_INDEX_EC_KEY

#define CRYPTO_EX_INDEX_EC_KEY   8

Definition at line 102 of file crypto.h.

◆ CRYPTO_EX_INDEX_ENGINE

#define CRYPTO_EX_INDEX_ENGINE   10

Definition at line 104 of file crypto.h.

◆ CRYPTO_EX_INDEX_RSA

#define CRYPTO_EX_INDEX_RSA   9

Definition at line 103 of file crypto.h.

◆ CRYPTO_EX_INDEX_SSL

#define CRYPTO_EX_INDEX_SSL   0

Definition at line 94 of file crypto.h.

◆ CRYPTO_EX_INDEX_SSL_CTX

#define CRYPTO_EX_INDEX_SSL_CTX   1

Definition at line 95 of file crypto.h.

◆ CRYPTO_EX_INDEX_SSL_SESSION

#define CRYPTO_EX_INDEX_SSL_SESSION   2

Definition at line 96 of file crypto.h.

◆ CRYPTO_EX_INDEX_UI

#define CRYPTO_EX_INDEX_UI   11

Definition at line 105 of file crypto.h.

◆ CRYPTO_EX_INDEX_UI_METHOD

#define CRYPTO_EX_INDEX_UI_METHOD   14

Definition at line 108 of file crypto.h.

◆ CRYPTO_EX_INDEX_X509

#define CRYPTO_EX_INDEX_X509   3

Definition at line 97 of file crypto.h.

◆ CRYPTO_EX_INDEX_X509_STORE

#define CRYPTO_EX_INDEX_X509_STORE   4

Definition at line 98 of file crypto.h.

◆ CRYPTO_EX_INDEX_X509_STORE_CTX

#define CRYPTO_EX_INDEX_X509_STORE_CTX   5

Definition at line 99 of file crypto.h.

◆ CRYPTO_get_add_lock_callback

#define CRYPTO_get_add_lock_callback ( )    (NULL)

Definition at line 216 of file crypto.h.

◆ CRYPTO_get_dynlock_create_callback

#define CRYPTO_get_dynlock_create_callback ( )    (NULL)

Definition at line 251 of file crypto.h.

◆ CRYPTO_get_dynlock_destroy_callback

#define CRYPTO_get_dynlock_destroy_callback ( )    (NULL)

Definition at line 253 of file crypto.h.

◆ CRYPTO_get_dynlock_lock_callback

#define CRYPTO_get_dynlock_lock_callback ( )    (NULL)

Definition at line 252 of file crypto.h.

◆ CRYPTO_get_id_callback

#define CRYPTO_get_id_callback ( )    (NULL)

Definition at line 244 of file crypto.h.

◆ CRYPTO_get_locking_callback

#define CRYPTO_get_locking_callback ( )    (NULL)

Definition at line 214 of file crypto.h.

◆ CRYPTO_LOCK

#define CRYPTO_LOCK   1

Definition at line 223 of file crypto.h.

◆ CRYPTO_MEM_CHECK_DISABLE

#define CRYPTO_MEM_CHECK_DISABLE   0x3 /* Control only */

Definition at line 84 of file crypto.h.

◆ CRYPTO_MEM_CHECK_ENABLE

#define CRYPTO_MEM_CHECK_ENABLE   0x2 /* Control and mode bit */

Definition at line 83 of file crypto.h.

◆ CRYPTO_MEM_CHECK_OFF

#define CRYPTO_MEM_CHECK_OFF   0x0 /* Control only */

Definition at line 81 of file crypto.h.

◆ CRYPTO_MEM_CHECK_ON

#define CRYPTO_MEM_CHECK_ON   0x1 /* Control and mode bit */

Definition at line 82 of file crypto.h.

◆ CRYPTO_num_locks

#define CRYPTO_num_locks ( )    (1)

Definition at line 212 of file crypto.h.

◆ CRYPTO_ONCE_STATIC_INIT

#define CRYPTO_ONCE_STATIC_INIT   0

Definition at line 428 of file crypto.h.

◆ CRYPTO_READ

#define CRYPTO_READ   4

Definition at line 225 of file crypto.h.

◆ CRYPTO_set_add_lock_callback

#define CRYPTO_set_add_lock_callback ( func)

Definition at line 215 of file crypto.h.

◆ CRYPTO_set_dynlock_create_callback

#define CRYPTO_set_dynlock_create_callback ( dyn_create_function)

Definition at line 248 of file crypto.h.

◆ CRYPTO_set_dynlock_destroy_callback

#define CRYPTO_set_dynlock_destroy_callback ( dyn_destroy_function)

Definition at line 250 of file crypto.h.

◆ CRYPTO_set_dynlock_lock_callback

#define CRYPTO_set_dynlock_lock_callback ( dyn_lock_function)

Definition at line 249 of file crypto.h.

◆ CRYPTO_set_id_callback

#define CRYPTO_set_id_callback ( func)

Definition at line 243 of file crypto.h.

◆ CRYPTO_set_locking_callback

#define CRYPTO_set_locking_callback ( func)

Definition at line 213 of file crypto.h.

◆ CRYPTO_thread_id

#define CRYPTO_thread_id ( )    (0UL)

Definition at line 245 of file crypto.h.

◆ CRYPTO_THREADID_cmp

#define CRYPTO_THREADID_cmp ( a,
b )   (-1)

Definition at line 238 of file crypto.h.

◆ CRYPTO_THREADID_cpy

#define CRYPTO_THREADID_cpy ( dest,
src )

Definition at line 239 of file crypto.h.

◆ CRYPTO_THREADID_current

#define CRYPTO_THREADID_current ( id)

Definition at line 237 of file crypto.h.

◆ CRYPTO_THREADID_get_callback

#define CRYPTO_THREADID_get_callback ( )    (NULL)

Definition at line 236 of file crypto.h.

◆ CRYPTO_THREADID_hash

#define CRYPTO_THREADID_hash ( id)    (0UL)

Definition at line 240 of file crypto.h.

◆ CRYPTO_THREADID_set_callback

#define CRYPTO_THREADID_set_callback ( threadid_func)    (0)

Definition at line 235 of file crypto.h.

◆ CRYPTO_THREADID_set_numeric

#define CRYPTO_THREADID_set_numeric ( id,
val )

Definition at line 233 of file crypto.h.

◆ CRYPTO_THREADID_set_pointer

#define CRYPTO_THREADID_set_pointer ( id,
ptr )

Definition at line 234 of file crypto.h.

◆ CRYPTO_UNLOCK

#define CRYPTO_UNLOCK   2

Definition at line 224 of file crypto.h.

◆ CRYPTO_WRITE

#define CRYPTO_WRITE   8

Definition at line 226 of file crypto.h.

◆ OPENSSL_assert

#define OPENSSL_assert ( e)     (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))

Definition at line 326 of file crypto.h.

◆ OPENSSL_BUILT_ON

#define OPENSSL_BUILT_ON   2

Definition at line 159 of file crypto.h.

◆ OPENSSL_CFLAGS

#define OPENSSL_CFLAGS   1

Definition at line 158 of file crypto.h.

◆ OPENSSL_clear_free

#define OPENSSL_clear_free ( addr,
num )    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 125 of file crypto.h.

◆ OPENSSL_clear_realloc

#define OPENSSL_clear_realloc ( addr,
old_num,
num )    CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 123 of file crypto.h.

◆ OPENSSL_DIR

#define OPENSSL_DIR   4

Definition at line 161 of file crypto.h.

◆ OPENSSL_ENGINES_DIR

#define OPENSSL_ENGINES_DIR   5

Definition at line 162 of file crypto.h.

◆ OPENSSL_free

#define OPENSSL_free ( addr)     CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 127 of file crypto.h.

◆ OPENSSL_INIT_ADD_ALL_CIPHERS

#define OPENSSL_INIT_ADD_ALL_CIPHERS   0x00000004L

Definition at line 358 of file crypto.h.

◆ OPENSSL_INIT_ADD_ALL_DIGESTS

#define OPENSSL_INIT_ADD_ALL_DIGESTS   0x00000008L

Definition at line 359 of file crypto.h.

◆ OPENSSL_INIT_ASYNC

#define OPENSSL_INIT_ASYNC   0x00000100L

Definition at line 364 of file crypto.h.

◆ OPENSSL_INIT_ATFORK

#define OPENSSL_INIT_ATFORK   0x00020000L

Definition at line 373 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_AFALG

#define OPENSSL_INIT_ENGINE_AFALG   0x00008000L

Definition at line 371 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_ALL_BUILTIN

#define OPENSSL_INIT_ENGINE_ALL_BUILTIN
Value:
#define OPENSSL_INIT_ENGINE_PADLOCK
Definition crypto.h:370
#define OPENSSL_INIT_ENGINE_RDRAND
Definition crypto.h:365
#define OPENSSL_INIT_ENGINE_CAPI
Definition crypto.h:369
#define OPENSSL_INIT_ENGINE_DYNAMIC
Definition crypto.h:366
#define OPENSSL_INIT_ENGINE_CRYPTODEV
Definition crypto.h:368

Definition at line 380 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_CAPI

#define OPENSSL_INIT_ENGINE_CAPI   0x00002000L

Definition at line 369 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_CRYPTODEV

#define OPENSSL_INIT_ENGINE_CRYPTODEV   0x00001000L

Definition at line 368 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_DYNAMIC

#define OPENSSL_INIT_ENGINE_DYNAMIC   0x00000400L

Definition at line 366 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_OPENSSL

#define OPENSSL_INIT_ENGINE_OPENSSL   0x00000800L

Definition at line 367 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_PADLOCK

#define OPENSSL_INIT_ENGINE_PADLOCK   0x00004000L

Definition at line 370 of file crypto.h.

◆ OPENSSL_INIT_ENGINE_RDRAND

#define OPENSSL_INIT_ENGINE_RDRAND   0x00000200L

Definition at line 365 of file crypto.h.

◆ OPENSSL_INIT_LOAD_CONFIG

#define OPENSSL_INIT_LOAD_CONFIG   0x00000040L

Definition at line 362 of file crypto.h.

◆ OPENSSL_INIT_LOAD_CRYPTO_STRINGS

#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS   0x00000002L

Definition at line 357 of file crypto.h.

◆ OPENSSL_INIT_NO_ADD_ALL_CIPHERS

#define OPENSSL_INIT_NO_ADD_ALL_CIPHERS   0x00000010L

Definition at line 360 of file crypto.h.

◆ OPENSSL_INIT_NO_ADD_ALL_DIGESTS

#define OPENSSL_INIT_NO_ADD_ALL_DIGESTS   0x00000020L

Definition at line 361 of file crypto.h.

◆ OPENSSL_INIT_NO_ATEXIT

#define OPENSSL_INIT_NO_ATEXIT   0x00080000L

Definition at line 375 of file crypto.h.

◆ OPENSSL_INIT_NO_LOAD_CONFIG

#define OPENSSL_INIT_NO_LOAD_CONFIG   0x00000080L

Definition at line 363 of file crypto.h.

◆ OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS

#define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS   0x00000001L

Definition at line 356 of file crypto.h.

◆ OPENSSL_malloc

#define OPENSSL_malloc ( num)     CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 117 of file crypto.h.

◆ OPENSSL_malloc_init

#define OPENSSL_malloc_init ( )    while(0) continue

Definition at line 113 of file crypto.h.

◆ OPENSSL_MALLOC_MAX_NELEMS

#define OPENSSL_MALLOC_MAX_NELEMS ( type)    (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))

Definition at line 153 of file crypto.h.

◆ OPENSSL_mem_debug_pop

#define OPENSSL_mem_debug_pop ( )     CRYPTO_mem_debug_pop()

Definition at line 294 of file crypto.h.

◆ OPENSSL_mem_debug_push

#define OPENSSL_mem_debug_push ( info)     CRYPTO_mem_debug_push(info, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 292 of file crypto.h.

◆ OPENSSL_memdup

#define OPENSSL_memdup ( str,
s )    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 129 of file crypto.h.

◆ OPENSSL_PLATFORM

#define OPENSSL_PLATFORM   3

Definition at line 160 of file crypto.h.

◆ OPENSSL_realloc

#define OPENSSL_realloc ( addr,
num )    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 121 of file crypto.h.

◆ OPENSSL_secure_actual_size

#define OPENSSL_secure_actual_size ( ptr)     CRYPTO_secure_actual_size(ptr)

Definition at line 143 of file crypto.h.

◆ OPENSSL_secure_clear_free

#define OPENSSL_secure_clear_free ( addr,
num )    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 141 of file crypto.h.

◆ OPENSSL_secure_free

#define OPENSSL_secure_free ( addr)     CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 139 of file crypto.h.

◆ OPENSSL_secure_malloc

#define OPENSSL_secure_malloc ( num)     CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 135 of file crypto.h.

◆ OPENSSL_secure_zalloc

#define OPENSSL_secure_zalloc ( num)     CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 137 of file crypto.h.

◆ OPENSSL_strdup

#define OPENSSL_strdup ( str)     CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 131 of file crypto.h.

◆ OPENSSL_strndup

#define OPENSSL_strndup ( str,
n )    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 133 of file crypto.h.

◆ OPENSSL_VERSION

#define OPENSSL_VERSION   0

Definition at line 157 of file crypto.h.

◆ OPENSSL_zalloc

#define OPENSSL_zalloc ( num)     CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)

Definition at line 119 of file crypto.h.

◆ OpenSSLDie

#define OpenSSLDie ( f,
l,
a )   OPENSSL_die((a),(f),(l))

Definition at line 324 of file crypto.h.

◆ SSLeay

#define SSLeay   OpenSSL_version_num

Definition at line 48 of file crypto.h.

◆ SSLEAY_BUILT_ON

#define SSLEAY_BUILT_ON   OPENSSL_BUILT_ON

Definition at line 53 of file crypto.h.

◆ SSLEAY_CFLAGS

#define SSLEAY_CFLAGS   OPENSSL_CFLAGS

Definition at line 52 of file crypto.h.

◆ SSLEAY_DIR

#define SSLEAY_DIR   OPENSSL_DIR

Definition at line 55 of file crypto.h.

◆ SSLEAY_PLATFORM

#define SSLEAY_PLATFORM   OPENSSL_PLATFORM

Definition at line 54 of file crypto.h.

◆ SSLeay_version

#define SSLeay_version   OpenSSL_version

Definition at line 49 of file crypto.h.

◆ SSLEAY_VERSION

#define SSLEAY_VERSION   OPENSSL_VERSION

Definition at line 51 of file crypto.h.

◆ SSLEAY_VERSION_NUMBER

#define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER

Definition at line 50 of file crypto.h.

Typedef Documentation

◆ CRYPTO_EX_dup

typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, void *from_d, int idx, long argl, void *argp)

Definition at line 170 of file crypto.h.

◆ CRYPTO_EX_free

typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, long argl, void *argp)

Definition at line 168 of file crypto.h.

◆ CRYPTO_EX_new

typedef void CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, long argl, void *argp)

Definition at line 166 of file crypto.h.

◆ CRYPTO_ONCE

typedef unsigned int CRYPTO_ONCE

Definition at line 425 of file crypto.h.

◆ CRYPTO_RWLOCK

typedef void CRYPTO_RWLOCK

Definition at line 67 of file crypto.h.

◆ CRYPTO_THREAD_ID

typedef unsigned int CRYPTO_THREAD_ID

Definition at line 427 of file crypto.h.

◆ CRYPTO_THREAD_LOCAL

typedef unsigned int CRYPTO_THREAD_LOCAL

Definition at line 426 of file crypto.h.

◆ CRYPTO_THREADID

Function Documentation

◆ CRYPTO_atomic_add()

int CRYPTO_atomic_add ( int * val,
int amount,
int * ret,
CRYPTO_RWLOCK * lock )

◆ CRYPTO_clear_free()

void CRYPTO_clear_free ( void * ptr,
size_t num,
const char * file,
int line )

◆ CRYPTO_clear_realloc()

void * CRYPTO_clear_realloc ( void * addr,
size_t old_num,
size_t num,
const char * file,
int line )

◆ CRYPTO_dup_ex_data()

int CRYPTO_dup_ex_data ( int class_index,
CRYPTO_EX_DATA * to,
const CRYPTO_EX_DATA * from )

◆ CRYPTO_free()

void CRYPTO_free ( void * ptr,
const char * file,
int line )

◆ CRYPTO_free_ex_data()

void CRYPTO_free_ex_data ( int class_index,
void * obj,
CRYPTO_EX_DATA * ad )

◆ CRYPTO_free_ex_index()

int CRYPTO_free_ex_index ( int class_index,
int idx )

◆ CRYPTO_get_alloc_counts()

void CRYPTO_get_alloc_counts ( int * mcount,
int * rcount,
int * fcount )

◆ CRYPTO_get_ex_data()

void * CRYPTO_get_ex_data ( const CRYPTO_EX_DATA * ad,
int idx )

◆ CRYPTO_get_ex_new_index()

__owur int CRYPTO_get_ex_new_index ( int class_index,
long argl,
void * argp,
CRYPTO_EX_new * new_func,
CRYPTO_EX_dup * dup_func,
CRYPTO_EX_free * free_func )

◆ CRYPTO_get_mem_functions()

void CRYPTO_get_mem_functions ( void *(**)(size_t, const char *, int) m,
void *(**)(void *, size_t, const char *, int) r,
void(**)(void *, const char *, int) f )

◆ CRYPTO_malloc()

void * CRYPTO_malloc ( size_t num,
const char * file,
int line )

◆ CRYPTO_mem_ctrl()

int CRYPTO_mem_ctrl ( int mode)

◆ CRYPTO_mem_debug_free()

void CRYPTO_mem_debug_free ( void * addr,
int flag,
const char * file,
int line )

◆ CRYPTO_mem_debug_malloc()

void CRYPTO_mem_debug_malloc ( void * addr,
size_t num,
int flag,
const char * file,
int line )

◆ CRYPTO_mem_debug_pop()

int CRYPTO_mem_debug_pop ( void )

◆ CRYPTO_mem_debug_push()

int CRYPTO_mem_debug_push ( const char * info,
const char * file,
int line )

◆ CRYPTO_mem_debug_realloc()

void CRYPTO_mem_debug_realloc ( void * addr1,
void * addr2,
size_t num,
int flag,
const char * file,
int line )

◆ CRYPTO_mem_leaks()

int CRYPTO_mem_leaks ( BIO * bio)

◆ CRYPTO_mem_leaks_cb()

int CRYPTO_mem_leaks_cb ( int(*)(const char *str, size_t len, void *u) cb,
void * u )

◆ CRYPTO_mem_leaks_fp()

int CRYPTO_mem_leaks_fp ( FILE * )

◆ CRYPTO_memcmp()

int CRYPTO_memcmp ( const void * in_a,
const void * in_b,
size_t len )

◆ CRYPTO_memdup()

void * CRYPTO_memdup ( const void * str,
size_t siz,
const char * file,
int line )

◆ CRYPTO_new_ex_data()

int CRYPTO_new_ex_data ( int class_index,
void * obj,
CRYPTO_EX_DATA * ad )

◆ CRYPTO_realloc()

void * CRYPTO_realloc ( void * addr,
size_t num,
const char * file,
int line )

◆ CRYPTO_secure_actual_size()

size_t CRYPTO_secure_actual_size ( void * ptr)

◆ CRYPTO_secure_allocated()

int CRYPTO_secure_allocated ( const void * ptr)

◆ CRYPTO_secure_clear_free()

void CRYPTO_secure_clear_free ( void * ptr,
size_t num,
const char * file,
int line )

◆ CRYPTO_secure_free()

void CRYPTO_secure_free ( void * ptr,
const char * file,
int line )

◆ CRYPTO_secure_malloc()

void * CRYPTO_secure_malloc ( size_t num,
const char * file,
int line )

◆ CRYPTO_secure_malloc_done()

int CRYPTO_secure_malloc_done ( void )

◆ CRYPTO_secure_malloc_init()

int CRYPTO_secure_malloc_init ( size_t sz,
int minsize )

◆ CRYPTO_secure_malloc_initialized()

int CRYPTO_secure_malloc_initialized ( void )

◆ CRYPTO_secure_used()

size_t CRYPTO_secure_used ( void )

◆ CRYPTO_secure_zalloc()

void * CRYPTO_secure_zalloc ( size_t num,
const char * file,
int line )

◆ CRYPTO_set_ex_data()

int CRYPTO_set_ex_data ( CRYPTO_EX_DATA * ad,
int idx,
void * val )

◆ CRYPTO_set_mem_debug()

int CRYPTO_set_mem_debug ( int flag)

◆ CRYPTO_set_mem_functions()

int CRYPTO_set_mem_functions ( void *(*)(size_t, const char *, int) m,
void *(*)(void *, size_t, const char *, int) r,
void(*)(void *, const char *, int) f )

◆ CRYPTO_strdup()

char * CRYPTO_strdup ( const char * str,
const char * file,
int line )

◆ CRYPTO_strndup()

char * CRYPTO_strndup ( const char * str,
size_t s,
const char * file,
int line )

◆ CRYPTO_THREAD_cleanup_local()

int CRYPTO_THREAD_cleanup_local ( CRYPTO_THREAD_LOCAL * key)

◆ CRYPTO_THREAD_compare_id()

int CRYPTO_THREAD_compare_id ( CRYPTO_THREAD_ID a,
CRYPTO_THREAD_ID b )

◆ CRYPTO_THREAD_get_current_id()

CRYPTO_THREAD_ID CRYPTO_THREAD_get_current_id ( void )

◆ CRYPTO_THREAD_get_local()

void * CRYPTO_THREAD_get_local ( CRYPTO_THREAD_LOCAL * key)

◆ CRYPTO_THREAD_init_local()

int CRYPTO_THREAD_init_local ( CRYPTO_THREAD_LOCAL * key,
void(*)(void *) cleanup )

◆ CRYPTO_THREAD_lock_free()

void CRYPTO_THREAD_lock_free ( CRYPTO_RWLOCK * lock)

◆ CRYPTO_THREAD_lock_new()

CRYPTO_RWLOCK * CRYPTO_THREAD_lock_new ( void )

◆ CRYPTO_THREAD_read_lock()

int CRYPTO_THREAD_read_lock ( CRYPTO_RWLOCK * lock)

◆ CRYPTO_THREAD_run_once()

int CRYPTO_THREAD_run_once ( CRYPTO_ONCE * once,
void(*)(void) init )

◆ CRYPTO_THREAD_set_local()

int CRYPTO_THREAD_set_local ( CRYPTO_THREAD_LOCAL * key,
void * val )

◆ CRYPTO_THREAD_unlock()

int CRYPTO_THREAD_unlock ( CRYPTO_RWLOCK * lock)

◆ CRYPTO_THREAD_write_lock()

int CRYPTO_THREAD_write_lock ( CRYPTO_RWLOCK * lock)

◆ CRYPTO_zalloc()

void * CRYPTO_zalloc ( size_t num,
const char * file,
int line )

◆ FIPS_mode()

int FIPS_mode ( void )

◆ FIPS_mode_set()

int FIPS_mode_set ( int r)

◆ OPENSSL_atexit()

int OPENSSL_atexit ( void(*)(void) handler)

◆ OPENSSL_buf2hexstr()

char * OPENSSL_buf2hexstr ( const unsigned char * buffer,
long len )

◆ OPENSSL_cleanse()

void OPENSSL_cleanse ( void * ptr,
size_t len )

◆ OPENSSL_cleanup()

void OPENSSL_cleanup ( void )

◆ OPENSSL_die()

ossl_noreturn void OPENSSL_die ( const char * assertion,
const char * file,
int line )

◆ OPENSSL_gmtime()

struct tm * OPENSSL_gmtime ( const time_t * timer,
struct tm * result )

◆ OPENSSL_gmtime_adj()

int OPENSSL_gmtime_adj ( struct tm * tm,
int offset_day,
long offset_sec )

◆ OPENSSL_gmtime_diff()

int OPENSSL_gmtime_diff ( int * pday,
int * psec,
const struct tm * from,
const struct tm * to )

◆ OPENSSL_hexchar2int()

int OPENSSL_hexchar2int ( unsigned char c)

◆ OPENSSL_hexstr2buf()

unsigned char * OPENSSL_hexstr2buf ( const char * str,
long * len )

◆ OPENSSL_init()

void OPENSSL_init ( void )

◆ OPENSSL_init_crypto()

int OPENSSL_init_crypto ( uint64_t opts,
const OPENSSL_INIT_SETTINGS * settings )

◆ OPENSSL_INIT_free()

void OPENSSL_INIT_free ( OPENSSL_INIT_SETTINGS * settings)

◆ OPENSSL_INIT_new()

OPENSSL_INIT_SETTINGS * OPENSSL_INIT_new ( void )

◆ OPENSSL_INIT_set_config_appname()

int OPENSSL_INIT_set_config_appname ( OPENSSL_INIT_SETTINGS * settings,
const char * config_appname )

◆ OPENSSL_INIT_set_config_file_flags()

void OPENSSL_INIT_set_config_file_flags ( OPENSSL_INIT_SETTINGS * settings,
unsigned long flags )

◆ OPENSSL_INIT_set_config_filename()

int OPENSSL_INIT_set_config_filename ( OPENSSL_INIT_SETTINGS * settings,
const char * config_filename )

◆ OPENSSL_isservice()

int OPENSSL_isservice ( void )

◆ OPENSSL_issetugid()

int OPENSSL_issetugid ( void )

◆ OPENSSL_strlcat()

size_t OPENSSL_strlcat ( char * dst,
const char * src,
size_t siz )

◆ OPENSSL_strlcpy()

size_t OPENSSL_strlcpy ( char * dst,
const char * src,
size_t siz )

◆ OPENSSL_strnlen()

size_t OPENSSL_strnlen ( const char * str,
size_t maxlen )

◆ OPENSSL_thread_stop()

void OPENSSL_thread_stop ( void )

◆ OpenSSL_version()

const char * OpenSSL_version ( int type)

◆ OpenSSL_version_num()

unsigned long OpenSSL_version_num ( void )