diff options
author | deraadt <> | 2016-11-29 18:16:09 +0000 |
---|---|---|
committer | deraadt <> | 2016-11-29 18:16:09 +0000 |
commit | a7b5951b864e40c785589bc521ac5029cc8b72fa (patch) | |
tree | 5829c82f8142a6fa1bf9040a6070d85ec5d71fc3 /src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 | |
parent | 89bdb96f757f9b8cebac7c925883617dee11e7d3 (diff) | |
download | openbsd-a7b5951b864e40c785589bc521ac5029cc8b72fa.tar.gz openbsd-a7b5951b864e40c785589bc521ac5029cc8b72fa.tar.bz2 openbsd-a7b5951b864e40c785589bc521ac5029cc8b72fa.zip |
seperate these descriptions into seperate files to reduce confusion.
discussed with jsing
ok schwarze
Diffstat (limited to 'src/lib/libcrypto/man/CRYPTO_get_mem_functions.3')
-rw-r--r-- | src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 b/src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 new file mode 100644 index 0000000000..a0bfb8a1d5 --- /dev/null +++ b/src/lib/libcrypto/man/CRYPTO_get_mem_functions.3 | |||
@@ -0,0 +1,79 @@ | |||
1 | .\" $OpenBSD: CRYPTO_get_mem_functions.3,v 1.1 2016/11/29 18:16:09 deraadt Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
4 | .\" | ||
5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
7 | .\" copyright notice and this permission notice appear in all copies. | ||
8 | .\" | ||
9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | .\" | ||
17 | .Dd $Mdocdate: November 29 2016 $ | ||
18 | .Dt CRYPTO_get_mem_functions 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm CRYPTO_get_mem_functions , | ||
22 | .Nm CRYPTO_set_mem_functions , | ||
23 | .Nm CRYPTO_mem_ctrl , | ||
24 | .Nm CRYPTO_mem_leaks , | ||
25 | .Nm CRYPTO_mem_leaks_fp | ||
26 | .Nd legacy OpenSSL memory allocation control | ||
27 | .Sh SYNOPSIS | ||
28 | .In openssl/crypto.h | ||
29 | .Ft void | ||
30 | .Fo CRYPTO_get_mem_functions | ||
31 | .Fa "void *(**m)(size_t)" | ||
32 | .Fa "void *(**r)(void *, size_t)" | ||
33 | .Fa "void (**f)(void *)" | ||
34 | .Fc | ||
35 | .Ft int | ||
36 | .Fo CRYPTO_set_mem_functions | ||
37 | .Fa "void *(*m)(size_t)" | ||
38 | .Fa "void *(*r)(void *, size_t)" | ||
39 | .Fa "void (*f)(void *)" | ||
40 | .Fc | ||
41 | .Ft int | ||
42 | .Fo CRYPTO_mem_ctrl | ||
43 | .Fa "int mode" | ||
44 | .Fc | ||
45 | .Ft void | ||
46 | .Fo CRYPTO_mem_leaks | ||
47 | .Fa "BIO *b" | ||
48 | .Fc | ||
49 | .Ft void | ||
50 | .Fo CRYPTO_mem_leaks_fp | ||
51 | .Fa "FILE *fp" | ||
52 | .Fc | ||
53 | .Sh DESCRIPTION | ||
54 | Do not use any of the interfaces documented here. | ||
55 | They are provided purely for compatibility with legacy application code. | ||
56 | .Pp | ||
57 | .Fn CRYPTO_get_mem_functions | ||
58 | assigns pointers to the C library functions | ||
59 | .Xr malloc 3 , | ||
60 | .Xr realloc 3 , | ||
61 | and | ||
62 | .Xr free 3 | ||
63 | to those of its arguments that are not | ||
64 | .Dv NULL. | ||
65 | .Pp | ||
66 | .Fn CRYPTO_set_mem_functions , | ||
67 | .Fn CRYPTO_mem_ctrl , | ||
68 | .Fn CRYPTO_mem_leaks , | ||
69 | and | ||
70 | .Fn CRYPTO_mem_leaks_fp | ||
71 | have no effect. | ||
72 | .Sh RETURN VALUES | ||
73 | .Pp | ||
74 | .Fn CRYPTO_set_mem_functions | ||
75 | always returns 0. | ||
76 | .Pp | ||
77 | .Fn CRYPTO_mem_ctrl | ||
78 | always returns | ||
79 | .Dv CRYPTO_MEM_CHECK_OFF . | ||