<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/tls13_record_layer.c, branch libressl-v4.3.2</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v4.3.2</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v4.3.2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-09-09T03:32:29+00:00</updated>
<entry>
<title>Add and use tls13_record_layer_alert_sent()</title>
<updated>2024-09-09T03:32:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-09-09T03:32:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=461979ad807ebd887bb629ba3072f150b5390cd2'/>
<id>urn:sha1:461979ad807ebd887bb629ba3072f150b5390cd2</id>
<content type='text'>
This is a small refactoring that wraps a direct call to the record layer's
alert_sent() callback into a handler for upcoming reuse in the QUIC code.

No functional change.

ok jsing
</content>
</entry>
<entry>
<title>Add message callbacks for alerts in the TLSv1.3 stack.</title>
<updated>2024-01-27T14:23:51+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-01-27T14:23:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9f10df8c2961b5d22fbb67942ef04e74ea843ece'/>
<id>urn:sha1:9f10df8c2961b5d22fbb67942ef04e74ea843ece</id>
<content type='text'>
This will make it easier to regress test shutdown behaviour in the TLSv1.3
stack. Additionally, `openssl -msg` now shows alerts for TLSv1.3
connections.

ok tb@
</content>
</entry>
<entry>
<title>Convert the legacy TLS stack to tls_content.</title>
<updated>2022-11-11T17:15:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-11-11T17:15:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=de50508f29672766d86ce907a002ff8fe4c49908'/>
<id>urn:sha1:de50508f29672766d86ce907a002ff8fe4c49908</id>
<content type='text'>
This converts the legacy TLS stack to tls_content - records are now
opened into a tls_content structure, rather than being written back into
the same buffer that the sealed record was read into.

This will allow for further clean up of the legacy record layer.

ok tb@
</content>
</entry>
<entry>
<title>Ensure there is no trailing data for a CCS received by the TLSv1.3 stack.</title>
<updated>2022-09-11T13:50:41+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-09-11T13:50:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b0927200cf32ec6615639e84b9d31ced84f394de'/>
<id>urn:sha1:b0927200cf32ec6615639e84b9d31ced84f394de</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Provide record layer callbacks for QUIC.</title>
<updated>2022-07-24T14:28:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-07-24T14:28:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2c5937ccb88658c18243c49fc57c58b62e344235'/>
<id>urn:sha1:2c5937ccb88658c18243c49fc57c58b62e344235</id>
<content type='text'>
QUIC uses TLS to complete the handshake, however unlike normal TLS it does
not use the TLS record layer, rather it provides its own transport. This
means that we need to intercept all communication between the TLS handshake
and the record layer. This allows TLS handshake message writes to be
directed to QUIC, likewise for TLS handshake message reads. Alerts also
need to be sent via QUIC, plus it needs to be provided with the traffic
keys that are derived by TLS.

ok tb@
</content>
</entry>
<entry>
<title>Provide QUIC encryption levels.</title>
<updated>2022-07-24T14:16:29+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-07-24T14:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8e1be2bf4fabd0e39f3d547284095e5c4610e056'/>
<id>urn:sha1:8e1be2bf4fabd0e39f3d547284095e5c4610e056</id>
<content type='text'>
QUIC wants to know what "encryption level" handshake messages should be
sent at. Provide an ssl_encryption_level_t enum (via BoringSSL) that
defines these (of course quictls decided to make this an
OSSL_ENCRYPTION_LEVEL typedef, so provide that as well).

Wire these through to tls13_record_layer_set_{read,write}_traffic_key() so
that they can be used in upcoming commits.

ok tb@
</content>
</entry>
<entry>
<title>Remove tls_buffer_set_data() and remove/revise callers.</title>
<updated>2022-07-20T06:32:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-07-20T06:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c883f86bc052054b4a1fc92fd72cc4c7ea17657e'/>
<id>urn:sha1:c883f86bc052054b4a1fc92fd72cc4c7ea17657e</id>
<content type='text'>
There is no way that tls_buffer_set_data() can currently work in
conjunction with tls_buffer_expand(). This fact is currently hidden by the
way that PHH works, which reads the same data from the record layer (which
it needs to do anyway, since we may not have all of the handshake message
in a single record).

Since this is broken, mop it up and change the PHH callback to not provide
the record data.

ok beck@ tb@
</content>
</entry>
<entry>
<title>Convert the new record layers to opaque EVP_AEAD_CTX</title>
<updated>2022-01-14T09:12:15+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-14T09:12:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cc893e3cc0b957c2b09fd48feadb8518d7f3ddea'/>
<id>urn:sha1:cc893e3cc0b957c2b09fd48feadb8518d7f3ddea</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Allocate and free the EVP_AEAD_CTX struct in tls13_record_protection.</title>
<updated>2022-01-06T18:18:13+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-01-06T18:18:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8a294c8f5ee20d8960cff250faba4ec8637a5f74'/>
<id>urn:sha1:8a294c8f5ee20d8960cff250faba4ec8637a5f74</id>
<content type='text'>
This brings the code more in line with the tls12_record_layer and reduces
the effort needed to make EVP_AEAD_CTX opaque.

Prompted by and ok tb@
</content>
</entry>
<entry>
<title>Use CBS_get_last_u8() to find the content type in TLSv1.3 records.</title>
<updated>2021-12-15T17:57:45+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-12-15T17:57:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e135a3ba22c8b5c9463cad3035704d99945030ac'/>
<id>urn:sha1:e135a3ba22c8b5c9463cad3035704d99945030ac</id>
<content type='text'>
ok tb@
</content>
</entry>
</feed>
