Subject: libssh2 general question

libssh2 general question

From: Alan Ong <>
Date: Thu, 7 Oct 2010 17:44:17 +0800


I am currently using libssh2 to create a SFTP client that uses ssh2
protocol, SHA-1, and aest128-ctr. Based on my research, libssh2
chooses the "best" mutually supported algorithm
( for
cipher, so does that mean that if the SFTP server uses aes128-ctr
cipher, then libssh2 automatically chooses aes-128-ctr as default

Another question, how do i set libssh2 to use hmac-sha1? I have browse
the API document, and I have not found a function that could set the
mac hashing to hmac-sha1.

Thank you for your time.
Received on 2010-10-07