boringssl/ssl/test
David Benjamin 5fa3eba03d Clear the error queue when dropping a bad DTLS packet.
This regressed in e95d20dcb8. EVP_AEAD will push
errors on the error queue (unlike the EVP_CIPHER codepath which checked
everything internally to ssl/ and didn't bother pushing anything). This meant
that a dropped packet would leave junk in the error queue.

Later, when SSL_read returns <= 0 (EOF or EWOULDBLOCK), the non-empty error
queue check in SSL_get_error kicks in and SSL_read looks to have failed.

BUG=https://code.google.com/p/webrtc/issues/detail?id=4214

Change-Id: I1e5e41c77a3e5b71e9eb0c72294abf0da677f840
Reviewed-on: https://boringssl-review.googlesource.com/2982
Reviewed-by: Adam Langley <agl@google.com>
2015-01-22 22:06:40 +00:00
..
runner Clear the error queue when dropping a bad DTLS packet. 2015-01-22 22:06:40 +00:00
async_bio.cc Fix the test async_bio in datagram mode. 2015-01-14 21:48:40 +00:00
async_bio.h Add initial DTLS tests. 2014-08-14 16:55:45 +00:00
bssl_shim.cc Return SSL_ERROR_SYSCALL on unclean EOF. 2015-01-22 22:01:35 +00:00
CMakeLists.txt Fix standalone Windows build. 2014-12-02 20:27:57 +00:00
malloc.cc aarch64 support. 2015-01-14 23:38:11 +00:00
packeted_bio.cc Add malloc failure tests. 2014-11-19 01:24:46 +00:00
packeted_bio.h Add initial DTLS tests. 2014-08-14 16:55:45 +00:00
test_config.cc Add a basic MTU test. 2015-01-12 22:37:25 +00:00
test_config.h Add a basic MTU test. 2015-01-12 22:37:25 +00:00