summaryrefslogtreecommitdiff
path: root/src/rabbit_auth_mechanism_cr_demo.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-02-22 14:41:24 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-02-22 14:41:24 +0000
commit5b70262f2421af39e76b29b57fef44375ea44c9b (patch)
treec21c26b0329a000a905ca70e59518d45a3b9e85a /src/rabbit_auth_mechanism_cr_demo.erl
parent587dc8810fc2cc68572dafc53024c9f267b0ebe7 (diff)
downloadrabbitmq-server-5b70262f2421af39e76b29b57fef44375ea44c9b.tar.gz
Revert d3fd719c5287 (Remove should_offer/1).bug23826
Diffstat (limited to 'src/rabbit_auth_mechanism_cr_demo.erl')
-rw-r--r--src/rabbit_auth_mechanism_cr_demo.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_auth_mechanism_cr_demo.erl b/src/rabbit_auth_mechanism_cr_demo.erl
index 7fd20f8b..77aa34ea 100644
--- a/src/rabbit_auth_mechanism_cr_demo.erl
+++ b/src/rabbit_auth_mechanism_cr_demo.erl
@@ -19,7 +19,7 @@
-behaviour(rabbit_auth_mechanism).
--export([description/0, init/1, handle_response/2]).
+-export([description/0, should_offer/1, init/1, handle_response/2]).
-include("rabbit_auth_mechanism_spec.hrl").
@@ -43,6 +43,9 @@ description() ->
{description, <<"RabbitMQ Demo challenge-response authentication "
"mechanism">>}].
+should_offer(_Sock) ->
+ true.
+
init(_Sock) ->
#state{}.