summaryrefslogtreecommitdiff
path: root/kerberosIV/krb/str2key.c
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>1998-06-22 15:22:28 +0000
committerBob Beck <beck@cvs.openbsd.org>1998-06-22 15:22:28 +0000
commit335af5105f01f8a9910725240839286be3ee5f03 (patch)
treeb76275cc06bab2d1da6a54698f40f7274ba420fe /kerberosIV/krb/str2key.c
parentee9010d65ed0b7f4da75a3b8e9a6b042cceffb7c (diff)
Fix for transarc string-to-key.
Diffstat (limited to 'kerberosIV/krb/str2key.c')
-rw-r--r--kerberosIV/krb/str2key.c4
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