summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authorjsing <>2017-03-05 14:39:53 +0000
committerjsing <>2017-03-05 14:39:53 +0000
commite04ca894aa08b4b01dbc7ead7524d8026ce8f3be (patch)
tree4868a41992758cf1a7f9ffdaf1b940ee7bcceb4c /src/lib/libssl/ssl_srvr.c
parentb7e97f3829f43765f12691c1665b5e6017d75d28 (diff)
downloadopenbsd-e04ca894aa08b4b01dbc7ead7524d8026ce8f3be.tar.gz
openbsd-e04ca894aa08b4b01dbc7ead7524d8026ce8f3be.tar.bz2
openbsd-e04ca894aa08b4b01dbc7ead7524d8026ce8f3be.zip
Provide a rolling handshake hash that commences as soon as the cipher
suite has been selected, and convert the final finish MAC to use this handshake hash. This is a first step towards cleaning up the current handshake buffer/digest code. ok beck@ inoguchi@
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
-rw-r--r--src/lib/libssl/ssl_srvr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index 09ea657174..a48cf246da 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.9 2017/03/05 14:24:12 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.10 2017/03/05 14:39:53 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1045,6 +1045,9 @@ ssl3_get_client_hello(SSL *s)
1045 S3I(s)->tmp.new_cipher = s->session->cipher; 1045 S3I(s)->tmp.new_cipher = s->session->cipher;
1046 } 1046 }
1047 1047
1048 if (!tls1_handshake_hash_init(s))
1049 goto err;
1050
1048 alg_k = S3I(s)->tmp.new_cipher->algorithm_mkey; 1051 alg_k = S3I(s)->tmp.new_cipher->algorithm_mkey;
1049 if (!(SSL_USE_SIGALGS(s) || (alg_k & SSL_kGOST)) || 1052 if (!(SSL_USE_SIGALGS(s) || (alg_k & SSL_kGOST)) ||
1050 !(s->verify_mode & SSL_VERIFY_PEER)) { 1053 !(s->verify_mode & SSL_VERIFY_PEER)) {