summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2015-09-17 14:11:08 +0200
committerFabiano Fidêncio <fidencio@redhat.com>2015-10-12 13:56:21 +0200
commit8f8dab8d214eea91999cea8153408d8c2d855d12 (patch)
tree87ba7aafbc4f1f20161d1c3e349d0461a17aa50f /include/libssh
parent62fe4e426f08e0ba4c40c6b379e792883a4e6ae3 (diff)
downloadlibssh-8f8dab8d214eea91999cea8153408d8c2d855d12.tar.gz
libssh-8f8dab8d214eea91999cea8153408d8c2d855d12.tar.xz
libssh-8f8dab8d214eea91999cea8153408d8c2d855d12.zip
cleanup: use ssh_ prefix in the packet (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 'include/libssh')
-rw-r--r--include/libssh/packet.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/libssh/packet.h b/include/libssh/packet.h
index d8ef35bb..3a84eb70 100644
--- a/include/libssh/packet.h
+++ b/include/libssh/packet.h
@@ -43,10 +43,10 @@ enum ssh_packet_state_e {
PACKET_STATE_PROCESSING
};
-int packet_send(ssh_session session);
+int ssh_packet_send(ssh_session session);
#ifdef WITH_SSH1
-int packet_send1(ssh_session session) ;
+int ssh_packet_send1(ssh_session session) ;
void ssh_packet_set_default_callbacks1(ssh_session session);
SSH_PACKET_CALLBACK(ssh_packet_disconnect1);
@@ -78,12 +78,12 @@ void ssh_packet_set_default_callbacks(ssh_session session);
void ssh_packet_process(ssh_session session, uint8_t type);
/* PACKET CRYPT */
-uint32_t packet_decrypt_len(ssh_session session, char *crypted);
-int packet_decrypt(ssh_session session, void *packet, unsigned int len);
-unsigned char *packet_encrypt(ssh_session session,
- void *packet,
- unsigned int len);
-int packet_hmac_verify(ssh_session session,ssh_buffer buffer,
- unsigned char *mac, enum ssh_hmac_e type);
+uint32_t ssh_packet_decrypt_len(ssh_session session, char *crypted);
+int ssh_packet_decrypt(ssh_session session, void *packet, unsigned int len);
+unsigned char *ssh_packet_encrypt(ssh_session session,
+ void *packet,
+ unsigned int len);
+int ssh_packet_hmac_verify(ssh_session session,ssh_buffer buffer,
+ unsigned char *mac, enum ssh_hmac_e type);
#endif /* PACKET_H_ */