Thu Jul 25 02:16:56 1996 Theodore Y. Ts'o <tytso@mit.edu>
+ * gss-client.c (client_establish_context): Remove OID's that
+ weren't being used, and rename gss_nt_service_name to
+ nt_service_name to prevent name colision.
+
* gss.c (parse_name): Add code to parse an optional fourth
parameter which is the mechanism OID to actually use. If
it is ommited, the default mechanism is used.
#include "gss.h"
static const gss_OID_desc oids[] = {
- {10, "\052\206\110\206\367\022\001\002\001\001"},
- {10, "\052\206\110\206\367\022\001\002\001\002"},
- {10, "\052\206\110\206\367\022\001\002\001\003"},
{10, "\052\206\110\206\367\022\001\002\001\004"},
};
-const gss_OID_desc * gss_nt_user_name = oids+0;
-const gss_OID_desc * gss_nt_machine_uid_name = oids+1;
-const gss_OID_desc * gss_nt_string_uid_name = oids+2;
-const gss_OID_desc * gss_nt_service_name = oids+3;
+const gss_OID_desc * nt_service_name = oids+0;
int
gss (char *host, char *name, char *oid, char *msg, int port)
send_tok.value = sname;
send_tok.length = strlen(sname) + 1;
maj_stat = gss_import_name(&min_stat, &send_tok,
- (gss_OID) gss_nt_service_name, &target_name);
+ (gss_OID) service_name, &target_name);
if (maj_stat != GSS_S_COMPLETE) {
display_status("parsing name", maj_stat, min_stat);
return -1;