From b52b964b420905183aba519ac5a5cd2707c6ebaf Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 30 Jul 1997 22:28:05 +0000 Subject: [PATCH] * kdb5_mkdums.c: Update to match reality of libkdb, so that it actually works. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10146 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/create/ChangeLog | 5 +++++ src/tests/create/kdb5_mkdums.c | 15 +++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/tests/create/ChangeLog b/src/tests/create/ChangeLog index 809a5f576..73850a44e 100644 --- a/src/tests/create/ChangeLog +++ b/src/tests/create/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 30 18:27:36 1997 Tom Yu + + * kdb5_mkdums.c: Update to match reality of libkdb, so that it + actually works. + Tue Feb 18 18:20:14 1997 Richard Basch * kdb5_mkdums.c (add_princ): diff --git a/src/tests/create/kdb5_mkdums.c b/src/tests/create/kdb5_mkdums.c index 0226a9857..cc3bf7fe1 100644 --- a/src/tests/create/kdb5_mkdums.c +++ b/src/tests/create/kdb5_mkdums.c @@ -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; } -- 2.26.2