projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e32b3c4
)
add afs3 salt support
author
Mark Eichin
<eichin@mit.edu>
Tue, 9 Apr 1996 22:50:28 +0000
(22:50 +0000)
committer
Mark Eichin
<eichin@mit.edu>
Tue, 9 Apr 1996 22:50:28 +0000
(22:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7770
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/kdb/kdb_cpw.c
patch
|
blob
|
history
diff --git
a/src/lib/kdb/kdb_cpw.c
b/src/lib/kdb/kdb_cpw.c
index fd296fea768d19a948ffef5c95423d3ebfad2cc5..0928eba2a18632aad9b21975f657eb7e5ee59681 100644
(file)
--- 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);
}