<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_pkt.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-08-30T15:40:20+00:00</updated>
<entry>
<title>Start replacing the existing TLSv1.2 record layer.</title>
<updated>2020-08-30T15:40:20+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-30T15:40:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5df2cd671a3bb55e3ec34638a6a36eef237c529f'/>
<id>urn:sha1:5df2cd671a3bb55e3ec34638a6a36eef237c529f</id>
<content type='text'>
This takes the same design/approach used in TLSv1.3 and provides an
opaque struct that is self contained and cannot reach back into other
layers. For now this just implements/replaces the writing of records
for DTLSv1/TLSv1.0/TLSv1.1/TLSv1.2. In doing so we stop copying the
plaintext into the same buffer that is used to transmit to the wire.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Fix some wrapping/indent.</title>
<updated>2020-08-09T16:54:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-09T16:54:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f7a3bcd050b34ddcb4d801a9c00fb913f5266db3'/>
<id>urn:sha1:f7a3bcd050b34ddcb4d801a9c00fb913f5266db3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use CBB more correctly when writing SSL3/DTLS records.</title>
<updated>2020-08-09T16:02:58+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-09T16:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e8a20f5bda4b54bf67bf267175b38eb299dfafa9'/>
<id>urn:sha1:e8a20f5bda4b54bf67bf267175b38eb299dfafa9</id>
<content type='text'>
Previously we used CBB to build the record headers, but not the entire
record. Use CBB_init_fixed() upfront, then build the record header and
add space for the record content. However, in order to do this we need
to determine the length of the record upfront.

This simplifies the code, removes a number of manual bounds checks and
makes way for further improvements.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Check the return value of tls1_enc() in the write path.</title>
<updated>2020-08-02T07:33:15+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-02T07:33:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59487ec2a7eb6c7372b491b9191727c1f471598d'/>
<id>urn:sha1:59487ec2a7eb6c7372b491b9191727c1f471598d</id>
<content type='text'>
The write path can return a failure in the AEAD path and there is no reason
not to check a return value.

Spotted by tb@ during another review.

ok tb@
</content>
</entry>
<entry>
<title>Clean up/simplify more of the dtls1/ssl3 record writing code:</title>
<updated>2020-08-01T16:50:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-01T16:50:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2ce291e2b55d3fcbf2c75812e85cfc999679a64a'/>
<id>urn:sha1:2ce291e2b55d3fcbf2c75812e85cfc999679a64a</id>
<content type='text'>
- Make the DTLS code much more consistent with the ssl3 code.

- Avoid assigning wr-&gt;input and wr-&gt;length just so they can be used as
  arguments to memcpy().

- Remove the arc4random_buf() call for the explicit IV, since tls1_enc()
  already does this for us.

ok tb@
</content>
</entry>
<entry>
<title>Pull record version selection code up and pass it as an argument to</title>
<updated>2020-08-01T16:38:17+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-01T16:38:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5ef945c253a707ecf7bc4f821caf35cfa3d672e3'/>
<id>urn:sha1:5ef945c253a707ecf7bc4f821caf35cfa3d672e3</id>
<content type='text'>
ssl3_create_record().

ok tb@
</content>
</entry>
<entry>
<title>Clean up and simplify some of the SSL3/DTLS1 record writing code.</title>
<updated>2020-07-30T16:53:01+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-07-30T16:53:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d910880213a7777e54b896e5bd7ba68cc9a09bf0'/>
<id>urn:sha1:d910880213a7777e54b896e5bd7ba68cc9a09bf0</id>
<content type='text'>
This will allow for further changes to be made with less complexity and
easier review.

In particular, decide if we need an empty fragment early on and only do
the alignment calculation once (rather than in two separate parts of the
function.

ok tb@ inoguchi@
</content>
</entry>
<entry>
<title>Consistently spell 'unsigned' as 'unsigned int', as style(9) seems</title>
<updated>2020-03-16T15:25:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-03-16T15:25:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=168e0561df78f7340b3a674c6ffe771fb5b4bbb2'/>
<id>urn:sha1:168e0561df78f7340b3a674c6ffe771fb5b4bbb2</id>
<content type='text'>
to prefer that. No binary change except in d1_srtp.c where the
generated assembly differs only in line numbers (due to a wrapped
long line) and in s3_cbc.c where there is no change in the generated
assembly.

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Stop overloading the record type for padding length.</title>
<updated>2020-03-12T17:09:02+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=090aa8eb50273dd73eaba4ac5362be86b97cd254'/>
<id>urn:sha1:090aa8eb50273dd73eaba4ac5362be86b97cd254</id>
<content type='text'>
Currently the CBC related code stuffs the padding length in the upper bits
of the type field... stop doing that and add a padding_length field to the
record struct instead.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Use internal versions of SSL3_BUFFER, SSL3_RECORD and DTLS1_RECORD_DATA.</title>
<updated>2020-03-12T17:01:53+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:01:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=63b0f131cbf0e20ff888516045c6693e8515333f'/>
<id>urn:sha1:63b0f131cbf0e20ff888516045c6693e8515333f</id>
<content type='text'>
SSL3_BUFFER, SSL3_RECORD and DTLS1_RECORD_DATA are currently still in
public headers, even though their usage is internal. This moves to
using _INTERNAL suffixed versions that are in internal headers, which
then allows us to change them without any potential public API fallout.

ok inoguchi@ tb@
</content>
</entry>
</feed>
