@@ -443,13 +443,13 @@ stop_and_halt() ->
443443start_apps (Apps ) ->
444444 app_utils :load_applications (Apps ),
445445
446- DecoderConfig = case application :get_env (rabbit , decoder_config ) of
446+ ConfigEntryDecoder = case application :get_env (rabbit , config_entry_decoder ) of
447447 undefined ->
448448 [];
449449 {ok , Val } ->
450450 Val
451451 end ,
452- PassPhrase = case proplists :get_value (passphrase , DecoderConfig ) of
452+ PassPhrase = case proplists :get_value (passphrase , ConfigEntryDecoder ) of
453453 prompt ->
454454 IoDevice = get_input_iodevice (),
455455 io :setopts (IoDevice , [{echo , false }]),
@@ -467,9 +467,9 @@ start_apps(Apps) ->
467467 PP
468468 end ,
469469 Algo = {
470- proplists :get_value (cipher , DecoderConfig , rabbit_pbe :default_cipher ()),
471- proplists :get_value (hash , DecoderConfig , rabbit_pbe :default_hash ()),
472- proplists :get_value (iterations , DecoderConfig , rabbit_pbe :default_iterations ()),
470+ proplists :get_value (cipher , ConfigEntryDecoder , rabbit_pbe :default_cipher ()),
471+ proplists :get_value (hash , ConfigEntryDecoder , rabbit_pbe :default_hash ()),
472+ proplists :get_value (iterations , ConfigEntryDecoder , rabbit_pbe :default_iterations ()),
473473 PassPhrase
474474 },
475475 decrypt_config (Apps , Algo ),
@@ -527,16 +527,16 @@ decrypt_app(App, [{Key, Value}|Tail], Algo) ->
527527 end
528528 end
529529 catch
530- exit :{bad_configuration , decoder_config } ->
531- exit ({bad_configuration , decoder_config });
530+ exit :{bad_configuration , config_entry_decoder } ->
531+ exit ({bad_configuration , config_entry_decoder });
532532 _ :Msg ->
533533 rabbit_log :info (" Error while decrypting key '~p '. Please check encrypted value, passphrase, and encryption configuration~n " , [Key ]),
534534 exit ({decryption_error , {key , Key }, Msg })
535535 end ,
536536 decrypt_app (App , Tail , Algo ).
537537
538538decrypt ({encrypted , _ }, {_ , _ , _ , undefined }) ->
539- exit ({bad_configuration , decoder_config });
539+ exit ({bad_configuration , config_entry_decoder });
540540decrypt ({encrypted , EncValue }, {Cipher , Hash , Iterations , Password }) ->
541541 rabbit_pbe :decrypt_term (Cipher , Hash , Iterations , Password , EncValue );
542542decrypt (List , Algo ) when is_list (List ) ->
0 commit comments