From 18edda0f927e6919c1cff2d6e456cb8a0776239b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulf=20M=C3=B6ller?= Date: Wed, 20 Sep 2000 03:28:54 +0000 Subject: [PATCH] Malloc() -> OPENSSL_malloc() etc. --- doc/crypto/BN_bn2bin.pod | 2 +- doc/crypto/ERR_get_error.pod | 2 +- doc/crypto/buffer.pod | 4 ++-- doc/crypto/lhash.pod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/crypto/BN_bn2bin.pod b/doc/crypto/BN_bn2bin.pod index 05f9e628cc..c12af9c9f9 100644 --- a/doc/crypto/BN_bn2bin.pod +++ b/doc/crypto/BN_bn2bin.pod @@ -36,7 +36,7 @@ NULL, a new B is created. BN_bn2hex() and BN_bn2dec() return printable strings containing the hexadecimal and decimal encoding of B respectively. For negative numbers, the string is prefaced with a leading '-'. The string must be -Free()d later. +freed later using OPENSSL_free(). BN_hex2bn() converts the string B containing a hexadecimal number to a B and stores it in **B. If *B is NULL, a new diff --git a/doc/crypto/ERR_get_error.pod b/doc/crypto/ERR_get_error.pod index 04074ffa90..3551bacb8d 100644 --- a/doc/crypto/ERR_get_error.pod +++ b/doc/crypto/ERR_get_error.pod @@ -41,7 +41,7 @@ the error occurred in *B and *B, unless these are B. ERR_get_error_line_data() and ERR_peek_error_line_data() store additional data and flags associated with the error code in *B and *B, unless these are B. *B contains a string -if *B&B. If it has been allocated by Malloc(), +if *B&B. If it has been allocated by OPENSSL_malloc(), *B&B is true. =head1 RETURN VALUES diff --git a/doc/crypto/buffer.pod b/doc/crypto/buffer.pod index 1a02f9754f..781f5b11ee 100644 --- a/doc/crypto/buffer.pod +++ b/doc/crypto/buffer.pod @@ -46,11 +46,11 @@ size. BUF_strdup() copies a null terminated string into a block of allocated memory and returns a pointer to the allocated block. -Unlike the standard C library strdup() this function uses Malloc() and so +Unlike the standard C library strdup() this function uses OPENSSL_malloc() and so should be used in preference to the standard library strdup() because it can be used for memory leak checking or replacing the malloc() function. -The memory allocated from BUF_strdup() should be freed up using the Free() +The memory allocated from BUF_strdup() should be freed up using the OPENSSL_free() function. =head1 RETURN VALUES diff --git a/doc/crypto/lhash.pod b/doc/crypto/lhash.pod index af2c9a7102..4e87aee824 100644 --- a/doc/crypto/lhash.pod +++ b/doc/crypto/lhash.pod @@ -102,7 +102,7 @@ The following description is based on the SSLeay documentation: The B library implements a hash table described in the I in 1991. What makes this hash table different is that as the table fills, the hash table is increased (or -decreased) in size via Realloc(). When a 'resize' is done, instead of +decreased) in size via OPENSSL_realloc(). When a 'resize' is done, instead of all hashes being redistributed over twice as many 'buckets', one bucket is split. So when an 'expand' is done, there is only a minimal cost to redistribute some values. Subsequent inserts will cause more -- 2.34.1