From: Dr. Matthias St. Pierre Date: Tue, 17 Apr 2018 06:54:26 +0000 (+0200) Subject: SSL_CTX_set_tlsext_ticket_key_cb.pod: fix error check of RAND_bytes() call X-Git-Tag: OpenSSL_1_1_1-pre6~110 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a12de2cba83273b2a553f988716c231af7c9ba68;p=oweals%2Fopenssl.git SSL_CTX_set_tlsext_ticket_key_cb.pod: fix error check of RAND_bytes() call Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5977) --- diff --git a/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod b/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod index 3cf0717d2a..7782ea7d25 100644 --- a/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod +++ b/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod @@ -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 */