From 399e0ab56df147fa7e792bc65a3e81f05162bc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 1 Apr 2003 16:51:54 +0000 Subject: [PATCH] (krb5_DES_AFS3_CMU_string_to_key): used p1 instead of the "illegal" salt #~, same change as kth-krb did 1999. Problems occur with crypt() that behaves like AT&T crypt (openssl does this). Pointed out by Marcus Watts. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11952 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index b21fd7673..bb9601809 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -255,7 +255,7 @@ krb5_DES_AFS3_CMU_string_to_key (krb5_data pw, } password[8] = '\0'; - memcpy(key, crypt(password, "#~") + 2, sizeof(des_cblock)); + memcpy(key, crypt(password, "p1") + 2, sizeof(des_cblock)); /* parity is inserted into the LSB so left shift each byte up one bit. This allows ascii characters with a zero MSB to retain as