diff options
author | Raimo Niskanen <[email protected]> | 2018-06-11 09:25:18 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-06-11 09:25:18 +0200 |
commit | 46a07a914f049748e03ed78769ba4310753322e0 (patch) | |
tree | 0f584834907e27bce18b2e9a2f0ca55e580ebcea /lib/kernel/src/net_kernel.erl | |
parent | cabbb94eab4d94f3c924f8854e3f030d7ceca9cc (diff) | |
parent | 67a552d897291508a37269b1c0b9909f42dcf325 (diff) | |
download | otp-46a07a914f049748e03ed78769ba4310753322e0.tar.gz otp-46a07a914f049748e03ed78769ba4310753322e0.tar.bz2 otp-46a07a914f049748e03ed78769ba4310753322e0.zip |
Merge branch 'raimo/better-TLS-distribution/OTP-15058'
* raimo/better-TLS-distribution/OTP-15058:
Test nodename whitelist
Use public_key to verify client hostname
Diffstat (limited to 'lib/kernel/src/net_kernel.erl')
-rw-r--r-- | lib/kernel/src/net_kernel.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index 669adefdf8..c4e1a0ce1e 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -53,7 +53,7 @@ %% Documented API functions. --export([allow/1, +-export([allow/1, allowed/0, connect_node/1, monitor_nodes/1, monitor_nodes/2, @@ -171,6 +171,8 @@ kernel_apply(M,F,A) -> request({apply,M,F,A}). Nodes :: [node()]. allow(Nodes) -> request({allow, Nodes}). +allowed() -> request(allowed). + longnames() -> request(longnames). -spec stop() -> ok | {error, Reason} when @@ -528,6 +530,9 @@ handle_call({allow, Nodes}, From, State) -> async_reply({reply,error,State}, From) end; +handle_call(allowed, From, #state{allowed = Allowed} = State) -> + async_reply({reply,{ok,Allowed},State}, From); + %% %% authentication, used by auth. Simply works as this: %% if the message comes through, the other node IS authorized. |