summaryrefslogtreecommitdiffstats
path: root/apps/s_cb.c
diff options
context:
space:
mode:
authorTodd Short <tshort@akamai.com>2017-03-08 19:49:44 +0100
committerTodd Short <tshort@akamai.com>2017-03-08 19:49:44 +0100
commitb35fb005bdf55470a5fd705379837bdfb69a1811 (patch)
tree605e0874b902aa3b05a23a3bf44dcb13a0d7db78 /apps/s_cb.c
parentLimit the output of the enc -ciphers command to just the ciphers enc can (diff)
downloadopenssl-b35fb005bdf55470a5fd705379837bdfb69a1811.tar.xz
openssl-b35fb005bdf55470a5fd705379837bdfb69a1811.zip
Add some TLS13 values to s_client/s_server
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2882)
Diffstat (limited to 'apps/s_cb.c')
-rw-r--r--apps/s_cb.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 50bd965dd1..b645de3722 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -486,6 +486,7 @@ static STRINT_PAIR ssl_versions[] = {
};
static STRINT_PAIR alert_types[] = {
{" close_notify", 0},
+ {" end_of_early_data", 1},
{" unexpected_message", 10},
{" bad_record_mac", 20},
{" decryption_failed", 21},
@@ -506,14 +507,17 @@ static STRINT_PAIR alert_types[] = {
{" protocol_version", 70},
{" insufficient_security", 71},
{" internal_error", 80},
+ {" inappropriate_fallback", 86},
{" user_canceled", 90},
{" no_renegotiation", 100},
+ {" missing_extension", 109},
{" unsupported_extension", 110},
{" certificate_unobtainable", 111},
{" unrecognized_name", 112},
{" bad_certificate_status_response", 113},
{" bad_certificate_hash_value", 114},
{" unknown_psk_identity", 115},
+ {" certificate_required", 116},
{NULL}
};
@@ -523,6 +527,7 @@ static STRINT_PAIR handshakes[] = {
{", ServerHello", 2},
{", HelloVerifyRequest", 3},
{", NewSessionTicket", 4},
+ {", EncryptedExtensions", 8},
{", Certificate", 11},
{", ServerKeyExchange", 12},
{", CertificateRequest", 13},
@@ -533,6 +538,7 @@ static STRINT_PAIR handshakes[] = {
{", CertificateUrl", 21},
{", CertificateStatus", 22},
{", SupplementalData", 23},
+ {", KeyUpdate", 24 },
{NULL}
};
@@ -553,10 +559,10 @@ void msg_cb(int write_p, int version, int content_type, const void *buf,
version == DTLS1_VERSION || version == DTLS1_BAD_VER) {
switch (content_type) {
case 20:
- str_content_type = "ChangeCipherSpec";
+ str_content_type = ", ChangeCipherSpec";
break;
case 21:
- str_content_type = "Alert";
+ str_content_type = ", Alert";
str_details1 = ", ???";
if (len == 2) {
switch (bp[0]) {
@@ -571,13 +577,13 @@ void msg_cb(int write_p, int version, int content_type, const void *buf,
}
break;
case 22:
- str_content_type = "Handshake";
+ str_content_type = ", Handshake";
str_details1 = "???";
if (len > 0)
str_details1 = lookup((int)bp[0], handshakes, "???");
break;
case 23:
- str_content_type = "ApplicationData";
+ str_content_type = ", ApplicationData";
break;
#ifndef OPENSSL_NO_HEARTBEATS
case 24: