dovecot-2.0: gssapi: Fixed compiling for non-MIT/Heimdal GSSAPI ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 27 19:50:36 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/e4df9322a094
changeset: 9678:e4df9322a094
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 27 06:40:30 2009 -0400
description:
gssapi: Fixed compiling for non-MIT/Heimdal GSSAPI implementations (Solaris).

diffstat:

1 file changed, 4 insertions(+), 1 deletion(-)
src/auth/mech-gssapi.c |    5 ++++-

diffs (22 lines):

diff -r 00399010c88a -r e4df9322a094 src/auth/mech-gssapi.c
--- a/src/auth/mech-gssapi.c	Mon Jul 27 12:48:40 2009 -0400
+++ b/src/auth/mech-gssapi.c	Mon Jul 27 06:40:30 2009 -0400
@@ -75,6 +75,9 @@ struct gssapi_auth_request {
 
 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)
@@ -274,7 +277,7 @@ mech_gssapi_sec_context(struct gssapi_au
 
 	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;


More information about the dovecot-cvs mailing list