Skip to content

Commit 5df37e1

Browse files
committed
Merge branch 'libssh2-1.7.0'
2 parents fc0203a + 23f47b0 commit 5df37e1

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

resources/darwin/libssh2.dylib

8.76 KB
Binary file not shown.

resources/linux-x86-64/libssh2.so

16.9 KB
Binary file not shown.

src/clj_libssh2/channel.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
(log/info "Opening a new channel to receive a file using SCP.")
151151
(let [fileinfo (Stat/newInstance)]
152152
{:channel (block-return session
153-
(libssh2-scp/recv (:session session) remote-path fileinfo))
153+
(libssh2-scp/recv2 (:session session) remote-path fileinfo))
154154
:fileinfo fileinfo}))
155155

156156
(defn open-scp-send

src/clj_libssh2/libssh2.clj

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
; prefix since we have real namespaces in Clojure. Other constants defined in
66
; libssh2.h are replicated here without alteration.
77

8-
(def VERSION "1.6.0")
8+
(def VERSION "1.7.0")
99
(def VERSION_MAJOR 1)
10-
(def VERSION_MINOR 6)
10+
(def VERSION_MINOR 7)
1111
(def VERSION_PATCH 0)
12-
(def VERSION_NUM 0x010600)
13-
(def SSH_BANNER "SSH-1.0-libssh2_1.6.0")
12+
(def VERSION_NUM 0x010700)
13+
(def SSH_BANNER "SSH-1.0-libssh2_1.7.0")
1414
(def SSH_DEFAULT_BANNER SSH_BANNER)
1515
(def SSH_DEFAULT_BANNER_WITH_CRLF (str SSH_DEFAULT_BANNER "\r\n"))
1616

src/clj_libssh2/libssh2/scp.clj

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@
44
(:require [net.n01se.clojure-jna :as jna])
55
(:import [com.sun.jna Pointer]))
66

7-
(def ^{:arglists '([session path sb])} recv
7+
(def ^{:arglists '([session path sb]) :deprecated "libssh2"} recv
88
"
99
LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session,
1010
const char *path,
1111
struct stat *sb);"
1212
(jna/to-fn Pointer ssh2/libssh2_scp_recv))
1313

14+
(def ^{:arglists '([session path sb])} recv2
15+
"
16+
LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session,
17+
const char *path,
18+
libssh2_struct_stat *sb);"
19+
(jna/to-fn Pointer ssh2/libssh2_scp_recv2))
20+
1421
(def ^{:arglists '([session path mode size mtime atime]) :deprecated "libssh2"} send-ex
1522
"
1623
LIBSSH2_CHANNEL *libssh2_scp_send_ex(LIBSSH2_SESSION *session,

test/clj_libssh2/test_libssh2.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
(deftest check-libssh2-version-is-ok
99
"This shoudln't change by surprise!"
10-
(is (= "1.6.0" (libssh2/version 0))))
10+
(is (= "1.7.0" (libssh2/version 0))))

0 commit comments

Comments
 (0)