]> granicus.if.org Git - sudo/commitdiff
added support for AUTH_CRYPT_OLDCRYPT w/ DUNIX C2
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 Jul 1996 22:52:52 +0000 (22:52 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 Jul 1996 22:52:52 +0000 (22:52 +0000)
check.c

diff --git a/check.c b/check.c
index 4ab5129c036882e64c8b2006cf8ec973e806dd78..505cd82d342a88c3a4e08d46fdca30bce837fdc1 100644 (file)
--- a/check.c
+++ b/check.c
@@ -526,10 +526,13 @@ static void check_passwd()
        } else if (crypt_type == AUTH_CRYPT_CRYPT16) {
            if (!strcmp(user_passwd, crypt16(pass, user_passwd)))
                return;             /* if the passwd is correct return() */
+       } else if (crypt_type == AUTH_CRYPT_OLDCRYPT) {
+           if (!strcmp(user_passwd, crypt(pass, user_passwd)))
+               return;             /* if the passwd is correct return() */
        } else {
            (void) fprintf(stderr,
                     "%s: Sorry, I don't know how to deal with crypt type %d.\n",
-                    Argv[0]);
+                    Argv[0], crypt_type);
            exit(1);
        }
 #    endif /* SECUREWARE && __alpha */