From 603829448e0ea5a1f161ebead76c3305653ee38c Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 8 Mar 2025 17:12:55 +0000 Subject: Rename CRYPTO_get_mem_functions.3 to CRYPTO_set_mem_functions.3 --- src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 | 114 ----------------------- src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 | 114 +++++++++++++++++++++++ src/lib/libcrypto/man/Makefile | 4 +- 3 files changed, 116 insertions(+), 116 deletions(-) delete mode 100644 src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 create mode 100644 src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 (limited to 'src') diff --git a/src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 b/src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 deleted file mode 100644 index 5d43116283..0000000000 --- a/src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 +++ /dev/null @@ -1,114 +0,0 @@ -.\" $OpenBSD: CRYPTO_get_mem_functions.3,v 1.7 2019/06/10 09:49:48 schwarze Exp $ -.\" -.\" Copyright (c) 2016 Ingo Schwarze -.\" -.\" Permission to use, copy, modify, and distribute this software for any -.\" purpose with or without fee is hereby granted, provided that the above -.\" copyright notice and this permission notice appear in all copies. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.\" -.Dd $Mdocdate: June 10 2019 $ -.Dt CRYPTO_GET_MEM_FUNCTIONS 3 -.Os -.Sh NAME -.Nm CRYPTO_get_mem_functions , -.Nm CRYPTO_set_mem_functions , -.Nm CRYPTO_mem_ctrl , -.Nm CRYPTO_mem_leaks , -.Nm CRYPTO_mem_leaks_fp , -.Nm CRYPTO_mem_leaks_cb -.Nd legacy OpenSSL memory allocation control -.Sh SYNOPSIS -.In openssl/crypto.h -.Ft void -.Fo CRYPTO_get_mem_functions -.Fa "void *(**m)(size_t)" -.Fa "void *(**r)(void *, size_t)" -.Fa "void (**f)(void *)" -.Fc -.Ft int -.Fo CRYPTO_set_mem_functions -.Fa "void *(*m)(size_t)" -.Fa "void *(*r)(void *, size_t)" -.Fa "void (*f)(void *)" -.Fc -.Ft int -.Fo CRYPTO_mem_ctrl -.Fa "int mode" -.Fc -.Ft int -.Fo CRYPTO_mem_leaks -.Fa "BIO *b" -.Fc -.Ft int -.Fo CRYPTO_mem_leaks_fp -.Fa "FILE *fp" -.Fc -.Ft typedef int * -.Fo CRYPTO_MEM_LEAK_CB -.Fa "unsigned long" -.Fa "const char *" -.Fa int -.Fa int -.Fa "void *" -.Fc -.Ft int -.Fo CRYPTO_mem_leaks_cb -.Fa "CRYPTO_MEM_LEAK_CB *cb" -.Fc -.Sh DESCRIPTION -Do not use any of the interfaces documented here. -They are provided purely for compatibility with legacy application code. -.Pp -.Fn CRYPTO_get_mem_functions -assigns pointers to the C library functions -.Xr malloc 3 , -.Xr realloc 3 , -and -.Xr free 3 -to those of its arguments that are not -.Dv NULL . -.Pp -.Fn CRYPTO_set_mem_functions , -.Fn CRYPTO_mem_ctrl , -.Fn CRYPTO_mem_leaks , -.Fn CRYPTO_mem_leaks_fp , -and -.Fn CRYPTO_mem_leaks_cb -have no effect. -.Sh RETURN VALUES -.Fn CRYPTO_set_mem_functions -always returns 0. -.Pp -.Fn CRYPTO_mem_ctrl -always returns -.Dv CRYPTO_MEM_CHECK_OFF . -.Pp -.Fn CRYPTO_mem_leaks , -.Fn CRYPTO_mem_leaks_fp , -and -.Fn CRYPTO_mem_leaks_cb -always return -1. -.Sh SEE ALSO -.Xr crypto 3 -.Sh HISTORY -.Fn CRYPTO_mem_ctrl , -.Fn CRYPTO_mem_leaks , -and -.Fn CRYPTO_mem_leaks_fp -first appeared in SSLeay 0.6.4. -.Fn CRYPTO_get_mem_functions -and -.Fn CRYPTO_set_mem_functions -first appeared in SSLeay 0.6.5. -.Fn CRYPTO_mem_leaks_cb -first appeared in SSLeay 0.6.6. -All these functions have all been available since -.Ox 2.4 . diff --git a/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 b/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 new file mode 100644 index 0000000000..676f4d3386 --- /dev/null +++ b/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 @@ -0,0 +1,114 @@ +.\" $OpenBSD: CRYPTO_set_mem_functions.3,v 1.1 2025/03/08 17:12:55 tb Exp $ +.\" +.\" Copyright (c) 2016 Ingo Schwarze +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd $Mdocdate: March 8 2025 $ +.Dt CRYPTO_GET_MEM_FUNCTIONS 3 +.Os +.Sh NAME +.Nm CRYPTO_get_mem_functions , +.Nm CRYPTO_set_mem_functions , +.Nm CRYPTO_mem_ctrl , +.Nm CRYPTO_mem_leaks , +.Nm CRYPTO_mem_leaks_fp , +.Nm CRYPTO_mem_leaks_cb +.Nd legacy OpenSSL memory allocation control +.Sh SYNOPSIS +.In openssl/crypto.h +.Ft void +.Fo CRYPTO_get_mem_functions +.Fa "void *(**m)(size_t)" +.Fa "void *(**r)(void *, size_t)" +.Fa "void (**f)(void *)" +.Fc +.Ft int +.Fo CRYPTO_set_mem_functions +.Fa "void *(*m)(size_t)" +.Fa "void *(*r)(void *, size_t)" +.Fa "void (*f)(void *)" +.Fc +.Ft int +.Fo CRYPTO_mem_ctrl +.Fa "int mode" +.Fc +.Ft int +.Fo CRYPTO_mem_leaks +.Fa "BIO *b" +.Fc +.Ft int +.Fo CRYPTO_mem_leaks_fp +.Fa "FILE *fp" +.Fc +.Ft typedef int * +.Fo CRYPTO_MEM_LEAK_CB +.Fa "unsigned long" +.Fa "const char *" +.Fa int +.Fa int +.Fa "void *" +.Fc +.Ft int +.Fo CRYPTO_mem_leaks_cb +.Fa "CRYPTO_MEM_LEAK_CB *cb" +.Fc +.Sh DESCRIPTION +Do not use any of the interfaces documented here. +They are provided purely for compatibility with legacy application code. +.Pp +.Fn CRYPTO_get_mem_functions +assigns pointers to the C library functions +.Xr malloc 3 , +.Xr realloc 3 , +and +.Xr free 3 +to those of its arguments that are not +.Dv NULL . +.Pp +.Fn CRYPTO_set_mem_functions , +.Fn CRYPTO_mem_ctrl , +.Fn CRYPTO_mem_leaks , +.Fn CRYPTO_mem_leaks_fp , +and +.Fn CRYPTO_mem_leaks_cb +have no effect. +.Sh RETURN VALUES +.Fn CRYPTO_set_mem_functions +always returns 0. +.Pp +.Fn CRYPTO_mem_ctrl +always returns +.Dv CRYPTO_MEM_CHECK_OFF . +.Pp +.Fn CRYPTO_mem_leaks , +.Fn CRYPTO_mem_leaks_fp , +and +.Fn CRYPTO_mem_leaks_cb +always return -1. +.Sh SEE ALSO +.Xr crypto 3 +.Sh HISTORY +.Fn CRYPTO_mem_ctrl , +.Fn CRYPTO_mem_leaks , +and +.Fn CRYPTO_mem_leaks_fp +first appeared in SSLeay 0.6.4. +.Fn CRYPTO_get_mem_functions +and +.Fn CRYPTO_set_mem_functions +first appeared in SSLeay 0.6.5. +.Fn CRYPTO_mem_leaks_cb +first appeared in SSLeay 0.6.6. +All these functions have all been available since +.Ox 2.4 . diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 8330fe11a3..9f3d448432 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.306 2025/03/08 16:38:13 tb Exp $ +# $OpenBSD: Makefile,v 1.307 2025/03/08 17:12:55 tb Exp $ .include @@ -105,10 +105,10 @@ MAN= \ CMS_verify_receipt.3 \ CONF_modules_free.3 \ CONF_modules_load_file.3 \ - CRYPTO_get_mem_functions.3 \ CRYPTO_lock.3 \ CRYPTO_memcmp.3 \ CRYPTO_set_ex_data.3 \ + CRYPTO_set_mem_functions.3 \ ChaCha.3 \ DES_set_key.3 \ DH_generate_key.3 \ -- cgit v1.2.3-55-g6feb