OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
crypto.h File Reference
#include <stdlib.h>
#include <openssl/e_os2.h>
#include <stdio.h>
#include <openssl/stack.h>
#include <openssl/safestack.h>
#include <openssl/opensslv.h>
#include <openssl/ossl_typ.h>
#include <openssl/symhacks.h>

Go to the source code of this file.

Classes

struct  openssl_item_st
 
struct  CRYPTO_dynlock
 
struct  crypto_ex_data_st
 
struct  crypto_ex_data_func_st
 
struct  crypto_threadid_st
 

Macros

#define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER
 
#define SSLEAY_VERSION   0
 
#define SSLEAY_CFLAGS   2
 
#define SSLEAY_BUILT_ON   3
 
#define SSLEAY_PLATFORM   4
 
#define SSLEAY_DIR   5
 
#define CRYPTO_LOCK_ERR   1
 
#define CRYPTO_LOCK_EX_DATA   2
 
#define CRYPTO_LOCK_X509   3
 
#define CRYPTO_LOCK_X509_INFO   4
 
#define CRYPTO_LOCK_X509_PKEY   5
 
#define CRYPTO_LOCK_X509_CRL   6
 
#define CRYPTO_LOCK_X509_REQ   7
 
#define CRYPTO_LOCK_DSA   8
 
#define CRYPTO_LOCK_RSA   9
 
#define CRYPTO_LOCK_EVP_PKEY   10
 
#define CRYPTO_LOCK_X509_STORE   11
 
#define CRYPTO_LOCK_SSL_CTX   12
 
#define CRYPTO_LOCK_SSL_CERT   13
 
#define CRYPTO_LOCK_SSL_SESSION   14
 
#define CRYPTO_LOCK_SSL_SESS_CERT   15
 
#define CRYPTO_LOCK_SSL   16
 
#define CRYPTO_LOCK_SSL_METHOD   17
 
#define CRYPTO_LOCK_RAND   18
 
#define CRYPTO_LOCK_RAND2   19
 
#define CRYPTO_LOCK_MALLOC   20
 
#define CRYPTO_LOCK_BIO   21
 
#define CRYPTO_LOCK_GETHOSTBYNAME   22
 
#define CRYPTO_LOCK_GETSERVBYNAME   23
 
#define CRYPTO_LOCK_READDIR   24
 
#define CRYPTO_LOCK_RSA_BLINDING   25
 
#define CRYPTO_LOCK_DH   26
 
#define CRYPTO_LOCK_MALLOC2   27
 
#define CRYPTO_LOCK_DSO   28
 
#define CRYPTO_LOCK_DYNLOCK   29
 
#define CRYPTO_LOCK_ENGINE   30
 
#define CRYPTO_LOCK_UI   31
 
#define CRYPTO_LOCK_ECDSA   32
 
#define CRYPTO_LOCK_EC   33
 
#define CRYPTO_LOCK_ECDH   34
 
#define CRYPTO_LOCK_BN   35
 
#define CRYPTO_LOCK_EC_PRE_COMP   36
 
#define CRYPTO_LOCK_STORE   37
 
#define CRYPTO_LOCK_COMP   38
 
#define CRYPTO_LOCK_FIPS   39
 
#define CRYPTO_LOCK_FIPS2   40
 
#define CRYPTO_NUM_LOCKS   41
 
#define CRYPTO_LOCK   1
 
#define CRYPTO_UNLOCK   2
 
#define CRYPTO_READ   4
 
#define CRYPTO_WRITE   8
 
#define CRYPTO_w_lock(type)   CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)
 
#define CRYPTO_w_unlock(type)   CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)
 
#define CRYPTO_r_lock(type)   CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,__FILE__,__LINE__)
 
#define CRYPTO_r_unlock(type)   CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,__FILE__,__LINE__)
 
#define CRYPTO_add(addr, amount, type)   CRYPTO_add_lock(addr,amount,type,__FILE__,__LINE__)
 
#define CRYPTO_MEM_CHECK_OFF   0x0 /* an enume */
 
#define CRYPTO_MEM_CHECK_ON   0x1 /* a bit */
 
#define CRYPTO_MEM_CHECK_ENABLE   0x2 /* a bit */
 
#define CRYPTO_MEM_CHECK_DISABLE   0x3 /* an enume */
 
#define V_CRYPTO_MDEBUG_TIME   0x1 /* a bit */
 
#define V_CRYPTO_MDEBUG_THREAD   0x2 /* a bit */
 
#define V_CRYPTO_MDEBUG_ALL   (V_CRYPTO_MDEBUG_TIME | V_CRYPTO_MDEBUG_THREAD)
 
#define CRYPTO_EX_INDEX_BIO   0
 
#define CRYPTO_EX_INDEX_SSL   1
 
#define CRYPTO_EX_INDEX_SSL_CTX   2
 
