diff options
author | Matt Caswell <matt@openssl.org> | 2016-12-30 11:26:39 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-01-10 23:02:50 +0000 |
commit | 049043127209a4a1846a1c0fcc56eff601c41be2 (patch) | |
tree | 5d6f7950e21b3ecb62d6c20122c4193121355e4a /ssl/tls13_enc.c | |
parent | ace081c1ed98346328e251884c3bea4b41cb50ad (diff) |
Verify that the sig algs extension has been sent for TLSv1.3
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2157)
Diffstat (limited to 'ssl/tls13_enc.c')
-rw-r--r-- | ssl/tls13_enc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c index 7ee9bb8ca3..449e6f9f36 100644 --- a/ssl/tls13_enc.c +++ b/ssl/tls13_enc.c @@ -406,3 +406,11 @@ int tls13_change_cipher_state(SSL *s, int which) OPENSSL_cleanse(key, sizeof(key)); return ret; } + +int tls13_alert_code(int code) +{ + if (code == SSL_AD_MISSING_EXTENSION) + return code; + + return tls1_alert_code(code); +} |