add afs3 salt support
authorMark Eichin <eichin@mit.edu>
Tue, 9 Apr 1996 22:50:28 +0000 (22:50 +0000)
committerMark 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

index fd296fea768d19a948ffef5c95423d3ebfad2cc5..0928eba2a18632aad9b21975f657eb7e5ee59681 100644 (file)
@@ -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);
        }