For naming extensions draft compliance, s/mspac:/urn:mspac:/
authorLuke Howard <lukeh@padl.com>
Tue, 20 Oct 2009 15:40:47 +0000 (15:40 +0000)
committerLuke Howard <lukeh@padl.com>
Tue, 20 Oct 2009 15:40:47 +0000 (15:40 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22957 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/pac.c
src/plugins/authdata/greet_client/greet.c
src/tests/gssapi/t_namingexts.c

index 58a28cd1760ce78af2c18c532f4939d0ff48d9a4..3fcdaea1cbbedd930a4cbcacde8a9bc1006bdb6e 100644 (file)
@@ -1127,14 +1127,14 @@ static struct {
     krb5_ui_4 type;
     krb5_data attribute;
 } mspac_attribute_types[] = {
-    { (krb5_ui_4)-1,           { KV5M_DATA, STRLENOF("mspac:"), "mspac:" } },
-    { PAC_LOGON_INFO,          { KV5M_DATA, STRLENOF("mspac:logon-info"), "mspac:logon-info" } },
-    { PAC_CREDENTIALS_INFO,    { KV5M_DATA, STRLENOF("mspac:credentials-info"), "mspac:credentials-info" } },
-    { PAC_SERVER_CHECKSUM,     { KV5M_DATA, STRLENOF("mspac:server-checksum"), "mspac:server-checksum" } },
-    { PAC_PRIVSVR_CHECKSUM,    { KV5M_DATA, STRLENOF("mspac:privsvr-checksum"), "mspac:privsvr-checksum" } },
-    { PAC_CLIENT_INFO,         { KV5M_DATA, STRLENOF("mspac:client-info"), "mspac:client-info" } },
-    { PAC_DELEGATION_INFO,     { KV5M_DATA, STRLENOF("mspac:delegation-info"), "mspac:delegation-info" } },
-    { PAC_UPN_DNS_INFO,                { KV5M_DATA, STRLENOF("mspac:upn-dns-info"), "mspac:upn-dns-info" } },
+    { (krb5_ui_4)-1,           { KV5M_DATA, STRLENOF("urn:mspac:"), "urn:mspac:" } },
+    { PAC_LOGON_INFO,          { KV5M_DATA, STRLENOF("urn:mspac:logon-info"), "urn:mspac:logon-info" } },
+    { PAC_CREDENTIALS_INFO,    { KV5M_DATA, STRLENOF("urn:mspac:credentials-info"), "urn:mspac:credentials-info" } },
+    { PAC_SERVER_CHECKSUM,     { KV5M_DATA, STRLENOF("urn:mspac:server-checksum"), "urn:mspac:server-checksum" } },
+    { PAC_PRIVSVR_CHECKSUM,    { KV5M_DATA, STRLENOF("urn:mspac:privsvr-checksum"), "urn:mspac:privsvr-checksum" } },
+    { PAC_CLIENT_INFO,         { KV5M_DATA, STRLENOF("urn:mspac:client-info"), "urn:mspac:client-info" } },
+    { PAC_DELEGATION_INFO,     { KV5M_DATA, STRLENOF("urn:mspac:delegation-info"), "urn:mspac:delegation-info" } },
+    { PAC_UPN_DNS_INFO,                { KV5M_DATA, STRLENOF("urn:mspac:upn-dns-info"), "urn:mspac:upn-dns-info" } },
 };
 
 #define MSPAC_ATTRIBUTE_COUNT  (sizeof(mspac_attribute_types)/sizeof(mspac_attribute_types[0]))
@@ -1167,10 +1167,10 @@ mspac_attr2type(const krb5_data *attr, krb5_ui_4 *type)
        }
     }
 
-    if (attr->length > STRLENOF("mspac:") &&
-       strncasecmp(attr->data, "mspac:", STRLENOF("mspac:")) == 0)
+    if (attr->length > STRLENOF("urn:mspac:") &&
+       strncasecmp(attr->data, "urn:mspac:", STRLENOF("urn:mspac:")) == 0)
     {
-       char *p = &attr->data[STRLENOF("mspac:")];
+       char *p = &attr->data[STRLENOF("urn:mspac:")];
        char *endptr;
 
        *type = strtoul(p, &endptr, 10);
@@ -1225,7 +1225,7 @@ mspac_get_attribute_types(krb5_context kcontext,
        } else {
            int length;
 
-           length = asprintf(&attrs[j].data, "mspac:%d",
+           length = asprintf(&attrs[j].data, "urn:mspac:%d",
                              pacctx->pac->pac->Buffers[i].ulType);
            if (length < 0) {
                krb5int_free_data_list(kcontext, attrs);
index cb0d6e519437aabdabc7e50a0265577e8da2abd7..4c7af82b8867985a3656643bd4ae992e82ff1ae0 100644 (file)
@@ -38,7 +38,7 @@ struct greet_context {
 };
 
 static krb5_data greet_attr = {
-    KV5M_DATA, sizeof("greet:greeting") - 1, "greet:greeting" };
+    KV5M_DATA, sizeof("urn:greet:greeting") - 1, "urn:greet:greeting" };
 
 static krb5_error_code
 greet_init(krb5_context kcontext, void **plugin_context)
index 25e73d08726eaee0994200d43d73676de386d49a..3dae0a1c704bfb1c1f2dc616efba9e16db3a02a7 100644 (file)
@@ -234,7 +234,7 @@ testGreetAuthzData(OM_uint32 *minor,
     gss_buffer_desc attr;
     gss_buffer_desc value;
 
-    attr.value = "greet:greeting";
+    attr.value = "urn:greet:greeting";
     attr.length = strlen((char *)attr.value);
 
     major = gss_delete_name_attribute(minor,