gss: remove SPNEGO name wrappers
Wrapping GSS names at the SPNEGO level serves no purpose; remove it and return mechglue names directly. This required a small change to the NTLM mechanism to allow NULL names to be passed to its release name function.
This commit is contained in:
@@ -206,7 +206,6 @@ spnego_initial
|
||||
size_t ni_len;
|
||||
gss_ctx_id_t context;
|
||||
gssspnego_ctx ctx;
|
||||
spnego_name name = (spnego_name)target_name;
|
||||
|
||||
*minor_status = 0;
|
||||
|
||||
@@ -228,7 +227,7 @@ spnego_initial
|
||||
|
||||
ctx->local = 1;
|
||||
|
||||
sub = gss_import_name(&minor, &name->value, name->type, &ctx->target_name);
|
||||
sub = gss_duplicate_name(&minor, target_name, &ctx->target_name);
|
||||
if (GSS_ERROR(sub)) {
|
||||
*minor_status = minor;
|
||||
_gss_spnego_internal_delete_sec_context(&minor, &context, GSS_C_NO_BUFFER);
|
||||
|
Reference in New Issue
Block a user