From: Mark Eichin Date: Tue, 9 Apr 1996 22:50:28 +0000 (+0000) Subject: add afs3 salt support X-Git-Tag: krb5-1.0-beta6~245 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c71d7d00b78e804e4e2ba0400d3c65a20c9bc8b;p=krb5.git add afs3 salt support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7770 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); }