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
This commit is contained in:
wtc%google.com
2009-11-07 20:01:49 +00:00
parent c0ec7fbfae
commit 8768f8435b

View File

@@ -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;
}