--secure-heap=n
初始化一个大小为 n 字节的 OpenSSL 安全堆。初始化后,安全堆会在 OpenSSL 中的某些分配类型中使用,例如在密钥生成和其他操作期间。这非常有用,例如可以防止由于指针越界或下溢导致的敏感信息泄露。
【Initializes an OpenSSL secure heap of n bytes. When initialized, the
secure heap is used for selected types of allocations within OpenSSL
during key generation and other operations. This is useful, for instance,
to prevent sensitive information from leaking due to pointer overruns
or underruns.】
安全堆的大小是固定的,无法在运行时调整,因此,如果使用它,选择一个足够大的堆以覆盖所有应用的使用非常重要。
【The secure heap is a fixed size and cannot be resized at runtime so, if used, it is important to select a large enough heap to cover all application uses.】
指定的堆大小必须是二的幂。小于 2 的任意值将禁用安全堆。
【The heap size given must be a power of two. Any value less than 2 will disable the secure heap.】
默认情况下禁用安全堆。
【The secure heap is disabled by default.】
安全堆在 Windows 上不可用。
【The secure heap is not available on Windows.】
有关详细信息,请参见CRYPTO_secure_malloc_init。
【See CRYPTO_secure_malloc_init for more details.】