diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_add.3 | 27 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_cleanup.3 | 18 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_set_rand_method.3 | 28 |
4 files changed, 48 insertions, 28 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 568d65fa74..afec15edbf 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.59 2016/11/28 23:02:16 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.60 2016/11/29 00:07:45 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -147,7 +147,6 @@ MAN= \ | |||
| 147 | PKCS7_verify.3 \ | 147 | PKCS7_verify.3 \ |
| 148 | RAND_add.3 \ | 148 | RAND_add.3 \ |
| 149 | RAND_bytes.3 \ | 149 | RAND_bytes.3 \ |
| 150 | RAND_cleanup.3 \ | ||
| 151 | RAND_load_file.3 \ | 150 | RAND_load_file.3 \ |
| 152 | RAND_set_rand_method.3 \ | 151 | RAND_set_rand_method.3 \ |
| 153 | RC4.3 \ | 152 | RC4.3 \ |
diff --git a/src/lib/libcrypto/man/RAND_add.3 b/src/lib/libcrypto/man/RAND_add.3 index 7137218cdc..0c4639063e 100644 --- a/src/lib/libcrypto/man/RAND_add.3 +++ b/src/lib/libcrypto/man/RAND_add.3 | |||
| @@ -1,10 +1,25 @@ | |||
| 1 | .\" $OpenBSD: RAND_add.3,v 1.3 2016/11/25 16:34:08 jmc Exp $ | 1 | .\" $OpenBSD: RAND_add.3,v 1.4 2016/11/29 00:07:45 schwarze Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .Dd $Mdocdate: November 25 2016 $ | 3 | .\" Copyright (c) 2014 Miod Vallat <miod@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 $ | ||
| 4 | .Dt RAND_ADD 3 | 18 | .Dt RAND_ADD 3 |
| 5 | .Os | 19 | .Os |
| 6 | .Sh NAME | 20 | .Sh NAME |
| 7 | .Nm RAND_add , | 21 | .Nm RAND_add , |
| 22 | .Nm RAND_cleanup , | ||
| 8 | .Nm RAND_seed , | 23 | .Nm RAND_seed , |
| 9 | .Nm RAND_status | 24 | .Nm RAND_status |
| 10 | .Nd add entropy to the PRNG (DEPRECATED) | 25 | .Nd add entropy to the PRNG (DEPRECATED) |
| @@ -17,6 +32,8 @@ | |||
| 17 | .Fa "double entropy" | 32 | .Fa "double entropy" |
| 18 | .Fc | 33 | .Fc |
| 19 | .Ft void | 34 | .Ft void |
| 35 | .Fn RAND_cleanup void | ||
| 36 | .Ft void | ||
| 20 | .Fo RAND_seed | 37 | .Fo RAND_seed |
| 21 | .Fa "const void *buf" | 38 | .Fa "const void *buf" |
| 22 | .Fa "int num" | 39 | .Fa "int num" |
| @@ -29,6 +46,6 @@ generator to be controlled by external sources. | |||
| 29 | .Pp | 46 | .Pp |
| 30 | They are kept for ABI compatibility but are no longer functional, and | 47 | They are kept for ABI compatibility but are no longer functional, and |
| 31 | should not be used in new programs. | 48 | should not be used in new programs. |
| 32 | .Sh SEE ALSO | 49 | .Sh RETURN VALUES |
| 33 | .Xr RAND_cleanup 3 , | 50 | .Fn RAND_status |
| 34 | .Xr RAND_load_file 3 | 51 | always returns 1. |
diff --git a/src/lib/libcrypto/man/RAND_cleanup.3 b/src/lib/libcrypto/man/RAND_cleanup.3 deleted file mode 100644 index 8c57e09fc7..0000000000 --- a/src/lib/libcrypto/man/RAND_cleanup.3 +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | .\" $OpenBSD: RAND_cleanup.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ | ||
| 2 | .\" | ||
| 3 | .Dd $Mdocdate: November 6 2016 $ | ||
| 4 | .Dt RAND_CLEANUP 3 | ||
| 5 | .Os | ||
| 6 | .Sh NAME | ||
| 7 | .Nm RAND_cleanup | ||
| 8 | .Nd erase the PRNG state | ||
| 9 | .Sh SYNOPSIS | ||
| 10 | .In openssl/rand.h | ||
| 11 | .Ft void | ||
| 12 | .Fn RAND_cleanup void | ||
| 13 | .Sh DESCRIPTION | ||
| 14 | .Fn RAND_cleanup | ||
| 15 | erases the memory used by the PRNG. | ||
| 16 | .Sh HISTORY | ||
| 17 | .Fn RAND_cleanup | ||
| 18 | is available in all versions of SSLeay and OpenSSL. | ||
diff --git a/src/lib/libcrypto/man/RAND_set_rand_method.3 b/src/lib/libcrypto/man/RAND_set_rand_method.3 index cb5675d4aa..6f99335166 100644 --- a/src/lib/libcrypto/man/RAND_set_rand_method.3 +++ b/src/lib/libcrypto/man/RAND_set_rand_method.3 | |||
| @@ -1,6 +1,20 @@ | |||
| 1 | .\" $OpenBSD: RAND_set_rand_method.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ | 1 | .\" $OpenBSD: RAND_set_rand_method.3,v 1.3 2016/11/29 00:07:45 schwarze Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .Dd $Mdocdate: November 6 2016 $ | 3 | .\" Copyright (c) 2014 Miod Vallat <miod@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 $ | ||
| 4 | .Dt RAND_SET_RAND_METHOD 3 | 18 | .Dt RAND_SET_RAND_METHOD 3 |
| 5 | .Os | 19 | .Os |
| 6 | .Sh NAME | 20 | .Sh NAME |
| @@ -10,7 +24,7 @@ | |||
| 10 | .Nd select RAND method | 24 | .Nd select RAND method |
| 11 | .Sh SYNOPSIS | 25 | .Sh SYNOPSIS |
| 12 | .In openssl/rand.h | 26 | .In openssl/rand.h |
| 13 | .Ft void | 27 | .Ft int |
| 14 | .Fo RAND_set_rand_method | 28 | .Fo RAND_set_rand_method |
| 15 | .Fa "const RAND_METHOD *meth" | 29 | .Fa "const RAND_METHOD *meth" |
| 16 | .Fc | 30 | .Fc |
| @@ -24,6 +38,14 @@ to be replaced by arbitrary code. | |||
| 24 | .Pp | 38 | .Pp |
| 25 | They are kept for ABI compatibility but are no longer functional, and | 39 | They are kept for ABI compatibility but are no longer functional, and |
| 26 | should not be used in new programs. | 40 | should not be used in new programs. |
| 41 | .Sh RETURN VALUES | ||
| 42 | .Fn RAND_set_rand_method | ||
| 43 | always returns 1. | ||
| 44 | .Fn RAND_get_rand_method | ||
| 45 | and | ||
| 46 | .Fn RAND_SSLeay | ||
| 47 | always return | ||
| 48 | .Dv NULL . | ||
| 27 | .Sh HISTORY | 49 | .Sh HISTORY |
| 28 | .Fn RAND_set_rand_method , | 50 | .Fn RAND_set_rand_method , |
| 29 | .Fn RAND_get_rand_method , | 51 | .Fn RAND_get_rand_method , |
