summaryrefslogtreecommitdiff
path: root/src/rabbit_auth_mechanism.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.erl
parent587dc8810fc2cc68572dafc53024c9f267b0ebe7 (diff)
downloadrabbitmq-server-5b70262f2421af39e76b29b57fef44375ea44c9b.tar.gz
Revert d3fd719c5287 (Remove should_offer/1).bug23826
Diffstat (limited to 'src/rabbit_auth_mechanism.erl')
-rw-r--r--src/rabbit_auth_mechanism.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_auth_mechanism.erl b/src/rabbit_auth_mechanism.erl
index 1d14f9f0..897199ee 100644
--- a/src/rabbit_auth_mechanism.erl
+++ b/src/rabbit_auth_mechanism.erl
@@ -23,6 +23,10 @@ behaviour_info(callbacks) ->
%% A description.
{description, 0},
+ %% If this mechanism is enabled, should it be offered for a given socket?
+ %% (primarily so EXTERNAL can be SSL-only)
+ {should_offer, 1},
+
%% Called before authentication starts. Should create a state
%% object to be passed through all the stages of authentication.
{init, 1},