summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/krb5/gssapi_krb5.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-06-10 03:15:51 +0000
committerTheodore Tso <tytso@mit.edu>1994-06-10 03:15:51 +0000
commit9f848ddada00ab926f70bd892b199f875404e26a (patch)
treeeae359aaf7803bf6c9639105b6d9305314d3d054 /src/lib/gssapi/krb5/gssapi_krb5.c
parent21cedd566d71b3debcf7bb0a4f941c6a5977d8bd (diff)
downloadkrb5-9f848ddada00ab926f70bd892b199f875404e26a.tar.gz
krb5-9f848ddada00ab926f70bd892b199f875404e26a.tar.xz
krb5-9f848ddada00ab926f70bd892b199f875404e26a.zip
Updates from OpenVision, before beta 4 release
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3696 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/krb5/gssapi_krb5.c')
-rw-r--r--src/lib/gssapi/krb5/gssapi_krb5.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c
index ada5f6f4a2..699b4308d1 100644
--- a/src/lib/gssapi/krb5/gssapi_krb5.c
+++ b/src/lib/gssapi/krb5/gssapi_krb5.c
@@ -30,11 +30,29 @@
/* these are bogus, but will compile */
+/*
+ * The OID of the krb5 mechanism, assigned by IETF, is:
+ * 1.3.5.1.5.2
+ * The OID of the krb5_name type is:
+ * iso(1) member-body(2) US(840) mit(113554) infosys(2) gssapi(1)
+ * krb5(2) krb5_name(1) = 1.2.840.113554.2.1.2.1
+ * The OID of the krb5_principal type is:
+ * iso(1) member-body(2) US(840) mit(113554) infosys(2) gssapi(1)
+ * krb5(2) krb5_principal(2) = 1.2.840.113554.2.1.2.2
+ */
+
+/*
+ * Encoding rules: The first two values are encoded in one byte as 40
+ * * value1 + value2. Subsequent values are encoded base 128, most
+ * significant digit first, with the high bit set on all octets except
+ * the last in each value's encoding.
+ */
+
static const gss_OID_desc oids[] = {
/* this OID is from Ted. It's not official yet, but it's close. */
{5, "\053\005\001\005\002"},
- {2, "\002\002"},
- {2, "\002\003"},
+ {10, "\052\206\110\206\367\022\002\001\002\001"},
+ {10, "\052\206\110\206\367\022\002\001\002\002"},
};
const_gss_OID gss_mech_krb5 = oids+0;