1*c2931133SXin LI 2*c2931133SXin LI#------------------------------------------------------------------------------ 3*c2931133SXin LI# $File: kerberos,v 1.1 2014/12/10 18:45:43 christos Exp $ 4*c2931133SXin LI# kerberos: MIT kerberos file binary formats 5*c2931133SXin LI# 6*c2931133SXin LI 7*c2931133SXin LI# This magic entry is for demonstration purposes and could be improved 8*c2931133SXin LI# if the following features were implemented in file: 9*c2931133SXin LI# 10*c2931133SXin LI# Strings inside [[ .. ]] in the descriptions have special meanings and 11*c2931133SXin LI# are not printed. 12*c2931133SXin LI# 13*c2931133SXin LI# - Provide some form of iteration in number of components 14*c2931133SXin LI# [[${counter}=%d]] in the description 15*c2931133SXin LI# then append 16*c2931133SXin LI# [${counter}--] in the offset of the entries 17*c2931133SXin LI# - Provide a way to round the next offset 18*c2931133SXin LI# Add [R:4] after the offset? 19*c2931133SXin LI# - Provide a way to have optional entries 20*c2931133SXin LI# XXX: Syntax: 21*c2931133SXin LI# - Provide a way to "save" entries to print them later. 22*c2931133SXin LI# if the description is [[${name}=%s]], then nothing is 23*c2931133SXin LI# printed and a subsequent entry in the same magic file 24*c2931133SXin LI# can refer to ${name} 25*c2931133SXin LI# - Provide a way to format strings as hex values 26*c2931133SXin LI# 27*c2931133SXin LI# http://www.gnu.org/software/shishi/manual/html_node/\ 28*c2931133SXin LI# The-Keytab-Binary-File-Format.html 29*c2931133SXin LI# 30*c2931133SXin LI 31*c2931133SXin LI0 name keytab_entry 32*c2931133SXin LI#>0 beshort x \b, size=%d 33*c2931133SXin LI#>2 beshort x \b, components=%d 34*c2931133SXin LI>4 pstring/H x \b, realm=%s 35*c2931133SXin LI>>&0 pstring/H x \b, principal=%s/ 36*c2931133SXin LI>>>&0 pstring/H x \b%s 37*c2931133SXin LI>>>>&0 belong x \b, type=%d 38*c2931133SXin LI>>>>>&0 bedate x \b, date=%s 39*c2931133SXin LI>>>>>>&0 byte x \b, kvno=%u 40*c2931133SXin LI#>>>>>>>&0 pstring/H x 41*c2931133SXin LI#>>>>>>>>&0 belong x 42*c2931133SXin LI#>>>>>>>>>>&0 use keytab_entry 43*c2931133SXin LI 44*c2931133SXin LI0 belong 0x05020000 Kerberos Keytab file 45*c2931133SXin LI>4 use keytab_entry 46