Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-12-15 03:44:34 +0300
committerAdam Langley <agl@google.com>2014-12-16 04:43:51 +0300
commite4824e8af0f46bd9723750e045401de65741bbe9 (patch)
tree20b4cf0d029c34890378dd12bd0213884d2e5b19 /include/openssl/dtls1.h
parent44f2d1a9bf3a71d0f502933ac6807d97ae1f16ba (diff)
Add outgoing messages to the handshake hash at set_handshake_header.
This avoids needing a should_add_to_finished_hash boolean on do_write. The logic in do_write was a little awkward because do_write would be called multiple times if the write took several iterations. This also gets complex if DTLS retransmits are involved. (At a glance, it's not obvious the BIO_CTRL_DGRAM_MTU_EXCEEDED case actually works.) Doing it as the handshake message is being prepared avoids this concern. It also gives a natural point for the extended master secret logic which needs to do work after the finished hash has been sampled. As a bonus, we can remove s->d1->retransmitting which was only used to deal with this issue. Change-Id: Ifedf23ee4a6c5e08f960d296a6eb1f337a16dc7a Reviewed-on: https://boringssl-review.googlesource.com/2604 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/dtls1.h')
-rw-r--r--include/openssl/dtls1.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/openssl/dtls1.h b/include/openssl/dtls1.h
index d3a3b55b..57337f63 100644
--- a/include/openssl/dtls1.h
+++ b/include/openssl/dtls1.h
@@ -230,7 +230,6 @@ typedef struct dtls1_state_st
unsigned char handshake_fragment[DTLS1_HM_HEADER_LENGTH];
unsigned int handshake_fragment_len;
- unsigned int retransmitting;
unsigned int change_cipher_spec_ok;
} DTLS1_STATE;