]> granicus.if.org Git - sudo/commitdiff
hpux 10 uses bigcrypt() if C2
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 6 Jun 1996 02:20:17 +0000 (02:20 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 6 Jun 1996 02:20:17 +0000 (02:20 +0000)
check.c

diff --git a/check.c b/check.c
index f0745d98d264ccbf2ee30261cb3e2198a9b463ea..2652acadaf5d71eb9c16e121c0b0f1daed320d8f 100644 (file)
--- a/check.c
+++ b/check.c
@@ -536,6 +536,10 @@ static void check_passwd()
            exit(1);
        }
 #    endif /* SECUREWARE && __alpha */
+#    if (SHADOW_TYPE == SPW_HPUX10)
+       if (strcmp(user_passwd, (char *) bigcrypt(pass, user_passwd)) == 0)
+           return;           /* if the passwd is correct return() */
+#    endif /* HPUX10 */
 #  endif /* SHADOW_TYPE */
 
        /* Normal UN*X password check */