]> git.ipfire.org Git - thirdparty/openssl.git/commit
tls_common.c: Handle inner content type properly on Big Endian
authorTomas Mraz <tomas@openssl.org>
Sat, 20 Sep 2025 14:45:50 +0000 (16:45 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 23 Sep 2025 14:39:24 +0000 (16:39 +0200)
commit3b1851a8ea0b7a3d507b2742aad2c158baba773b
tree073c6b01d0cd32e49a1d8e8becbabdc2812891ad
parente0ca1da4a3bcbe71fc7d4670233d1e0da69e2fcf
tls_common.c: Handle inner content type properly on Big Endian

When passing the inner content type to msg_callback,
the lowest byte of rec->type needs to be passed instead
of directly passing the rec->type otherwise the value is
incorrect on Big Endian platforms.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28627)

(cherry picked from commit 2edf021463518d9af905b1b03f952ea643b3fb9b)
ssl/record/methods/tls_common.c