int CRYPTO_secure_allocated(const void *ptr) { #ifdef OPENSSL_SECURE_MEMORY int ret; if (!secure_mem_initialized) return 0; CRYPTO_THREAD_write_lock(sec_malloc_lock); ret = sh_allocated(ptr); CRYPTO_THREAD_unlock(sec_malloc_lock); return ret; #else return 0; #endif /* OPENSSL_SECURE_MEMORY */ }
int CRYPTO_secure_allocated(const void *ptr) { #ifdef IMPLEMENTED int ret; if (!secure_mem_initialized) return 0; CRYPTO_THREAD_write_lock(sec_malloc_lock); ret = sh_allocated(ptr); CRYPTO_THREAD_unlock(sec_malloc_lock); return ret; #else return 0; #endif /* IMPLEMENTED */ }
int CRYPTO_secure_allocated(const void *ptr) { #ifdef IMPLEMENTED int ret; if (!secure_mem_initialized) return 0; LOCK(); ret = sh_allocated(ptr); UNLOCK(); return ret; #else return 0; #endif /* IMPLEMENTED */ }