diff options
author | Matt Caswell <matt@openssl.org> | 2017-02-23 11:52:43 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-02 17:44:15 +0000 |
commit | 576eb3958cbb18484680c0bbe7cbf2dce9af0f1b (patch) | |
tree | 64387725a20ec769542f4cafe73d7ae23c3e8d97 /apps | |
parent | b2cc7f313ec1c8386ace3b351457c33af8861ce2 (diff) |
Get s_client to report on whether early data was accepted or not
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index faa39ec530..3ecc601883 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2978,6 +2978,23 @@ static void print_stuff(BIO *bio, SSL *s, int full) } #endif + if (SSL_version(s) == TLS1_3_VERSION) { + switch (SSL_get_early_data_status(s)) { + case SSL_EARLY_DATA_NOT_SENT: + BIO_printf(bio, "Early data was not sent\n"); + break; + + case SSL_EARLY_DATA_REJECTED: + BIO_printf(bio, "Early data was rejected\n"); + break; + + case SSL_EARLY_DATA_ACCEPTED: + BIO_printf(bio, "Early data was accepted\n"); + break; + + } + } + SSL_SESSION_print(bio, SSL_get_session(s)); if (SSL_get_session(s) != NULL && keymatexportlabel != NULL) { BIO_printf(bio, "Keying material exporter:\n"); |