From 8768f8435b1982a6e6ce4300aa2c6e375c686e24 Mon Sep 17 00:00:00 2001 From: "wtc%google.com" Date: Sat, 7 Nov 2009 20:01:49 +0000 Subject: [PATCH] Bug 275744: Print the null compression method as "NULL" instead of "null". Also print the LZS compression method. TBR=nelson. git-svn-id: svn://10.0.0.236/trunk@258920 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/cmd/ssltap/ssltap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/security/nss/cmd/ssltap/ssltap.c b/mozilla/security/nss/cmd/ssltap/ssltap.c index 5e2b051a007..69c91ea0df2 100644 --- a/mozilla/security/nss/cmd/ssltap/ssltap.c +++ b/mozilla/security/nss/cmd/ssltap/ssltap.c @@ -66,7 +66,7 @@ #include "cert.h" #include "sslproto.h" -#define VERSIONSTRING "$Revision: 1.15 $ ($Date: 2009-10-31 22:52:20 $) $Author: wtc%google.com $" +#define VERSIONSTRING "$Revision: 1.16 $ ($Date: 2009-11-07 20:01:49 $) $Author: wtc%google.com $" struct _DataBufferList; @@ -476,8 +476,9 @@ const char * CompressionMethodString(int cm_int) char *cm_str; cm_str = NULL; switch (cm_int) { - case 0: cm_str = "null"; break; - case 1: cm_str = "DEFLATE"; break; + case 0: cm_str = "NULL"; break; + case 1: cm_str = "DEFLATE"; break; /* RFC 3749 */ + case 64: cm_str = "LZS"; break; /* RFC 3943 */ default: cm_str = "???"; break; }