summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 9624aca184..1f0df1ad06 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -443,13 +443,13 @@ stop_and_halt() ->
start_apps(Apps) ->
app_utils:load_applications(Apps),
- DecoderConfig = case application:get_env(rabbit, decoder_config) of
+ ConfigEntryDecoder = case application:get_env(rabbit, config_entry_decoder) of
undefined ->
[];
{ok, Val} ->
Val
end,
- PassPhrase = case proplists:get_value(passphrase, DecoderConfig) of
+ PassPhrase = case proplists:get_value(passphrase, ConfigEntryDecoder) of
prompt ->
IoDevice = get_input_iodevice(),
io:setopts(IoDevice, [{echo, false}]),
@@ -467,9 +467,9 @@ start_apps(Apps) ->
PP
end,
Algo = {
- proplists:get_value(cipher, DecoderConfig, rabbit_pbe:default_cipher()),
- proplists:get_value(hash, DecoderConfig, rabbit_pbe:default_hash()),
- proplists:get_value(iterations, DecoderConfig, rabbit_pbe:default_iterations()),
+ proplists:get_value(cipher, ConfigEntryDecoder, rabbit_pbe:default_cipher()),
+ proplists:get_value(hash, ConfigEntryDecoder, rabbit_pbe:default_hash()),
+ proplists:get_value(iterations, ConfigEntryDecoder, rabbit_pbe:default_iterations()),
PassPhrase
},
decrypt_config(Apps, Algo),
@@ -527,8 +527,8 @@ decrypt_app(App, [{Key, Value}|Tail], Algo) ->
end
end
catch
- exit:{bad_configuration, decoder_config} ->
- exit({bad_configuration, decoder_config});
+ exit:{bad_configuration, config_entry_decoder} ->
+ exit({bad_configuration, config_entry_decoder});
_:Msg ->
rabbit_log:info("Error while decrypting key '~p'. Please check encrypted value, passphrase, and encryption configuration~n", [Key]),
exit({decryption_error, {key, Key}, Msg})
@@ -536,7 +536,7 @@ decrypt_app(App, [{Key, Value}|Tail], Algo) ->
decrypt_app(App, Tail, Algo).
decrypt({encrypted, _}, {_, _, _, undefined}) ->
- exit({bad_configuration, decoder_config});
+ exit({bad_configuration, config_entry_decoder});
decrypt({encrypted, EncValue}, {Cipher, Hash, Iterations, Password}) ->
rabbit_pbe:decrypt_term(Cipher, Hash, Iterations, Password, EncValue);
decrypt(List, Algo) when is_list(List) ->