Skip to content

Commit

Permalink
Sha256 (#138)
Browse files Browse the repository at this point in the history
* Added known host keys attributes
* Added host key type and host key hash attributes
* Updated readme, changelog
* Removed travis cfg
  • Loading branch information
pkittenis authored Dec 6, 2020
1 parent 1a587eb commit 564d438
Show file tree
Hide file tree
Showing 8 changed files with 1,336 additions and 1,236 deletions.
84 changes: 0 additions & 84 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Changes
-------

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


0.23.0
Expand Down
26 changes: 23 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ ssh2-python

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

.. image:: https://img.shields.io/badge/License-LGPL%20v2-blue.svg
.. image:: https://img.shields.io/badge/License-LGPL%20v2.1-blue.svg
:target: https://pypi.python.org/pypi/ssh2-python
:alt: License
.. image:: https://img.shields.io/pypi/v/ssh2-python.svg
:target: https://pypi.python.org/pypi/ssh2-python
:alt: Latest Version
.. image:: https://travis-ci.org/ParallelSSH/ssh2-python.svg?branch=master
:target: https://travis-ci.org/ParallelSSH/ssh2-python
.. image:: https://circleci.com/gh/ParallelSSH/ssh2-python/tree/master.svg?style=svg
:target: https://circleci.com/gh/ParallelSSH/ssh2-python
.. image:: https://ci.appveyor.com/api/projects/status/github/parallelssh/ssh2-python?svg=true&branch=master
:target: https://ci.appveyor.com/project/pkittenis/ssh2-python
.. image:: https://img.shields.io/pypi/wheel/ssh2-python.svg
Expand Down Expand Up @@ -38,6 +38,26 @@ For from source installation instructions, including building against system pro
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>`_.


Who Should Use This
___________________

Developers of bespoke SSH clients.


Who Should Not Use This
_______________________

Developers looking for ready made SSH clients.

This library is not an SSH client.

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.

This library provides bindings to libssh2 and its API closely matches libssh2.

If the examples seem long, this is not the right library. Use `parallel-ssh <https://github.com/ParallelSSH/parallel-ssh>`_.


API Feature Set
________________

Expand Down
8 changes: 8 additions & 0 deletions ssh2/c_ssh2.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ cdef extern from "libssh2.h" nogil:
IF EMBEDDED_LIB:
enum:
LIBSSH2_HOSTKEY_HASH_SHA256
LIBSSH2_HOSTKEY_TYPE_ECDSA_256
LIBSSH2_HOSTKEY_TYPE_ECDSA_384
LIBSSH2_HOSTKEY_TYPE_ECDSA_521
LIBSSH2_HOSTKEY_TYPE_ED25519

# ctypedef libssh2_uint64_t libssh2_struct_stat_size
ctypedef struct libssh2_struct_stat:
Expand Down Expand Up @@ -424,6 +428,10 @@ cdef extern from "libssh2.h" nogil:
LIBSSH2_KNOWNHOST_KEY_SSHDSS
IF EMBEDDED_LIB:
enum:
LIBSSH2_KNOWNHOST_KEY_ECDSA_256
LIBSSH2_KNOWNHOST_KEY_ECDSA_384
LIBSSH2_KNOWNHOST_KEY_ECDSA_521
LIBSSH2_KNOWNHOST_KEY_ED25519
LIBSSH2_KNOWNHOST_KEY_UNKNOWN

# Public Key API
Expand Down
Loading

0 comments on commit 564d438

Please sign in to comment.