openssl/ssl
Matt Caswell aabe3a3591 Fix return code in tls1_mac
The return code from tls1_mac is supposed to be a boolean 0 for fail, 1 for
success. In one place we returned -1 on error. This would cause code calling
the mac function to erroneously see this as a success (because a non-zero
value is being treated as success in all call sites).

Fortunately, AFAICT, the place that returns -1 can only happen on an
internal error so is not under attacker control. Additionally this code only
appears in master. In 1.1.0 the return codes are treated differently.
Therefore there are no security implications.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3495)
2017-05-19 17:02:11 +01:00
..
record Fix return code in tls1_mac 2017-05-19 17:02:11 +01:00
statem Try to be more consistent about the alerts we send 2017-05-19 08:47:08 +01:00
bio_ssl.c
build.info
d1_lib.c
d1_msg.c Remove special case code for SCTP reneg handling 2017-04-25 11:13:39 +01:00
d1_srtp.c
methods.c
packet_locl.h TLS1.3 Padding 2017-05-02 09:44:43 +01:00
packet.c TLS1.3 Padding 2017-05-02 09:44:43 +01:00
pqueue.c
s3_cbc.c
s3_enc.c Remove support for OPENSSL_SSL_TRACE_CRYPTO 2017-05-08 11:42:37 +01:00
s3_lib.c
s3_msg.c
ssl_asn1.c
ssl_cert.c
ssl_ciph.c
ssl_conf.c TLS1.3 Padding 2017-05-02 09:44:43 +01:00
ssl_err.c Add a new unsolicited extension error code and add enum tag 2017-05-17 15:32:25 +01:00
ssl_init.c
ssl_lib.c Make SSL_is_server() accept a const SSL 2017-05-19 08:54:39 +01:00
ssl_locl.h Fail if we receive a response to an extension that we didn't request 2017-05-17 15:23:49 +01:00
ssl_mcnf.c
ssl_rsa.c Try to be more consistent about the alerts we send 2017-05-19 08:47:08 +01:00
ssl_sess.c Try to be more consistent about the alerts we send 2017-05-19 08:47:08 +01:00
ssl_stat.c
ssl_txt.c
ssl_utst.c
t1_enc.c Remove support for OPENSSL_SSL_TRACE_CRYPTO 2017-05-08 11:42:37 +01:00
t1_lib.c Try to be more consistent about the alerts we send 2017-05-19 08:47:08 +01:00
t1_trce.c Add support to SSL_trace() for inner content types 2017-05-08 11:42:37 +01:00
tls13_enc.c Remove support for OPENSSL_SSL_TRACE_CRYPTO 2017-05-08 11:42:37 +01:00
tls_srp.c