aboutsummaryrefslogtreecommitdiff
path: root/src/agent.c
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-09-16 22:13:09 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-01-19 11:31:07 +0100
commit77052d3a1e1c22e1882e7a12f63b4d705d81e2be (patch)
treea20f89cc6f56b7dc6d9d13d05b90fbe1d46f16df /src/agent.c
parent898be61fc6639dc180efbacb8a1f9bef6f9d17f3 (diff)
downloadlibssh-77052d3a1e1c22e1882e7a12f63b4d705d81e2be.tar.gz
libssh-77052d3a1e1c22e1882e7a12f63b4d705d81e2be.tar.xz
libssh-77052d3a1e1c22e1882e7a12f63b4d705d81e2be.zip
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>
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/agent.c b/src/agent.c
index e520773b..40fe334c 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -143,7 +143,7 @@ static size_t atomicio(struct ssh_agent_struct *agent, void *buf, size_t n, int
}
}
-ssh_agent agent_new(struct ssh_session_struct *session) {
+ssh_agent ssh_agent_new(struct ssh_session_struct *session) {
ssh_agent agent = NULL;
agent = malloc(sizeof(struct ssh_agent_struct));
@@ -205,7 +205,7 @@ int ssh_set_agent_socket(ssh_session session, socket_t fd){
return SSH_OK;
}
-void agent_close(struct ssh_agent_struct *agent) {
+void ssh_agent_close(struct ssh_agent_struct *agent) {
if (agent == NULL) {
return;
}
@@ -213,13 +213,13 @@ void agent_close(struct ssh_agent_struct *agent) {
ssh_socket_close(agent->sock);
}
-void agent_free(ssh_agent agent) {
+void ssh_agent_free(ssh_agent agent) {
if (agent) {
if (agent->ident) {
ssh_buffer_free(agent->ident);
}
if (agent->sock) {
- agent_close(agent);
+ ssh_agent_close(agent);
ssh_socket_free(agent->sock);
}
SAFE_FREE(agent);
@@ -484,7 +484,7 @@ ssh_key ssh_agent_get_next_ident(struct ssh_session_struct *session,
return key;
}
-int agent_is_running(ssh_session session) {
+int ssh_agent_is_running(ssh_session session) {
if (session == NULL || session->agent == NULL) {
return 0;
}