From 423fef40e45db8783d2cb0bf6356024088af95cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 25 Aug 2004 15:29:09 +0000 Subject: [PATCH] (_kadm5_generate_key_set): since arcfour-hmac-md5 is without salting, some people tries to add the string "arcfour-hmac-md5" when they really should have used "arcfour-hmac-md5:pw-salt", help them and add glue for that git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14152 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/kadm5/set_keys.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/kadm5/set_keys.c b/lib/kadm5/set_keys.c index 0672e7a9a..a16ff5ed8 100644 --- a/lib/kadm5/set_keys.c +++ b/lib/kadm5/set_keys.c @@ -257,7 +257,9 @@ _kadm5_generate_key_set(krb5_context context, krb5_principal principal, p = "des:pw-salt:"; else if(strcmp(p, "afs") == 0 || strcmp(p, "afs3") == 0) p = "des:afs3-salt"; - + else if (strcmp(p, "arcfour-hmac-md5") == 0) + p = "arcfour-hmac-md5:pw-salt"; + memset(&salt, 0, sizeof(salt)); ret = parse_key_set(context, p,