From cdbb000638542c48cbfb6cc8f5f0fb9cf85c3ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 21 Jan 2009 13:07:55 +0000 Subject: [PATCH] Return invalid-mechanism when a mechanism isn't supported instead of no-mechanism, which wasn't standard-compliant. PR: EJABP-1 SVN Revision: 1838 --- ChangeLog | 3 +++ src/cyrsasl.erl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 988146db7..b71b7a526 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * src/acl.erl (match_acl/3): Use string() version of 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 * src/cyrsasl_digest.erl: Typo (prolists -> proplists). diff --git a/src/cyrsasl.erl b/src/cyrsasl.erl index 9dedd0b75..e742cee17 100644 --- a/src/cyrsasl.erl +++ b/src/cyrsasl.erl @@ -133,10 +133,10 @@ server_start(State, Mech, ClientIn) -> mech_state = MechState}, ClientIn); _ -> - {error, 'no-mechanism'} + {error, 'invalid-mechanism'} end; false -> - {error, 'no-mechanism'} + {error, 'invalid-mechanism'} end. server_step(State, ClientIn) ->