You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2015/04/01 11:55:27 UTC
directory-kerby git commit: moved credential cache spec
Repository: directory-kerby
Updated Branches:
refs/heads/master 7a4aee736 -> c850f65b2
moved credential cache spec
Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/c850f65b
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/c850f65b
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/c850f65b
Branch: refs/heads/master
Commit: c850f65b20353708d93e5b91a8cab3e03adf4a37
Parents: 7a4aee7
Author: Kiran Ayyagari <db...@myytl.net>
Authored: Wed Apr 1 17:54:46 2015 +0800
Committer: Kiran Ayyagari <db...@myytl.net>
Committed: Wed Apr 1 17:54:46 2015 +0800
----------------------------------------------------------------------
.../kerby/kerberos/kerb/ccache/ccache.txt | 98 --------------------
.../kerb-util/src/main/resources/ccache.txt | 98 ++++++++++++++++++++
2 files changed, 98 insertions(+), 98 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/c850f65b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/ccache.txt
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/ccache.txt b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/ccache.txt
deleted file mode 100644
index 91453ea..0000000
--- a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/ccache.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-The Kerberos Credential Cache Binary File Format
-Copyright (C) 2006-2013 Simon Josefsson <simon josefsson.org>
-http://josefsson.org/shishi/ccache.txt
-Last updated: Sat Sep 23 12:04:11 CEST 2006
-
-Like the MIT keytab binary format (see Michael B Allen's reverse
-engineered description in keytab.txt), the credential cache format is
-not standard nor documented anywhere.
-
-In C style notation, the MIT credential cache file format is as
-follows. All values are in network byte order. All text is ASCII.
-
-ccache {
- uint16_t file_format_version; /* 0x0504 */
- uint16_t headerlen; /* only if version is 0x0504 */
- header headers[]; /* only if version is 0x0504 */
- principal primary_principal;
- credential credentials[*];
-};
-
-header {
- uint16_t tag; /* 1 = DeltaTime */
- uint16_t taglen;
- uint8_t tagdata[taglen]
-};
-
-The ccache.taglen and ccache.tags fields are only present in 0x0504
-versions, not in earlier. Both MIT and Heimdal appear to correctly
-ignore unknown tags, so it appears safe to add them (although there is
-no central place to "register" tags).
-
-Currently only one tag is widely implemented, DeltaTime (0x0001). Its
-taglen is always 8, and tagdata will contain:
-
-DeltaTime {
- uint32_t time_offset;
- uint32_t usec_offset;
-};
-
-After reading the file_format_version, header tags, and default
-principal, a list of credentials follow. You deduce from the file
-length when there are no more credentials.
-
-credential {
- principal client;
- principal server;
- keyblock key;
- times time;
- uint8_t is_skey; /* 1 if skey, 0 otherwise */
- uint32_t tktflags; /* stored in reversed byte order */
- uint32_t num_address;
- address addrs[num_address];
- uint32_t num_authdata;
- authdata authdata[num_authdata];
- counted_octet_string ticket;
- counted_octet_string second_ticket;
-};
-
-keyblock {
- uint16_t keytype;
- uint16_t etype; /* only present if version 0x0503 */
- uint32_t keylen; /* [drankye]: corrected, before it was uint16_t */
- uint8_t keyvalue[keylen];
-};
-
-times {
- uint32_t authtime;
- uint32_t starttime;
- uint32_t endtime;
- uint32_t renew_till;
-};
-
-address {
- uint16_t addrtype;
- counted_octet_string addrdata;
-};
-
-authdata {
- uint16_t authtype;
- counted_octet_string authdata;
-};
-
-principal {
- uint32_t name_type; /* not present if version 0x0501 */
- uint32_t num_components; /* sub 1 if version 0x501 */
- counted_octet_string realm;
- counted_octet_string components[num_components];
-};
-
-counted_octet_string {
- uint32_t length;
- uint8_t data[length];
-};
-
-Permission to copy, modify, and distribute this document, with or
-without modification, for any purpose and without fee or royalty is
-hereby granted, provided that you include this copyright notice in ALL
-copies of the document or portions thereof, including modifications.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/c850f65b/kerby-kerb/kerb-util/src/main/resources/ccache.txt
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-util/src/main/resources/ccache.txt b/kerby-kerb/kerb-util/src/main/resources/ccache.txt
new file mode 100644
index 0000000..91453ea
--- /dev/null
+++ b/kerby-kerb/kerb-util/src/main/resources/ccache.txt
@@ -0,0 +1,98 @@
+The Kerberos Credential Cache Binary File Format
+Copyright (C) 2006-2013 Simon Josefsson <simon josefsson.org>
+http://josefsson.org/shishi/ccache.txt
+Last updated: Sat Sep 23 12:04:11 CEST 2006
+
+Like the MIT keytab binary format (see Michael B Allen's reverse
+engineered description in keytab.txt), the credential cache format is
+not standard nor documented anywhere.
+
+In C style notation, the MIT credential cache file format is as
+follows. All values are in network byte order. All text is ASCII.
+
+ccache {
+ uint16_t file_format_version; /* 0x0504 */
+ uint16_t headerlen; /* only if version is 0x0504 */
+ header headers[]; /* only if version is 0x0504 */
+ principal primary_principal;
+ credential credentials[*];
+};
+
+header {
+ uint16_t tag; /* 1 = DeltaTime */
+ uint16_t taglen;
+ uint8_t tagdata[taglen]
+};
+
+The ccache.taglen and ccache.tags fields are only present in 0x0504
+versions, not in earlier. Both MIT and Heimdal appear to correctly
+ignore unknown tags, so it appears safe to add them (although there is
+no central place to "register" tags).
+
+Currently only one tag is widely implemented, DeltaTime (0x0001). Its
+taglen is always 8, and tagdata will contain:
+
+DeltaTime {
+ uint32_t time_offset;
+ uint32_t usec_offset;
+};
+
+After reading the file_format_version, header tags, and default
+principal, a list of credentials follow. You deduce from the file
+length when there are no more credentials.
+
+credential {
+ principal client;
+ principal server;
+ keyblock key;
+ times time;
+ uint8_t is_skey; /* 1 if skey, 0 otherwise */
+ uint32_t tktflags; /* stored in reversed byte order */
+ uint32_t num_address;
+ address addrs[num_address];
+ uint32_t num_authdata;
+ authdata authdata[num_authdata];
+ counted_octet_string ticket;
+ counted_octet_string second_ticket;
+};
+
+keyblock {
+ uint16_t keytype;
+ uint16_t etype; /* only present if version 0x0503 */
+ uint32_t keylen; /* [drankye]: corrected, before it was uint16_t */
+ uint8_t keyvalue[keylen];
+};
+
+times {
+ uint32_t authtime;
+ uint32_t starttime;
+ uint32_t endtime;
+ uint32_t renew_till;
+};
+
+address {
+ uint16_t addrtype;
+ counted_octet_string addrdata;
+};
+
+authdata {
+ uint16_t authtype;
+ counted_octet_string authdata;
+};
+
+principal {
+ uint32_t name_type; /* not present if version 0x0501 */
+ uint32_t num_components; /* sub 1 if version 0x501 */
+ counted_octet_string realm;
+ counted_octet_string components[num_components];
+};
+
+counted_octet_string {
+ uint32_t length;
+ uint8_t data[length];
+};
+
+Permission to copy, modify, and distribute this document, with or
+without modification, for any purpose and without fee or royalty is
+hereby granted, provided that you include this copyright notice in ALL
+copies of the document or portions thereof, including modifications.
\ No newline at end of file