# HG changeset patch # User Timo Sirainen # Date 1248691230 14400 # Node ID ac2e37e4c2c199fd2974f0e4f8365241be6d80da # Parent cd29b745c8dd06b0dd994dc6c0fa0c5627fd0ef8 gssapi: Fixed compiling for non-MIT/Heimdal GSSAPI implementations (Solaris). diff -r cd29b745c8dd -r ac2e37e4c2c1 src/auth/mech-gssapi.c --- a/src/auth/mech-gssapi.c Mon Jul 27 06:32:42 2009 -0400 +++ b/src/auth/mech-gssapi.c Mon Jul 27 06:40:30 2009 -0400 @@ -75,6 +75,9 @@ static bool gssapi_initialized = FALSE; +static gss_OID_desc mech_gssapi_krb5_oid = + { 9, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02" }; + static void mech_gssapi_log_error(struct auth_request *request, OM_uint32 status_value, int status_type, const char *description) @@ -273,7 +276,7 @@ switch (major_status) { case GSS_S_COMPLETE: - if (!mech_gssapi_oid_cmp(mech_type, gss_mech_krb5)) { + if (!mech_gssapi_oid_cmp(mech_type, &mech_gssapi_krb5_oid)) { auth_request_log_info(auth_request, "gssapi", "GSSAPI mechanism not Kerberos5"); ret = -1;