<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_versions.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>2023-07-02T17:21:33+00:00</updated>
<entry>
<title>Disable TLS 1.0 and TLS 1.1 in libssl</title>
<updated>2023-07-02T17:21:33+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-02T17:21:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4edd92a57f3a74829fe519f35b5c7c79e03ce0b0'/>
<id>urn:sha1:4edd92a57f3a74829fe519f35b5c7c79e03ce0b0</id>
<content type='text'>
Their time has long since past, and they should not be used.
This change restricts ssl to versions 1.2 and 1.3, and changes
the regression tests to understand we no longer speak the legacy
protocols.

For the moment the magical "golden" byte for byte comparison
tests of raw handshake values are disabled util jsing fixes them.

ok jsing@ 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>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>Enforce the minimum TLS version requirement for QUIC.</title>
<updated>2022-09-11T18:13:30+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-09-11T18:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f09ab23dacefdbeea6947b43abb45f2e5c0e1f71'/>
<id>urn:sha1:f09ab23dacefdbeea6947b43abb45f2e5c0e1f71</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Add checks to ensure we do not initiate or negotiate handshakes with</title>
<updated>2022-06-30T11:17:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-30T11:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f66930ba757de7911f8b6d202340e2b13f440055'/>
<id>urn:sha1:f66930ba757de7911f8b6d202340e2b13f440055</id>
<content type='text'>
versions below the minimum required by the security level.

input &amp; ok jsing
</content>
</entry>
<entry>
<title>Bye bye S3I.</title>
<updated>2022-02-05T14:54:10+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-02-05T14:54:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a463011117e88ea3125fb580b8c6c60d68722651'/>
<id>urn:sha1:a463011117e88ea3125fb580b8c6c60d68722651</id>
<content type='text'>
S3I has served us well, however now that libssl is fully opaque it is time
to say goodbye. Aside from removing the calloc/free/memset, the rest is
mechanical sed.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Provide a way to determine our maximum legacy version.</title>
<updated>2021-10-23T14:40:54+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-10-23T14:40:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e225ef6f6dede36e99d00cc89f0ea8c7da355d25'/>
<id>urn:sha1:e225ef6f6dede36e99d00cc89f0ea8c7da355d25</id>
<content type='text'>
With the introduction of TLSv1.3, we need the ability to determine our
maximum legacy version and to track our peer's maximum legacy version.
This is needed for both the TLS record layer when using TLSv1.3, plus
it is needed for RSA key exhange in TLS prior to TLSv1.3, where the
maximum legacy version is incorporated in the pre-master secret to
avoid downgrade attacks.

This unbreaks RSA KEX for the TLS client when the non-version specific
method is used with TLSv1.0 or TLSv1.1 (clearly no one does this).

ok 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>Correct handling of SSL_OP_NO_DTLSv1.</title>
<updated>2021-06-27T16:54:14+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-06-27T16:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4404df9dd9e200b2608ac9cfdfa13dcba0eedb73'/>
<id>urn:sha1:4404df9dd9e200b2608ac9cfdfa13dcba0eedb73</id>
<content type='text'>
When converting to TLS flags, we need to also include SSL_OP_NO_TLSv1,
otherwise the TLS equivalent of SSL_OP_NO_DTLSv1 is TLSv1.0 only, which
does not work so well when we try to switch back to DTLS versions.
</content>
</entry>
<entry>
<title>Undo previous. As pointed out by jsing I clearly wasn't fully awake...</title>
<updated>2021-03-19T19:52:55+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-19T19:52:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e9680bc7f35515238c8d0b0b3afd223f39aa1a85'/>
<id>urn:sha1:e9680bc7f35515238c8d0b0b3afd223f39aa1a85</id>
<content type='text'>
</content>
</entry>
</feed>
