@c -*-texinfo-*-
@c This file is part of Guile-SSH Reference Manual.
@c Copyright (C) 2014-2022 Artyom V. Poptsov
@c See the file guile-ssh.texi for copying conditions.

@node Version
@section Version

@cindex versions

The @code{(ssh version)} module provides functions that is used for
getting information about current versions.

@deffn {Scheme Procedure} get-libssh-version
Get version of the libssh.  Returns libssh version as a string in the
follwing format:

@example
<version> ::= <major> "." <minor> "." <micro>
@end example

For example, @samp{0.5.2}.
@end deffn

@deffn {Scheme Procedure} %get-libssh-version
Low-level procedure that returns a version string in libssh format,
eg. "0.6.3/openssl/zlib".
@end deffn

@deffn {Scheme Procedure} get-crypto-library
Get cryptographic library name with which libssh was compiled.  Possible
values are: @code{'openssl}, @code{'gnutls}.
@end deffn

@deffn {Scheme Procedure} zlib-support?
Return @code{#t} if libssh was compiled wit zlib support, @code{#f} otherwise.
@end deffn

@deffn {Scheme Procedure} dsa-support?
Return @code{#t} if Guile-SSH was compiled with DSA public key algorithm
support, @code{#f} otherwise.
@end deffn

@deffn {Scheme Procedure} get-library-version
Get version of the Guile-SSH.
@end deffn

@c Local Variables:
@c TeX-master: "guile-ssh.texi"
@c End:
