diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-15 16:02:29 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-21 01:05:59 +0100 |
commit | 37c8eaecbdaebc62aa4c2e8671fb366d20f9bbe8 (patch) | |
tree | 97b62330682aa8a6912d8413088addbf52579c67 /lib/gnutls_int.h | |
parent | 99ad4c6b2ab76d386be76daed0c509e62d6334c7 (diff) | |
download | gnutls-37c8eaecbdaebc62aa4c2e8671fb366d20f9bbe8.tar.gz |
Fixed signed/unsigned warnings.
Dropped opaque type (replaced with uint8_t)
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 08762612e3..f68a01380e 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -210,10 +210,9 @@ typedef enum transport_t #define GNUTLS_POINTER_TO_INT(_) ((int) GNUTLS_POINTER_TO_INT_CAST (_)) #define GNUTLS_INT_TO_POINTER(_) ((void*) GNUTLS_POINTER_TO_INT_CAST (_)) -typedef unsigned char opaque; typedef struct { - opaque pint[3]; + uint8_t pint[3]; } uint24; #include <gnutls_mpi.h> @@ -285,7 +284,7 @@ typedef struct uint32_t start_offset; uint32_t end_offset; - opaque header[MAX_HANDSHAKE_HEADER_SIZE]; + uint8_t header[MAX_HANDSHAKE_HEADER_SIZE]; int header_size; gnutls_buffer_st data; @@ -474,10 +473,10 @@ typedef struct */ uint8_t cipher_suite[2]; gnutls_compression_method_t compression_method; - opaque master_secret[GNUTLS_MASTER_SIZE]; - opaque client_random[GNUTLS_RANDOM_SIZE]; - opaque server_random[GNUTLS_RANDOM_SIZE]; - opaque session_id[TLS_MAX_SESSION_ID_SIZE]; + uint8_t master_secret[GNUTLS_MASTER_SIZE]; + uint8_t client_random[GNUTLS_RANDOM_SIZE]; + uint8_t server_random[GNUTLS_RANDOM_SIZE]; + uint8_t session_id[TLS_MAX_SESSION_ID_SIZE]; uint8_t session_id_size; time_t timestamp; @@ -601,7 +600,7 @@ typedef struct typedef struct { /* HelloVerifyRequest DOS prevention cookie */ - opaque cookie[DTLS_MAX_COOKIE_SIZE]; + uint8_t cookie[DTLS_MAX_COOKIE_SIZE]; uint8_t cookie_len; /* For DTLS handshake fragmentation and reassembly. */ @@ -779,7 +778,7 @@ typedef struct /* This holds the default version that our first * record packet will have. */ - opaque default_record_version[2]; + uint8_t default_record_version[2]; void *user_ptr; @@ -807,7 +806,7 @@ typedef struct * PMS secret. Can be used by clients to test whether the * server checks that version. (** only used in gnutls-cli-debug) */ - opaque rsa_pms_version[2]; + uint8_t rsa_pms_version[2]; /* Here we cache the DH or RSA parameters got from the * credentials structure, or from a callback. That is to |