Bug 783579: Fix incorrect mapping of 'unextractable'. Remove a debug
authorWan-Teh Chang <wtc@google.com>
Thu, 23 May 2013 12:53:25 -0700
changeset 10790 e9e054c6c03f49a911e487c46dc7f0d361163932
parent 10789 77b14ffe595f85b2183b9a7a6e17883394240e6e
child 10791 fc9412503bda91005d32b323b64f32c7b43fdcb0
push id99
push userwtc@google.com
push dateThu, 23 May 2013 19:53:39 +0000
bugs783579
Bug 783579: Fix incorrect mapping of 'unextractable'. Remove a debug message in GetFlags. r=emaldona.
cmd/certutil/certutil.c
--- a/cmd/certutil/certutil.c
+++ b/cmd/certutil/certutil.c
@@ -1981,31 +1981,29 @@ flagArray attrFlagsArray[] =
     {NAME_SIZE(session), PK11_ATTR_SESSION},
     {NAME_SIZE(private), PK11_ATTR_PRIVATE},
     {NAME_SIZE(public), PK11_ATTR_PUBLIC},
     {NAME_SIZE(modifiable), PK11_ATTR_MODIFIABLE},
     {NAME_SIZE(unmodifiable), PK11_ATTR_UNMODIFIABLE},
     {NAME_SIZE(sensitive), PK11_ATTR_SENSITIVE},
     {NAME_SIZE(insensitive), PK11_ATTR_INSENSITIVE},
     {NAME_SIZE(extractable), PK11_ATTR_EXTRACTABLE},
-    {NAME_SIZE(unextractable), PK11_ATTR_EXTRACTABLE}
+    {NAME_SIZE(unextractable), PK11_ATTR_UNEXTRACTABLE}
 
 };
 
 int attrFlagsCount = sizeof(attrFlagsArray)/sizeof(flagArray);
 
 #define MAX_STRING 30
 CK_ULONG
 GetFlags(char *flagsString, flagArray *flagArray, int count)
 {
    CK_ULONG flagsValue = strtol(flagsString, NULL, 0);
    int i;
 
-fprintf(stderr, "parsing flags <%s>\n", flagsString);
-
    if ((flagsValue != 0) || (*flagsString == 0)) {
 	return flagsValue;
    }
    while (*flagsString) {
 	for (i=0; i < count; i++) {
 	    if (strncmp(flagsString, flagArray[i].name, flagArray[i].nameSize) 
 								== 0) {
 		flagsValue |= flagArray[i].value;