]> granicus.if.org Git - sudo/commitdiff
protect AUTH_CRYPT_OLDCRYPT and AUTH_CRYPT_C1CRYPT since they
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 26 Jul 1996 18:10:42 +0000 (18:10 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 26 Jul 1996 18:10:42 +0000 (18:10 +0000)
are only in dunix 4.x

check.c

diff --git a/check.c b/check.c
index 46b81868d6a0f51ecf51778735ea6d2d3ed3dbc7..38e9b9caf79fa55b5f0798bc0a34b68676a35bfe 100644 (file)
--- a/check.c
+++ b/check.c
@@ -526,9 +526,12 @@ 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) {
+#ifdef AUTH_CRYPT_OLDCRYPT
+       } else if (crypt_type == AUTH_CRYPT_OLDCRYPT ||
+                  crypt_type == AUTH_CRYPT_C1CRYPT) {
            if (!strcmp(user_passwd, crypt(pass, user_passwd)))
                return;             /* if the passwd is correct return() */
+#endif
        } else {
            (void) fprintf(stderr,
                     "%s: Sorry, I don't know how to deal with crypt type %d.\n",