summaryrefslogtreecommitdiffstats
path: root/ssl/t1_enc.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-11-14 15:53:31 +0100
committerMatt Caswell <matt@openssl.org>2016-11-16 11:09:46 +0100
commit94ed2c6739754d13306fe510bb8bc19c2ad42749 (patch)
tree67da8a666d5978f9ed20161b71d216ed10df735d /ssl/t1_enc.c
parentAdd some tests for the key_share extension (diff)
downloadopenssl-94ed2c6739754d13306fe510bb8bc19c2ad42749.tar.xz
openssl-94ed2c6739754d13306fe510bb8bc19c2ad42749.zip
Fixed various style issues in the key_share code
Numerous style issues as well as references to TLS1_3_VERSION instead of SSL_IS_TLS13(s) Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r--ssl/t1_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index df2ce37030..8cb6dd5a3b 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -480,7 +480,7 @@ int tls1_generate_master_secret(SSL *s, unsigned char *out, unsigned char *p,
* handshake has). This will need to be removed later
*/
if ((s->session->flags & SSL_SESS_FLAG_EXTMS)
- && s->version != TLS1_3_VERSION) {
+ && SSL_IS_TLS13(s)) {
unsigned char hash[EVP_MAX_MD_SIZE * 2];
size_t hashlen;
/*