aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/auth.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-06-09 11:45:00 +0300
committerBjörn Gustavsson <[email protected]>2010-06-09 12:14:28 +0200
commit1c511359ba2556fdf357d778d7e20b5468db97d8 (patch)
treee00f665da0943009c7216e969aed3cd163ce6fc9 /lib/kernel/src/auth.erl
parentcf0385b20b8c17220029c2419c7b97977375d86e (diff)
downloadotp-1c511359ba2556fdf357d778d7e20b5468db97d8.tar.gz
otp-1c511359ba2556fdf357d778d7e20b5468db97d8.tar.bz2
otp-1c511359ba2556fdf357d778d7e20b5468db97d8.zip
auth: Fix types and specs
Diffstat (limited to 'lib/kernel/src/auth.erl')
-rw-r--r--lib/kernel/src/auth.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/src/auth.erl b/lib/kernel/src/auth.erl
index 7fe30ae828..5c7fe2421d 100644
--- a/lib/kernel/src/auth.erl
+++ b/lib/kernel/src/auth.erl
@@ -50,6 +50,8 @@
%% Exported functions
%%----------------------------------------------------------------------
+-spec start_link() -> {'ok',pid()} | {'error', term()} | 'ignore'.
+
start_link() ->
gen_server:start_link({local, auth}, auth, [], []).
@@ -134,7 +136,9 @@ init([]) ->
%% The net kernel will let all message to the auth server
%% through as is
--type calls() :: 'echo' | 'sync_cookie' | {'set_cookie', node(), term()}.
+-type calls() :: 'echo' | 'sync_cookie'
+ | {'get_cookie', node()}
+ | {'set_cookie', node(), term()}.
-spec handle_call(calls(), {pid(), term()}, state()) ->
{'reply', 'hello' | 'true' | 'nocookie' | cookie(), state()}.