boringssl/ssl
David Benjamin a6d81018f8 Consistently use RAND_bytes and check for failure.
RAND_pseudo_bytes just calls RAND_bytes now and only returns 0 or 1. Switch all
callers within the library call the new one and use the simpler failure check.
This fixes a few error checks that no longer work (< 0) and some missing ones.

Change-Id: Id51c79deec80075949f73fa1fbd7b76aac5570c6
Reviewed-on: https://boringssl-review.googlesource.com/2621
Reviewed-by: Adam Langley <agl@google.com>
2014-12-16 19:15:59 +00:00
..
pqueue Test insertion of duplicates in pqueue_test. 2014-11-06 01:46:57 +00:00
test Add tests for version negotiation failure alerts. 2014-12-13 15:23:28 -08:00
CMakeLists.txt Merge SSLv23_method and DTLS_ANY_VERSION. 2014-12-13 15:22:21 -08:00
d1_both.c Add outgoing messages to the handshake hash at set_handshake_header. 2014-12-16 01:43:51 +00:00
d1_clnt.c Reformatting of several DTLS source files. 2014-12-13 16:28:18 -08:00
d1_lib.c Add outgoing messages to the handshake hash at set_handshake_header. 2014-12-16 01:43:51 +00:00
d1_meth.c Reformatting of several DTLS source files. 2014-12-13 16:28:18 -08:00
d1_pkt.c Reformatting of several DTLS source files. 2014-12-13 16:28:18 -08:00
d1_srtp.c Reformat d1_{srtp|srvr}.c and s3_both.c 2014-12-15 18:42:07 -08:00
d1_srvr.c Reformat d1_{srtp|srvr}.c and s3_both.c 2014-12-15 18:42:07 -08:00
s3_both.c Remove X509 parameter from ssl_cert_type. 2014-12-16 19:10:44 +00:00
s3_cbc.c Add malloc failure tests. 2014-11-19 01:24:46 +00:00
s3_clnt.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
s3_enc.c Fix EVP_Cipher error-handling. 2014-12-16 01:51:55 +00:00
s3_lib.c Add outgoing messages to the handshake hash at set_handshake_header. 2014-12-16 01:43:51 +00:00
s3_meth.c Merge SSLv23_method and DTLS_ANY_VERSION. 2014-12-13 15:22:21 -08:00
s3_pkt.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
s3_srvr.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
ssl_algs.c Remove indirection in loading ciphers. 2014-09-15 21:06:10 +00:00
ssl_asn1.c Remove psk_identity_hint from SSL_SESSION. 2014-11-10 23:59:47 +00:00
ssl_cert.c Reformat d1_{srtp|srvr}.c and s3_both.c 2014-12-15 18:42:07 -08:00
ssl_ciph.c Consistently order ECDHE_ECDSA over ECDHE_RSA. 2014-12-16 02:56:36 +00:00
ssl_error.c Implement the V2ClientHello sniff in version-locked methods. 2014-12-13 15:22:21 -08:00
ssl_lib.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
ssl_locl.h Remove X509 parameter from ssl_cert_type. 2014-12-16 19:10:44 +00:00
ssl_rsa.c Remove X509 parameter from ssl_cert_type. 2014-12-16 19:10:44 +00:00
ssl_sess.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
ssl_stat.c Trim impossible state combinations. 2014-12-02 19:31:00 +00:00
ssl_test.c Merge SSLv23_method and DTLS_ANY_VERSION. 2014-12-13 15:22:21 -08:00
ssl_txt.c Remove some remnants of SSLv2. 2014-11-17 20:27:13 +00:00
t1_enc.c Consistently use RAND_bytes and check for failure. 2014-12-16 19:15:59 +00:00
t1_lib.c Add outgoing messages to the handshake hash at set_handshake_header. 2014-12-16 01:43:51 +00:00
t1_reneg.c Port ssl3_get_client_hello to CBS. 2014-07-15 18:30:09 +00:00