mirror of
https://github.com/openssl/openssl.git
synced 2024-12-11 11:04:03 +08:00
SSL_CTX_set_tlsext_ticket_key_cb.pod: fix error check of RAND_bytes() call
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5977)
This commit is contained in:
parent
e62fb0d31b
commit
a12de2cba8
@ -133,7 +133,7 @@ Reference Implementation:
|
||||
HMAC_CTX *hctx, int enc)
|
||||
{
|
||||
if (enc) { /* create new session */
|
||||
if (RAND_bytes(iv, EVP_MAX_IV_LENGTH))
|
||||
if (RAND_bytes(iv, EVP_MAX_IV_LENGTH) <= 0)
|
||||
return -1; /* insufficient random */
|
||||
|
||||
key = currentkey(); /* something that you need to implement */
|
||||
|
Loading…
Reference in New Issue
Block a user