Add some fields to hdb_entry.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1819 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-06-01 21:33:04 +00:00
parent f8aaed35c5
commit d58220ddb8
2 changed files with 46 additions and 15 deletions

View File

@@ -6,11 +6,25 @@
#include <hdb_err.h>
typedef struct hdb_entry{
krb5_principal principal;
krb5_keyblock keyblock;
int kvno;
time_t max_life;
time_t max_renew;
krb5_principal principal; /* Principal */
int kvno; /* Key version number */
krb5_keyblock keyblock; /* Key matching vno */
time_t max_life; /* Max ticket lifetime */
time_t max_renew; /* Max renewable ticket */
time_t last_change; /* Time of last update */
krb5_principal changed_by; /* Who did last update */
time_t expires; /* Time when principal expires */
union {
int flags;
struct {
int initial:1; /* Require AS_REQ */
int forwardable:1; /* Ticket may be forwardable */
int renewable:1; /* Ticket may be renewable */
int allow_postdate:1; /* Ticket may be postdated */
int server:1; /* Principal may be server */
int locked:1; /* Principal is locked */
}s;
}u;
}hdb_entry;
typedef struct HDB{
@@ -24,6 +38,7 @@ typedef struct HDB{
krb5_error_code (*nextkey)(krb5_context, struct HDB*, hdb_entry*);
}HDB;
void hdb_free_entry(krb5_context, hdb_entry*);
krb5_error_code hdb_db_open(krb5_context, HDB**, const char*, int, mode_t);
krb5_error_code hdb_ndbm_open(krb5_context, HDB**, const char*, int, mode_t);
krb5_error_code hdb_open(krb5_context, HDB**, const char*, int, mode_t);