Skip to content

Commit 2ca9128

Browse files
committed
make session_handshake available for macos by using posix switch. refs ba0f3/ssh2.nim#19
1 parent f1d5bf0 commit 2ca9128

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libssh2.nim

+1-3
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,10 @@ proc session_get_blocking*(s: Session): cint {.ssh2.}
560560

561561
proc session_get_timeout*(s: Session): clong {.ssh2.}
562562

563-
when defined(linux):
564-
563+
when defined(posix):
565564
proc session_handshake*(s: Session, fd: posix.SocketHandle): cint {.ssh2.}
566565

567566
when defined(windows):
568-
569567
proc session_handshake*(s: Session, fd: winlean.SocketHandle): cint {.ssh2.}
570568

571569
proc session_hostkey*(s: Session, length, typ: var int): cstring {.ssh2.}

libssh2.nimble

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Package]
22
name = "libssh2"
3-
version = "0.1.7"
3+
version = "0.1.8"
44
author = "Huy Doan"
55
description = "Nim wrapper for libssh2"
66
license = "MIT"

0 commit comments

Comments
 (0)