#define CRYPTO_EX_INDEX_SSL_SESSION   3
 
#define CRYPTO_EX_INDEX_X509_STORE   4
 
#define CRYPTO_EX_INDEX_X509_STORE_CTX   5
 
#define CRYPTO_EX_INDEX_RSA   6
 
#define CRYPTO_EX_INDEX_DSA   7
 
#define CRYPTO_EX_INDEX_DH   8
 
#define CRYPTO_EX_INDEX_ENGINE   9
 
#define CRYPTO_EX_INDEX_X509   10
 
#define CRYPTO_EX_INDEX_UI   11
 
#define CRYPTO_EX_INDEX_ECDSA   12
 
#define CRYPTO_EX_INDEX_ECDH   13
 
#define CRYPTO_EX_INDEX_COMP   14
 
#define CRYPTO_EX_INDEX_STORE   15
 
#define CRYPTO_EX_INDEX_USER   100
 
#define CRYPTO_malloc_init()
 
#define CRYPTO_malloc_debug_init()
 
#define MemCheck_start()   CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON)
 
#define MemCheck_stop()   CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF)
 
#define MemCheck_on()   CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE)
 
#define MemCheck_off()   CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE)
 
#define is_MemCheck_on()   CRYPTO_is_mem_check_on()
 
#define OPENSSL_malloc(num)   CRYPTO_malloc((int)num,__FILE__,__LINE__)
 
#define OPENSSL_strdup(str)   CRYPTO_strdup((str),__FILE__,__LINE__)
 
#define OPENSSL_realloc(addr, num)   CRYPTO_realloc((char *)addr,(int)num,__FILE__,__LINE__)
 
#define OPENSSL_realloc_clean(addr, old_num, num)   CRYPTO_realloc_clean(addr,old_num,num,__FILE__,__LINE__)
 
#define OPENSSL_remalloc(addr, num)   CRYPTO_remalloc((char **)addr,(int)num,__FILE__,__LINE__)
 
#define OPENSSL_freeFunc   CRYPTO_free
 
#define OPENSSL_free(addr)   CRYPTO_free(addr)
 
#define OPENSSL_malloc_locked(num)   CRYPTO_malloc_locked((int)num,__FILE__,__LINE__)
 
#define OPENSSL_free_locked(addr)   CRYPTO_free_locked(addr)
 
#define CRYPTO_push_info(info)   CRYPTO_push_info_(info, __FILE__, __LINE__);
 
#define OPENSSL_assert(e)   (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1))
 
#define OPENSSL_ia32cap   (*(OPENSSL_ia32cap_loc()))
 
#define fips_md_init(alg)   fips_md_init_ctx(alg, alg)
 
#define fips_md_init_ctx(alg, cx)   int alg##_Init(cx##_CTX *c)
 
#define fips_cipher_abort(alg)   while(0)
 
#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX   100
 
#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID   103
 
#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID   101
 
#define CRYPTO_F_CRYPTO_SET_EX_DATA   102
 
#define CRYPTO_F_DEF_ADD_INDEX   104
 
#define CRYPTO_F_DEF_GET_CLASS   105
 
#define CRYPTO_F_FIPS_MODE_SET   109
 
#define CRYPTO_F_INT_DUP_EX_DATA   106
 
#define CRYPTO_F_INT_FREE_EX_DATA   107
 
#define CRYPTO_F_INT_NEW_EX_DATA   108
 
#define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED   101
 
#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK   100
 

Typedefs

typedef struct openssl_item_st OPENSSL_ITEM
 
typedef struct bio_st BIO_dummy
 
typedef struct
crypto_ex_data_func_st 
CRYPTO_EX_DATA_FUNCS
 
typedef struct
st_CRYPTO_EX_DATA_IMPL 
CRYPTO_EX_DATA_IMPL
 
typedef struct crypto_threadid_st CRYPTO_THREADID
 
typedef voidCRYPTO_MEM_LEAK_CB (unsigned long, const char *, int, int, void *)
 

Functions

int CRYPTO_mem_ctrl (int mode)
 
int CRYPTO_is_mem_check_on (void)
 
const char * SSLeay_version (int type)
 
unsigned long SSLeay (void)
 
int OPENSSL_issetugid (void)
 
const CRYPTO_EX_DATA_IMPLCRYPTO_get_ex_data_implementation (void)
 
int CRYPTO_set_ex_data_implementation (const CRYPTO_EX_DATA_IMPL *i)
 
int CRYPTO_ex_data_new_class (void)
 
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_new_ex_data (int class_index, void *obj, CRYPTO_EX_DATA *ad)
 
int CRYPTO_dup_ex_data (int class_index, CRYPTO_EX_DATA *to, 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)
 
voidCRYPTO_get_ex_data (const CRYPTO_EX_DATA *ad, int idx)
 
