1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

docs: update list of key types where necessary

Closes #2599
This commit is contained in:
Viktor Szakats
2026-09-11 18:30:54 +02:00
parent bb8e0957b8
commit 65a9333204
3 changed files with 11 additions and 5 deletions

View File

@@ -62,8 +62,10 @@ The key is encoded using one of the following encodings:
LIBSSH2_KNOWNHOST_KEYENC_RAW or LIBSSH2_KNOWNHOST_KEYENC_BASE64.
The key is using one of these algorithms:
LIBSSH2_KNOWNHOST_KEY_RSA1, LIBSSH2_KNOWNHOST_KEY_SSHRSA or
LIBSSH2_KNOWNHOST_KEY_SSHDSS (deprecated).
LIBSSH2_KNOWNHOST_KEY_RSA1, LIBSSH2_KNOWNHOST_KEY_SSHRSA,
LIBSSH2_KNOWNHOST_KEY_SSHDSS (deprecated), LIBSSH2_KNOWNHOST_KEY_ECDSA_256,
LIBSSH2_KNOWNHOST_KEY_ECDSA_384, LIBSSH2_KNOWNHOST_KEY_ECDSA_521 or
LIBSSH2_KNOWNHOST_KEY_ED25519.
*store* should point to a pointer that gets filled in to point to the
known host data after the addition. NULL can be passed if you do not care about

View File

@@ -66,8 +66,10 @@ The key is encoded using one of the following encodings:
LIBSSH2_KNOWNHOST_KEYENC_RAW or LIBSSH2_KNOWNHOST_KEYENC_BASE64.
The key is using one of these algorithms:
LIBSSH2_KNOWNHOST_KEY_RSA1, LIBSSH2_KNOWNHOST_KEY_SSHRSA or
LIBSSH2_KNOWNHOST_KEY_SSHDSS (deprecated).
LIBSSH2_KNOWNHOST_KEY_RSA1, LIBSSH2_KNOWNHOST_KEY_SSHRSA,
LIBSSH2_KNOWNHOST_KEY_SSHDSS (deprecated), LIBSSH2_KNOWNHOST_KEY_ECDSA_256,
LIBSSH2_KNOWNHOST_KEY_ECDSA_384, LIBSSH2_KNOWNHOST_KEY_ECDSA_521 or
LIBSSH2_KNOWNHOST_KEY_ED25519.
*store* should point to a pointer that gets filled in to point to the
known host data after the addition. NULL can be passed if you do not care about

View File

@@ -28,7 +28,9 @@ Returns a pointer to the current host key, the value *len* points to
gets the length of the key.
The value *type* points to the type of hostkey which is one of:
LIBSSH2_HOSTKEY_TYPE_RSA, LIBSSH2_HOSTKEY_TYPE_DSS (deprecated), or
LIBSSH2_HOSTKEY_TYPE_RSA, LIBSSH2_HOSTKEY_TYPE_DSS (deprecated),
LIBSSH2_HOSTKEY_TYPE_ECDSA_256, LIBSSH2_HOSTKEY_TYPE_ECDSA_384,
LIBSSH2_HOSTKEY_TYPE_ECDSA_521, LIBSSH2_HOSTKEY_TYPE_ED25519 or
LIBSSH2_HOSTKEY_TYPE_UNKNOWN.
# RETURN VALUE