From 4c1667b6be286a913c57cc834e1350931196ecfc Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 21 Jun 2001 14:56:29 +0000 Subject: [PATCH] add generation number git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10162 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/Makefile.am | 4 ++-- lib/hdb/hdb.asn1 | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/hdb/Makefile.am b/lib/hdb/Makefile.am index 21810bd52..c96822da4 100644 --- a/lib/hdb/Makefile.am +++ b/lib/hdb/Makefile.am @@ -5,9 +5,9 @@ include $(top_srcdir)/Makefile.am.common INCLUDES += -I../asn1 -I$(srcdir)/../asn1 BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c \ - asn1_Salt.c hdb_err.c hdb_err.h + asn1_Salt.c hdb_err.c hdb_err.h asn1_GENERATION.c -foo = asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x +foo = asn1_Key.x asn1_GENERATION.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files diff --git a/lib/hdb/hdb.asn1 b/lib/hdb/hdb.asn1 index fa093e899..f662e144b 100644 --- a/lib/hdb/hdb.asn1 +++ b/lib/hdb/hdb.asn1 @@ -7,7 +7,7 @@ IMPORTS EncryptionKey, KerberosTime, Principal FROM krb5; HDB_DB_FORMAT INTEGER ::= 2 -- format of database, -- update when making changes --- these should have the same value as the pa-* counterparts +-- these must have the same value as the pa-* counterparts hdb-pw-salt INTEGER ::= 3 hdb-afs3-salt INTEGER ::= 10 @@ -44,6 +44,12 @@ HDBFlags ::= BIT STRING { immutable(13) -- may not be deleted } +GENERATION ::= SEQUENCE { + time[0] KerberosTime, -- timestamp + usec[1] INTEGER, -- microseconds + gen[2] INTEGER -- generation number +} + hdb_entry ::= SEQUENCE { principal[0] Principal OPTIONAL, -- this is optional only -- for compatibility with libkrb5 @@ -57,7 +63,8 @@ hdb_entry ::= SEQUENCE { max-life[8] INTEGER OPTIONAL, max-renew[9] INTEGER OPTIONAL, flags[10] HDBFlags, - etypes[11] SEQUENCE OF INTEGER OPTIONAL + etypes[11] SEQUENCE OF INTEGER OPTIONAL, + generation[12] GENERATION OPTIONAL } END