X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Fprivoxy-log-parser.pl;h=905767d29a5d62a2257318f9b70fe1b8eacc5211;hp=297b9dc48d1598bff30ebbd2f3e7323fb2c18cc8;hb=3f5d0cd47049b49da36a707c0c6328b613b6fbd1;hpb=91480df08cb2a3f99409d533eccf9faf37fa941d diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 297b9dc4..905767d2 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -186,6 +186,8 @@ sub prepare_our_stuff() { 'configuration-line' => 'red', 'content-type' => 'yellow', 'HOST' => HEADER_DEFAULT_COLOUR, + 'tls-version' => 'pink', + 'cipher-suite' => 'light_cyan', ); %h_colours = %h; @@ -1944,6 +1946,13 @@ sub handle_loglevel_connect($) { # Client socket 21 is no longer usable. The server socket has been closed. $c =~ s@(?<=Client socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^(Client|Server) successfully connected over/) { + + # Server successfully connected over TLSv1.3 (TLS_AES_256_GCM_SHA384). + # Client successfully connected over TLSv1.3 (TLS_AES_128_GCM_SHA256). + $c =~ s@(?<=connected over )(TLSv\d\.\d)@$h{'tls-version'}$1$h{'Standard'}@; + $c =~ s@(?<=\()([^)]+)@$h{'cipher-suite'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Looks like we / or $c =~ m/^Unsetting keep-alive flag/ or $c =~ m/^No connections to wait/ or