mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
pki: Discourage comparing private keys
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Pavol Žáčik <pzacik@redhat.com>
This commit is contained in:
@@ -834,6 +834,10 @@ int ssh_key_is_private(const ssh_key k) {
|
||||
/**
|
||||
* @brief Compare keys if they are equal.
|
||||
*
|
||||
* Note that comparing private keys is almost never needed. The private key
|
||||
* is cryptographically bound to the public key and comparing public keys should
|
||||
* always be preferred.
|
||||
*
|
||||
* @param[in] k1 The first key to compare.
|
||||
*
|
||||
* @param[in] k2 The second key to compare.
|
||||
|
||||
Reference in New Issue
Block a user