Skip to content

Commit

Permalink
make session_handshake available for macos by using posix switc…
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Apr 30, 2024
1 parent f1d5bf0 commit 2ca9128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions libssh2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,10 @@ proc session_get_blocking*(s: Session): cint {.ssh2.}

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

when defined(linux):

when defined(posix):
proc session_handshake*(s: Session, fd: posix.SocketHandle): cint {.ssh2.}

when defined(windows):

proc session_handshake*(s: Session, fd: winlean.SocketHandle): cint {.ssh2.}

proc session_hostkey*(s: Session, length, typ: var int): cstring {.ssh2.}
Expand Down
2 changes: 1 addition & 1 deletion libssh2.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Package]
name = "libssh2"
version = "0.1.7"
version = "0.1.8"
author = "Huy Doan"
description = "Nim wrapper for libssh2"
license = "MIT"
Expand Down

0 comments on commit 2ca9128

Please sign in to comment.