Bug 863871, Part 2: Remove version (-v) option from ssltap because it
authorBrian Smith <bsmith@mozilla.com>
Thu, 25 Apr 2013 15:53:09 -0700
changeset 10744 cd2ba3fec0ce37853d80d43fb74ec6daee4ca90a
parent 10743 9483ef9455fe7b4ede49c938d17415edad36a4f3
child 10745 c997ba66a3f272b588a5e505cb19adbec2ad3a52
push id54
push userwtc@google.com
push dateThu, 25 Apr 2013 22:53:14 +0000
bugs863871
Bug 863871, Part 2: Remove version (-v) option from ssltap because it is based on CVS keywords. r=wtc.
cmd/ssltap/ssltap.c
--- a/cmd/ssltap/ssltap.c
+++ b/cmd/ssltap/ssltap.c
@@ -31,19 +31,16 @@
 
 #include "plgetopt.h"
 #include "nss.h"
 #include "cert.h"
 #include "sslproto.h"
 #include "ocsp.h"
 #include "ocspti.h"     /* internals for pretty-printing routines *only* */
 
-#define VERSIONSTRING "$Revision$ ($Date$) $Author$"
-
-
 struct _DataBufferList;
 struct _DataBuffer;
 
 typedef struct _DataBufferList {
   struct _DataBuffer *first,*last;
   int size;
   int isEncrypted;
   unsigned char * msgBuf;
@@ -1760,28 +1757,25 @@ int main(int argc,  char *argv[])
   PRNetAddr na_client,na_server,na_rend;
   PRFileDesc *s_server,*s_client,*s_rend; /*rendezvous */
   int c_count=0;
   PLOptState *optstate;
   PLOptStatus status;
   SECStatus   rv;
 
   progName = argv[0];
-  optstate = PL_CreateOptState(argc,argv,"fvxhslp:");
+  optstate = PL_CreateOptState(argc,argv,"fxhslp:");
     while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) {
     switch (optstate->option) {
     case 'f':
       fancy++;
       break;
     case 'h':
       hexparse++;
       break;
-    case 'v':
-      PR_fprintf(PR_STDOUT,"Version: %s\n",VERSIONSTRING);
-      break;
     case 's':
       sslparse++;
       break;
     case 'x':
       sslhexparse++;
       break;
     case 'l':
       looparound++;