mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
dh: Rename ssh_get_publickey() to ssh_get_server_publickey()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
10
src/dh.c
10
src/dh.c
@@ -961,7 +961,7 @@ void ssh_clean_pubkey_hash(unsigned char **hash) {
|
||||
*
|
||||
* @see ssh_key_free()
|
||||
*/
|
||||
int ssh_get_publickey(ssh_session session, ssh_key *key)
|
||||
int ssh_get_server_publickey(ssh_session session, ssh_key *key)
|
||||
{
|
||||
if (session==NULL ||
|
||||
session->current_crypto ==NULL ||
|
||||
@@ -973,6 +973,14 @@ int ssh_get_publickey(ssh_session session, ssh_key *key)
|
||||
key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use ssh_get_server_publickey()
|
||||
*/
|
||||
int ssh_get_publickey(ssh_session session, ssh_key *key)
|
||||
{
|
||||
return ssh_get_server_publickey(session, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Allocates a buffer with the hash of the public key.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user