X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpacket.c;h=9895fa25915b47b38ae7624109eb7eded3097284;hb=72cfa31520ebc0058763a30e21c13f6e9a964aa0;hp=3e67ed1110dc2d0cdb04ccd8871fdff279e59fb2;hpb=2be0be2432fff760084c4093291e79f1fa6262d8;p=silc.git diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 3e67ed11..9895fa25 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -109,10 +109,10 @@ int silc_packet_send(SilcSocketConnection sock, int force_send) cannot be used. */ void silc_packet_encrypt(SilcCipher cipher, SilcHmac hmac, - SilcBuffer buffer, unsigned int len) + SilcBuffer buffer, uint32 len) { unsigned char mac[32]; - unsigned int mac_len; + uint32 mac_len; /* Compute HMAC. This assumes that HMAC is created from the entire data area thus this uses the length found in buffer, not the length @@ -243,9 +243,9 @@ void silc_packet_assemble(SilcPacketContext *ctx) outgoing buffer in SilcSocketConnection object. */ void silc_packet_send_prepare(SilcSocketConnection sock, - unsigned int header_len, - unsigned int padlen, - unsigned int data_len) + uint32 header_len, + uint32 padlen, + uint32 data_len) { int totlen, oldlen; @@ -468,7 +468,7 @@ static int silc_packet_check_mac(SilcHmac hmac, SilcBuffer buffer) /* Check MAC */ if (hmac) { unsigned char mac[32]; - unsigned int mac_len; + uint32 mac_len; SILC_LOG_DEBUG(("Verifying MAC")); @@ -537,7 +537,7 @@ static int silc_packet_decrypt_rest_special(SilcCipher cipher, { /* Decrypt rest of the header plus padding */ if (cipher) { - unsigned short truelen, len1, len2, padlen; + uint16 truelen, len1, len2, padlen; /* Pull MAC from packet before decryption */ if (hmac) {