Skip to content

Commit c6a043a

Browse files
author
Pan
committed
Added ssh agent forwarding implementation.
1 parent 5878ef0 commit c6a043a

File tree

4 files changed

+412
-286
lines changed

4 files changed

+412
-286
lines changed

ssh2/c_ssh2.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ cdef extern from "libssh2.h" nogil:
3939
LIBSSH2_HOSTKEY_TYPE_UNKNOWN
4040
LIBSSH2_HOSTKEY_TYPE_RSA
4141
LIBSSH2_HOSTKEY_TYPE_DSS
42+
IF EMBEDDED_LIB:
43+
enum:
44+
LIBSSH2_HOSTKEY_HASH_SHA256
4245

4346
# ctypedef libssh2_uint64_t libssh2_struct_stat_size
4447
ctypedef struct libssh2_struct_stat:
@@ -440,3 +443,5 @@ cdef extern from "libssh2.h" nogil:
440443
int libssh2_trace_sethandler(LIBSSH2_SESSION *session,
441444
void* context,
442445
libssh2_trace_handler_func callback)
446+
IF EMBEDDED_LIB:
447+
int libssh2_channel_request_auth_agent(LIBSSH2_CHANNEL *channel)

0 commit comments

Comments
 (0)