diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/crypto.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index d6ea7771cf..aad88aef07 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto.h,v 1.72 2024/03/02 15:40:05 tb Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.73 2024/04/10 14:51:02 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -262,7 +262,6 @@ DECLARE_STACK_OF(void) | |||
262 | #define CRYPTO_EX_INDEX_X509_STORE_CTX 14 | 262 | #define CRYPTO_EX_INDEX_X509_STORE_CTX 14 |
263 | #define CRYPTO_EX_INDEX__COUNT 15 | 263 | #define CRYPTO_EX_INDEX__COUNT 15 |
264 | 264 | ||
265 | #ifndef LIBRESSL_INTERNAL | ||
266 | #define CRYPTO_malloc_init() (0) | 265 | #define CRYPTO_malloc_init() (0) |
267 | #define CRYPTO_malloc_debug_init() (0) | 266 | #define CRYPTO_malloc_debug_init() (0) |
268 | 267 | ||
@@ -277,7 +276,6 @@ int CRYPTO_mem_ctrl(int mode); | |||
277 | #define OPENSSL_malloc(num) CRYPTO_malloc((num),NULL,0) | 276 | #define OPENSSL_malloc(num) CRYPTO_malloc((num),NULL,0) |
278 | #define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0) | 277 | #define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0) |
279 | #define OPENSSL_free(addr) CRYPTO_free((addr),NULL,0) | 278 | #define OPENSSL_free(addr) CRYPTO_free((addr),NULL,0) |
280 | #endif | ||
281 | 279 | ||
282 | const char *OpenSSL_version(int type); | 280 | const char *OpenSSL_version(int type); |
283 | #define OPENSSL_VERSION 0 | 281 | #define OPENSSL_VERSION 0 |
@@ -316,7 +314,6 @@ int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file, | |||
316 | /* Don't use this structure directly. */ | 314 | /* Don't use this structure directly. */ |
317 | typedef struct crypto_threadid_st CRYPTO_THREADID; | 315 | typedef struct crypto_threadid_st CRYPTO_THREADID; |
318 | 316 | ||
319 | #ifndef LIBRESSL_INTERNAL | ||
320 | /* These functions are deprecated no-op stubs */ | 317 | /* These functions are deprecated no-op stubs */ |
321 | void CRYPTO_set_id_callback(unsigned long (*func)(void)); | 318 | void CRYPTO_set_id_callback(unsigned long (*func)(void)); |
322 | unsigned long (*CRYPTO_get_id_callback(void))(void); | 319 | unsigned long (*CRYPTO_get_id_callback(void))(void); |
@@ -349,7 +346,6 @@ void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)(struct CRY | |||
349 | struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))(const char *file, int line); | 346 | struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))(const char *file, int line); |
350 | void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line); | 347 | void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line); |
351 | void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file, int line); | 348 | void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file, int line); |
352 | #endif | ||
353 | 349 | ||
354 | /* CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions -- | 350 | /* CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions -- |
355 | * call the latter last if you need different functions */ | 351 | * call the latter last if you need different functions */ |
@@ -357,15 +353,11 @@ int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t), voi | |||
357 | int CRYPTO_set_mem_ex_functions(void *(*m)(size_t, const char *, int), | 353 | int CRYPTO_set_mem_ex_functions(void *(*m)(size_t, const char *, int), |
358 | void *(*r)(void *, size_t, const char *, int), void (*f)(void *)); | 354 | void *(*r)(void *, size_t, const char *, int), void (*f)(void *)); |
359 | 355 | ||
360 | #ifndef LIBRESSL_INTERNAL | ||
361 | void *CRYPTO_malloc(size_t num, const char *file, int line); | 356 | void *CRYPTO_malloc(size_t num, const char *file, int line); |
362 | char *CRYPTO_strdup(const char *str, const char *file, int line); | 357 | char *CRYPTO_strdup(const char *str, const char *file, int line); |
363 | void CRYPTO_free(void *ptr, const char *file, int line); | 358 | void CRYPTO_free(void *ptr, const char *file, int line); |
364 | #endif | ||
365 | 359 | ||
366 | #ifndef LIBRESSL_INTERNAL | ||
367 | void OPENSSL_cleanse(void *ptr, size_t len); | 360 | void OPENSSL_cleanse(void *ptr, size_t len); |
368 | #endif | ||
369 | 361 | ||
370 | /* | 362 | /* |
371 | * Because this is a public header, use a portable method of indicating the | 363 | * Because this is a public header, use a portable method of indicating the |
@@ -381,7 +373,6 @@ void OpenSSLDie(const char *file, int line, const char *assertion); | |||
381 | 373 | ||
382 | uint64_t OPENSSL_cpu_caps(void); | 374 | uint64_t OPENSSL_cpu_caps(void); |
383 | 375 | ||
384 | #ifndef LIBRESSL_INTERNAL | ||
385 | int FIPS_mode(void); | 376 | int FIPS_mode(void); |
386 | int FIPS_mode_set(int r); | 377 | int FIPS_mode_set(int r); |
387 | 378 | ||
@@ -393,7 +384,6 @@ void OPENSSL_init(void); | |||
393 | * defined order as the return value when a != b is undefined, other than to be | 384 | * defined order as the return value when a != b is undefined, other than to be |
394 | * non-zero. */ | 385 | * non-zero. */ |
395 | int CRYPTO_memcmp(const void *a, const void *b, size_t len); | 386 | int CRYPTO_memcmp(const void *a, const void *b, size_t len); |
396 | #endif | ||
397 | 387 | ||
398 | /* | 388 | /* |
399 | * OpenSSL compatible OPENSSL_INIT options. | 389 | * OpenSSL compatible OPENSSL_INIT options. |