Deleted Added
full compact
crypto.h (76866) crypto.h (89837)
1/* crypto/crypto.h */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 98 unchanged lines hidden (view full) ---

107#define CRYPTO_LOCK_EVP_PKEY 10
108#define CRYPTO_LOCK_X509_STORE 11
109#define CRYPTO_LOCK_SSL_CTX 12
110#define CRYPTO_LOCK_SSL_CERT 13
111#define CRYPTO_LOCK_SSL_SESSION 14
112#define CRYPTO_LOCK_SSL_SESS_CERT 15
113#define CRYPTO_LOCK_SSL 16
114#define CRYPTO_LOCK_RAND 17
1/* crypto/crypto.h */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 98 unchanged lines hidden (view full) ---

107#define CRYPTO_LOCK_EVP_PKEY 10
108#define CRYPTO_LOCK_X509_STORE 11
109#define CRYPTO_LOCK_SSL_CTX 12
110#define CRYPTO_LOCK_SSL_CERT 13
111#define CRYPTO_LOCK_SSL_SESSION 14
112#define CRYPTO_LOCK_SSL_SESS_CERT 15
113#define CRYPTO_LOCK_SSL 16
114#define CRYPTO_LOCK_RAND 17
115#define CRYPTO_LOCK_MALLOC 18
116#define CRYPTO_LOCK_BIO 19
117#define CRYPTO_LOCK_GETHOSTBYNAME 20
118#define CRYPTO_LOCK_GETSERVBYNAME 21
119#define CRYPTO_LOCK_READDIR 22
120#define CRYPTO_LOCK_RSA_BLINDING 23
121#define CRYPTO_LOCK_DH 24
122#define CRYPTO_LOCK_MALLOC2 25
123#define CRYPTO_LOCK_DSO 26
124#define CRYPTO_LOCK_DYNLOCK 27
125#define CRYPTO_NUM_LOCKS 28
115#define CRYPTO_LOCK_RAND2 18
116#define CRYPTO_LOCK_MALLOC 19
117#define CRYPTO_LOCK_BIO 20
118#define CRYPTO_LOCK_GETHOSTBYNAME 21
119#define CRYPTO_LOCK_GETSERVBYNAME 22
120#define CRYPTO_LOCK_READDIR 23
121#define CRYPTO_LOCK_RSA_BLINDING 24
122#define CRYPTO_LOCK_DH 25
123#define CRYPTO_LOCK_MALLOC2 26
124#define CRYPTO_LOCK_DSO 27
125#define CRYPTO_LOCK_DYNLOCK 28
126#define CRYPTO_NUM_LOCKS 29
126
127#define CRYPTO_LOCK 1
128#define CRYPTO_UNLOCK 2
129#define CRYPTO_READ 4
130#define CRYPTO_WRITE 8
131
132#ifndef NO_LOCKING
133#ifndef CRYPTO_w_lock

--- 211 unchanged lines hidden (view full) ---

345long CRYPTO_get_mem_debug_options(void);
346
347#define CRYPTO_push_info(info) \
348 CRYPTO_push_info_(info, __FILE__, __LINE__);
349int CRYPTO_push_info_(const char *info, const char *file, int line);
350int CRYPTO_pop_info(void);
351int CRYPTO_remove_all_info(void);
352
127
128#define CRYPTO_LOCK 1
129#define CRYPTO_UNLOCK 2
130#define CRYPTO_READ 4
131#define CRYPTO_WRITE 8
132
133#ifndef NO_LOCKING
134#ifndef CRYPTO_w_lock

--- 211 unchanged lines hidden (view full) ---

346long CRYPTO_get_mem_debug_options(void);
347
348#define CRYPTO_push_info(info) \
349 CRYPTO_push_info_(info, __FILE__, __LINE__);
350int CRYPTO_push_info_(const char *info, const char *file, int line);
351int CRYPTO_pop_info(void);
352int CRYPTO_remove_all_info(void);
353
354
355/* Default debugging functions (enabled by CRYPTO_malloc_debug_init() macro;
356 * used as default in CRYPTO_MDEBUG compilations): */
353/* The last argument has the following significance:
354 *
355 * 0: called before the actual memory allocation has taken place
356 * 1: called after the actual memory allocation has taken place
357 */
358void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p);
359void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p);
360void CRYPTO_dbg_free(void *addr,int before_p);
357/* The last argument has the following significance:
358 *
359 * 0: called before the actual memory allocation has taken place
360 * 1: called after the actual memory allocation has taken place
361 */
362void CRYPTO_dbg_malloc(void *addr,int num,const char *file,int line,int before_p);
363void CRYPTO_dbg_realloc(void *addr1,void *addr2,int num,const char *file,int line,int before_p);
364void CRYPTO_dbg_free(void *addr,int before_p);
361
362/* Tell the debugging code about options. By default, the following values
363 * apply:
364 *
365/* Tell the debugging code about options. By default, the following values
366 * apply:
367 *
365 * 0: Clear all options.
366 * 1: Set the "Show Time" option.
367 * 2: Set the "Show Thread Number" option.
368 * 3: 1 + 2
368 * 0: Clear all options.
369 * V_CRYPTO_MDEBUG_TIME (1): Set the "Show Time" option.
370 * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option.
371 * V_CRYPTO_MDEBUG_ALL (3): 1 + 2
369 */
370void CRYPTO_dbg_set_options(long bits);
371long CRYPTO_dbg_get_options(void);
372
372 */
373void CRYPTO_dbg_set_options(long bits);
374long CRYPTO_dbg_get_options(void);
375
376
373#ifndef NO_FP_API
374void CRYPTO_mem_leaks_fp(FILE *);
375#endif
376void CRYPTO_mem_leaks(struct bio_st *bio);
377/* unsigned long order, char *file, int line, int num_bytes, char *addr */
378void CRYPTO_mem_leaks_cb(void (*cb)(unsigned long, const char *, int, int, void *));
379
377#ifndef NO_FP_API
378void CRYPTO_mem_leaks_fp(FILE *);
379#endif
380void CRYPTO_mem_leaks(struct bio_st *bio);
381/* unsigned long order, char *file, int line, int num_bytes, char *addr */
382void CRYPTO_mem_leaks_cb(void (*cb)(unsigned long, const char *, int, int, void *));
383
380void ERR_load_CRYPTO_strings(void);
381
382/* BEGIN ERROR CODES */
383/* The following lines are auto generated by the script mkerr.pl. Any changes
384 * made after this point may be overwritten when the script is next run.
385 */
384/* BEGIN ERROR CODES */
385/* The following lines are auto generated by the script mkerr.pl. Any changes
386 * made after this point may be overwritten when the script is next run.
387 */
388void ERR_load_CRYPTO_strings(void);
386
387/* Error codes for the CRYPTO functions. */
388
389/* Function codes. */
390#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100
391#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID 103
392#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID 101
393#define CRYPTO_F_CRYPTO_SET_EX_DATA 102
394
395/* Reason codes. */
396#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100
397
398#ifdef __cplusplus
399}
400#endif
401#endif
389
390/* Error codes for the CRYPTO functions. */
391
392/* Function codes. */
393#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100
394#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID 103
395#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID 101
396#define CRYPTO_F_CRYPTO_SET_EX_DATA 102
397
398/* Reason codes. */
399#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100
400
401#ifdef __cplusplus
402}
403#endif
404#endif
402