gss: don't use mechglue private header in SPNEGO
authorLuke Howard <lukeh@padl.com>
Mon, 27 Apr 2020 05:10:29 +0000 (15:10 +1000)
committerLuke Howard <lukeh@padl.com>
Mon, 27 Apr 2020 05:10:29 +0000 (15:10 +1000)
Unbreak last commit, including mech_locl.h in SPNEGO appears to break Windows
builds

lib/gssapi/spnego/negoex_ctx.c
lib/gssapi/spnego/spnego_locl.h

index 73ace4d80edb8ca3a4eb34d0e66096b57a7496b6..8157d405ec9e07939600473d7d3cc72e5461bbfe 100644 (file)
@@ -783,7 +783,8 @@ _gss_negoex_init(OM_uint32 *minor,
     size_t nmessages = 0;
     int send_alert = FALSE, mech_error = FALSE;
 
-    _mg_buffer_zero(output_token);
+    output_token->length = 0;
+    output_token->value = NULL;
 
     if (ctx->negoex_step == 0 && input_token != GSS_C_NO_BUFFER &&
        input_token->length != 0)
@@ -903,7 +904,8 @@ _gss_negoex_accept(OM_uint32 *minor,
     size_t nmessages;
     int send_alert = FALSE, mech_error = FALSE;
 
-    _mg_buffer_zero(output_token);
+    output_token->length = 0;
+    output_token->value = NULL;
     if (deleg_cred)
        *deleg_cred = GSS_C_NO_CREDENTIAL;
 
index 6c0ddc956cfb3d48187af16af76c10735d67f915..9b0e3310f7bea7014baf66716117c3371bce85e4 100644 (file)
@@ -68,7 +68,6 @@
 #include <asn1_err.h>
 
 #include <gssapi_mech.h>
-#include <mech_locl.h>
 
 #include "spnego_asn1.h"
 #include "negoex_locl.h"