windows-fs-setcrypt-auth-20080902
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 2 Sep 2008 22:25:25 +0000 (22:25 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 2 Sep 2008 22:25:25 +0000 (22:25 +0000)
LICENSE MIT

fix parsing and display of fs setcrypt auth

src/WINNT/afsd/fs.c

index 325ca06..ce24c51 100644 (file)
@@ -3999,7 +3999,7 @@ SetCryptCmd(struct cmd_syndesc *as, void *arock)
     else if (strcmp(tp, "off") == 0)
       flag = 0;
     else if (strcmp(tp, "auth") == 0)
-      flag = 0;
+      flag = 2;
     else {
       fprintf (stderr, "%s: %s must be \"on\", \"auth\", or \"off\".\n", pn, tp);
       return EINVAL;
@@ -4034,7 +4034,7 @@ GetCryptCmd(struct cmd_syndesc *as, void *arock)
       tp = space;
       memcpy(&flag, tp, sizeof(afs_int32));
       printf("Security level is currently ");
-      if (flag == 1)
+      if (flag == 2)
           printf("auth (data integrity).\n");
       else if (flag == 1)
         printf("crypt (data security).\n");