From b3557944ff85f828efd92ed9bbe76c41df619e21 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 19 Dec 2003 19:03:13 +0000 Subject: Don't use "u_char", use "guchar" for characters and "guint8" for 8-bit unsigned integers. svn path=/trunk/; revision=9355 --- packet-tacacs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packet-tacacs.c') diff --git a/packet-tacacs.c b/packet-tacacs.c index cba7dcbfcd..25402d57cb 100644 --- a/packet-tacacs.c +++ b/packet-tacacs.c @@ -5,7 +5,7 @@ * Full Tacacs+ parsing with decryption by * Emanuele Caratti * - * $Id: packet-tacacs.c,v 1.31 2003/11/11 19:23:22 guy Exp $ + * $Id: packet-tacacs.c,v 1.32 2003/12/19 19:03:13 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -47,7 +47,7 @@ #include "crypt-md5.h" #include "packet-tacacs.h" -static void md5_xor( u_char *data, char *key, int data_len, u_char *session_id, u_char version, u_char seq_no ); +static void md5_xor( guint8 *data, char *key, int data_len, guint8 *session_id, guint8 version, guint8 seq_no ); static int proto_tacacs = -1; static int hf_tacacs_version = -1; @@ -324,7 +324,7 @@ static gint tacplus_decrypted_tvb_setup( tvbuff_t *tvb, tvbuff_t **dst_tvb, packet_info *pinfo, guint32 len, guint8 version, char *key ) { guint8 *buff; - u_char session_id[4]; + guint8 session_id[4]; /* TODO Check the possibility to use pinfo->decrypted_data */ /* session_id is in NETWORK Byte Order, and is used as byte array in the md5_xor */ @@ -1092,7 +1092,7 @@ proto_reg_handoff_tacplus(void) #define MD5_LEN 16 static void -md5_xor( u_char *data, char *key, int data_len, u_char *session_id, u_char version, u_char seq_no ) +md5_xor( guint8 *data, char *key, int data_len, guint8 *session_id, guint8 version, guint8 seq_no ) { int i,j,md5_len; md5_byte_t *md5_buff; -- cgit v1.2.3