]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
OPENSSL_malloc.pod: mention CRYPTO_aligned_alloc{,_array}() in RETURN VALUES
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 30 Mar 2026 08:10:35 +0000 (10:10 +0200)
committerTomas Mraz <tomas@openssl.foundation>
Wed, 8 Apr 2026 10:24:08 +0000 (12:24 +0200)
Addition of those has been originally overlooked.

Complements: cc4ea5e00028 "Introduce new internal hashtable implementation"
Complements: fa9b7b930e3e "Add array memory allocation routines"
Complements: 14a24fd14ff7 "doc/man3/OPENSSL_malloc.pod: explicitly document freeptr value on failures"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Wed Apr  8 10:23:55 2026
(Merged from https://github.com/openssl/openssl/pull/30623)

(cherry picked from commit 56358abb5aa5fc2f78fa53297b51e4d8f4b04c2f)

doc/man3/OPENSSL_malloc.pod

index 4dd1e717cf0af242fb9ffb68e2e329bc3180bcb8..cb02d4ade83f3917c2d14ea80cc1fca9baa340c3 100644 (file)
@@ -238,14 +238,15 @@ OPENSSL_malloc(), OPENSSL_aligned_alloc(), OPENSSL_zalloc(), OPENSSL_realloc(),
 OPENSSL_malloc_array(), OPENSSL_aligned_alloc_array(), OPENSSL_calloc(),
 OPENSSL_realloc_array(),
 OPENSSL_clear_realloc(), OPENSSL_clear_realloc_array(),
-CRYPTO_malloc(), CRYPTO_zalloc(), CRYPTO_realloc(),
-CRYPTO_malloc_array(), CRYPTO_calloc(), CRYPTO_realloc_array(),
+CRYPTO_malloc(), CRYPTO_aligned_alloc(), CRYPTO_zalloc(), CRYPTO_realloc(),
+CRYPTO_malloc_array(), CRYPTO_aligned_alloc_array(), CRYPTO_calloc(),
+CRYPTO_realloc_array(),
 CRYPTO_clear_realloc(), CRYPTO_clear_realloc_array(),
 OPENSSL_strdup(), and OPENSSL_strndup()
 return a pointer to allocated memory or NULL on error.
 
-OPENSSL_aligned_alloc() and OPENSSL_aligned_alloc_array() set B<freeptr>
-to NULL on error.
+OPENSSL_aligned_alloc(), OPENSSL_aligned_alloc_array(), CRYPTO_aligned_alloc(),
+and CRYPTO_aligned_alloc_array() set B<freeptr> to NULL on error.
 
 CRYPTO_set_mem_functions() returns 1 on success or 0 on failure (almost
 always because allocations have already happened).