From 9c71d7d00b78e804e4e2ba0400d3c65a20c9bc8b Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Tue, 9 Apr 1996 22:50:28 +0000 Subject: [PATCH] add afs3 salt support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7770 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/kdb_cpw.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/kdb/kdb_cpw.c b/src/lib/kdb/kdb_cpw.c index fd296fea7..0928eba2a 100644 --- a/src/lib/kdb/kdb_cpw.c +++ b/src/lib/kdb/kdb_cpw.c @@ -382,6 +382,17 @@ add_key_pwd(context, master_eblock, ks_tuple, ks_tuple_count, passwd, key_salt.data.length = 0; key_salt.data.data = 0; break; + case KRB5_KDB_SALTTYPE_AFS3: { + krb5_data * saltdata; + if (retval = krb5_copy_data(context, krb5_princ_realm(context, + db_entry->princ), &saltdata)) + return(retval); + + key_salt.data = *saltdata; + /* key_salt.data.length = -1; *//*length actually used below...*/ + krb5_xfree(saltdata); + } + break; default: return(KRB5_KDB_BAD_SALTTYPE); } -- 2.26.2