diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-08-12 14:29:24 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-08-18 12:49:32 +0200 |
commit | dd8e5a573272d369cb6dd21592e2b1b1d3941939 (patch) | |
tree | d41b73d43ba6469317fcd680b3cb42ca0b74b0c4 /test/handshake_helper.h | |
parent | Port multi-buffer tests (diff) | |
download | openssl-dd8e5a573272d369cb6dd21592e2b1b1d3941939.tar.xz openssl-dd8e5a573272d369cb6dd21592e2b1b1d3941939.zip |
Test that the peers send at most one fatal alert
Duplicate alerts have happened, see
70c22888c1648fe8652e77107f3c74bf2212de36
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/handshake_helper.h')
-rw-r--r-- | test/handshake_helper.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/handshake_helper.h b/test/handshake_helper.h index 2fb8ac03d4..8425b2aa61 100644 --- a/test/handshake_helper.h +++ b/test/handshake_helper.h @@ -15,13 +15,17 @@ typedef struct handshake_result { ssl_test_result_t result; /* These alerts are in the 2-byte format returned by the info_callback. */ - /* Alert sent by the client; 0 if no alert. */ + /* (Latest) alert sent by the client; 0 if no alert. */ int client_alert_sent; - /* Alert received by the server; 0 if no alert. */ + /* Number of fatal or close_notify alerts sent. */ + int client_num_fatal_alerts_sent; + /* (Latest) alert received by the server; 0 if no alert. */ int client_alert_received; - /* Alert sent by the server; 0 if no alert. */ + /* (Latest) alert sent by the server; 0 if no alert. */ int server_alert_sent; - /* Alert received by the client; 0 if no alert. */ + /* Number of fatal or close_notify alerts sent. */ + int server_num_fatal_alerts_sent; + /* (Latest) alert received by the client; 0 if no alert. */ int server_alert_received; /* Negotiated protocol. On success, these should always match. */ int server_protocol; |