void CRYPTO_cleanup_all_ex_data (void)
 
int CRYPTO_get_new_lockid (char *name)
 
int CRYPTO_num_locks (void)
 
void CRYPTO_lock (int mode, int type, const char *file, int line)
 
void CRYPTO_set_locking_callback (void(*func)(int mode, int type, const char *file, int line))
 
void CRYPTO_set_add_lock_callback (int(*func)(int *num, int mount, int type, const char *file, int line))
 
void CRYPTO_THREADID_set_numeric (CRYPTO_THREADID *id, unsigned long val)
 
void CRYPTO_THREADID_set_pointer (CRYPTO_THREADID *id, void *ptr)
 
int CRYPTO_THREADID_set_callback (void(*threadid_func)(CRYPTO_THREADID *))
 
void CRYPTO_THREADID_current (CRYPTO_THREADID *id)
 
int CRYPTO_THREADID_cmp (const CRYPTO_THREADID *a, const CRYPTO_THREADID *b)
 
void CRYPTO_THREADID_cpy (CRYPTO_THREADID *dest, const CRYPTO_THREADID *src)
 
unsigned long CRYPTO_THREADID_hash (const CRYPTO_THREADID *id)
 
void CRYPTO_set_id_callback (unsigned long(*func)(void))
 
unsigned long CRYPTO_thread_id (void)
 
const char * CRYPTO_get_lock_name (int type)
 
int CRYPTO_add_lock (int *pointer, int amount, int type, const char *file, int line)
 
int CRYPTO_get_new_dynlockid (void)
 
void CRYPTO_destroy_dynlockid (int i)
 
struct CRYPTO_dynlock_value * CRYPTO_get_dynlock_value (int i)
 
void CRYPTO_set_dynlock_create_callback (struct CRYPTO_dynlock_value *(*dyn_create_function)(const char *file, int line))
 
void CRYPTO_set_dynlock_lock_callback (void(*dyn_lock_function)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line))
 
void CRYPTO_set_dynlock_destroy_callback (void(*dyn_destroy_function)(struct CRYPTO_dynlock_value *l, const char *file, int line))
 
int CRYPTO_set_mem_functions (void *(*m)(size_t), void *(*r)(void *, size_t), void(*f)(void *))
 
int CRYPTO_set_locked_mem_functions (void *(*m)(size_t), void(*free_func)(void *))
 
int CRYPTO_set_mem_ex_functions (void *(*m)(size_t, const char *, int), void *(*r)(void *, size_t, const char *, int), void(*f)(void *))
 
int CRYPTO_set_locked_mem_ex_functions (void *(*m)(size_t, const char *, int), void(*free_func)(void *))
 
int CRYPTO_set_mem_debug_functions (void(*m)(void *, int, const char *, int, int), void(*r)(void *, void *, int, const char *, int, int), void(*f)(void *, int), void(*so)(long), long(*go)(void))
 
void CRYPTO_get_mem_functions (void *(**m)(size_t), void *(**r)(void *, size_t), void(**f)(void *))
 
void CRYPTO_get_locked_mem_functions (void *(**m)(size_t), void(**f)(void *))
 
void CRYPTO_get_mem_ex_functions (void *(**m)(size_t, const char *, int), void *(**r)(void *, size_t, const char *, int), void(**f)(void *))
 
void CRYPTO_get_locked_mem_ex_functions (void *(**m)(size_t, const char *, int), void(**f)(void *))
 
void CRYPTO_get_mem_debug_functions (void(**m)(void *, int, const char *, int, int), void(**r)(void *, void *, int, const char *, int, int), void(**f)(void *, int), void(**so)(long), long(**go)(void))
 
voidCRYPTO_malloc_locked (int num, const char *file, int line)
 
void CRYPTO_free_locked (void *)
 
voidCRYPTO_malloc (int num, const char *file, int line)
 
char * CRYPTO_strdup (const char *str, const char *file, int line)
 
void CRYPTO_free (void *)
 
voidCRYPTO_realloc (void *addr, int num, const char *file, int line)
 
voidCRYPTO_realloc_clean (void *addr, int old_num, int num, const char *file, int line)
 
voidCRYPTO_remalloc (void *addr, int num, const char *file, int line)
 
void OPENSSL_cleanse (void *ptr, size_t len)
 
void CRYPTO_set_mem_debug_options (long bits)
 
long CRYPTO_get_mem_debug_options (void)
 
int CRYPTO_push_info_ (const char *info, const char *file, int line)
 
int CRYPTO_pop_info (void)
 
int CRYPTO_remove_all_info (void)
 
void CRYPTO_dbg_malloc (void *addr, int num, const char *file, int line, int before_p)
 
void CRYPTO_dbg_realloc (void *addr1, void *addr2, int num, const char *file, int line, int before_p)
 
void CRYPTO_dbg_free (void *addr, int before_p)
 
