Skip to content

Commit

Permalink
fix(ssh): Compatible with libssh2-1.9
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Nov 22, 2023
1 parent 45b5836 commit 50388e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ int luaopen_eco_core_ssh(lua_State *L)
lua_add_constant(L, "ERROR_KNOWN_HOSTS", LIBSSH2_ERROR_KNOWN_HOSTS);
lua_add_constant(L, "ERROR_CHANNEL_WINDOW_FULL", LIBSSH2_ERROR_CHANNEL_WINDOW_FULL);
lua_add_constant(L, "ERROR_KEYFILE_AUTH_FAILED", LIBSSH2_ERROR_KEYFILE_AUTH_FAILED);
#ifdef LIBSSH2_ERROR_RANDGEN
lua_add_constant(L, "ERROR_RANDGEN", LIBSSH2_ERROR_RANDGEN);
#endif
#ifdef LIBSSH2_ERROR_MISSING_USERAUTH_BANNER
lua_add_constant(L, "ERROR_MISSING_USERAUTH_BANNER", LIBSSH2_ERROR_MISSING_USERAUTH_BANNER);
#endif
Expand Down

0 comments on commit 50388e3

Please sign in to comment.