From: Alan T. DeKok Date: Wed, 20 May 2015 14:06:55 +0000 (-0400) Subject: Print out bytes we see for TLS version X-Git-Tag: release_3_0_9~333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01a9286fa8f0de8c1243390067eeab0e171bb2d4;p=thirdparty%2Ffreeradius-server.git Print out bytes we see for TLS version Instead of just printing "unknown" --- diff --git a/src/main/tls.c b/src/main/tls.c index eec7c19f90a..4cae7c69387 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -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; }