diff options
author | Russ Allbery <rra@stanford.edu> | 2010-02-08 19:41:27 -0800 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2010-02-08 19:41:27 -0800 |
commit | b093893870d56cd460b16645496ec6c30c62a02f (patch) | |
tree | 9867d49c01ce40ce1ae8d34e5077892ee96788db /client/keytab.c | |
parent | 9578292176bef1e1d71cdecd9c2b8d797f6586de (diff) |
Initial port to Heimdal
Just get the client code to compile with Heimdal. This will need more
work later to use my regular Kerberos portability layer.
Diffstat (limited to 'client/keytab.c')
-rw-r--r-- | client/keytab.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/keytab.c b/client/keytab.c index 2d31a27..bdd0134 100644 --- a/client/keytab.c +++ b/client/keytab.c @@ -47,7 +47,11 @@ merge_keytab(krb5_context ctx, const char *newfile, const char *file) status = krb5_kt_add_entry(ctx, old, &entry); if (status != 0) die_krb5(ctx, status, "cannot write to keytab %s", file); +#ifdef HAVE_KRB5_KT_FREE_ENTRY + krb5_kt_free_entry(ctx, &entry); +#else krb5_free_keytab_entry_contents(ctx, &entry); +#endif } if (status != KRB5_KT_END) die_krb5(ctx, status, "error reading temporary keytab %s", newfile); |