Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/openssl
File: crypto.h
/*
[0] Fix | Delete
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
[1] Fix | Delete
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
[2] Fix | Delete
*
[3] Fix | Delete
* Licensed under the OpenSSL license (the "License"). You may not use
[4] Fix | Delete
* this file except in compliance with the License. You can obtain a copy
[5] Fix | Delete
* in the file LICENSE in the source distribution or at
[6] Fix | Delete
* https://www.openssl.org/source/license.html
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
#ifndef HEADER_CRYPTO_H
[10] Fix | Delete
# define HEADER_CRYPTO_H
[11] Fix | Delete
[12] Fix | Delete
# include <stdlib.h>
[13] Fix | Delete
# include <time.h>
[14] Fix | Delete
[15] Fix | Delete
# include <openssl/e_os2.h>
[16] Fix | Delete
[17] Fix | Delete
# ifndef OPENSSL_NO_STDIO
[18] Fix | Delete
# include <stdio.h>
[19] Fix | Delete
# endif
[20] Fix | Delete
[21] Fix | Delete
# include <openssl/safestack.h>
[22] Fix | Delete
# include <openssl/opensslv.h>
[23] Fix | Delete
# include <openssl/ossl_typ.h>
[24] Fix | Delete
# include <openssl/opensslconf.h>
[25] Fix | Delete
# include <openssl/cryptoerr.h>
[26] Fix | Delete
[27] Fix | Delete
# ifdef CHARSET_EBCDIC
[28] Fix | Delete
# include <openssl/ebcdic.h>
[29] Fix | Delete
# endif
[30] Fix | Delete
[31] Fix | Delete
/*
[32] Fix | Delete
* Resolve problems on some operating systems with symbol names that clash
[33] Fix | Delete
* one way or another
[34] Fix | Delete
*/
[35] Fix | Delete
# include <openssl/symhacks.h>
[36] Fix | Delete
[37] Fix | Delete
# if OPENSSL_API_COMPAT < 0x10100000L
[38] Fix | Delete
# include <openssl/opensslv.h>
[39] Fix | Delete
# endif
[40] Fix | Delete
[41] Fix | Delete
#ifdef __cplusplus
[42] Fix | Delete
extern "C" {
[43] Fix | Delete
#endif
[44] Fix | Delete
[45] Fix | Delete
# if OPENSSL_API_COMPAT < 0x10100000L
[46] Fix | Delete
# define SSLeay OpenSSL_version_num
[47] Fix | Delete
# define SSLeay_version OpenSSL_version
[48] Fix | Delete
# define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
[49] Fix | Delete
# define SSLEAY_VERSION OPENSSL_VERSION
[50] Fix | Delete
# define SSLEAY_CFLAGS OPENSSL_CFLAGS
[51] Fix | Delete
# define SSLEAY_BUILT_ON OPENSSL_BUILT_ON
[52] Fix | Delete
# define SSLEAY_PLATFORM OPENSSL_PLATFORM
[53] Fix | Delete
# define SSLEAY_DIR OPENSSL_DIR
[54] Fix | Delete
[55] Fix | Delete
/*
[56] Fix | Delete
* Old type for allocating dynamic locks. No longer used. Use the new thread
[57] Fix | Delete
* API instead.
[58] Fix | Delete
*/
[59] Fix | Delete
typedef struct {
[60] Fix | Delete
int dummy;
[61] Fix | Delete
} CRYPTO_dynlock;
[62] Fix | Delete
[63] Fix | Delete
# endif /* OPENSSL_API_COMPAT */
[64] Fix | Delete
[65] Fix | Delete
typedef void CRYPTO_RWLOCK;
[66] Fix | Delete
[67] Fix | Delete
CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void);
[68] Fix | Delete
int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock);
[69] Fix | Delete
int CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock);
[70] Fix | Delete
int CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock);
[71] Fix | Delete
void CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock);
[72] Fix | Delete
[73] Fix | Delete
int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock);
[74] Fix | Delete
[75] Fix | Delete
/*
[76] Fix | Delete
* The following can be used to detect memory leaks in the library. If
[77] Fix | Delete
* used, it turns on malloc checking
[78] Fix | Delete
*/
[79] Fix | Delete
# define CRYPTO_MEM_CHECK_OFF 0x0 /* Control only */
[80] Fix | Delete
# define CRYPTO_MEM_CHECK_ON 0x1 /* Control and mode bit */
[81] Fix | Delete
# define CRYPTO_MEM_CHECK_ENABLE 0x2 /* Control and mode bit */
[82] Fix | Delete
# define CRYPTO_MEM_CHECK_DISABLE 0x3 /* Control only */
[83] Fix | Delete
[84] Fix | Delete
struct crypto_ex_data_st {
[85] Fix | Delete
STACK_OF(void) *sk;
[86] Fix | Delete
};
[87] Fix | Delete
DEFINE_STACK_OF(void)
[88] Fix | Delete
[89] Fix | Delete
/*
[90] Fix | Delete
* Per class, we have a STACK of function pointers.
[91] Fix | Delete
*/
[92] Fix | Delete
# define CRYPTO_EX_INDEX_SSL 0
[93] Fix | Delete
# define CRYPTO_EX_INDEX_SSL_CTX 1
[94] Fix | Delete
# define CRYPTO_EX_INDEX_SSL_SESSION 2
[95] Fix | Delete
# define CRYPTO_EX_INDEX_X509 3
[96] Fix | Delete
# define CRYPTO_EX_INDEX_X509_STORE 4
[97] Fix | Delete
# define CRYPTO_EX_INDEX_X509_STORE_CTX 5
[98] Fix | Delete
# define CRYPTO_EX_INDEX_DH 6
[99] Fix | Delete
# define CRYPTO_EX_INDEX_DSA 7
[100] Fix | Delete
# define CRYPTO_EX_INDEX_EC_KEY 8
[101] Fix | Delete
# define CRYPTO_EX_INDEX_RSA 9
[102] Fix | Delete
# define CRYPTO_EX_INDEX_ENGINE 10
[103] Fix | Delete
# define CRYPTO_EX_INDEX_UI 11
[104] Fix | Delete
# define CRYPTO_EX_INDEX_BIO 12
[105] Fix | Delete
# define CRYPTO_EX_INDEX_APP 13
[106] Fix | Delete
# define CRYPTO_EX_INDEX_UI_METHOD 14
[107] Fix | Delete
# define CRYPTO_EX_INDEX_DRBG 15
[108] Fix | Delete
# define CRYPTO_EX_INDEX__COUNT 16
[109] Fix | Delete
[110] Fix | Delete
/* No longer needed, so this is a no-op */
[111] Fix | Delete
#define OPENSSL_malloc_init() while(0) continue
[112] Fix | Delete
[113] Fix | Delete
int CRYPTO_mem_ctrl(int mode);
[114] Fix | Delete
[115] Fix | Delete
# define OPENSSL_malloc(num) \
[116] Fix | Delete
CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
[117] Fix | Delete
# define OPENSSL_zalloc(num) \
[118] Fix | Delete
CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
[119] Fix | Delete
# define OPENSSL_realloc(addr, num) \
[120] Fix | Delete
CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
[121] Fix | Delete
# define OPENSSL_clear_realloc(addr, old_num, num) \
[122] Fix | Delete
CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)
[123] Fix | Delete
# define OPENSSL_clear_free(addr, num) \
[124] Fix | Delete
CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
[125] Fix | Delete
# define OPENSSL_free(addr) \
[126] Fix | Delete
CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
[127] Fix | Delete
# define OPENSSL_memdup(str, s) \
[128] Fix | Delete
CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
[129] Fix | Delete
# define OPENSSL_strdup(str) \
[130] Fix | Delete
CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
[131] Fix | Delete
# define OPENSSL_strndup(str, n) \
[132] Fix | Delete
CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
[133] Fix | Delete
# define OPENSSL_secure_malloc(num) \
[134] Fix | Delete
CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
[135] Fix | Delete
# define OPENSSL_secure_zalloc(num) \
[136] Fix | Delete
CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
[137] Fix | Delete
# define OPENSSL_secure_free(addr) \
[138] Fix | Delete
CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
[139] Fix | Delete
# define OPENSSL_secure_clear_free(addr, num) \
[140] Fix | Delete
CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
[141] Fix | Delete
# define OPENSSL_secure_actual_size(ptr) \
[142] Fix | Delete
CRYPTO_secure_actual_size(ptr)
[143] Fix | Delete
[144] Fix | Delete
size_t OPENSSL_strlcpy(char *dst, const char *src, size_t siz);
[145] Fix | Delete
size_t OPENSSL_strlcat(char *dst, const char *src, size_t siz);
[146] Fix | Delete
size_t OPENSSL_strnlen(const char *str, size_t maxlen);
[147] Fix | Delete
char *OPENSSL_buf2hexstr(const unsigned char *buffer, long len);
[148] Fix | Delete
unsigned char *OPENSSL_hexstr2buf(const char *str, long *len);
[149] Fix | Delete
int OPENSSL_hexchar2int(unsigned char c);
[150] Fix | Delete
[151] Fix | Delete
# define OPENSSL_MALLOC_MAX_NELEMS(type) (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))
[152] Fix | Delete
[153] Fix | Delete
unsigned long OpenSSL_version_num(void);
[154] Fix | Delete
const char *OpenSSL_version(int type);
[155] Fix | Delete
# define OPENSSL_VERSION 0
[156] Fix | Delete
# define OPENSSL_CFLAGS 1
[157] Fix | Delete
# define OPENSSL_BUILT_ON 2
[158] Fix | Delete
# define OPENSSL_PLATFORM 3
[159] Fix | Delete
# define OPENSSL_DIR 4
[160] Fix | Delete
# define OPENSSL_ENGINES_DIR 5
[161] Fix | Delete
[162] Fix | Delete
int OPENSSL_issetugid(void);
[163] Fix | Delete
[164] Fix | Delete
typedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
[165] Fix | Delete
int idx, long argl, void *argp);
[166] Fix | Delete
typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,
[167] Fix | Delete
int idx, long argl, void *argp);
[168] Fix | Delete
typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,
[169] Fix | Delete
void *from_d, int idx, long argl, void *argp);
[170] Fix | Delete
__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,
[171] Fix | Delete
CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,
[172] Fix | Delete
CRYPTO_EX_free *free_func);
[173] Fix | Delete
/* No longer use an index. */
[174] Fix | Delete
int CRYPTO_free_ex_index(int class_index, int idx);
[175] Fix | Delete
[176] Fix | Delete
/*
[177] Fix | Delete
* Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a
[178] Fix | Delete
* given class (invokes whatever per-class callbacks are applicable)
[179] Fix | Delete
*/
[180] Fix | Delete
int CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);
[181] Fix | Delete
int CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to,
[182] Fix | Delete
const CRYPTO_EX_DATA *from);
[183] Fix | Delete
[184] Fix | Delete
void CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);
[185] Fix | Delete
[186] Fix | Delete
/*
[187] Fix | Delete
* Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular
[188] Fix | Delete
* index (relative to the class type involved)
[189] Fix | Delete
*/
[190] Fix | Delete
int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val);
[191] Fix | Delete
void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx);
[192] Fix | Delete
[193] Fix | Delete
# if OPENSSL_API_COMPAT < 0x10100000L
[194] Fix | Delete
/*
[195] Fix | Delete
* This function cleans up all "ex_data" state. It mustn't be called under
[196] Fix | Delete
* potential race-conditions.
[197] Fix | Delete
*/
[198] Fix | Delete
# define CRYPTO_cleanup_all_ex_data() while(0) continue
[199] Fix | Delete
[200] Fix | Delete
/*
[201] Fix | Delete
* The old locking functions have been removed completely without compatibility
[202] Fix | Delete
* macros. This is because the old functions either could not properly report
[203] Fix | Delete
* errors, or the returned error values were not clearly documented.
[204] Fix | Delete
* Replacing the locking functions with no-ops would cause race condition
[205] Fix | Delete
* issues in the affected applications. It is far better for them to fail at
[206] Fix | Delete
* compile time.
[207] Fix | Delete
* On the other hand, the locking callbacks are no longer used. Consequently,
[208] Fix | Delete
* the callback management functions can be safely replaced with no-op macros.
[209] Fix | Delete
*/
[210] Fix | Delete
# define CRYPTO_num_locks() (1)
[211] Fix | Delete
# define CRYPTO_set_locking_callback(func)
[212] Fix | Delete
# define CRYPTO_get_locking_callback() (NULL)
[213] Fix | Delete
# define CRYPTO_set_add_lock_callback(func)
[214] Fix | Delete
# define CRYPTO_get_add_lock_callback() (NULL)
[215] Fix | Delete
[216] Fix | Delete
/*
[217] Fix | Delete
* These defines where used in combination with the old locking callbacks,
[218] Fix | Delete
* they are not called anymore, but old code that's not called might still
[219] Fix | Delete
* use them.
[220] Fix | Delete
*/
[221] Fix | Delete
# define CRYPTO_LOCK 1
[222] Fix | Delete
# define CRYPTO_UNLOCK 2
[223] Fix | Delete
# define CRYPTO_READ 4
[224] Fix | Delete
# define CRYPTO_WRITE 8
[225] Fix | Delete
[226] Fix | Delete
/* This structure is no longer used */
[227] Fix | Delete
typedef struct crypto_threadid_st {
[228] Fix | Delete
int dummy;
[229] Fix | Delete
} CRYPTO_THREADID;
[230] Fix | Delete
/* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */
[231] Fix | Delete
# define CRYPTO_THREADID_set_numeric(id, val)
[232] Fix | Delete
# define CRYPTO_THREADID_set_pointer(id, ptr)
[233] Fix | Delete
# define CRYPTO_THREADID_set_callback(threadid_func) (0)
[234] Fix | Delete
# define CRYPTO_THREADID_get_callback() (NULL)
[235] Fix | Delete
# define CRYPTO_THREADID_current(id)
[236] Fix | Delete
# define CRYPTO_THREADID_cmp(a, b) (-1)
[237] Fix | Delete
# define CRYPTO_THREADID_cpy(dest, src)
[238] Fix | Delete
# define CRYPTO_THREADID_hash(id) (0UL)
[239] Fix | Delete
[240] Fix | Delete
# if OPENSSL_API_COMPAT < 0x10000000L
[241] Fix | Delete
# define CRYPTO_set_id_callback(func)
[242] Fix | Delete
# define CRYPTO_get_id_callback() (NULL)
[243] Fix | Delete
# define CRYPTO_thread_id() (0UL)
[244] Fix | Delete
# endif /* OPENSSL_API_COMPAT < 0x10000000L */
[245] Fix | Delete
[246] Fix | Delete
# define CRYPTO_set_dynlock_create_callback(dyn_create_function)
[247] Fix | Delete
# define CRYPTO_set_dynlock_lock_callback(dyn_lock_function)
[248] Fix | Delete
# define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function)
[249] Fix | Delete
# define CRYPTO_get_dynlock_create_callback() (NULL)
[250] Fix | Delete
# define CRYPTO_get_dynlock_lock_callback() (NULL)
[251] Fix | Delete
# define CRYPTO_get_dynlock_destroy_callback() (NULL)
[252] Fix | Delete
# endif /* OPENSSL_API_COMPAT < 0x10100000L */
[253] Fix | Delete
[254] Fix | Delete
int CRYPTO_set_mem_functions(
[255] Fix | Delete
void *(*m) (size_t, const char *, int),
[256] Fix | Delete
void *(*r) (void *, size_t, const char *, int),
[257] Fix | Delete
void (*f) (void *, const char *, int));
[258] Fix | Delete
int CRYPTO_set_mem_debug(int flag);
[259] Fix | Delete
void CRYPTO_get_mem_functions(
[260] Fix | Delete
void *(**m) (size_t, const char *, int),
[261] Fix | Delete
void *(**r) (void *, size_t, const char *, int),
[262] Fix | Delete
void (**f) (void *, const char *, int));
[263] Fix | Delete
[264] Fix | Delete
void *CRYPTO_malloc(size_t num, const char *file, int line);
[265] Fix | Delete
void *CRYPTO_zalloc(size_t num, const char *file, int line);
[266] Fix | Delete
void *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);
[267] Fix | Delete
char *CRYPTO_strdup(const char *str, const char *file, int line);
[268] Fix | Delete
char *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);
[269] Fix | Delete
void CRYPTO_free(void *ptr, const char *file, int line);
[270] Fix | Delete
void CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line);
[271] Fix | Delete
void *CRYPTO_realloc(void *addr, size_t num, const char *file, int line);
[272] Fix | Delete
void *CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num,
[273] Fix | Delete
const char *file, int line);
[274] Fix | Delete
[275] Fix | Delete
int CRYPTO_secure_malloc_init(size_t sz, int minsize);
[276] Fix | Delete
int CRYPTO_secure_malloc_done(void);
[277] Fix | Delete
void *CRYPTO_secure_malloc(size_t num, const char *file, int line);
[278] Fix | Delete
void *CRYPTO_secure_zalloc(size_t num, const char *file, int line);
[279] Fix | Delete
void CRYPTO_secure_free(void *ptr, const char *file, int line);
[280] Fix | Delete
void CRYPTO_secure_clear_free(void *ptr, size_t num,
[281] Fix | Delete
const char *file, int line);
[282] Fix | Delete
int CRYPTO_secure_allocated(const void *ptr);
[283] Fix | Delete
int CRYPTO_secure_malloc_initialized(void);
[284] Fix | Delete
size_t CRYPTO_secure_actual_size(void *ptr);
[285] Fix | Delete
size_t CRYPTO_secure_used(void);
[286] Fix | Delete
[287] Fix | Delete
void OPENSSL_cleanse(void *ptr, size_t len);
[288] Fix | Delete
[289] Fix | Delete
# ifndef OPENSSL_NO_CRYPTO_MDEBUG
[290] Fix | Delete
# define OPENSSL_mem_debug_push(info) \
[291] Fix | Delete
CRYPTO_mem_debug_push(info, OPENSSL_FILE, OPENSSL_LINE)
[292] Fix | Delete
# define OPENSSL_mem_debug_pop() \
[293] Fix | Delete
CRYPTO_mem_debug_pop()
[294] Fix | Delete
int CRYPTO_mem_debug_push(const char *info, const char *file, int line);
[295] Fix | Delete
int CRYPTO_mem_debug_pop(void);
[296] Fix | Delete
void CRYPTO_get_alloc_counts(int *mcount, int *rcount, int *fcount);
[297] Fix | Delete
[298] Fix | Delete
/*-
[299] Fix | Delete
* Debugging functions (enabled by CRYPTO_set_mem_debug(1))
[300] Fix | Delete
* The flag argument has the following significance:
[301] Fix | Delete
* 0: called before the actual memory allocation has taken place
[302] Fix | Delete
* 1: called after the actual memory allocation has taken place
[303] Fix | Delete
*/
[304] Fix | Delete
void CRYPTO_mem_debug_malloc(void *addr, size_t num, int flag,
[305] Fix | Delete
const char *file, int line);
[306] Fix | Delete
void CRYPTO_mem_debug_realloc(void *addr1, void *addr2, size_t num, int flag,
[307] Fix | Delete
const char *file, int line);
[308] Fix | Delete
void CRYPTO_mem_debug_free(void *addr, int flag,
[309] Fix | Delete
const char *file, int line);
[310] Fix | Delete
[311] Fix | Delete
int CRYPTO_mem_leaks_cb(int (*cb) (const char *str, size_t len, void *u),
[312] Fix | Delete
void *u);
[313] Fix | Delete
# ifndef OPENSSL_NO_STDIO
[314] Fix | Delete
int CRYPTO_mem_leaks_fp(FILE *);
[315] Fix | Delete
# endif
[316] Fix | Delete
int CRYPTO_mem_leaks(BIO *bio);
[317] Fix | Delete
# endif
[318] Fix | Delete
[319] Fix | Delete
/* die if we have to */
[320] Fix | Delete
ossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line);
[321] Fix | Delete
# if OPENSSL_API_COMPAT < 0x10100000L
[322] Fix | Delete
# define OpenSSLDie(f,l,a) OPENSSL_die((a),(f),(l))
[323] Fix | Delete
# endif
[324] Fix | Delete
# define OPENSSL_assert(e) \
[325] Fix | Delete
(void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
[326] Fix | Delete
[327] Fix | Delete
int OPENSSL_isservice(void);
[328] Fix | Delete
[329] Fix | Delete
int FIPS_mode(void);
[330] Fix | Delete
int FIPS_mode_set(int r);
[331] Fix | Delete
[332] Fix | Delete
# ifdef OPENSSL_FIPS
[333] Fix | Delete
/* die if FIPS selftest failed */
[334] Fix | Delete
void FIPS_selftest_check(void);
[335] Fix | Delete
# endif
[336] Fix | Delete
[337] Fix | Delete
void OPENSSL_init(void);
[338] Fix | Delete
# ifdef OPENSSL_SYS_UNIX
[339] Fix | Delete
void OPENSSL_fork_prepare(void);
[340] Fix | Delete
void OPENSSL_fork_parent(void);
[341] Fix | Delete
void OPENSSL_fork_child(void);
[342] Fix | Delete
# endif
[343] Fix | Delete
[344] Fix | Delete
struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
[345] Fix | Delete
int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);
[346] Fix | Delete
int OPENSSL_gmtime_diff(int *pday, int *psec,
[347] Fix | Delete
const struct tm *from, const struct tm *to);
[348] Fix | Delete
[349] Fix | Delete
/*
[350] Fix | Delete
* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal.
[351] Fix | Delete
* It takes an amount of time dependent on |len|, but independent of the
[352] Fix | Delete
* contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements
[353] Fix | Delete
* into a defined order as the return value when a != b is undefined, other
[354] Fix | Delete
* than to be non-zero.
[355] Fix | Delete
*/
[356] Fix | Delete
int CRYPTO_memcmp(const void * in_a, const void * in_b, size_t len);
[357] Fix | Delete
[358] Fix | Delete
/* Standard initialisation options */
[359] Fix | Delete
# define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS 0x00000001L
[360] Fix | Delete
# define OPENSSL_INIT_LOAD_CRYPTO_STRINGS 0x00000002L
[361] Fix | Delete
# define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
[362] Fix | Delete
# define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L
[363] Fix | Delete
# define OPENSSL_INIT_NO_ADD_ALL_CIPHERS 0x00000010L
[364] Fix | Delete
# define OPENSSL_INIT_NO_ADD_ALL_DIGESTS 0x00000020L
[365] Fix | Delete
# define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
[366] Fix | Delete
# define OPENSSL_INIT_NO_LOAD_CONFIG 0x00000080L
[367] Fix | Delete
# define OPENSSL_INIT_ASYNC 0x00000100L
[368] Fix | Delete
# define OPENSSL_INIT_ENGINE_RDRAND 0x00000200L
[369] Fix | Delete
# define OPENSSL_INIT_ENGINE_DYNAMIC 0x00000400L
[370] Fix | Delete
# define OPENSSL_INIT_ENGINE_OPENSSL 0x00000800L
[371] Fix | Delete
# define OPENSSL_INIT_ENGINE_CRYPTODEV 0x00001000L
[372] Fix | Delete
# define OPENSSL_INIT_ENGINE_CAPI 0x00002000L
[373] Fix | Delete
# define OPENSSL_INIT_ENGINE_PADLOCK 0x00004000L
[374] Fix | Delete
# define OPENSSL_INIT_ENGINE_AFALG 0x00008000L
[375] Fix | Delete
/* OPENSSL_INIT_ZLIB 0x00010000L */
[376] Fix | Delete
# define OPENSSL_INIT_ATFORK 0x00020000L
[377] Fix | Delete
/* OPENSSL_INIT_BASE_ONLY 0x00040000L */
[378] Fix | Delete
# define OPENSSL_INIT_NO_ATEXIT 0x00080000L
[379] Fix | Delete
/* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */
[380] Fix | Delete
/* Max OPENSSL_INIT flag value is 0x80000000 */
[381] Fix | Delete
[382] Fix | Delete
/* openssl and dasync not counted as builtin */
[383] Fix | Delete
# define OPENSSL_INIT_ENGINE_ALL_BUILTIN \
[384] Fix | Delete
(OPENSSL_INIT_ENGINE_RDRAND | OPENSSL_INIT_ENGINE_DYNAMIC \
[385] Fix | Delete
| OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | \
[386] Fix | Delete
OPENSSL_INIT_ENGINE_PADLOCK)
[387] Fix | Delete
[388] Fix | Delete
[389] Fix | Delete
/* Library initialisation functions */
[390] Fix | Delete
void OPENSSL_cleanup(void);
[391] Fix | Delete
int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);
[392] Fix | Delete
int OPENSSL_atexit(void (*handler)(void));
[393] Fix | Delete
void OPENSSL_thread_stop(void);
[394] Fix | Delete
[395] Fix | Delete
/* Low-level control of initialization */
[396] Fix | Delete
OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void);
[397] Fix | Delete
# ifndef OPENSSL_NO_STDIO
[398] Fix | Delete
int OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings,
[399] Fix | Delete
const char *config_filename);
[400] Fix | Delete
void OPENSSL_INIT_set_config_file_flags(OPENSSL_INIT_SETTINGS *settings,
[401] Fix | Delete
unsigned long flags);
[402] Fix | Delete
int OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,
[403] Fix | Delete
const char *config_appname);
[404] Fix | Delete
# endif
[405] Fix | Delete
void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings);
[406] Fix | Delete
[407] Fix | Delete
# if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)
[408] Fix | Delete
# if defined(_WIN32)
[409] Fix | Delete
# if defined(BASETYPES) || defined(_WINDEF_H)
[410] Fix | Delete
/* application has to include <windows.h> in order to use this */
[411] Fix | Delete
typedef DWORD CRYPTO_THREAD_LOCAL;
[412] Fix | Delete
typedef DWORD CRYPTO_THREAD_ID;
[413] Fix | Delete
[414] Fix | Delete
typedef LONG CRYPTO_ONCE;
[415] Fix | Delete
# define CRYPTO_ONCE_STATIC_INIT 0
[416] Fix | Delete
# endif
[417] Fix | Delete
# else
[418] Fix | Delete
# include <pthread.h>
[419] Fix | Delete
typedef pthread_once_t CRYPTO_ONCE;
[420] Fix | Delete
typedef pthread_key_t CRYPTO_THREAD_LOCAL;
[421] Fix | Delete
typedef pthread_t CRYPTO_THREAD_ID;
[422] Fix | Delete
[423] Fix | Delete
# define CRYPTO_ONCE_STATIC_INIT PTHREAD_ONCE_INIT
[424] Fix | Delete
# endif
[425] Fix | Delete
# endif
[426] Fix | Delete
[427] Fix | Delete
# if !defined(CRYPTO_ONCE_STATIC_INIT)
[428] Fix | Delete
typedef unsigned int CRYPTO_ONCE;
[429] Fix | Delete
typedef unsigned int CRYPTO_THREAD_LOCAL;
[430] Fix | Delete
typedef unsigned int CRYPTO_THREAD_ID;
[431] Fix | Delete
# define CRYPTO_ONCE_STATIC_INIT 0
[432] Fix | Delete
# endif
[433] Fix | Delete
[434] Fix | Delete
int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void));
[435] Fix | Delete
[436] Fix | Delete
int CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *));
[437] Fix | Delete
void *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key);
[438] Fix | Delete
int CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val);
[439] Fix | Delete
int CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key);
[440] Fix | Delete
[441] Fix | Delete
CRYPTO_THREAD_ID CRYPTO_THREAD_get_current_id(void);
[442] Fix | Delete
int CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b);
[443] Fix | Delete
[444] Fix | Delete
[445] Fix | Delete
# ifdef __cplusplus
[446] Fix | Delete
}
[447] Fix | Delete
# endif
[448] Fix | Delete
#endif
[449] Fix | Delete
[450] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function