25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Return invalid-mechanism when a mechanism isn't supported instead of

no-mechanism, which wasn't standard-compliant.

PR:		EJABP-1

SVN Revision: 1838
This commit is contained in:
Jean-Sébastien Pédron 2009-01-21 13:07:55 +00:00
parent 8a413018c2
commit cdbb000638
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@
* src/acl.erl (match_acl/3): Use string() version of * src/acl.erl (match_acl/3): Use string() version of
User/Server/Resource to match an ACL. User/Server/Resource to match an ACL.
* src/cyrsasl.erl: Return invalid-mechanism when a mechanism isn't
supported instead of no-mechanism, which wasn't standard-compliant.
2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net> 2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net>
* src/cyrsasl_digest.erl: Typo (prolists -> proplists). * src/cyrsasl_digest.erl: Typo (prolists -> proplists).

View File

@ -133,10 +133,10 @@ server_start(State, Mech, ClientIn) ->
mech_state = MechState}, mech_state = MechState},
ClientIn); ClientIn);
_ -> _ ->
{error, 'no-mechanism'} {error, 'invalid-mechanism'}
end; end;
false -> false ->
{error, 'no-mechanism'} {error, 'invalid-mechanism'}
end. end.
server_step(State, ClientIn) -> server_step(State, ClientIn) ->