void CRYPTO_dbg_set_options (long bits)
 
long CRYPTO_dbg_get_options (void)
 
void CRYPTO_mem_leaks_fp (FILE *)
 
void CRYPTO_mem_leaks (struct bio_st *bio)
 
void CRYPTO_mem_leaks_cb (CRYPTO_MEM_LEAK_CB *cb)
 
void OpenSSLDie (const char *file, int line, const char *assertion)
 
unsigned long * OPENSSL_ia32cap_loc (void)
 
int OPENSSL_isservice (void)
 
int FIPS_mode (void)
 
int FIPS_mode_set (int r)
 
void OPENSSL_init (void)
 
void ERR_load_CRYPTO_strings (void)
 

Variables

void(*)(int mode, int type,
const char *file, int line) 
CRYPTO_get_locking_callback (void)
 
int(*)(int *num, int mount,
int type, const char *file,
int line) 
CRYPTO_get_add_lock_callback (void)
 
void(*)(CRYPTO_THREADID *) CRYPTO_THREADID_get_callback (void)
 
unsigned long(*)(voidCRYPTO_get_id_callback (void)
 
struct CRYPTO_dynlock_value
*(*)(const char *file, int
line) 
CRYPTO_get_dynlock_create_callback (void)
 
void(*)(int mode, struct
CRYPTO_dynlock_value *l, const
char *file, int line) 
CRYPTO_get_dynlock_lock_callback (void)
 
void(*)(struct
CRYPTO_dynlock_value *l, const
char *file, int line) 
CRYPTO_get_dynlock_destroy_callback (void)
 

Macro Definition Documentation

#define CRYPTO_add (   addr,
  amount,
  type 
)    CRYPTO_add_lock(addr,amount,type,__FILE__,__LINE__)

Definition at line 241 of file crypto.h.

#define CRYPTO_EX_INDEX_BIO   0

Definition at line 310 of file crypto.h.

#define CRYPTO_EX_INDEX_COMP   14

Definition at line 324 of file crypto.h.

#define CRYPTO_EX_INDEX_DH   8

Definition at line 318 of file crypto.h.

#define CRYPTO_EX_INDEX_DSA   7

Definition at line 317 of file crypto.h.

#define CRYPTO_EX_INDEX_ECDH   13

Definition at line 323 of file crypto.h.

#define CRYPTO_EX_INDEX_ECDSA   12

Definition at line 322 of file crypto.h.

#define CRYPTO_EX_INDEX_ENGINE   9

Definition at line 319 of file crypto.h.

#define CRYPTO_EX_INDEX_RSA   6

Definition at line 316 of file crypto.h.

#define CRYPTO_EX_INDEX_SSL   1

Definition at line 311 of file crypto.h.

#define CRYPTO_EX_INDEX_SSL_CTX   2

Definition at line 312 of file crypto.h.

#define CRYPTO_EX_INDEX_SSL_SESSION   3

Definition at line 313 of file crypto.h.

#define CRYPTO_EX_INDEX_STORE   15

Definition at line 325 of file crypto.h.

#define CRYPTO_EX_INDEX_UI   11

Definition at line 321 of file crypto.h.

#define CRYPTO_EX_INDEX_USER   100

Definition at line 329 of file crypto.h.

#define CRYPTO_EX_INDEX_X509   10

Definition at line 320 of file crypto.h.

#define CRYPTO_EX_INDEX_X509_STORE   4

Definition at line 314 of file crypto.h.

#define CRYPTO_EX_INDEX_X509_STORE_CTX   5

Definition at line 315 of file crypto.h.

#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX   100

Definition at line 586 of file crypto.h.

#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID   103

Definition at line 587 of file crypto.h.

#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID   101

Definition at line 588 of file crypto.h.

#define CRYPTO_F_CRYPTO_SET_EX_DATA   102

Definition at line 589 of file crypto.h.

#define CRYPTO_F_DEF_ADD_INDEX   104

Definition at line 590 of file crypto.h.

#define CRYPTO_F_DEF_GET_CLASS   105

Definition at line 591 of file crypto.h.

#define CRYPTO_F_FIPS_MODE_SET   109

Definition at line 592 of file crypto.h.

#define CRYPTO_F_INT_DUP_EX_DATA   106

Definition at line 593 of file crypto.h.

#define CRYPTO_F_INT_FREE_EX_DATA   107

Definition at line 594 of file crypto.h.

#define CRYPTO_F_INT_NEW_EX_DATA   108

Definition at line 595 of file crypto.h.

#define CRYPTO_LOCK   1

Definition at line 226 of file crypto.h.

#define CRYPTO_LOCK_BIO   21

Definition at line 204 of file crypto.h.

#define CRYPTO_LOCK_BN   35

Definition at line 218 of file crypto.h.

#define CRYPTO_LOCK_COMP   38

