EVP_RAND_enable_locking

Enable thread-safe locking on a RAND context for concurrent use.

Synopsis

Declared in <openssl/evp.h>

int
EVP_RAND_enable_locking(EVP_RAND_CTX* ctx);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxRAND context that should serialize access internally.