summaryrefslogtreecommitdiff
path: root/p11p-daemon/src/p11p_config.erl
diff options
context:
space:
mode:
Diffstat (limited to 'p11p-daemon/src/p11p_config.erl')
-rw-r--r--p11p-daemon/src/p11p_config.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/p11p-daemon/src/p11p_config.erl b/p11p-daemon/src/p11p_config.erl
index 9c7749c..330c490 100644
--- a/p11p-daemon/src/p11p_config.erl
+++ b/p11p-daemon/src/p11p_config.erl
@@ -9,7 +9,7 @@
%%-export([config/0]).
-export([nameof/1]).
-export([tokens/0]).
--export([remotebin_path/0, modules_for_token/1, module_path/1, module_env/1,
+-export([proxyapp_bin_path/0, modules_for_token/1, module_path/1, module_env/1,
token_mode/1]).
-export_type([token_mode_t/0]).
@@ -36,7 +36,7 @@
%% Genserver state.
-record(state, {
- remotebin_path :: string(),
+ proxyapp_bin_path :: string(),
tokens :: #{string() => token()}
}).
@@ -48,8 +48,8 @@ start_link() ->
%% config() ->
%% gen_server:call(?MODULE, config).
-remotebin_path() ->
- gen_server:call(?MODULE, remotebin_path).
+proxyapp_bin_path() ->
+ gen_server:call(?MODULE, proxyapp_bin_path).
-spec tokens() -> [token()].
tokens() ->
@@ -86,7 +86,7 @@ init(_Args) ->
%% handle_call(config, _From, State) ->
%% {reply, State, State};
-handle_call(remotebin_path, _From, #state{remotebin_path = Path} = State) ->
+handle_call(proxyapp_bin_path, _From, #state{proxyapp_bin_path = Path} = State) ->
{reply, Path, State};
handle_call(tokens, _From, #state{tokens = Tokens} = State) ->
{reply, maps:values(Tokens), State};
@@ -119,8 +119,8 @@ code_change(_OldVersion, State, _Extra) ->
init_state() ->
#state {
- remotebin_path =
- application:get_env(p11p, remotebin_path,
+ proxyapp_bin_path =
+ application:get_env(p11p, proxyapp_bin_path,
"/usr/local/libexec/p11-kit/p11-kit-remote"),
tokens = conf_tokens(application:get_env(p11p, groups, []))
}.