<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/d1_lib.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-07-23T14:40:54+00:00</updated>
<entry>
<title>Remove get_cipher from SSL_METHOD.</title>
<updated>2024-07-23T14:40:54+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-07-23T14:40:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=db84a0d6a236726c87d7c4ee86e95e65452b429e'/>
<id>urn:sha1:db84a0d6a236726c87d7c4ee86e95e65452b429e</id>
<content type='text'>
Inline the get_cipher implementation (including the special handling
for DTLS) in ssl_cipher_collect_ciphers() (the only consumer), remove
the get_cipher member of SSL_METHOD and mop up dtls1_get_cipher().

ssl3_get_cipher() has always had a strange property of being a reverse
index, which is relied on by the cipher list ordering code, since it
currently assumes that high cipher suite values are preferable. Rather
than complicating ssl3_get_cipher() (and regress), change the iteration
order in ssl_cipher_collect_ciphers() to match what it requires. Lastly,
rename ssl3_get_cipher() to be more descriptive.

ok tb@
</content>
</entry>
<entry>
<title>Make internal header file names consistent</title>
<updated>2022-11-26T16:08:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T16:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=81d98bf600a381a625eb11b39a725b08c0ba547f'/>
<id>urn:sha1:81d98bf600a381a625eb11b39a725b08c0ba547f</id>
<content type='text'>
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names
used for internal headers. Move all these headers we inherited from
OpenSSL to *_local.h, reserving the name *_internal.h for our own code.
Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.
constant_time_locl.h is moved to constant_time.h since it's special.

Adjust all .c files in libcrypto, libssl and regress.

The diff is mechanical with the exception of tls13_quic.c, where
#include &lt;ssl_locl.h&gt; was fixed manually.

discussed with jsing,
no objection bcook
</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>Get rid of SSL_CTX_INTERNAL and SSL_INTERNAL.</title>
<updated>2022-10-02T16:36:42+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-10-02T16:36:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=efde998d3821e41e124a4bfcdf103e506055fc52'/>
<id>urn:sha1:efde998d3821e41e124a4bfcdf103e506055fc52</id>
<content type='text'>
These are no longer necessary due to SSL_CTX and SSL now being fully
opaque. Merge SSL_CTX_INTERNAL back into SSL_CTX and SSL_INTERNAL back
into SSL.

Prompted by tb@
</content>
</entry>
<entry>
<title>Fold DTLS1_STATE_INTERNAL into DTLS1_STATE.</title>
<updated>2021-10-23T13:36:03+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-10-23T13:36:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=86a096b0c72b8b6be5c3299946b7ab98d3eee7e6'/>
<id>urn:sha1:86a096b0c72b8b6be5c3299946b7ab98d3eee7e6</id>
<content type='text'>
Now that DTLS1_STATE is opaque, fold DTLS1_STATE_INTERNAL back into
DTLS1_STATE and remove D1I() usage.

ok tb@
</content>
</entry>
<entry>
<title>Avoid potential NULL dereferences in dtls1_free()</title>
<updated>2021-10-21T08:30:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-10-21T08:30:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0ee5567af5b1d62685bac6f84d0baa729b085677'/>
<id>urn:sha1:0ee5567af5b1d62685bac6f84d0baa729b085677</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Replace DTLS r_epoch with the read epoch from the TLSv1.2 record layer.</title>
<updated>2021-08-30T19:12:25+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-08-30T19:12:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2260f3293f3a2c05fbb25d7e447add03b355e61d'/>
<id>urn:sha1:2260f3293f3a2c05fbb25d7e447add03b355e61d</id>
<content type='text'>
ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Remove DTLS processed_rcds queue.</title>
<updated>2021-07-21T08:42:14+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-07-21T08:42:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=67063c5ad51de8a429ef4b75620cd2275b75782c'/>
<id>urn:sha1:67063c5ad51de8a429ef4b75620cd2275b75782c</id>
<content type='text'>
When DTLS handshake records are received from the next epoch, we will
potentially queue them on the unprocessed_rcds queue - this is usually
a Finished message that has been received without the ChangeCipherSuite
(CCS) message (which may have been dropped or reordered).

After the epoch increments (due to the CCS being received), the current
code processes all records on the unprocessed queue and immediate queues
them on the processed queue, which dtls1_get_record() then pulls from.
This form of processing only adds more complexity and another queue.

Instead, once the epoch increments, pull a single record from the
unprocessed queue and process it, allowing the contents to be consumed
by the caller. We repeat this process until the unprocessed queue is
empty, at which point we go back to consuming messages from the wire.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Merge SSL_METHOD_INTERNAL into SSL_METHOD.</title>
<updated>2021-07-01T17:53:39+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-07-01T17:53:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=909a6d9c0830e04a252ab680efffd5246ba048ba'/>
<id>urn:sha1:909a6d9c0830e04a252ab680efffd5246ba048ba</id>
<content type='text'>
Now that SSL_METHOD is opaque and in internal headers, we can remove
SSL_METHOD_INTERNAL by merging it back into SSL_METHOD.

ok tb@
</content>
</entry>
<entry>
<title>Provide the ability to set the initial DTLS epoch value.</title>
<updated>2021-06-19T16:52:47+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-06-19T16:52:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=975ca9dd8cda1a7829ad89db6d690638e9804058'/>
<id>urn:sha1:975ca9dd8cda1a7829ad89db6d690638e9804058</id>
<content type='text'>
This allows for regress to test edge cases for epoch handling.

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