Definition at line 221 of file crypto.h.

#define CRYPTO_LOCK_DH   26

Definition at line 209 of file crypto.h.

#define CRYPTO_LOCK_DSA   8

Definition at line 191 of file crypto.h.

#define CRYPTO_LOCK_DSO   28

Definition at line 211 of file crypto.h.

#define CRYPTO_LOCK_DYNLOCK   29

Definition at line 212 of file crypto.h.

#define CRYPTO_LOCK_EC   33

Definition at line 216 of file crypto.h.

#define CRYPTO_LOCK_EC_PRE_COMP   36

Definition at line 219 of file crypto.h.

#define CRYPTO_LOCK_ECDH   34

Definition at line 217 of file crypto.h.

#define CRYPTO_LOCK_ECDSA   32

Definition at line 215 of file crypto.h.

#define CRYPTO_LOCK_ENGINE   30

Definition at line 213 of file crypto.h.

#define CRYPTO_LOCK_ERR   1

Definition at line 184 of file crypto.h.

#define CRYPTO_LOCK_EVP_PKEY   10

Definition at line 193 of file crypto.h.

#define CRYPTO_LOCK_EX_DATA   2

Definition at line 185 of file crypto.h.

#define CRYPTO_LOCK_FIPS   39

Definition at line 222 of file crypto.h.

#define CRYPTO_LOCK_FIPS2   40

Definition at line 223 of file crypto.h.

#define CRYPTO_LOCK_GETHOSTBYNAME   22

Definition at line 205 of file crypto.h.

#define CRYPTO_LOCK_GETSERVBYNAME   23

Definition at line 206 of file crypto.h.

#define CRYPTO_LOCK_MALLOC   20

Definition at line 203 of file crypto.h.

#define CRYPTO_LOCK_MALLOC2   27

Definition at line 210 of file crypto.h.

#define CRYPTO_LOCK_RAND   18

Definition at line 201 of file crypto.h.

#define CRYPTO_LOCK_RAND2   19

Definition at line 202 of file crypto.h.

#define CRYPTO_LOCK_READDIR   24

Definition at line 207 of file crypto.h.

#define CRYPTO_LOCK_RSA   9

Definition at line 192 of file crypto.h.

#define CRYPTO_LOCK_RSA_BLINDING   25

Definition at line 208 of file crypto.h.

#define CRYPTO_LOCK_SSL   16

Definition at line 199 of file crypto.h.

#define CRYPTO_LOCK_SSL_CERT   13

Definition at line 196 of file crypto.h.

#define CRYPTO_LOCK_SSL_CTX   12

Definition at line 195 of file crypto.h.

#define CRYPTO_LOCK_SSL_METHOD   17

Definition at line 200 of file crypto.h.

#define CRYPTO_LOCK_SSL_SESS_CERT   15

Definition at line 198 of file crypto.h.

#define CRYPTO_LOCK_SSL_SESSION   14

Definition at line 197 of file crypto.h.

#define CRYPTO_LOCK_STORE   37

Definition at line 220 of file crypto.h.

#define CRYPTO_LOCK_UI   31

Definition at line 214 of file crypto.h.

#define CRYPTO_LOCK_X509   3

Definition at line 186 of file crypto.h.

#define CRYPTO_LOCK_X509_CRL   6

Definition at line 189 of file crypto.h.

#define CRYPTO_LOCK_X509_INFO   4

Definition at line 187 of file crypto.h.

#define CRYPTO_LOCK_X509_PKEY   5

Definition at line 188 of file crypto.h.

#define CRYPTO_LOCK_X509_REQ   7

Definition at line 190 of file crypto.h.

#define CRYPTO_LOCK_X509_STORE   11

Definition at line 194 of file crypto.h.

#define CRYPTO_malloc_debug_init ( )
Value:
do {\
CRYPTO_set_mem_debug_functions(\
} while(0)

Definition at line 347 of file crypto.h.

#define CRYPTO_malloc_init ( )
Value:
malloc, realloc, free)

Definition at line 336 of file crypto.h.

#define CRYPTO_MEM_CHECK_DISABLE   0x3 /* an enume */

Definition at line 269 of file crypto.h.

#define CRYPTO_MEM_CHECK_ENABLE   0x2 /* a bit */

Definition at line 268 of file crypto.h.

#define CRYPTO_MEM_CHECK_OFF   0x0 /* an enume */

Definition at line 266 of file crypto.h.

#define CRYPTO_MEM_CHECK_ON   0x1 /* a bit */

Definition at line 267 of file crypto.h.

#define CRYPTO_NUM_LOCKS   41

Definition at line 224 of file crypto.h.

#define CRYPTO_push_info (   info)    CRYPTO_push_info_(info, __FILE__, __LINE__);

Definition at line 505 of file crypto.h.

#define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED   101

Definition at line 598 of file crypto.h.

