• D
    DRBG: add locking api · 3ce1c27b
    Dr. Matthias St. Pierre 提交于
    This commit adds three new accessors to the internal DRBG lock
    
       int RAND_DRBG_lock(RAND_DRBG *drbg)
       int RAND_DRBG_unlock(RAND_DRBG *drbg)
       int RAND_DRBG_enable_locking(RAND_DRBG *drbg)
    
    The three shared DRBGs are intended to be used concurrently, so they
    have locking enabled by default. It is the callers responsibility to
    guard access to the shared DRBGs by calls to RAND_DRBG_lock() and
    RAND_DRBG_unlock().
    
    All other DRBG instances don't have locking enabled by default, because
    they are intendended to be used by a single thread. If it is desired,
    locking can be enabled by using RAND_DRBG_enable_locking().
    Reviewed-by: NRich Salz <rsalz@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5294)
    3ce1c27b
libcrypto.num 312.0 KB