summaryrefslogtreecommitdiffstats
path: root/src/auth.c
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2015-09-17 09:43:33 +0200
committerFabiano Fidêncio <fidencio@redhat.com>2015-10-12 13:56:21 +0200
commit774c0998aa8cd89f86a016b6b6b8ab6b3b8f26e9 (patch)
tree73151368afe1daa9151517b604daaf1a85e23fc4 /src/auth.c
parent65fc8d0fddb172e31111536029c6de2b6f28799d (diff)
downloadlibssh-774c0998aa8cd89f86a016b6b6b8ab6b3b8f26e9.tar.gz
libssh-774c0998aa8cd89f86a016b6b6b8ab6b3b8f26e9.tar.xz
libssh-774c0998aa8cd89f86a016b6b6b8ab6b3b8f26e9.zip
cleanup: use ssh_ prefix in the buffer (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>
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.c b/src/auth.c
index eeed8c39..c2cf52f0 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -158,7 +158,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_banner){
(void)type;
(void)user;
- banner = buffer_get_ssh_string(packet);
+ banner = ssh_buffer_get_ssh_string(packet);
if (banner == NULL) {
SSH_LOG(SSH_LOG_WARN,
"Invalid SSH_USERAUTH_BANNER packet");
@@ -615,7 +615,7 @@ int ssh_userauth_publickey(ssh_session session,
goto fail;
}
- rc = buffer_add_ssh_string(session->out_buffer, str);
+ rc = ssh_buffer_add_ssh_string(session->out_buffer, str);
ssh_string_free(str);
str = NULL;
if (rc < 0) {
@@ -700,7 +700,7 @@ static int ssh_userauth_agent_publickey(ssh_session session,
goto fail;
}
- rc = buffer_add_ssh_string(session->out_buffer, str);
+ rc = ssh_buffer_add_ssh_string(session->out_buffer, str);
ssh_string_free(str);
if (rc < 0) {
goto fail;