#define CRYPTO_r_lock (   type)    CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,__FILE__,__LINE__)

Definition at line 237 of file crypto.h.

#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK   100

Definition at line 599 of file crypto.h.

#define CRYPTO_r_unlock (   type)    CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,__FILE__,__LINE__)

Definition at line 239 of file crypto.h.

#define CRYPTO_READ   4

Definition at line 228 of file crypto.h.

#define CRYPTO_UNLOCK   2

Definition at line 227 of file crypto.h.

#define CRYPTO_w_lock (   type)    CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

Definition at line 233 of file crypto.h.

#define CRYPTO_w_unlock (   type)    CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

Definition at line 235 of file crypto.h.

#define CRYPTO_WRITE   8

Definition at line 229 of file crypto.h.

#define fips_cipher_abort (   alg)    while(0)

Definition at line 574 of file crypto.h.

#define fips_md_init (   alg)    fips_md_init_ctx(alg, alg)

Definition at line 555 of file crypto.h.

#define fips_md_init_ctx (   alg,
  cx 
)    int alg##_Init(cx##_CTX *c)

Definition at line 572 of file crypto.h.

#define is_MemCheck_on ( )    CRYPTO_is_mem_check_on()

Definition at line 366 of file crypto.h.

#define MemCheck_off ( )    CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE)

Definition at line 365 of file crypto.h.

#define MemCheck_on ( )    CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE)

Definition at line 364 of file crypto.h.

#define MemCheck_start ( )    CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON)

Definition at line 360 of file crypto.h.

#define MemCheck_stop ( )    CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF)

Definition at line 361 of file crypto.h.

#define OPENSSL_assert (   e)    (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1))

Definition at line 544 of file crypto.h.

#define OPENSSL_free (   addr)    CRYPTO_free(addr)

Definition at line 377 of file crypto.h.

#define OPENSSL_free_locked (   addr)    CRYPTO_free_locked(addr)

Definition at line 381 of file crypto.h.

#define OPENSSL_freeFunc   CRYPTO_free

Definition at line 376 of file crypto.h.

#define OPENSSL_ia32cap   (*(OPENSSL_ia32cap_loc()))

Definition at line 547 of file crypto.h.

#define OPENSSL_malloc (   num)    CRYPTO_malloc((int)num,__FILE__,__LINE__)

Definition at line 368 of file crypto.h.

#define OPENSSL_malloc_locked (   num)    CRYPTO_malloc_locked((int)num,__FILE__,__LINE__)

Definition at line 379 of file crypto.h.

#define OPENSSL_realloc (   addr,
  num 
)    CRYPTO_realloc((char *)addr,(int)num,__FILE__,__LINE__)

Definition at line 370 of file crypto.h.

#define OPENSSL_realloc_clean (   addr,
  old_num,
  num 
)    CRYPTO_realloc_clean(addr,old_num,num,__FILE__,__LINE__)

Definition at line 372 of file crypto.h.

#define OPENSSL_remalloc (   addr,
  num 
)    CRYPTO_remalloc((char **)addr,(int)num,__FILE__,__LINE__)

Definition at line 374 of file crypto.h.

#define OPENSSL_strdup (   str)    CRYPTO_strdup((str),__FILE__,__LINE__)

Definition at line 369 of file crypto.h.

#define SSLEAY_BUILT_ON   3

Definition at line 152 of file crypto.h.

#define SSLEAY_CFLAGS   2

Definition at line 151 of file crypto.h.

#define SSLEAY_DIR   5

Definition at line 154 of file crypto.h.

#define SSLEAY_PLATFORM   4

Definition at line 153 of file crypto.h.

#define SSLEAY_VERSION   0

Definition at line 149 of file crypto.h.

#define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER

Definition at line 148 of file crypto.h.

#define V_CRYPTO_MDEBUG_ALL   (V_CRYPTO_MDEBUG_TIME | V_CRYPTO_MDEBUG_THREAD)

Definition at line 279 of file crypto.h.

#define V_CRYPTO_MDEBUG_THREAD   0x2 /* a bit */

Definition at line 277 of file crypto.h.

#define V_CRYPTO_MDEBUG_TIME   0x1 /* a bit */

Definition at line 275 of file crypto.h.

Typedef Documentation

typedef struct bio_st BIO_dummy

Definition at line 283 of file crypto.h.

Definition at line 390 of file crypto.h.

typedef void* CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *)

Definition at line 539 of file crypto.h.

typedef struct openssl_item_st OPENSSL_ITEM

Function Documentation

int CRYPTO_add_lock ( int *  pointer,
int  amount,
int  type,
const char *  file,
int  line 
)

Definition at line 607 of file cryptlib.c.

void CRYPTO_cleanup_all_ex_data ( void  )

Definition at line 551 of file ex_data.c.

