mirror of
https://github.com/openssl/openssl.git
synced 2024-12-16 21:43:42 +08:00
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)
This commit is contained in:
parent
b2cc7f313e
commit
576eb3958c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user