aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1997-07-30 03:07:37 +0000
committerTheodore Tso <tytso@mit.edu>1997-07-30 03:07:37 +0000
commit57256a3ae56068501070fecdf434357f6ff9eda7 (patch)
treec77fa5afb2b4cd12a4bd76247a082d0395b4760e /src/lib
parentee040d53acda995cfb05f35472a9bd2f655706d6 (diff)
downloadkrb5-57256a3ae56068501070fecdf434357f6ff9eda7.zip
krb5-57256a3ae56068501070fecdf434357f6ff9eda7.tar.gz
krb5-57256a3ae56068501070fecdf434357f6ff9eda7.tar.bz2
inq_names.c (krb5_gss_inquire_names_for_mech): Add the the new OID
value for the host-based service name and the exported name OID to the list of OID's supported by this mechanism. import_name.c (krb5_gss_import_name): Add support for the new OID value for the host-based service name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10141 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/gssapi/krb5/ChangeLog10
-rw-r--r--src/lib/gssapi/krb5/import_name.c3
-rw-r--r--src/lib/gssapi/krb5/inq_names.c8
3 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog
index ad1cb04..ec04ee0 100644
--- a/src/lib/gssapi/krb5/ChangeLog
+++ b/src/lib/gssapi/krb5/ChangeLog
@@ -1,3 +1,13 @@
+Tue Jul 29 22:56:04 1997 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * inq_names.c (krb5_gss_inquire_names_for_mech): Add the
+ the new OID value for the host-based service name and
+ the exported name OID to the list of OID's supported by
+ this mechanism.
+
+ * import_name.c (krb5_gss_import_name): Add support for the new
+ OID value for the host-based service name.
+
Mon Jul 21 20:32:14 1997 Ezra Peisach <epeisach@mit.edu>
* accept_sec_context.c (krb5_gss_accept_sec_context): Initialize
diff --git a/src/lib/gssapi/krb5/import_name.c b/src/lib/gssapi/krb5/import_name.c
index d16cf45..92972dc 100644
--- a/src/lib/gssapi/krb5/import_name.c
+++ b/src/lib/gssapi/krb5/import_name.c
@@ -71,7 +71,8 @@ krb5_gss_import_name(minor_status, input_name_buffer,
/* Go find the appropriate string rep to pass into parse_name */
if ((input_name_type != GSS_C_NULL_OID) &&
- g_OID_equal(input_name_type, gss_nt_service_name)) {
+ (g_OID_equal(input_name_type, gss_nt_service_name) ||
+ g_OID_equal(input_name_type, gss_nt_service_name_v2))) {
char *service, *host;
if ((tmp =
diff --git a/src/lib/gssapi/krb5/inq_names.c b/src/lib/gssapi/krb5/inq_names.c
index 948346d..9c5f474 100644
--- a/src/lib/gssapi/krb5/inq_names.c
+++ b/src/lib/gssapi/krb5/inq_names.c
@@ -71,6 +71,14 @@ krb5_gss_inquire_names_for_mech(minor_status, mechanism, name_types)
name_types)
) == GSS_S_COMPLETE) &&
((major = gss_add_oid_set_member(minor_status,
+ (gss_OID) gss_nt_service_name_v2,
+ name_types)
+ ) == GSS_S_COMPLETE) &&
+ ((major = gss_add_oid_set_member(minor_status,
+ (gss_OID) gss_nt_exported_name,
+ name_types)
+ ) == GSS_S_COMPLETE) &&
+ ((major = gss_add_oid_set_member(minor_status,
(gss_OID) gss_nt_krb5_name,
name_types)
) == GSS_S_COMPLETE)