void CRYPTO_dbg_free ( void addr,
int  before_p 
)

Definition at line 569 of file mem_dbg.c.

long CRYPTO_dbg_get_options ( void  )

Definition at line 310 of file mem_dbg.c.

void CRYPTO_dbg_malloc ( void addr,
int  num,
const char *  file,
int  line,
int  before_p 
)

Definition at line 481 of file mem_dbg.c.

void CRYPTO_dbg_realloc ( void addr1,
void addr2,
int  num,
const char *  file,
int  line,
int  before_p 
)

Definition at line 605 of file mem_dbg.c.

void CRYPTO_dbg_set_options ( long  bits)

Definition at line 305 of file mem_dbg.c.

void CRYPTO_destroy_dynlockid ( int  i)

Definition at line 297 of file cryptlib.c.

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

Definition at line 580 of file ex_data.c.

int CRYPTO_ex_data_new_class ( void  )

Definition at line 541 of file ex_data.c.

void CRYPTO_free ( void )

Definition at line 390 of file mem.c.

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

Definition at line 589 of file ex_data.c.

void CRYPTO_free_locked ( void )

Definition at line 284 of file mem.c.

struct CRYPTO_dynlock_value* CRYPTO_get_dynlock_value ( int  i)
read

Definition at line 340 of file cryptlib.c.

void* CRYPTO_get_ex_data ( const CRYPTO_EX_DATA ad,
int  idx 
)

Definition at line 626 of file ex_data.c.

const CRYPTO_EX_DATA_IMPL* CRYPTO_get_ex_data_implementation ( void  )

Definition at line 213 of file ex_data.c.

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 
)

Definition at line 558 of file ex_data.c.

const char* CRYPTO_get_lock_name ( int  type)

Definition at line 652 of file cryptlib.c.

void CRYPTO_get_locked_mem_ex_functions ( void *(**)(size_t, const char *, int)  m,
void(**)(void *)  f 
)

Definition at line 229 of file mem.c.

void CRYPTO_get_locked_mem_functions ( void *(**)(size_t)  m,
void(**)(void *)  f 
)

Definition at line 222 of file mem.c.

void CRYPTO_get_mem_debug_functions ( void(**)(void *, int, const char *, int, int)  m,
void(**)(void *, void *, int, const char *, int, int)  r,
void(**)(void *, int)  f,
void(**)(long)  so,
long(**)(void go 
)

Definition at line 238 of file mem.c.

long CRYPTO_get_mem_debug_options ( void  )

Definition at line 415 of file mem.c.

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

Definition at line 210 of file mem.c.

void CRYPTO_get_mem_functions ( void *(**)(size_t)  m,
void *(**)(void *, size_t)  r,
void(**)(void *)  f 
)

Definition at line 200 of file mem.c.

int CRYPTO_get_new_dynlockid ( void  )

Definition at line 236 of file cryptlib.c.

int CRYPTO_get_new_lockid ( char *  name)
int CRYPTO_is_mem_check_on ( void  )

Definition at line 286 of file mem_dbg.c.

void CRYPTO_lock ( int  mode,
int  type,
const char *  file,
int  line 
)

Definition at line 561 of file cryptlib.c.

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

Definition at line 296 of file mem.c.

void* CRYPTO_malloc_locked ( int  num,
const char *  file,
int  line 
)

Definition at line 252 of file mem.c.

int CRYPTO_mem_ctrl ( int  mode)

Definition at line 216 of file mem_dbg.c.

void CRYPTO_mem_leaks ( struct bio_st bio)
void CRYPTO_mem_leaks_cb ( CRYPTO_MEM_LEAK_CB cb)
void CRYPTO_mem_leaks_fp ( FILE *  )

Definition at line 826 of file mem_dbg.c.

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

Definition at line 572 of file ex_data.c.

int CRYPTO_num_locks ( void  )

Definition at line 231 of file cryptlib.c.

int CRYPTO_pop_info ( void  )

Definition at line 448 of file mem_dbg.c.

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

Definition at line 397 of file mem_dbg.c.

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

Definition at line 335 of file mem.c.

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

Definition at line 356 of file mem.c.

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

Definition at line 402 of file mem.c.

int CRYPTO_remove_all_info ( void  )

Definition at line 463 of file mem_dbg.c.

void CRYPTO_set_add_lock_callback ( int(*)(int *num, int mount, int type, const char *file, int line)  func)

Definition at line 419 of file cryptlib.c.

void CRYPTO_set_dynlock_create_callback ( struct CRYPTO_dynlock_value *(*)(const char *file, int line)  dyn_create_function)

Definition at line 378 of file cryptlib.c.

void CRYPTO_set_dynlock_destroy_callback ( void(*)(struct CRYPTO_dynlock_value *l, const char *file, int line)  dyn_destroy_function)

Definition at line 390 of file cryptlib.c.

void CRYPTO_set_dynlock_lock_callback ( void(*)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line)  dyn_lock_function)
int CRYPTO_set_ex_data ( CRYPTO_EX_DATA ad,
int  idx,
void val 
)

