From c57c9dc983424e15c9f499ff958d7e6ff5827e7b Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Wed, 8 Nov 2017 12:20:33 +0100 Subject: ssh: Update ssh_{server|client}_key doc to what it should have been --- lib/ssh/doc/src/ssh_client_key_api.xml | 33 ++++++++++++++++++++------------- lib/ssh/doc/src/ssh_server_key_api.xml | 23 +++++++++++++++-------- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/lib/ssh/doc/src/ssh_client_key_api.xml b/lib/ssh/doc/src/ssh_client_key_api.xml index a1cd9d4b02..98a1676ca4 100644 --- a/lib/ssh/doc/src/ssh_client_key_api.xml +++ b/lib/ssh/doc/src/ssh_client_key_api.xml @@ -56,11 +56,17 @@ string() =

[byte()]

public_key() = -

#'RSAPublicKey'{}| {integer(), #'Dss-Parms'{}}| term()

+

#'RSAPublicKey'{} + | {integer(),#'Dss-Parms'{}} + | {#'ECPoint'{},{namedCurve,Curve::string()}}

private_key() = -

#'RSAPrivateKey'{} | #'DSAPrivateKey'{} | term()

+

#'RSAPrivateKey'{} + | #'DSAPrivateKey'{} + | #'ECPrivateKey'{}

public_key_algorithm() = -

'ssh-rsa'| 'ssh-dss' | atom()

+

'ssh-rsa' | 'ssh-dss' + | 'rsa-sha2-256' | 'rsa-sha2-384' | 'rsa-sha2-512' + | 'ecdsa-sha2-nistp256' | 'ecdsa-sha2-nistp384' | 'ecdsa-sha2-nistp521'

@@ -73,10 +79,11 @@ Description of the host that owns the PublicKey. Key = public_key() - Normally an RSA or DSA public key, but handling of other public keys can be added. + Normally an RSA, DSA or ECDSA public key, but handling of other public keys can be added. ConnectOptions = proplists:proplist() - Options provided to ssh:connect/[3,4] + Options provided to ssh:connect/[3,4]. The option list given in + the key_cb option is available with the key key_cb_private. Reason = term(). @@ -89,17 +96,17 @@ Checks if a host key is trusted. Key = public_key() - Normally an RSA or DSA public key, but handling of other public keys can be added. + Normally an RSA, DSA or ECDSA public key, but handling of other public keys can be added. Host = string() Description of the host. Algorithm = public_key_algorithm() - Host key algorithm. Is to support 'ssh-rsa'| 'ssh-dss', but more algorithms - can be handled. + Host key algorithm. ConnectOptions = proplists:proplist() - Options provided to ssh:connect/[3,4]. + Options provided to ssh:connect/[3,4]. The option list given in + the key_cb option is available with the key key_cb_private. Result = boolean() @@ -110,15 +117,15 @@ Module:user_key(Algorithm, ConnectOptions) -> - {ok, PrivateKey} | {error, Reason} + {ok, PrivateKey} | {error, Reason} Fetches the users public key matching the Algorithm. Algorithm = public_key_algorithm() - Host key algorithm. Is to support 'ssh-rsa'| 'ssh-dss' but more algorithms - can be handled. + Host key algorithm. ConnectOptions = proplists:proplist() - Options provided to ssh:connect/[3,4] + Options provided to ssh:connect/[3,4]. The option list given in + the key_cb option is available with the key key_cb_private. PrivateKey = private_key() Private key of the user matching the Algorithm. diff --git a/lib/ssh/doc/src/ssh_server_key_api.xml b/lib/ssh/doc/src/ssh_server_key_api.xml index a0694ca8d9..0d7b079e19 100644 --- a/lib/ssh/doc/src/ssh_server_key_api.xml +++ b/lib/ssh/doc/src/ssh_server_key_api.xml @@ -57,11 +57,17 @@ string() =

[byte()]

public_key() = -

#'RSAPublicKey'{}| {integer(), #'Dss-Parms'{}}| term()

+

#'RSAPublicKey'{} + | {integer(),#'Dss-Parms'{}} + | {#'ECPoint'{},{namedCurve,Curve::string()}}

private_key() = -

#'RSAPrivateKey'{} | #'DSAPrivateKey'{} | term()

+

#'RSAPrivateKey'{} + | #'DSAPrivateKey'{} + | #'ECPrivateKey'{}

public_key_algorithm() = -

'ssh-rsa'| 'ssh-dss' | atom()

+

'ssh-rsa' | 'ssh-dss' + | 'rsa-sha2-256' | 'rsa-sha2-384' | 'rsa-sha2-512' + | 'ecdsa-sha2-nistp256' | 'ecdsa-sha2-nistp384' | 'ecdsa-sha2-nistp521'

@@ -72,10 +78,10 @@ Fetches the host’s private key. Algorithm = public_key_algorithm() - Host key algorithm. Is to support 'ssh-rsa' | 'ssh-dss', but more algorithms - can be handled. + Host key algorithm. DaemonOptions = proplists:proplist() - Options provided to ssh:daemon/[2,3]. + Options provided to ssh:daemon/[2,3]. The option list given in + the key_cb option is available with the key key_cb_private. Key = private_key() Private key of the host matching the Algorithm. Reason = term() @@ -90,11 +96,12 @@ Checks if the user key is authorized. Key = public_key() - Normally an RSA or DSA public key, but handling of other public keys can be added + Normally an RSA, DSA or ECDSA public key, but handling of other public keys can be added User = string() User owning the public key. DaemonOptions = proplists:proplist() - Options provided to ssh:daemon/[2,3]. + Options provided to ssh:daemon/[2,3]. The option list given in + the key_cb option is available with the key key_cb_private. Result = boolean() -- cgit v1.2.3