From e14b301be3b5593a13e666885ca795e6bee54b5b Mon Sep 17 00:00:00 2001
From: Vipin Nair
Date: Fri, 13 Nov 2015 18:51:03 +0530
Subject: Support SSH key callback module options
This patch allows extra callback options to be passed to the module
implementing the SSH callback module behaviour.
A module implementing the SSH key callback API is used to customize
the handling of public key. This patch allows extra callback options
to be passed to the module implementing the SSH callback module
behaviour.
The key_cb option has been changed:
{key_cb, atom()} -> {key_cb, key_cb()}
Where:
key_cb() :: atom() | {atom(), list()}
The callback options, if specified, is made available to the callback
module via the options passed to it under the key 'key_cb_private'.
More details and some backgorund is available here[1].
[1]: http://erlang.org/pipermail/erlang-patches/2015-November/004800.html
---
lib/ssh/doc/src/ssh.xml | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
(limited to 'lib/ssh/doc/src')
diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml
index 1e9acf4a99..18bced2d1d 100644
--- a/lib/ssh/doc/src/ssh.xml
+++ b/lib/ssh/doc/src/ssh.xml
@@ -85,6 +85,15 @@
atom() - Name of the Erlang module
implementing the subsystem using the ssh_channel behavior, see
ssh_channel(3)
+ key_cb() =
+ -
+
atom() | {atom(), list()}
+ atom() - Name of the erlang module implementing the behaviours
+ ssh_client_key_api or
+ ssh_client_key_api as the
+ case maybe.
+ list() - List of options that can be passed to the callback module.
+
channel_init_args() =
list()
@@ -272,11 +281,13 @@ kex is implicit but public_key is set explicitly.
password, if the password authentication method is
attempted.
-
+
-
-
Module implementing the behaviour
- ssh_client_key_api.
- Can be used to customize the handling of public keys.
+
Module implementing the behaviour ssh_client_key_api. Can be used to
+ customize the handling of public keys. If callback options are provided
+ along with the module name, they are made available to the callback
+ module via the options passed to it under the key 'key_cb_private'.
@@ -607,11 +618,13 @@ kex is implicit but public_key is set explicitly.
-
+
-
-
Module implementing the behaviour
- ssh_server_key_api.
- Can be used to customize the handling of public keys.
+
Module implementing the behaviour ssh_server_key_api. Can be used to
+ customize the handling of public keys. If callback options are provided
+ along with the module name, they are made available to the callback
+ module via the options passed to it under the key 'key_cb_private'.
--
cgit v1.2.3