Definition at line 597 of file ex_data.c.

int CRYPTO_set_ex_data_implementation ( const CRYPTO_EX_DATA_IMPL i)

Definition at line 218 of file ex_data.c.

void CRYPTO_set_id_callback ( unsigned long(*)(void func)

Definition at line 532 of file cryptlib.c.

int CRYPTO_set_locked_mem_ex_functions ( void *(*)(size_t, const char *, int)  m,
void(*)(void *)  free_func 
)

Definition at line 169 of file mem.c.

int CRYPTO_set_locked_mem_functions ( void *(*)(size_t)  m,
void(*)(void *)  free_func 
)

Definition at line 158 of file mem.c.

void CRYPTO_set_locking_callback ( void(*)(int mode, int type, const char *file, int line)  func)

Definition at line 409 of file cryptlib.c.

int CRYPTO_set_mem_debug_functions ( void(*)(void *, int, const char *, int, int)  m,
void(*)(void *, void *, int, const char *, int, int)  r,
void(*)(void *, int)  f,
void(*)(long)  so,
long(*)(void go 
)

Definition at line 182 of file mem.c.

void CRYPTO_set_mem_debug_options ( long  bits)

Definition at line 409 of file mem.c.

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

Definition at line 141 of file mem.c.

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

Definition at line 125 of file mem.c.

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

Definition at line 327 of file mem.c.

unsigned long CRYPTO_thread_id ( void  )

Definition at line 537 of file cryptlib.c.

int CRYPTO_THREADID_cmp ( const CRYPTO_THREADID a,
const CRYPTO_THREADID b 
)

Definition at line 511 of file cryptlib.c.

void CRYPTO_THREADID_cpy ( CRYPTO_THREADID dest,
const CRYPTO_THREADID src 
)

Definition at line 516 of file cryptlib.c.

void CRYPTO_THREADID_current ( CRYPTO_THREADID id)

Definition at line 483 of file cryptlib.c.

unsigned long CRYPTO_THREADID_hash ( const CRYPTO_THREADID id)

Definition at line 521 of file cryptlib.c.

int CRYPTO_THREADID_set_callback ( void(*)(CRYPTO_THREADID *)  threadid_func)

Definition at line 470 of file cryptlib.c.

void CRYPTO_THREADID_set_numeric ( CRYPTO_THREADID id,
unsigned long  val 
)

Definition at line 428 of file cryptlib.c.

void CRYPTO_THREADID_set_pointer ( CRYPTO_THREADID id,
void ptr 
)

Definition at line 435 of file cryptlib.c.

void ERR_load_CRYPTO_strings ( void  )

Definition at line 95 of file cpt_err.c.

int FIPS_mode ( void  )

Definition at line 65 of file o_fips.c.

int FIPS_mode_set ( int  r)

Definition at line 75 of file o_fips.c.

void OPENSSL_cleanse ( void ptr,
size_t  len 
)

Definition at line 64 of file mem_clr.c.

unsigned long* OPENSSL_ia32cap_loc ( void  )

Definition at line 718 of file cryptlib.c.

void OPENSSL_init ( void  )

Definition at line 66 of file o_init.c.

int OPENSSL_isservice ( void  )

Definition at line 909 of file cryptlib.c.

int OPENSSL_issetugid ( void  )

Definition at line 80 of file uid.c.

void OpenSSLDie ( const char *  file,
int  line,
const char *  assertion 
)

Definition at line 912 of file cryptlib.c.

unsigned long SSLeay ( void  )

Definition at line 113 of file cversion.c.

const char* SSLeay_version ( int  type)

Definition at line 65 of file cversion.c.

Variable Documentation

int(*)(int *num, int mount, int type, const char *file, int line) CRYPTO_get_add_lock_callback(void)

Definition at line 425 of file crypto.h.

struct CRYPTO_dynlock_value*(*)(const char *file, int line) CRYPTO_get_dynlock_create_callback(void)
read

Definition at line 459 of file crypto.h.

void(*)(struct CRYPTO_dynlock_value *l, const char *file, int line) CRYPTO_get_dynlock_destroy_callback(void)

Definition at line 461 of file crypto.h.

void(*)(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line) CRYPTO_get_dynlock_lock_callback(void)

Definition at line 460 of file crypto.h.

unsigned long(*)(void) CRYPTO_get_id_callback(void)

Definition at line 445 of file crypto.h.

void(*)(int mode, int type, const char *file, int line) CRYPTO_get_locking_callback(void)

Definition at line 421 of file crypto.h.

void(*)(CRYPTO_THREADID *) CRYPTO_THREADID_get_callback(void)

Definition at line 438 of file crypto.h.