aboutsummaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-07-24 10:13:51 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-07-24 10:13:51 +0300
commit052917961ae4052038a278fe643900630bdfc048 (patch)
tree56b77c6fcc78001b8c96139e81abb5ec91e15ce1 /src/extauth.erl
parentmod_stream_mgmt: Allow flexible timeout format (diff)
Add 'certauth' command to extauth port
Diffstat (limited to 'src/extauth.erl')
-rw-r--r--src/extauth.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index 9d9a59de2..cad8054c0 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -31,7 +31,7 @@
%% API
-export([start/1, stop/1, reload/1, start_link/2]).
-export([check_password/3, set_password/3, try_register/3, remove_user/2,
- remove_user/3, user_exists/2]).
+ remove_user/3, user_exists/2, check_certificate/3]).
-export([prog_name/1, pool_name/1, worker_name/2, pool_size/1]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
@@ -61,6 +61,9 @@ start_link(Name, Prog) ->
check_password(User, Server, Password) ->
call_port(Server, [<<"auth">>, User, Server, Password]).
+check_certificate(User, Server, Certificate) ->
+ call_port(Server, [<<"certauth">>, User, Server, Certificate]).
+
user_exists(User, Server) ->
call_port(Server, [<<"isuser">>, User, Server]).