* kdb5_mkdums.c: Update to match reality of libkdb, so that it
authorTom Yu <tlyu@mit.edu>
Wed, 30 Jul 1997 22:28:05 +0000 (22:28 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 30 Jul 1997 22:28:05 +0000 (22:28 +0000)
actually works.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10146 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/create/ChangeLog
src/tests/create/kdb5_mkdums.c

index 809a5f576bb942ebb4983494fd5b4bb3ed9f4887..73850a44ecf0c85f30ee1421e8afaf3539567a92 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jul 30 18:27:36 1997  Tom Yu  <tlyu@mit.edu>
+
+       * kdb5_mkdums.c: Update to match reality of libkdb, so that it
+       actually works.
+
 Tue Feb 18 18:20:14 1997  Richard Basch  <basch@lehman.com>
 
        * kdb5_mkdums.c (add_princ): 
index 0226a9857567b9a015559dbd0ad35a7e0a8cf78e..cc3bf7fe1230ede237a2a6b2358b3280864ebe02 100644 (file)
@@ -251,15 +251,18 @@ add_princ(context, str_newprinc)
        goto error;
     }
 
-    {  /* Add mod princ to db entry */
-       krb5_tl_mod_princ mod_princ;
+    {
+       /* Add mod princ to db entry */
+       krb5_int32 now;
 
-       mod_princ.mod_princ = master_princ;
-       if (retval = krb5_timeofday(context, &mod_princ.mod_date)) {
+       retval = krb5_timeofday(context, &now);
+       if (retval) {
            com_err(progname, retval, "while fetching date");
            goto error;
-        }
-       if(retval=krb5_dbe_encode_mod_princ_data(context,&mod_princ,&newentry)){
+       }
+       retval = krb5_dbe_update_mod_princ_data(context, &newentry, now,
+                                              master_princ);
+       if (retval) {
            com_err(progname, retval, "while encoding mod_princ data");
            goto error;
        }