diff options
author | David Benjamin <davidben@google.com> | 2016-06-02 21:58:00 +0300 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2016-06-08 21:11:41 +0300 |
commit | 585d7a4987126192d90d5e6d33fc400da00a863b (patch) | |
tree | dd1c7dd78df67d7fa2d11cb6ffd66e1ebcc2f5b7 /include/openssl/bio.h | |
parent | ed9c8fcb23877e647416768e741d50f36e1c170d (diff) |
Test both synchronous and asynchronous DTLS retransmit.
The two modes are quite different. One of them requires the BIO honor an
extra BIO_ctrl. Also add an explanation at the top of
addDTLSRetransmitTests for how these tests work. The description is
scattered across many different places.
BUG=63
Change-Id: Iff4cdd1fbf4f4439ae0c293f565eb6780c7c84f9
Reviewed-on: https://boringssl-review.googlesource.com/8121
Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl/bio.h')
-rw-r--r-- | include/openssl/bio.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h index df41f0f8..5416c657 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -587,8 +587,12 @@ OPENSSL_EXPORT int BIO_do_connect(BIO *bio); #define BIO_CTRL_DGRAM_MTU_EXCEEDED 43 /* check whether the MTU was exceed in the previous write operation. */ -#define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT \ - 45 /* Next DTLS handshake timeout to adjust socket timeouts */ +/* BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT sets a read deadline to drive + * retransmits. The |parg| argument to |BIO_ctrl| will be a pointer to a + * |timeval| struct. If the structure is all zeros, it clears the read + * deadline. Otherwise, |BIO_read| must fail with a temporary error + * (e.g. |EAGAIN|) after the deadline. */ +#define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT 45 #define BIO_CTRL_DGRAM_GET_PEER 46 |