summaryrefslogtreecommitdiff
path: root/doc/api-keys.texi
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2014-10-11 12:48:32 +0400
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2014-10-11 12:49:55 +0400
commit2545ae1311dd0fc5a32c0a2d3ced2a1bf56c3cff (patch)
tree84a9eae1a28d90ff5f5d99e441bda5dbeb79db07 /doc/api-keys.texi
parentssh/key-func.c: Use `_scm_from_ssh_key' (diff)
downloadguile-ssh-2545ae1311dd0fc5a32c0a2d3ced2a1bf56c3cff.tar.gz
ssh/key.scm (private-key-to-file): New procedure
* ssh/key-func.c (guile_ssh_private_key_to_file): New procedure. * ssh/key.scm (private-key-to-file): Export. * tests/key.scm ("private-key-to-file"): New TC. * doc/api-keys.texi (Keys): Add description of `private-key-to-file'. * NEWS: Update.
Diffstat (limited to 'doc/api-keys.texi')
-rw-r--r--doc/api-keys.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api-keys.texi b/doc/api-keys.texi
index a787fd8..124ea63 100644
--- a/doc/api-keys.texi
+++ b/doc/api-keys.texi
@@ -60,6 +60,11 @@ user will be asked for passphrase to decrypt the key.
Return a new Guile-SSH key of @code{#f} on error.
@end deffn
+@deffn {Scheme Procedure} private-key-to-file private-key file-name
+Export @var{private-key} to a PAM file @var{file-name} on a disk. Throw
+@code{guile-ssh-error} on error. Return value is undefined.
+@end deffn
+
@deffn {Scheme Procedure} private-key->public-key private-key
Get a public key from the @var{private-key}.
@end deffn