[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Wed Mar 8 20:49:24 UTC 2017


The branch master has been updated
       via  b35fb005bdf55470a5fd705379837bdfb69a1811 (commit)
      from  777f1708a88f85569304caeca197c96ef912b236 (commit)


- Log -----------------------------------------------------------------
commit b35fb005bdf55470a5fd705379837bdfb69a1811
Author: Todd Short <tshort at akamai.com>
Date:   Wed Mar 8 13:49:44 2017 -0500

    Add some TLS13 values to s_client/s_server
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2882)

-----------------------------------------------------------------------

Summary of changes:
 apps/s_cb.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/apps/s_cb.c b/apps/s_cb.c
index 50bd965..b645de3 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:


More information about the openssl-commits mailing list