diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-08-23 18:12:32 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-08-25 12:03:46 +0100 |
commit | 1cc8c53b0fc06d148a9f62e5d2d5bcd859f948cf (patch) | |
tree | ca7698dcc3f294f2b89c5ba92d8a95e796bf0045 /include | |
parent | 675481ee7a8a7fe55aa387b1ccc4ba3b579bc2ff (diff) |
Avoid issues with endianness when type is used in SSL_trace()
The TLS record type is a single byte value so we can
use uint8_t for it. This allows passing its address
directly to SSL_trace() instead of converting it to
a single byte type first.
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 'include')
-rw-r--r-- | include/internal/recordmethod.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/recordmethod.h b/include/internal/recordmethod.h index 247c24f032..c49b5da4ee 100644 --- a/include/internal/recordmethod.h +++ b/include/internal/recordmethod.h @@ -232,7 +232,7 @@ struct ossl_record_method_st { * multiple records in one go and buffer them. */ int (*read_record)(OSSL_RECORD_LAYER *rl, void **rechandle, int *rversion, - int *type, const unsigned char **data, size_t *datalen, + uint8_t *type, const unsigned char **data, size_t *datalen, uint16_t *epoch, unsigned char *seq_num); /* * Release length bytes from a buffer associated with a record previously |