diff options
author | tb <> | 2025-03-08 17:17:09 +0000 |
---|---|---|
committer | tb <> | 2025-03-08 17:17:09 +0000 |
commit | f598e2408f3d79791eabc24f9f435f9d399cf39d (patch) | |
tree | 13483d6b9982270879e2472042947e4483735654 /src/lib | |
parent | 603829448e0ea5a1f161ebead76c3305653ee38c (diff) | |
download | openbsd-f598e2408f3d79791eabc24f9f435f9d399cf39d.tar.gz openbsd-f598e2408f3d79791eabc24f9f435f9d399cf39d.tar.bz2 openbsd-f598e2408f3d79791eabc24f9f435f9d399cf39d.zip |
Adjust signature of CRYPTO_set_mem_functions and remove _get_ docs
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 b/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 index 676f4d3386..d020d10ff6 100644 --- a/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 +++ b/src/lib/libcrypto/man/CRYPTO_set_mem_functions.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: CRYPTO_set_mem_functions.3,v 1.1 2025/03/08 17:12:55 tb Exp $ | 1 | .\" $OpenBSD: CRYPTO_set_mem_functions.3,v 1.2 2025/03/08 17:17:09 tb Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -15,10 +15,9 @@ | |||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: March 8 2025 $ | 17 | .Dd $Mdocdate: March 8 2025 $ |
18 | .Dt CRYPTO_GET_MEM_FUNCTIONS 3 | 18 | .Dt CRYPTO_SET_MEM_FUNCTIONS 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
21 | .Nm CRYPTO_get_mem_functions , | ||
22 | .Nm CRYPTO_set_mem_functions , | 21 | .Nm CRYPTO_set_mem_functions , |
23 | .Nm CRYPTO_mem_ctrl , | 22 | .Nm CRYPTO_mem_ctrl , |
24 | .Nm CRYPTO_mem_leaks , | 23 | .Nm CRYPTO_mem_leaks , |
@@ -27,17 +26,11 @@ | |||
27 | .Nd legacy OpenSSL memory allocation control | 26 | .Nd legacy OpenSSL memory allocation control |
28 | .Sh SYNOPSIS | 27 | .Sh SYNOPSIS |
29 | .In openssl/crypto.h | 28 | .In openssl/crypto.h |
30 | .Ft void | ||
31 | .Fo CRYPTO_get_mem_functions | ||
32 | .Fa "void *(**m)(size_t)" | ||
33 | .Fa "void *(**r)(void *, size_t)" | ||
34 | .Fa "void (**f)(void *)" | ||
35 | .Fc | ||
36 | .Ft int | 29 | .Ft int |
37 | .Fo CRYPTO_set_mem_functions | 30 | .Fo CRYPTO_set_mem_functions |
38 | .Fa "void *(*m)(size_t)" | 31 | .Fa "void *(*m)(size_t, const char *, int)" |
39 | .Fa "void *(*r)(void *, size_t)" | 32 | .Fa "void *(*r)(void *, size_t, const char *, int)" |
40 | .Fa "void (*f)(void *)" | 33 | .Fa "void (*f)(void *, const char *, int)" |
41 | .Fc | 34 | .Fc |
42 | .Ft int | 35 | .Ft int |
43 | .Fo CRYPTO_mem_ctrl | 36 | .Fo CRYPTO_mem_ctrl |
@@ -67,15 +60,6 @@ | |||
67 | Do not use any of the interfaces documented here. | 60 | Do not use any of the interfaces documented here. |
68 | They are provided purely for compatibility with legacy application code. | 61 | They are provided purely for compatibility with legacy application code. |
69 | .Pp | 62 | .Pp |
70 | .Fn CRYPTO_get_mem_functions | ||
71 | assigns pointers to the C library functions | ||
72 | .Xr malloc 3 , | ||
73 | .Xr realloc 3 , | ||
74 | and | ||
75 | .Xr free 3 | ||
76 | to those of its arguments that are not | ||
77 | .Dv NULL . | ||
78 | .Pp | ||
79 | .Fn CRYPTO_set_mem_functions , | 63 | .Fn CRYPTO_set_mem_functions , |
80 | .Fn CRYPTO_mem_ctrl , | 64 | .Fn CRYPTO_mem_ctrl , |
81 | .Fn CRYPTO_mem_leaks , | 65 | .Fn CRYPTO_mem_leaks , |
@@ -104,8 +88,6 @@ always return -1. | |||
104 | and | 88 | and |
105 | .Fn CRYPTO_mem_leaks_fp | 89 | .Fn CRYPTO_mem_leaks_fp |
106 | first appeared in SSLeay 0.6.4. | 90 | first appeared in SSLeay 0.6.4. |
107 | .Fn CRYPTO_get_mem_functions | ||
108 | and | ||
109 | .Fn CRYPTO_set_mem_functions | 91 | .Fn CRYPTO_set_mem_functions |
110 | first appeared in SSLeay 0.6.5. | 92 | first appeared in SSLeay 0.6.5. |
111 | .Fn CRYPTO_mem_leaks_cb | 93 | .Fn CRYPTO_mem_leaks_cb |