Commit a12de2cb authored by Dr. Matthias St. Pierre's avatar Dr. Matthias St. Pierre
Browse files

SSL_CTX_set_tlsext_ticket_key_cb.pod: fix error check of RAND_bytes() call

parent e62fb0d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */