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>2015-06-06 10:04:39 +0300
committerAdam Langley <agl@google.com>2015-06-09 00:45:21 +0300
commita8ebe2261f1c1f66fe22244622685c22833c39db (patch)
treeeb331330c1e6e5ea02efed0e4c184b02d39cd44a /include/openssl/ssl3.h
parent58084affbec6fc75d10ef7a9178b060b08eb3152 (diff)
Add tests for empty record limit and make it work in the async case.
We shouldn't have protocol constraints that are sensitive to whether data is returned synchronously or not. Per https://boringssl-review.googlesource.com/#/c/4112/, the original limitation was to avoid OpenSSL ABI changes. This is no longer a concern. Add tests for the sync and async case. Send the empty records in two batches to ensure the count is reset correctly. Change-Id: I3fee839438527e71adb83d437879bb0d49ca5c07 Reviewed-on: https://boringssl-review.googlesource.com/5040 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/ssl3.h')
-rw-r--r--include/openssl/ssl3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/ssl3.h b/include/openssl/ssl3.h
index 640a2282..5cc0acc2 100644
--- a/include/openssl/ssl3.h
+++ b/include/openssl/ssl3.h
@@ -420,6 +420,9 @@ typedef struct ssl3_state_st {
int total_renegotiations;
+ /* empty_record_count is the number of consecutive empty records received. */
+ uint8_t empty_record_count;
+
/* State pertaining to the pending handshake.
*
* TODO(davidben): State is current spread all over the place. Move