diff options
author | Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk> | 2023-10-02 11:11:29 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-10-04 12:56:53 +0200 |
commit | b31597d989f422a0d341be4946d4d64a9251047f (patch) | |
tree | 252e839ff35f542555fc468a8939fee179faa39c /ssl | |
parent | Don't (re-)initialize the FFC_PARAMs in dh_init and dsa_init (diff) | |
download | openssl-b31597d989f422a0d341be4946d4d64a9251047f.tar.xz openssl-b31597d989f422a0d341be4946d4d64a9251047f.zip |
Pass the dtls record version to the record layer msg_callback function.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22241)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/record/methods/dtls_meth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/record/methods/dtls_meth.c b/ssl/record/methods/dtls_meth.c index e71730eba6..258dbd3b14 100644 --- a/ssl/record/methods/dtls_meth.c +++ b/ssl/record/methods/dtls_meth.c @@ -429,10 +429,6 @@ int dtls_get_more_records(OSSL_RECORD_LAYER *rl) p = rl->packet; - if (rl->msg_callback != NULL) - rl->msg_callback(0, 0, SSL3_RT_HEADER, p, DTLS1_RT_HEADER_LENGTH, - rl->cbarg); - /* Pull apart the header into the DTLS1_RECORD */ rr->type = *(p++); ssl_major = *(p++); @@ -447,6 +443,10 @@ int dtls_get_more_records(OSSL_RECORD_LAYER *rl) n2s(p, rr->length); + if (rl->msg_callback != NULL) + rl->msg_callback(0, rr->rec_version, SSL3_RT_HEADER, rl->packet, DTLS1_RT_HEADER_LENGTH, + rl->cbarg); + /* * Lets check the version. We tolerate alerts that don't have the exact * version number (e.g. because of protocol version errors) |