]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Print out bytes we see for TLS version
authorAlan T. DeKok <aland@freeradius.org>
Wed, 20 May 2015 14:06:55 +0000 (10:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 May 2015 14:06:55 +0000 (10:06 -0400)
Instead of just printing "unknown"

src/main/tls.c

index eec7c19f90aec5c612ec537e44018f1fd9771295..4cae7c6938749ca438493963e77f5057da6b06ac 100644 (file)
@@ -700,6 +700,7 @@ void tls_session_information(tls_session_t *tls_session)
        char const *str_write_p, *str_version, *str_content_type = "";
        char const *str_details1 = "", *str_details2= "";
        REQUEST *request;
+       char buffer[32];
 
        /*
         *      Don't print this out in the normal course of
@@ -738,7 +739,8 @@ void tls_session_information(tls_session_t *tls_session)
 #endif
 
        default:
-               str_version = "Unknown TLS version";
+               sprintf(buffer, "UNKNOWN TLS VERSION ?%04X?", tls_session->info.version);
+               str_version = buffer;
                break;
        }