From 1dcdb9c1a0e5aca8afc9a50b5aa3d238a5fbdcb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 29 Jun 2005 22:20:33 +0000 Subject: [PATCH] optionally compile in support for string2key git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15527 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index c00ad25f6..eb5c231bd 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -250,6 +250,8 @@ krb5_DES_string_to_key(krb5_context context, return 0; } +#ifdef ENABLE_AFS_STRING_TO_KEY + /* This defines the Andrew string_to_key function. It accepts a password * string as input and converts its via a one-way encryption algorithm to a DES * encryption key. It is compatible with the original Andrew authentication @@ -345,6 +347,7 @@ DES_AFS3_string_to_key(krb5_context context, memset(&key, 0, sizeof(key)); return 0; } +#endif /* ENABLE_AFS_STRING_TO_KEY */ static void krb5_DES_random_to_key(krb5_context context, @@ -870,11 +873,13 @@ static struct salt_type des_salt[] = { "pw-salt", krb5_DES_string_to_key }, +#ifdef ENABLE_AFS_STRING_TO_KEY { KRB5_AFS3_SALT, "afs3-salt", DES_AFS3_string_to_key }, +#endif { 0 } };