From 8f8dab8d214eea91999cea8153408d8c2d855d12 Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Thu, 17 Sep 2015 14:11:08 +0200 Subject: cleanup: use ssh_ prefix in the packet (non-static) functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano FidĂȘncio --- include/libssh/packet.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/libssh') 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_ */ -- cgit