1
1

client: Add example code for ssh_get_openssh_version().

BUG: https://red.libssh.org/issues/120
Этот коммит содержится в:
Andreas Schneider 2013-09-16 09:11:03 +02:00
родитель 3e07359a35
Коммит 8823dee51a

Просмотреть файл

@ -579,6 +579,14 @@ char *ssh_get_issue_banner(ssh_session session) {
* @param[in] session The SSH session to use.
*
* @return The version number if available, 0 otherwise.
*
* @code
* int openssh = ssh_get_openssh_version();
*
* if (openssh == SSH_INT_VERSION(6, 1, 0)) {
* printf("Version match!\m");
* }
* @endcode
*/
int ssh_get_openssh_version(ssh_session session) {
if (session == NULL) {