diff options
Diffstat (limited to 'kerberosIV/krb/str2key.c')
-rw-r--r-- | kerberosIV/krb/str2key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/krb/str2key.c b/kerberosIV/krb/str2key.c index 8aebe070afd..4c2d1e839d8 100644 --- a/kerberosIV/krb/str2key.c +++ b/kerberosIV/krb/str2key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: str2key.c,v 1.5 1997/12/09 07:57:39 art Exp $ */ +/* $OpenBSD: str2key.c,v 1.6 1998/06/22 15:22:27 beck Exp $ */ /* $KTH: str2key.c,v 1.10 1997/03/23 03:53:19 joda Exp $ */ /* This defines the Andrew string_to_key function. It accepts a password @@ -43,7 +43,7 @@ afs_cmu_StringToKey (char *str, char *cell, des_cblock *key) /* crypt only considers the first 8 characters of password but for some reason returns eleven characters of result (plus the two salt chars). */ - strncpy((char *)key, (char *)crypt(password, "#~") + 2, sizeof(des_cblock)); + strncpy((char *)key, (char *)des_crypt(password, "#~") + 2, sizeof(des_cblock)); /* parity is inserted into the LSB so leftshift each byte up one bit. This allows ascii characters with a zero MSB to retain as much significance |