mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
cleanup: use ssh_ prefix in the agent (non-static) functions
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -92,7 +92,7 @@ ssh_session ssh_new(void) {
|
||||
session->maxchannel = FIRST_CHANNEL;
|
||||
|
||||
#ifndef _WIN32
|
||||
session->agent = agent_new(session);
|
||||
session->agent = ssh_agent_new(session);
|
||||
if (session->agent == NULL) {
|
||||
goto err;
|
||||
}
|
||||
@@ -222,7 +222,7 @@ void ssh_free(ssh_session session) {
|
||||
crypto_free(session->next_crypto);
|
||||
|
||||
#ifndef _WIN32
|
||||
agent_free(session->agent);
|
||||
ssh_agent_free(session->agent);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
ssh_key_free(session->srv.dsa_key);
|
||||
|
||||
Reference in New Issue
Block a user