summaryrefslogtreecommitdiff
path: root/lib/gnutls_cipher.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-12-09 11:28:38 +0000
committerSimon Josefsson <simon@josefsson.org>2005-12-09 11:28:38 +0000
commit4eaddbf3b43505ba542dc7e46f2cfa8de3100b11 (patch)
treea78fc8ecb1e087e5a27d7c1c5fb2c20df52588af /lib/gnutls_cipher.c
parent1d702c2e2eddef22d5b7b63ec29660b5ea2739f9 (diff)
downloadgnutls-4eaddbf3b43505ba542dc7e46f2cfa8de3100b11.tar.gz
Replace uint16 with uint16_t.
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r--lib/gnutls_cipher.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index ca866ca25a..b2420f74d3 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -222,7 +222,7 @@ mac_deinit (mac_hd_t td, opaque * res, int ver)
inline static int
calc_enc_length (gnutls_session_t session, int data_size,
int hash_size, uint8_t * pad, int random_pad,
- cipher_type_t block_algo, uint16 blocksize)
+ cipher_type_t block_algo, uint16_t blocksize)
{
uint8_t rnd;
int length;
@@ -287,7 +287,7 @@ _gnutls_compressed2ciphertext (gnutls_session_t session,
content_type_t _type, int random_pad)
{
uint8_t MAC[MAX_HASH_SIZE];
- uint16 c_length;
+ uint16_t c_length;
uint8_t pad;
int length, ret;
mac_hd_t td;
@@ -413,11 +413,11 @@ _gnutls_ciphertext2compressed (gnutls_session_t session,
gnutls_datum_t ciphertext, uint8_t type)
{
uint8_t MAC[MAX_HASH_SIZE];
- uint16 c_length;
+ uint16_t c_length;
uint8_t pad;
int length;
mac_hd_t td;
- uint16 blocksize;
+ uint16_t blocksize;
int ret, i, pad_failed = 0;
uint8_t major, minor;
gnutls_protocol_t ver;
@@ -524,7 +524,7 @@ _gnutls_ciphertext2compressed (gnutls_session_t session,
if (length < 0)
length = 0;
- c_length = _gnutls_conv_uint16 ((uint16) length);
+ c_length = _gnutls_conv_uint16 ((uint16_t) length);
/* Pass the type, version, length and compressed through
* MAC.