2 #include <openssl/crypto.h>
4 int main(int argc, char **argv)
6 #if defined(OPENSSL_SYS_LINUX) || defined(OPENSSL_SYS_UNIX)
7 char *p = NULL, *q = NULL;
9 if (!CRYPTO_secure_malloc_init(4096, 32)) {
13 p = OPENSSL_secure_malloc(20);
14 if (!CRYPTO_secure_allocated(p)) {
18 q = OPENSSL_malloc(20);
19 if (CRYPTO_secure_allocated(q)) {
23 OPENSSL_secure_free(p);
25 CRYPTO_secure_malloc_done();
28 if (CRYPTO_secure_malloc_init(4096, 32)) {