dh: Rename ssh_get_publickey() to ssh_get_server_publickey()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2016-05-02 06:27:40 +02:00
parent e37fd83254
commit bbd0522026
2 changed files with 11 additions and 2 deletions

View File

@@ -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.
*