From 4e894385dba69227fde6a5b402b169ec4621a356 Mon Sep 17 00:00:00 2001 From: Niclas Eklund Date: Mon, 20 Dec 2010 17:05:39 +0100 Subject: OTP-8987 In some cases SSH returned {error, normal} when a channel was terminated unexpectedly. This has now been changed to {error, channel_closed}. OTP-8986 It is now possible to use SSH to sign and verify binary data. --- lib/ssh/doc/src/ssh.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'lib/ssh/doc/src/ssh.xml') diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml index 71e6b2cd3d..2c5096a25f 100644 --- a/lib/ssh/doc/src/ssh.xml +++ b/lib/ssh/doc/src/ssh.xml @@ -282,6 +282,22 @@ + + sign_data(Data, Algorithm) -> Signature | {error, Reason} + + + Data = binary() + Algorithm = "ssh-rsa" + Signature = binary() + Reason = term() + + +

Signs the supplied binary using the SSH key. +

+
+
+ + start() -> start(Type) -> ok | {error, Reason} @@ -339,6 +355,22 @@ by the listener up and running.

+ + + verify_data(Data, Signature, Algorithm) -> ok | {error, Reason} + + + Data = binary() + Algorithm = "ssh-rsa" + Signature = binary() + Reason = term() + + +

Verifies the supplied binary against the binary signature. +

+
+
+ -- cgit v1.2.3