<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_methods.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2026-04-03T12:58:19+00:00</updated>
<entry>
<title>Ensure that we cannot negotiate TLSv1.1 or lower.</title>
<updated>2026-04-03T12:58:19+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2026-04-03T12:58:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=42d1ecbb4220b6260fa2da63402ec3f5cbad849a'/>
<id>urn:sha1:42d1ecbb4220b6260fa2da63402ec3f5cbad849a</id>
<content type='text'>
TLS versions prior to TLSv1.2 were disabled a while ago, however this
was done in the version handling code. Remove TLSv1.1 and earlier from
ssl_get_method() and add an explicit min version check in the legacy
client and server, to provide a stronger guarantee.

ok kenjiro@ tb@
</content>
</entry>
<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>Hide all public symbols in libssl</title>
<updated>2023-07-08T16:40:14+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T16:40:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fce75ad52c1586db1ba9f44c6be85668e7d4a110'/>
<id>urn:sha1:fce75ad52c1586db1ba9f44c6be85668e7d4a110</id>
<content type='text'>
With the guentherizer 9000

ok tb@
</content>
</entry>
<entry>
<title>unifdef the LIBRESSL_HAS_TLS1_3_[CLIENT|SERVER] goo</title>
<updated>2023-07-06T07:56:32+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-06T07:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=deb33f171f3135e4367961ec4388c20da87f41c8'/>
<id>urn:sha1:deb33f171f3135e4367961ec4388c20da87f41c8</id>
<content type='text'>
And remove the tendrils. This was useful for transition but we are now
well past this.
</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>Dedup dtls1_dispatch_alert()/ssl3_dispatch_alert().</title>
<updated>2021-07-26T03:17:38+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-07-26T03:17:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=907273055df37d9ecbdb81a886140a181c2352e8'/>
<id>urn:sha1:907273055df37d9ecbdb81a886140a181c2352e8</id>
<content type='text'>
The code for dtls1_dispatch_alert() and ssl3_dispatch_alert() is largely
identical - with a bit of reshuffling we can use ssl3_dispatch_alert() for
both protocols and remove the ssl_dispatch_alert function pointer.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Do a first pass clean up of SSL_METHOD.</title>
<updated>2021-07-03T16:06:45+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-07-03T16:06:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=37dd60cc800917facb460c2030d6466f1ee9c1a6'/>
<id>urn:sha1:37dd60cc800917facb460c2030d6466f1ee9c1a6</id>
<content type='text'>
The num_ciphers, get_cipher_by_char and put_cipher_by_char function
pointers use the same function for all methods - call ssl3_num_ciphers()
directly, absorb ssl3_get_cipher_by_char() into SSL_CIPHER_find() and
remove the unused ssl3_put_cipher_by_char() code.

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>Move DTLS structs/definitions/prototypes to dtls_locl.h.</title>
<updated>2021-05-16T13:56:31+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-05-16T13:56:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6549a63a42afd133dad2229ed5e3a15f9cff92f3'/>
<id>urn:sha1:6549a63a42afd133dad2229ed5e3a15f9cff92f3</id>
<content type='text'>
Now that the DTLS structs are opaque, add a dtls_locl.h header and move
internal-only structs from dtls1.h, along with prototypes from ssl_locl.h.
Only pull this header in where DTLS code actually exists.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Expose various DTLSv1.2 specific functions and defines</title>
<updated>2021-03-31T16:59:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-31T16:59:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2ebb1bafcf20e3417b35907fc27572bb0ff9faac'/>
<id>urn:sha1:2ebb1bafcf20e3417b35907fc27572bb0ff9faac</id>
<content type='text'>
ok bcook inoguchi jsing
</content>
</entry>
</feed>
