Make minimum size for secure memory a size_t.
authorPauli <paul.dale@oracle.com>
Tue, 4 Feb 2020 23:09:29 +0000 (09:09 +1000)
committerPauli <paul.dale@oracle.com>
Tue, 4 Feb 2020 23:09:29 +0000 (09:09 +1000)
commit34b167625af50a13b8414e11814a795457cb17b0
tree267626b384a898eda7e749bb992fefca36a2e64b
parente3b1ccad694aabfffbde68c56fb8d44c011f98b1
Make minimum size for secure memory a size_t.

The minimum size argument to CRYPTO_secure_malloc_init() was an int but ought
to be a size_t since it is a size.

From an API perspective, this is a change.  However, the minimum size is
verified as being a positive power of two and it will typically be a small
constant.

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from #11003)
crypto/mem_sec.c
doc/man3/OPENSSL_secure_malloc.pod
include/openssl/crypto.h
test/secmemtest.c