From bd91a57f7aad0156302b3988babddff7dd9dc408 Mon Sep 17 00:00:00 2001 From: Paul Wilde <31094984+pswilde@users.noreply.github.com> Date: Sun, 24 Apr 2022 14:27:20 +0100 Subject: [PATCH 1/3] revert breaking change in session_last_error proc `errmsgLen` parameter was renamed `errmsgLene` (maybe by mistake) and the object type declaration was removed. This change reverts back so the parameter is named `errmsgLen` with a `ptr cint` type --- libssh2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssh2.nim b/libssh2.nim index 9914891..790bd02 100644 --- a/libssh2.nim +++ b/libssh2.nim @@ -558,7 +558,7 @@ proc session_init*(): Session = proc session_last_errno*(s: Session): cint {.ssh2.} -proc session_last_error*(s: Session, errormsg: ptr cstring, errmsgLene, wantBuf: int): cint {.ssh2.} +proc session_last_error*(s: Session, errormsg: ptr cstring, errmsgLen: ptr cint, wantBuf: int): cint {.ssh2.} proc session_method_pref*(s: Session, methodType: int, prefs: cstring): cint {.ssh2.} From e83edc48856cf2986616660d53e44bf21df630c1 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Sun, 24 Apr 2022 14:34:22 +0100 Subject: [PATCH 2/3] set scp_recv proc to return Channel --- libssh2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssh2.nim b/libssh2.nim index 790bd02..1abc6b0 100644 --- a/libssh2.nim +++ b/libssh2.nim @@ -509,7 +509,7 @@ proc publickey_remove*(p: PublicKey, name, blob: cstring, blobLen: int): cint {. proc publickey_shutdown*(p: PublicKey): cint {.ssh2.} -proc scp_recv*(s: Session, path: cstring, sb: Stat) {.ssh2.} +proc scp_recv*(s: Session, path: cstring, sb: Stat): Channel {.ssh2.} proc scp_send_ex*(s: Session, path: cstring, mode, size: int, mtime, atime: int64): Channel {.ssh2.} From ff899cde7cad7e53407729bfc215e5bd46c60e58 Mon Sep 17 00:00:00 2001 From: Paul Wilde <31094984+pswilde@users.noreply.github.com> Date: Sun, 24 Apr 2022 14:59:24 +0100 Subject: [PATCH 3/3] Update libssh2.nimble --- libssh2.nimble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssh2.nimble b/libssh2.nimble index 7ca738e..a2471a3 100644 --- a/libssh2.nimble +++ b/libssh2.nimble @@ -1,6 +1,6 @@ [Package] name = "libssh2" -version = "0.1.5" +version = "0.1.6" author = "Huy Doan" description = "Nim wrapper for libssh2" license = "MIT"