aboutsummaryrefslogtreecommitdiffstats
path: root/util/TLSProxy
Commit message (Collapse)AuthorAgeFilesLines
* Prefer ReuseAddr over Reuse, with IO::Socket::INETRichard Levitte2015-12-291-1/+1
| | | | | | Reuse is deprecated and ReuseAddr is prefered, according to documentation. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add test for missing CertificateStatus messageMatt Caswell2015-12-271-0/+1
| | | | | | | | | | | If the client sends a status_request extension in the ClientHello and the server responds with a status_request extension in the ServerHello then normally the server will also later send a CertificateStatus message. However this message is *optional* even if the extensions were sent. This adds a test to ensure that if the extensions are sent then we can still omit the message. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add extms extensionDr. Stephen Henson2015-12-081-0/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* TLSProxy updateDr. Stephen Henson2015-12-082-6/+20
| | | | | | Add function to delete extensions and fix ClientHello repacking. Reviewed-by: Matt Caswell <matt@openssl.org>
* Empty NewSessionTicket: test session resumptionEmilia Kasper2015-09-283-36/+50
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Empty session ticket: add a testEmilia Kasper2015-09-283-0/+135
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Fix some test failures when Configured with zlibMatt Caswell2015-09-191-1/+2
| | | | | | | | TLSProxy was failing if we are Configured with compression because it doesn't support it. This fix simply switches compression off for the purposes of the test. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add NewSessionTicket test suiteMatt Caswell2015-08-262-7/+60
| | | | | | | Add a set of tests for checking that NewSessionTicket messages are behaving as expected. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Fix TLSProxy end of test detectionMatt Caswell2015-08-262-13/+22
| | | | | | | | | | | Previously TLSProxy would detect a successful handshake once it saw the server Finished message. This causes problems with abbreviated handshakes, or if the client fails to process a message from the last server flight. This change additionally sends some application data and finishes when the client sends a CloseNotify. Reviewed-by: Tim Hudson <tjh@openssl.org>
* for test_sslvertol, add a value to display SSL version < 3 in debugRichard Levitte2015-08-131-2/+4
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Fixups in libssl test harnessRichard Levitte2015-08-133-6/+10
| | | | | | | | | - select an actual file handle for devnull - do not declare $msgdata twice - SKE records sometimes seem to come without sig - in SKE parsing, use and use $pub_key_len when parsing $pub_key Reviewed-by: Matt Caswell <matt@openssl.org>
* Use dynamic engine for libssl test harnessRichard Levitte2015-08-111-2/+2
| | | | | | | | | Use a dynamic engine for ossltest engine so that we can build it without subsequently deploying it during install. We do not want people accidentally using this engine. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Extend TLSProxy capabilitiesMatt Caswell2015-08-114-7/+482
| | | | | | | | | Add ServerHello parsing to TLSProxy. Also add some (very) limited ServerKeyExchange parsing. Add the capability to set client and server cipher lists Fix a bug with fragment lengths Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add a libssl test harnessMatt Caswell2015-08-114-0/+1419
This commit provides a set of perl modules that support the testing of libssl. The test harness operates as a man-in-the-middle proxy between s_server and s_client. Both s_server and s_client must be started using the "-testmode" option which loads the new OSSLTEST engine. The test harness enables scripts to be written that can examine the packets sent during a handshake, as well as (potentially) modifying them so that otherwise illegal handshake messages can be sent. Reviewed-by: Richard Levitte <levitte@openssl.org>