From a12de2cba83273b2a553f988716c231af7c9ba68 Mon Sep 17 00:00:00 2001 From: "Dr. Matthias St. Pierre" Date: Tue, 17 Apr 2018 08:54:26 +0200 Subject: [PATCH] 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) --- doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.25.1