openssl/ssl
Matt Caswell 6e99ae58c8 Ignore an s_client psk in TLSv1.3 if not TLSv1.3 suitable
The s_client psk_use_session_cb callback has a comment stating that we
should ignore a key that isn't suitable for TLSv1.3. However we were
actually causing the connection to fail. Changing the return value fixes
the issue.

Also related to this is that the early_data extension was not marked as
TLSv1.3 only which it should be.

Fixes #5202

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5205)
2018-02-14 15:42:36 +00:00
..
record Update copyright year 2018-02-13 13:59:25 +00:00
statem Ignore an s_client psk in TLSv1.3 if not TLSv1.3 suitable 2018-02-14 15:42:36 +00:00
bio_ssl.c Add comments to NULL func ptrs in bio_method_st 2017-12-18 07:04:48 +10:00
build.info
d1_lib.c More record layer conversions to use SSLfatal() 2017-12-08 16:42:02 +00:00
d1_msg.c
d1_srtp.c
methods.c
packet_locl.h
packet.c
pqueue.c
s3_cbc.c
s3_enc.c
s3_lib.c Update copyright year 2018-02-13 13:59:25 +00:00
s3_msg.c Update copyright year 2018-02-13 13:59:25 +00:00
ssl_asn1.c
ssl_cert_table.h
ssl_cert.c Update copyright years on all files merged since Jan 1st 2018 2018-01-09 05:49:01 +01:00
ssl_ciph.c Copyright update of more files that have changed this year 2018-01-19 13:34:03 +01:00
ssl_conf.c Update copyright year 2018-02-13 13:59:25 +00:00
ssl_err.c Add TLSv1.3 post-handshake authentication (PHA) 2018-02-01 17:07:56 +00:00
ssl_init.c In OPENSSL_init_ssl(), run the base ssl init before OPENSSL_init_crypto() 2017-12-08 16:08:39 +01:00
ssl_lib.c DRBG: make the derivation function the default for ctr_drbg 2018-02-13 17:32:54 +01:00
ssl_locl.h The function ssl_get_min_max_version() can fail 2018-02-12 10:06:39 +00:00
ssl_mcnf.c
ssl_rsa.c
ssl_sess.c Consistent formatting for sizeof(foo) 2017-12-07 19:11:49 -05:00
ssl_stat.c Merge HRR into ServerHello 2017-12-14 15:06:37 +00:00
ssl_txt.c
ssl_utst.c
t1_enc.c
t1_lib.c The function ssl_get_min_max_version() can fail 2018-02-12 10:06:39 +00:00
t1_trce.c Add TLSv1.3 post-handshake authentication (PHA) 2018-02-01 17:07:56 +00:00
tls13_enc.c Update copyright year 2018-02-13 13:59:25 +00:00
tls_srp.c