diff options
| author | schwarze <> | 2016-11-03 15:48:22 +0000 |
|---|---|---|
| committer | schwarze <> | 2016-11-03 15:48:22 +0000 |
| commit | 85d8ca9ecb19f3d0e39cff0dbc5cbe983af173e3 (patch) | |
| tree | d168499a4dfb3fdd832a07f798870ad797dfd972 /src | |
| parent | 87b1aadca6f5b302e140e6343c31cb406269601c (diff) | |
| download | openbsd-85d8ca9ecb19f3d0e39cff0dbc5cbe983af173e3.tar.gz openbsd-85d8ca9ecb19f3d0e39cff0dbc5cbe983af173e3.tar.bz2 openbsd-85d8ca9ecb19f3d0e39cff0dbc5cbe983af173e3.zip | |
convert RAND manuals from pod to mdoc
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/doc/RAND_add.pod | 30 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/RAND_bytes.pod | 43 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/RAND_cleanup.pod | 25 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/RAND_load_file.pod | 52 | ||||
| -rw-r--r-- | src/lib/libcrypto/doc/RAND_set_rand_method.pod | 40 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_add.3 | 32 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_bytes.3 | 52 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_cleanup.3 | 16 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_load_file.3 | 68 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/RAND_set_rand_method.3 | 30 |
11 files changed, 204 insertions, 196 deletions
diff --git a/src/lib/libcrypto/doc/RAND_add.pod b/src/lib/libcrypto/doc/RAND_add.pod deleted file mode 100644 index 3ffd4910c4..0000000000 --- a/src/lib/libcrypto/doc/RAND_add.pod +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | RAND_add, RAND_seed, RAND_status - add entropy to the PRNG (DEPRECATED) | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | #include <openssl/rand.h> | ||
| 10 | |||
| 11 | void RAND_seed(const void *buf, int num); | ||
| 12 | |||
| 13 | void RAND_add(const void *buf, int num, double entropy); | ||
| 14 | |||
| 15 | int RAND_status(void); | ||
| 16 | |||
| 17 | =head1 DESCRIPTION | ||
| 18 | |||
| 19 | These functions used to allow for the state of the random number generator | ||
| 20 | to be controlled by external sources. | ||
| 21 | |||
| 22 | They are kept for ABI compatibility but are no longer functional, and | ||
| 23 | should not be used in new programs. | ||
| 24 | |||
| 25 | =head1 SEE ALSO | ||
| 26 | |||
| 27 | L<rand(3)|rand(3)>, | ||
| 28 | L<RAND_load_file(3)|RAND_load_file(3)>, L<RAND_cleanup(3)|RAND_cleanup(3)> | ||
| 29 | |||
| 30 | =cut | ||
diff --git a/src/lib/libcrypto/doc/RAND_bytes.pod b/src/lib/libcrypto/doc/RAND_bytes.pod deleted file mode 100644 index c89961ada3..0000000000 --- a/src/lib/libcrypto/doc/RAND_bytes.pod +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | RAND_bytes, RAND_pseudo_bytes - generate random data | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | #include <openssl/rand.h> | ||
| 10 | |||
| 11 | int RAND_bytes(unsigned char *buf, int num); | ||
| 12 | |||
| 13 | int RAND_pseudo_bytes(unsigned char *buf, int num); | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | RAND_bytes() puts B<num> cryptographically strong pseudo-random bytes | ||
| 18 | into B<buf>. | ||
| 19 | |||
| 20 | RAND_pseudo_bytes() puts B<num> pseudo-random bytes into B<buf>. | ||
| 21 | Pseudo-random byte sequences generated by RAND_pseudo_bytes() will be | ||
| 22 | unique if they are of sufficient length, but are not necessarily | ||
| 23 | unpredictable. They can be used for non-cryptographic purposes and for | ||
| 24 | certain purposes in cryptographic protocols, but usually not for key | ||
| 25 | generation etc. | ||
| 26 | |||
| 27 | =head1 RETURN VALUES | ||
| 28 | |||
| 29 | RAND_bytes() returns 1. | ||
| 30 | RAND_pseudo_bytes() returns 1. | ||
| 31 | |||
| 32 | =head1 SEE ALSO | ||
| 33 | |||
| 34 | L<rand(3)|rand(3)>, L<ERR_get_error(3)|ERR_get_error(3)>, | ||
| 35 | L<RAND_add(3)|RAND_add(3)> | ||
| 36 | |||
| 37 | =head1 HISTORY | ||
| 38 | |||
| 39 | RAND_bytes() is available in all versions of SSLeay and OpenSSL. It | ||
| 40 | has a return value since OpenSSL 0.9.5. RAND_pseudo_bytes() was added | ||
| 41 | in OpenSSL 0.9.5. | ||
| 42 | |||
| 43 | =cut | ||
diff --git a/src/lib/libcrypto/doc/RAND_cleanup.pod b/src/lib/libcrypto/doc/RAND_cleanup.pod deleted file mode 100644 index 10cb39ce7a..0000000000 --- a/src/lib/libcrypto/doc/RAND_cleanup.pod +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | RAND_cleanup - erase the PRNG state | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | #include <openssl/rand.h> | ||
| 10 | |||
| 11 | void RAND_cleanup(void); | ||
| 12 | |||
| 13 | =head1 DESCRIPTION | ||
| 14 | |||
| 15 | RAND_cleanup() erases the memory used by the PRNG. | ||
| 16 | |||
| 17 | =head1 SEE ALSO | ||
| 18 | |||
| 19 | L<rand(3)|rand(3)> | ||
| 20 | |||
| 21 | =head1 HISTORY | ||
| 22 | |||
| 23 | RAND_cleanup() is available in all versions of SSLeay and OpenSSL. | ||
| 24 | |||
| 25 | =cut | ||
diff --git a/src/lib/libcrypto/doc/RAND_load_file.pod b/src/lib/libcrypto/doc/RAND_load_file.pod deleted file mode 100644 index 5e4c2481d8..0000000000 --- a/src/lib/libcrypto/doc/RAND_load_file.pod +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | RAND_load_file, RAND_write_file, RAND_file_name - PRNG seed file | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | #include <openssl/rand.h> | ||
| 10 | |||
| 11 | const char *RAND_file_name(char *buf, size_t num); | ||
| 12 | |||
| 13 | int RAND_load_file(const char *filename, long max_bytes); | ||
| 14 | |||
| 15 | int RAND_write_file(const char *filename); | ||
| 16 | |||
| 17 | =head1 DESCRIPTION | ||
| 18 | |||
| 19 | RAND_file_name() returns a default path for the random seed file. | ||
| 20 | B<buf> points to a buffer of size B<num> in which to store the | ||
| 21 | filename. If B<num> is too small for the path name, an error occurs. | ||
| 22 | |||
| 23 | RAND_load_file() used to allow for the state of the random number generator | ||
| 24 | to be controlled by external sources. | ||
| 25 | |||
| 26 | It is kept for ABI compatibility but is no longer functional, and | ||
| 27 | should not used in new programs. | ||
| 28 | |||
| 29 | RAND_write_file() writes a number of random bytes (currently 1024) to | ||
| 30 | file B<filename>. | ||
| 31 | |||
| 32 | =head1 RETURN VALUES | ||
| 33 | |||
| 34 | RAND_load_file() always returns 0. | ||
| 35 | |||
| 36 | RAND_write_file() returns the number of bytes written, and -1 if the | ||
| 37 | bytes written were generated without appropriate seed. | ||
| 38 | |||
| 39 | RAND_file_name() returns a pointer to B<buf> on success, and NULL on | ||
| 40 | error. | ||
| 41 | |||
| 42 | =head1 SEE ALSO | ||
| 43 | |||
| 44 | L<rand(3)|rand(3)>, L<RAND_add(3)|RAND_add(3)>, | ||
| 45 | L<RAND_cleanup(3)|RAND_cleanup(3)> | ||
| 46 | |||
| 47 | =head1 HISTORY | ||
| 48 | |||
| 49 | RAND_load_file(), RAND_write_file() and RAND_file_name() are available in | ||
| 50 | all versions of SSLeay and OpenSSL. | ||
| 51 | |||
| 52 | =cut | ||
diff --git a/src/lib/libcrypto/doc/RAND_set_rand_method.pod b/src/lib/libcrypto/doc/RAND_set_rand_method.pod deleted file mode 100644 index c02068bf76..0000000000 --- a/src/lib/libcrypto/doc/RAND_set_rand_method.pod +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | RAND_set_rand_method, RAND_get_rand_method, RAND_SSLeay - select RAND method | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | #include <openssl/rand.h> | ||
| 10 | |||
| 11 | void RAND_set_rand_method(const RAND_METHOD *meth); | ||
| 12 | |||
| 13 | const RAND_METHOD *RAND_get_rand_method(void); | ||
| 14 | |||
| 15 | RAND_METHOD *RAND_SSLeay(void); | ||
| 16 | |||
| 17 | =head1 DESCRIPTION | ||
| 18 | |||
| 19 | These functions used to allow for the random number generator functions | ||
| 20 | to be replaced by arbitrary code. | ||
| 21 | |||
| 22 | They are kept for ABI compatibility but are no longer functional, and | ||
| 23 | should not be used in new programs. | ||
| 24 | |||
| 25 | =head1 SEE ALSO | ||
| 26 | |||
| 27 | L<rand(3)|rand(3)> | ||
| 28 | |||
| 29 | =head1 HISTORY | ||
| 30 | |||
| 31 | RAND_set_rand_method(), RAND_get_rand_method() and RAND_SSLeay() are | ||
| 32 | available in all versions of OpenSSL. | ||
| 33 | |||
| 34 | In the engine version of version 0.9.6, RAND_set_rand_method() was altered to | ||
| 35 | take an ENGINE pointer as its argument. As of version 0.9.7, that has been | ||
| 36 | reverted as the ENGINE API transparently overrides RAND defaults if used, | ||
| 37 | otherwise RAND API functions work as before. RAND_set_rand_engine() was also | ||
| 38 | introduced in version 0.9.7. | ||
| 39 | |||
| 40 | =cut | ||
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 4312bdc341..0b3a08a7d3 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.43 2016/11/03 15:31:29 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.44 2016/11/03 15:48:22 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> # for NOMAN | 3 | .include <bsd.own.mk> # for NOMAN |
| 4 | 4 | ||
| @@ -132,6 +132,11 @@ MAN= \ | |||
| 132 | PKCS7_sign.3 \ | 132 | PKCS7_sign.3 \ |
| 133 | PKCS7_sign_add_signer.3 \ | 133 | PKCS7_sign_add_signer.3 \ |
| 134 | PKCS7_verify.3 \ | 134 | PKCS7_verify.3 \ |
| 135 | RAND_add.3 \ | ||
| 136 | RAND_bytes.3 \ | ||
| 137 | RAND_cleanup.3 \ | ||
| 138 | RAND_load_file.3 \ | ||
| 139 | RAND_set_rand_method.3 \ | ||
| 135 | SMIME_read_PKCS7.3 \ | 140 | SMIME_read_PKCS7.3 \ |
| 136 | SMIME_write_PKCS7.3 \ | 141 | SMIME_write_PKCS7.3 \ |
| 137 | UI_new.3 \ | 142 | UI_new.3 \ |
| @@ -145,11 +150,6 @@ MAN= \ | |||
| 145 | lh_new.3 \ | 150 | lh_new.3 \ |
| 146 | 151 | ||
| 147 | GENMAN= \ | 152 | GENMAN= \ |
| 148 | RAND_add.3 \ | ||
| 149 | RAND_bytes.3 \ | ||
| 150 | RAND_cleanup.3 \ | ||
| 151 | RAND_load_file.3 \ | ||
| 152 | RAND_set_rand_method.3 \ | ||
| 153 | RC4.3 \ | 153 | RC4.3 \ |
| 154 | RIPEMD160.3 \ | 154 | RIPEMD160.3 \ |
| 155 | RSA_blinding_on.3 \ | 155 | RSA_blinding_on.3 \ |
diff --git a/src/lib/libcrypto/man/RAND_add.3 b/src/lib/libcrypto/man/RAND_add.3 new file mode 100644 index 0000000000..31b61a6386 --- /dev/null +++ b/src/lib/libcrypto/man/RAND_add.3 | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | .Dd $Mdocdate: November 3 2016 $ | ||
| 2 | .Dt RAND_ADD 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm RAND_add , | ||
| 6 | .Nm RAND_seed , | ||
| 7 | .Nm RAND_status | ||
| 8 | .Nd add entropy to the PRNG (DEPRECATED) | ||
| 9 | .Sh SYNOPSIS | ||
| 10 | .In openssl/rand.h | ||
| 11 | .Ft void | ||
| 12 | .Fo RAND_seed | ||
| 13 | .Fa "const void *buf" | ||
| 14 | .Fa "int num" | ||
| 15 | .Fc | ||
| 16 | .Ft void | ||
| 17 | .Fo RAND_add | ||
| 18 | .Fa "const void *buf" | ||
| 19 | .Fa "int num" | ||
| 20 | .Fa "double entropy" | ||
| 21 | .Fc | ||
| 22 | .Ft int | ||
| 23 | .Fn RAND_status void | ||
| 24 | .Sh DESCRIPTION | ||
| 25 | These functions used to allow for the state of the random number | ||
| 26 | generator to be controlled by external sources. | ||
| 27 | .Pp | ||
| 28 | They are kept for ABI compatibility but are no longer functional, and | ||
| 29 | should not be used in new programs. | ||
| 30 | .Sh SEE ALSO | ||
| 31 | .Xr RAND_cleanup 3 , | ||
| 32 | .Xr RAND_load_file 3 | ||
diff --git a/src/lib/libcrypto/man/RAND_bytes.3 b/src/lib/libcrypto/man/RAND_bytes.3 new file mode 100644 index 0000000000..41f0950fe3 --- /dev/null +++ b/src/lib/libcrypto/man/RAND_bytes.3 | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | .Dd $Mdocdate: November 3 2016 $ | ||
| 2 | .Dt RAND_BYTES 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm RAND_bytes , | ||
| 6 | .Nm RAND_pseudo_bytes | ||
| 7 | .Nd generate random data | ||
| 8 | .Sh SYNOPSIS | ||
| 9 | .In openssl/rand.h | ||
| 10 | .Ft int | ||
| 11 | .Fo RAND_bytes | ||
| 12 | .Fa "unsigned char *buf" | ||
| 13 | .Fa "int num" | ||
| 14 | .Fc | ||
| 15 | .Ft int | ||
| 16 | .Fo RAND_pseudo_bytes | ||
| 17 | .Fa "unsigned char *buf" | ||
| 18 | .Fa "int num" | ||
| 19 | .Fc | ||
| 20 | .Sh DESCRIPTION | ||
| 21 | .Fn RAND_bytes | ||
| 22 | puts | ||
| 23 | .Fa num | ||
| 24 | cryptographically strong pseudo-random bytes into | ||
| 25 | .Fa buf . | ||
| 26 | .Pp | ||
| 27 | .Fn RAND_pseudo_bytes | ||
| 28 | puts | ||
| 29 | .Fa num | ||
| 30 | pseudo-random bytes into | ||
| 31 | .Fa buf . | ||
| 32 | Pseudo-random byte sequences generated by | ||
| 33 | .Fn RAND_pseudo_bytes | ||
| 34 | will be unique if they are of sufficient length, but are not necessarily | ||
| 35 | unpredictable. | ||
| 36 | They can be used for non-cryptographic purposes and for certain purposes | ||
| 37 | in cryptographic protocols, but usually not for key generation etc. | ||
| 38 | .Sh RETURN VALUES | ||
| 39 | .Fn RAND_bytes | ||
| 40 | returns 1. | ||
| 41 | .Fn RAND_pseudo_bytes | ||
| 42 | returns 1. | ||
| 43 | .Sh SEE ALSO | ||
| 44 | .Xr ERR_get_error 3 , | ||
| 45 | .Xr RAND_add 3 | ||
| 46 | .Sh HISTORY | ||
| 47 | .Fn RAND_bytes | ||
| 48 | is available in all versions of SSLeay and OpenSSL. | ||
| 49 | It has a return | ||
| 50 | value since OpenSSL 0.9.5. | ||
| 51 | .Fn RAND_pseudo_bytes | ||
| 52 | was added in OpenSSL 0.9.5. | ||
diff --git a/src/lib/libcrypto/man/RAND_cleanup.3 b/src/lib/libcrypto/man/RAND_cleanup.3 new file mode 100644 index 0000000000..00ee14b371 --- /dev/null +++ b/src/lib/libcrypto/man/RAND_cleanup.3 | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | .Dd $Mdocdate: November 3 2016 $ | ||
| 2 | .Dt RAND_CLEANUP 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm RAND_cleanup | ||
| 6 | .Nd erase the PRNG state | ||
| 7 | .Sh SYNOPSIS | ||
| 8 | .In openssl/rand.h | ||
| 9 | .Ft void | ||
| 10 | .Fn RAND_cleanup void | ||
| 11 | .Sh DESCRIPTION | ||
| 12 | .Fn RAND_cleanup | ||
| 13 | erases the memory used by the PRNG. | ||
| 14 | .Sh HISTORY | ||
| 15 | .Fn RAND_cleanup | ||
| 16 | is available in all versions of SSLeay and OpenSSL. | ||
diff --git a/src/lib/libcrypto/man/RAND_load_file.3 b/src/lib/libcrypto/man/RAND_load_file.3 new file mode 100644 index 0000000000..fb521a8e9c --- /dev/null +++ b/src/lib/libcrypto/man/RAND_load_file.3 | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | .Dd $Mdocdate: November 3 2016 $ | ||
| 2 | .Dt RAND_LOAD_FILE 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm RAND_load_file , | ||
| 6 | .Nm RAND_write_file , | ||
| 7 | .Nm RAND_file_name | ||
| 8 | .Nd PRNG seed file | ||
| 9 | .Sh SYNOPSIS | ||
| 10 | .In openssl/rand.h | ||
| 11 | .Ft const char * | ||
| 12 | .Fo RAND_file_name | ||
| 13 | .Fa "char *buf" | ||
| 14 | .Fa "size_t num" | ||
| 15 | .Fc | ||
| 16 | .Ft int | ||
| 17 | .Fo RAND_load_file | ||
| 18 | .Fa "const char *filename" | ||
| 19 | .Fa "long max_bytes" | ||
| 20 | .Fc | ||
| 21 | .Ft int | ||
| 22 | .Fo RAND_write_file | ||
| 23 | .Fa "const char *filename" | ||
| 24 | .Fc | ||
| 25 | .Sh DESCRIPTION | ||
| 26 | .Fn RAND_file_name | ||
| 27 | returns a default path for the random seed file. | ||
| 28 | .Fa buf | ||
| 29 | points to a buffer of size | ||
| 30 | .Fa num | ||
| 31 | in which to store the filename. | ||
| 32 | If | ||
| 33 | .Fa num | ||
| 34 | is too small for the path name, an error occurs. | ||
| 35 | .Pp | ||
| 36 | .Fn RAND_load_file | ||
| 37 | used to allow for the state of the random number generator to be | ||
| 38 | controlled by external sources. | ||
| 39 | .Pp | ||
| 40 | It is kept for ABI compatibility but is no longer functional, and should | ||
| 41 | not used in new programs. | ||
| 42 | .Pp | ||
| 43 | .Fn RAND_write_file | ||
| 44 | writes a number of random bytes (currently 1024) to file | ||
| 45 | .Fa filename . | ||
| 46 | .Sh RETURN VALUES | ||
| 47 | .Fn RAND_load_file | ||
| 48 | always returns 0. | ||
| 49 | .Pp | ||
| 50 | .Fn RAND_write_file | ||
| 51 | returns the number of bytes written, and -1 if the bytes written were | ||
| 52 | generated without appropriate seed. | ||
| 53 | .Pp | ||
| 54 | .Fn RAND_file_name | ||
| 55 | returns a pointer to | ||
| 56 | .Fa buf | ||
| 57 | on success, and | ||
| 58 | .Dv NULL | ||
| 59 | on error. | ||
| 60 | .Sh SEE ALSO | ||
| 61 | .Xr RAND_add 3 , | ||
| 62 | .Xr RAND_cleanup 3 | ||
| 63 | .Sh HISTORY | ||
| 64 | .Fn RAND_load_file , | ||
| 65 | .Fn RAND_write_file , | ||
| 66 | and | ||
| 67 | .Fn RAND_file_name | ||
| 68 | are 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 new file mode 100644 index 0000000000..7efdeefd41 --- /dev/null +++ b/src/lib/libcrypto/man/RAND_set_rand_method.3 | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | .Dd $Mdocdate: November 3 2016 $ | ||
| 2 | .Dt RAND_SET_RAND_METHOD 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm RAND_set_rand_method , | ||
| 6 | .Nm RAND_get_rand_method , | ||
| 7 | .Nm RAND_SSLeay | ||
| 8 | .Nd select RAND method | ||
| 9 | .Sh SYNOPSIS | ||
| 10 | .In openssl/rand.h | ||
| 11 | .Ft void | ||
| 12 | .Fo RAND_set_rand_method | ||
| 13 | .Fa "const RAND_METHOD *meth" | ||
| 14 | .Fc | ||
| 15 | .Ft const RAND_METHOD * | ||
| 16 | .Fn RAND_get_rand_method void | ||
| 17 | .Ft RAND_METHOD * | ||
| 18 | .Fn RAND_SSLeay void | ||
| 19 | .Sh DESCRIPTION | ||
| 20 | These functions used to allow for the random number generator functions | ||
| 21 | to be replaced by arbitrary code. | ||
| 22 | .Pp | ||
| 23 | They are kept for ABI compatibility but are no longer functional, and | ||
| 24 | should not be used in new programs. | ||
| 25 | .Sh HISTORY | ||
| 26 | .Fn RAND_set_rand_method , | ||
| 27 | .Fn RAND_get_rand_method , | ||
| 28 | and | ||
| 29 | .Fn RAND_SSLeay | ||
| 30 | are available in all versions of OpenSSL. | ||
