diff options
author | tb <> | 2025-03-09 15:29:56 +0000 |
---|---|---|
committer | tb <> | 2025-03-09 15:29:56 +0000 |
commit | b04c2a1d799fe2ea8751349ab1dc4a8b551ce48d (patch) | |
tree | d09836f242ff268513c1c5d3722c69747b19c32e /src/lib/libcrypto/crypto.h | |
parent | 5e452fbcbaa85718d1cafb0f047a72e9825b28a0 (diff) | |
download | openbsd-b04c2a1d799fe2ea8751349ab1dc4a8b551ce48d.tar.gz openbsd-b04c2a1d799fe2ea8751349ab1dc4a8b551ce48d.tar.bz2 openbsd-b04c2a1d799fe2ea8751349ab1dc4a8b551ce48d.zip |
Align CRYPTO_set_mem*_functions with OpenSSL 1.1
CRYPTO_set_mem_ex_functions() was renamed to CRYPTO_set_mem_functions(),
replacing the latter while also correcting the arguments for the free
pointer. The backstory is that a commit that was never compiled was fixed
the wrong way an hour later (both committed without review, obviously),
and here we are, still cleaning up the mess 23 years later.
We carry patches in cjose and stunnel for this; dovecot and links+ have
autoconf checks and will adapt. Oh, and then there's the mariadb
configure time insanity passing wrong function pointers...
ok jsing
Diffstat (limited to 'src/lib/libcrypto/crypto.h')
-rw-r--r-- | src/lib/libcrypto/crypto.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 6ddcaff338..b4230f1b28 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto.h,v 1.78 2025/03/09 15:12:18 tb Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.79 2025/03/09 15:29:56 tb 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 | * |
@@ -349,11 +349,9 @@ struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))(const c | |||
349 | void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line); | 349 | void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line); |
350 | void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file, int line); | 350 | void (*CRYPTO_get_dynlock_destroy_callback(void))(struct CRYPTO_dynlock_value *l, const char *file, int line); |
351 | 351 | ||
352 | /* CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions -- | 352 | int CRYPTO_set_mem_functions(void *(*m)(size_t, const char *, int), |
353 | * call the latter last if you need different functions */ | 353 | void *(*r)(void *, size_t, const char *, int), |
354 | int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t), void (*f)(void *)); | 354 | void (*f)(void *, const char *, int)); |
355 | int CRYPTO_set_mem_ex_functions(void *(*m)(size_t, const char *, int), | ||
356 | void *(*r)(void *, size_t, const char *, int), void (*f)(void *)); | ||
357 | 355 | ||
358 | void *CRYPTO_malloc(size_t num, const char *file, int line); | 356 | void *CRYPTO_malloc(size_t num, const char *file, int line); |
359 | char *CRYPTO_strdup(const char *str, const char *file, int line); | 357 | char *CRYPTO_strdup(const char *str, const char *file, int line); |