|
1 | 1 | # This file is part of ssh2-python.
|
2 |
| -# Copyright (C) 2017-2020 Panos Kittenis |
3 |
| -# |
| 2 | +# Copyright (C) 2017 Panos Kittenis |
| 3 | + |
4 | 4 | # This library is free software; you can redistribute it and/or
|
5 | 5 | # modify it under the terms of the GNU Lesser General Public
|
6 | 6 | # License as published by the Free Software Foundation, version 2.1.
|
7 |
| -# |
| 7 | + |
8 | 8 | # This library is distributed in the hope that it will be useful,
|
9 | 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 | 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11 | 11 | # Lesser General Public License for more details.
|
12 |
| -# |
| 12 | + |
13 | 13 | # You should have received a copy of the GNU Lesser General Public
|
14 | 14 | # License along with this library; if not, write to the Free Software
|
15 | 15 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
@@ -39,10 +39,37 @@ cdef extern from "libssh2.h" nogil:
|
39 | 39 | LIBSSH2_HOSTKEY_TYPE_UNKNOWN
|
40 | 40 | LIBSSH2_HOSTKEY_TYPE_RSA
|
41 | 41 | LIBSSH2_HOSTKEY_TYPE_DSS
|
| 42 | + LIBSSH2_HOSTKEY_TYPE_ECDSA_256 |
| 43 | + LIBSSH2_HOSTKEY_TYPE_ECDSA_384 |
| 44 | + LIBSSH2_HOSTKEY_TYPE_ECDSA_521 |
| 45 | + LIBSSH2_HOSTKEY_TYPE_ED25519 |
| 46 | + enum: |
| 47 | + LIBSSH2_CALLBACK_IGNORE |
| 48 | + LIBSSH2_CALLBACK_DEBUG |
| 49 | + LIBSSH2_CALLBACK_DISCONNECT |
| 50 | + LIBSSH2_CALLBACK_MACERROR |
| 51 | + LIBSSH2_CALLBACK_X11 |
| 52 | + LIBSSH2_CALLBACK_RECV |
| 53 | + LIBSSH2_CALLBACK_SEND |
42 | 54 | IF EMBEDDED_LIB:
|
43 | 55 | enum:
|
44 | 56 | LIBSSH2_HOSTKEY_HASH_SHA256
|
45 | 57 |
|
| 58 | + enum: |
| 59 | + LIBSSH2_METHOD_KEX |
| 60 | + LIBSSH2_METHOD_HOSTKEY |
| 61 | + LIBSSH2_METHOD_CRYPT_CS |
| 62 | + LIBSSH2_METHOD_CRYPT_SC |
| 63 | + LIBSSH2_METHOD_MAC_CS |
| 64 | + LIBSSH2_METHOD_MAC_SC |
| 65 | + LIBSSH2_METHOD_COMP_CS |
| 66 | + LIBSSH2_METHOD_COMP_SC |
| 67 | + LIBSSH2_METHOD_LANG_CS |
| 68 | + LIBSSH2_METHOD_LANG_SC |
| 69 | + enum: |
| 70 | + LIBSSH2_FLAG_SIGPIPE |
| 71 | + LIBSSH2_FLAG_COMPRESS |
| 72 | + |
46 | 73 | # ctypedef libssh2_uint64_t libssh2_struct_stat_size
|
47 | 74 | ctypedef struct libssh2_struct_stat:
|
48 | 75 | dev_t st_dev
|
@@ -422,6 +449,10 @@ cdef extern from "libssh2.h" nogil:
|
422 | 449 | LIBSSH2_KNOWNHOST_KEY_RSA1
|
423 | 450 | LIBSSH2_KNOWNHOST_KEY_SSHRSA
|
424 | 451 | LIBSSH2_KNOWNHOST_KEY_SSHDSS
|
| 452 | + LIBSSH2_KNOWNHOST_KEY_ECDSA_256 |
| 453 | + LIBSSH2_KNOWNHOST_KEY_ECDSA_384 |
| 454 | + LIBSSH2_KNOWNHOST_KEY_ECDSA_521 |
| 455 | + LIBSSH2_KNOWNHOST_KEY_ED25519 |
425 | 456 | IF EMBEDDED_LIB:
|
426 | 457 | enum:
|
427 | 458 | LIBSSH2_KNOWNHOST_KEY_UNKNOWN
|
@@ -457,8 +488,5 @@ cdef extern from "libssh2.h" nogil:
|
457 | 488 | int libssh2_trace_sethandler(LIBSSH2_SESSION *session,
|
458 | 489 | void* context,
|
459 | 490 | libssh2_trace_handler_func callback)
|
460 |
| - const char *libssh2_agent_get_identity_path(LIBSSH2_AGENT *agent) |
461 |
| - void libssh2_agent_set_identity_path(LIBSSH2_AGENT *agent, |
462 |
| - const char *path) |
463 | 491 | IF HAVE_AGENT_FWD:
|
464 | 492 | int libssh2_channel_request_auth_agent(LIBSSH2_CHANNEL *channel)
|
0 commit comments