version 1.4, 2003/10/21 09:50:06 |
version 1.5, 2003/11/02 11:01:03 |
|
|
if (doid) |
if (doid) |
xfree(doid); |
xfree(doid); |
|
|
|
present = 0; |
doid = packet_get_string(&len); |
doid = packet_get_string(&len); |
if (len <= 2) |
|
packet_disconnect("Short OID received"); |
|
|
|
if (doid[0] != SSH_GSS_OIDTYPE || doid[1] != len-2) { |
if (len > 2 && |
logit("Mechanism OID received using the old encoding form"); |
doid[0] == SSH_GSS_OIDTYPE && |
oid.elements = doid; |
doid[1] == len - 2) { |
oid.length = len; |
oid.elements = doid + 2; |
|
oid.length = len - 2; |
|
gss_test_oid_set_member(&ms, &oid, supported, |
|
&present); |
} else { |
} else { |
oid.elements = doid + 2; |
logit("Badly formed OID received"); |
oid.length = len - 2; |
|
} |
} |
gss_test_oid_set_member(&ms, &oid, supported, &present); |
|
} while (mechs > 0 && !present); |
} while (mechs > 0 && !present); |
|
|
gss_release_oid_set(&ms, &supported); |
gss_release_oid_set(&ms, &supported); |
|
|
|
|
packet_start(SSH2_MSG_USERAUTH_GSSAPI_RESPONSE); |
packet_start(SSH2_MSG_USERAUTH_GSSAPI_RESPONSE); |
|
|
/* Return OID in same format as we received it*/ |
/* Return the OID that we received */ |
packet_put_string(doid, len); |
packet_put_string(doid, len); |
|
|
packet_send(); |
packet_send(); |