summaryrefslogtreecommitdiffhomepage
path: root/sites/www
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-04-27 21:08:30 -0400
committerJeff Forcier <jeff@bitprophet.org>2023-05-05 12:27:20 -0400
commit45621fe96644e4e15b421ef665be841ab324564e (patch)
treed48fb4fb93b74013d5695eb591f27f13484c8f66 /sites/www
parent162213fa1a4551bd955134c97ca5276a5f29e907 (diff)
Enhance PKey.from_path and test it better
Diffstat (limited to 'sites/www')
-rw-r--r--sites/www/changelog.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/sites/www/changelog.rst b/sites/www/changelog.rst
index b1de893e..43f81115 100644
--- a/sites/www/changelog.rst
+++ b/sites/www/changelog.rst
@@ -77,15 +77,16 @@ Changelog
`PKey.from_type_string <paramiko.pkey.PKey.from_type_string>` instead of
iterating key classes or using if/else cascades.
- As part of this change, `~paramiko.pkey.PKey` and friends grew an
+ `PKey.from_path <paramiko.pkey.PKey.from_path>` is also new, and offers a way
+ to load a file path without knowing *a priori* what type of key it is (thanks
+ to some handy methods within our cryptography dependency).
+
+ As part of these changes, `~paramiko.pkey.PKey` and friends grew an
`~paramiko.pkey.PKey.identifiers` classmethod; this is inspired by the
`~paramiko.ecdsakey.ECDSAKey.supported_key_format_identifiers` classmethod
(which now refers to the new method.) This also includes adding a ``.name``
attribute to most key classes (which will eventually replace ``.get_name()``.
- In addition, there is a new convenience top-level API member,
- ``paramiko.key_classes``, containing a list of all key classes.
-
- :feature:`-` `~paramiko.pkey.PKey` grew a new ``.algorithm_name`` property
which displays the key algorithm; this is typically derived from the value of
`~paramiko.pkey.PKey.get_name`. For example, ED25519 keys have a ``get_name``