aboutsummaryrefslogtreecommitdiff
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-10-04 22:11:19 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-10-04 22:11:19 +0000
commit5f7c84f900b81e3bbff55378f8170ddf150daf9c (patch)
tree2076a6416e087eb5870c2217873ae76e85451f6b /libssh/packet.c
parentc0525750fd090bca0f1ab1884cc26ecd227addb7 (diff)
downloadlibssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.tar.gz
libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.tar.xz
libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.zip
added the gcrypt patch (without gcrypt as default library).
still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index e717ba59..4085f60d 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -32,7 +32,7 @@ MA 02111-1307, USA. */
#include "libssh/crypto.h"
/* XXX include selected mac size */
-static int macsize=SHA_DIGEST_LENGTH;
+static int macsize=SHA_DIGEST_LEN;
/* completeread will read blocking until len bytes have been read */
static int completeread(int fd, void *buffer, int len){
@@ -55,7 +55,7 @@ static int completeread(int fd, void *buffer, int len){
static int packet_read2(SSH_SESSION *session){
u32 len;
void *packet=NULL;
- char mac[30];
+ unsigned char mac[30];
char buffer[16];
int be_read,i;
int to_be_read;
@@ -316,7 +316,7 @@ static int packet_send2(SSH_SESSION *session){
u32 finallen;
u8 padding;
u32 currentlen=buffer_get_len(session->out_buffer);
- char *hmac;
+ unsigned char *hmac;
int ret=0;
unsigned int blocksize=(session->current_crypto?session->current_crypto->out_cipher->blocksize:8);
ssh_say(3,"Writing on the wire a packet having %ld bytes before",currentlen);