projects
/
cyrus-sasl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f858ac
)
support mechanisms that do not support mutual auth
author
Luke Howard
<lukeh@padl.com>
Fri, 4 Jan 2013 22:17:01 +0000
(09:17 +1100)
committer
Luke Howard
<lukeh@padl.com>
Fri, 4 Jan 2013 22:18:24 +0000
(09:18 +1100)
plugins/gs2.c
patch
|
blob
|
history
diff --git
a/plugins/gs2.c
b/plugins/gs2.c
index
9e29fe1
..
5c3abce
100644
(file)
--- a/
plugins/gs2.c
+++ b/
plugins/gs2.c
@@
-766,7
+766,7
@@
static int gs2_client_mech_step(void *conn_context,
goto cleanup;
}
goto cleanup;
}
- req_flags = GSS_C_
MUTUAL_FLAG | GSS_C_
SEQUENCE_FLAG;
+ req_flags = GSS_C_SEQUENCE_FLAG;
maj_stat = gss_init_sec_context(&min_stat,
(params->gss_creds != GSS_C_NO_CREDENTIAL)
maj_stat = gss_init_sec_context(&min_stat,
(params->gss_creds != GSS_C_NO_CREDENTIAL)
@@
-1317,7
+1317,7
@@
gs2_get_mech_attrs(const sasl_utils_t *utils,
static int gs2_indicate_mechs(const sasl_utils_t *utils)
{
OM_uint32 major, minor;
static int gs2_indicate_mechs(const sasl_utils_t *utils)
{
OM_uint32 major, minor;
- gss_OID_desc desired_oids[
3
];
+ gss_OID_desc desired_oids[
2
];
gss_OID_set_desc desired_attrs;
gss_OID_desc except_oids[3];
gss_OID_set_desc except_attrs;
gss_OID_set_desc desired_attrs;
gss_OID_desc except_oids[3];
gss_OID_set_desc except_attrs;
@@
-1326,8
+1326,7
@@
static int gs2_indicate_mechs(const sasl_utils_t *utils)
return SASL_OK;
desired_oids[0] = *GSS_C_MA_AUTH_INIT;
return SASL_OK;
desired_oids[0] = *GSS_C_MA_AUTH_INIT;
- desired_oids[1] = *GSS_C_MA_AUTH_TARG;
- desired_oids[2] = *GSS_C_MA_CBINDINGS;
+ desired_oids[1] = *GSS_C_MA_CBINDINGS;
desired_attrs.count = sizeof(desired_oids)/sizeof(desired_oids[0]);
desired_attrs.elements = desired_oids;
desired_attrs.count = sizeof(desired_oids)/sizeof(desired_oids[0]);
desired_attrs.elements = desired_oids;