From 052c5767fd02b978a426ddf1000d31f1fe65f9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 24 Jul 2011 12:47:55 -0700 Subject: [PATCH] fixup type for GSS_C_ATTR_LOCAL_LOGIN_USER --- lib/gssapi/gssapi/gssapi.h | 2 +- lib/gssapi/mech/gss_authorize_localname.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/gssapi/gssapi/gssapi.h b/lib/gssapi/gssapi/gssapi.h index 29ab7b419..bbb2fd54c 100644 --- a/lib/gssapi/gssapi/gssapi.h +++ b/lib/gssapi/gssapi/gssapi.h @@ -1046,7 +1046,7 @@ GSSAPI_LIB_FUNCTION int GSSAPI_LIB_CALL gss_userok(const gss_name_t name, const char *user); -extern GSSAPI_LIB_VARIABLE gss_buffer_t __gss_c_attr_local_login_user; +extern GSSAPI_LIB_VARIABLE gss_buffer_desc __gss_c_attr_local_login_user; #define GSS_C_ATTR_LOCAL_LOGIN_USER (&__gss_c_attr_local_login_user) /* diff --git a/lib/gssapi/mech/gss_authorize_localname.c b/lib/gssapi/mech/gss_authorize_localname.c index b0281208a..3fcd3ba9e 100644 --- a/lib/gssapi/mech/gss_authorize_localname.c +++ b/lib/gssapi/mech/gss_authorize_localname.c @@ -32,13 +32,11 @@ #include "mech_locl.h" -static gss_buffer_desc localLoginUserAttr = { +GSSAPI_LIB_VARIABLE gss_buffer_desc __gss_c_attr_local_login_user = { sizeof("local-login-user") - 1, "local-login-user" }; -gss_buffer_t GSSAPI_LIB_VARIABLE __gss_c_attr_local_login_user = &localLoginUserAttr; - static OM_uint32 mech_authorize_localname(OM_uint32 *minor_status, const struct _gss_name *name,