Skip to content

Commit 564d438

Browse files
authored
Sha256 (#138)
* Added known host keys attributes * Added host key type and host key hash attributes * Updated readme, changelog * Removed travis cfg
1 parent 1a587eb commit 564d438

File tree

8 files changed

+1336
-1236
lines changed

8 files changed

+1336
-1236
lines changed

.travis.yml

-84
This file was deleted.

Changelog.rst

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Changes
88
-------
99

1010
* ``Session.forward_listen_ex`` now returns (``Listener``, ``bound_port``) tuple.
11+
* Added new in libssh2 1.9.0 host key and hash type attributes to ``ssh2.session``.
12+
* Added new in libssh2 1.9.0 known host key attributes to ``ssh2.knownhost``.
1113

1214

1315
0.23.0

README.rst

+23-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ ssh2-python
33

44
Super fast SSH2 protocol library. ``ssh2-python`` provides Python bindings for `libssh2`_.
55

6-
.. image:: https://img.shields.io/badge/License-LGPL%20v2-blue.svg
6+
.. image:: https://img.shields.io/badge/License-LGPL%20v2.1-blue.svg
77
:target: https://pypi.python.org/pypi/ssh2-python
88
:alt: License
99
.. image:: https://img.shields.io/pypi/v/ssh2-python.svg
1010
:target: https://pypi.python.org/pypi/ssh2-python
1111
:alt: Latest Version
12-
.. image:: https://travis-ci.org/ParallelSSH/ssh2-python.svg?branch=master
13-
:target: https://travis-ci.org/ParallelSSH/ssh2-python
12+
.. image:: https://circleci.com/gh/ParallelSSH/ssh2-python/tree/master.svg?style=svg
13+
:target: https://circleci.com/gh/ParallelSSH/ssh2-python
1414
.. image:: https://ci.appveyor.com/api/projects/status/github/parallelssh/ssh2-python?svg=true&branch=master
1515
:target: https://ci.appveyor.com/project/pkittenis/ssh2-python
1616
.. image:: https://img.shields.io/pypi/wheel/ssh2-python.svg
@@ -38,6 +38,26 @@ For from source installation instructions, including building against system pro
3838
For creating native system packages for Centos/RedHat, Ubuntu, Debian and Fedora, see `instructions in the documentation <http://ssh2-python.readthedocs.io/en/latest/installation.html#system-binary-packages>`_.
3939

4040

41+
Who Should Use This
42+
___________________
43+
44+
Developers of bespoke SSH clients.
45+
46+
47+
Who Should Not Use This
48+
_______________________
49+
50+
Developers looking for ready made SSH clients.
51+
52+
This library is not an SSH client.
53+
54+
Developers looking for high level easy to use clients based on this library should use `parallel-ssh <https://github.com/ParallelSSH/parallel-ssh>`_. It provides both `single <https://parallel-ssh.readthedocs.io/en/latest/native_single.html>`_ and `parallel <https://parallel-ssh.readthedocs.io/en/latest/native_parallel.html>`_ clients.
55+
56+
This library provides bindings to libssh2 and its API closely matches libssh2.
57+
58+
If the examples seem long, this is not the right library. Use `parallel-ssh <https://github.com/ParallelSSH/parallel-ssh>`_.
59+
60+
4161
API Feature Set
4262
________________
4363

ssh2/c_ssh2.pxd

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ cdef extern from "libssh2.h" nogil:
4242
IF EMBEDDED_LIB:
4343
enum:
4444
LIBSSH2_HOSTKEY_HASH_SHA256
45+
LIBSSH2_HOSTKEY_TYPE_ECDSA_256
46+
LIBSSH2_HOSTKEY_TYPE_ECDSA_384
47+
LIBSSH2_HOSTKEY_TYPE_ECDSA_521
48+
LIBSSH2_HOSTKEY_TYPE_ED25519
4549

4650
# ctypedef libssh2_uint64_t libssh2_struct_stat_size
4751
ctypedef struct libssh2_struct_stat:
@@ -424,6 +428,10 @@ cdef extern from "libssh2.h" nogil:
424428
LIBSSH2_KNOWNHOST_KEY_SSHDSS
425429
IF EMBEDDED_LIB:
426430
enum:
431+
LIBSSH2_KNOWNHOST_KEY_ECDSA_256
432+
LIBSSH2_KNOWNHOST_KEY_ECDSA_384
433+
LIBSSH2_KNOWNHOST_KEY_ECDSA_521
434+
LIBSSH2_KNOWNHOST_KEY_ED25519
427435
LIBSSH2_KNOWNHOST_KEY_UNKNOWN
428436

429437
# Public Key API

0 commit comments

Comments
 (0)