From 121df67f1894fb06f12a1f60ce040b32c73628f6 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 30 Aug 2014 12:18:21 +0400 Subject: doc/api-keys.texi (Keys): Improve description of `public-key?' * doc/api-keys.texi (Keys): Make description of `public-key?' more accurate. * ssh/key-type.c (guile_ssh_is_public_key_p): Update docstring. --- doc/api-keys.texi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/api-keys.texi') diff --git a/doc/api-keys.texi b/doc/api-keys.texi index d757efc..b390279 100644 --- a/doc/api-keys.texi +++ b/doc/api-keys.texi @@ -18,8 +18,10 @@ Return @code{#t} if @var{x} is a Guile-SSH key, @code{#f} otherwise. @end deffn @deffn {Scheme Procedure} public-key? x -Return @code{#t} if @var{x} is a Guile-SSH public key, @code{#f} -otherwise. +Return @code{#t} if @var{x} is a Guile-SSH key and it @strong{contains} a +public key, @code{#f} otherwise. What it means is that the procedure will +return @code{#t} for a private key too (because the private key contains a +public key in some sense). @end deffn @deffn {Scheme Procedure} private-key? x -- cgit v1.2.3