diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-08-24 10:34:53 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-08-25 12:04:00 +0100 |
commit | eb1eaa9af4c241baea00cb16557f41811ed9e097 (patch) | |
tree | f2fa9859946cd0f6b610f1602f14e8b091f6e616 /ssl/statem | |
parent | 86051eb2bb86e3a89e69abfb6419409aa701bcf7 (diff) | |
download | openssl-eb1eaa9af4c241baea00cb16557f41811ed9e097.tar.gz |
Always use uint8_t for TLS record type
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21823)
Diffstat (limited to 'ssl/statem')
-rw-r--r-- | ssl/statem/statem_dtls.c | 5 | ||||
-rw-r--r-- | ssl/statem/statem_lib.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index 2e26a3f3df..31dc9f3511 100644 --- a/ssl/statem/statem_dtls.c +++ b/ssl/statem/statem_dtls.c @@ -111,7 +111,7 @@ void dtls1_hm_fragment_free(hm_fragment *frag) * send s->init_buf in records of type 'type' (SSL3_RT_HANDSHAKE or * SSL3_RT_CHANGE_CIPHER_SPEC) */ -int dtls1_do_write(SSL_CONNECTION *s, int type) +int dtls1_do_write(SSL_CONNECTION *s, uint8_t type) { int ret; size_t written; @@ -809,7 +809,8 @@ static int dtls_get_reassembled_message(SSL_CONNECTION *s, int *errtype, { unsigned char wire[DTLS1_HM_HEADER_LENGTH]; size_t mlen, frag_off, frag_len; - int i, ret, recvd_type; + int i, ret; + uint8_t recvd_type; struct hm_header_st msg_hdr; size_t readbytes; SSL *ssl = SSL_CONNECTION_GET_SSL(s); diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index f339b2694c..d979b6d5fc 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -58,7 +58,7 @@ int ossl_statem_set_mutator(SSL *s, * send s->init_buf in records of type 'type' (SSL3_RT_HANDSHAKE or * SSL3_RT_CHANGE_CIPHER_SPEC) */ -int ssl3_do_write(SSL_CONNECTION *s, int type) +int ssl3_do_write(SSL_CONNECTION *s, uint8_t type) { int ret; size_t written = 0; @@ -1530,7 +1530,8 @@ WORK_STATE tls_finish_handshake(SSL_CONNECTION *s, ossl_unused WORK_STATE wst, int tls_get_message_header(SSL_CONNECTION *s, int *mt) { /* s->init_num < SSL3_HM_HEADER_LENGTH */ - int skip_message, i, recvd_type; + int skip_message, i; + uint8_t recvd_type; unsigned char *p; size_t l, readbytes; SSL *ssl = SSL_CONNECTION_GET_SSL(s); |