dovecot-1.2: gssapi: Fixed compiling for non-MIT/Heimdal GSSAPI ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 27 13:40:37 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/ac2e37e4c2c1
changeset: 9267:ac2e37e4c2c1
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 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 @@ 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)
@@ -273,7 +276,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