<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_txt.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-22T14:47:15+00:00</updated>
<entry>
<title>Use cipher suite values instead of IDs.</title>
<updated>2024-07-22T14:47:15+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-07-22T14:47:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bad64c687dbea7670efcb08ff393fe641d0e673d'/>
<id>urn:sha1:bad64c687dbea7670efcb08ff393fe641d0e673d</id>
<content type='text'>
OpenSSL has had the concept of cipher IDs, which were a way of working
around overlapping cipher suite values between SSLv2 and SSLv3. Given
that we no longer have to deal with this issue, replace the use of IDs
with cipher suite values. In particular, this means that we can stop
mapping back and forth between the two, simplifying things considerably.

While here, remove the 'valid' member of the SSL_CIPHER. The ssl3_ciphers[]
table is no longer mutable, meaning that ciphers cannot be disabled at
runtime (and we have `#if 0' if we want to do it at compile time).

Clean up the comments and add/update RFC references for cipher suites.

ok tb@
</content>
</entry>
<entry>
<title>Remove cipher from SSL_SESSION.</title>
<updated>2024-07-20T04:04:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-07-20T04:04:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=026ea65c83ed46dcfd89ada1f6250daa4fcc01b3'/>
<id>urn:sha1:026ea65c83ed46dcfd89ada1f6250daa4fcc01b3</id>
<content type='text'>
For a long time SSL_SESSION has had both a cipher ID and a pointer to
an SSL_CIPHER (and not both are guaranteed to be populated). There is also
a pointer to an SSL_CIPHER in the SSL_HANDSHAKE that denotes the cipher
being used for this connection. Some code has been using the cipher from
SSL_SESSION and some code has been using the cipher from SSL_HANDSHAKE.

Remove cipher from SSL_SESSION and use the version in SSL_HANDSHAKE
everywhere. If resuming from a session then we need to use the SSL_SESSION
cipher ID to set the SSL_HANDSHAKE cipher. And we still need to ensure that
we update the cipher ID in the SSL_SESSION whenever the SSL_HANDSHAKE
cipher changes (this only occurs in a few places).

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>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>Change the loop index from an unsigned int to size_t now that all</title>
<updated>2022-06-07T17:55:08+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-07T17:55:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b565c3044fd04d2f53fb32c88a3782a539cda96d'/>
<id>urn:sha1:b565c3044fd04d2f53fb32c88a3782a539cda96d</id>
<content type='text'>
upper bounds are known to be size_t.

ok jsing
</content>
</entry>
<entry>
<title>Drop an unnecessary cast</title>
<updated>2022-06-07T17:22:22+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-07T17:22:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=434700d4c6a7a7fe6343e9f9d1adfc99658434ea'/>
<id>urn:sha1:434700d4c6a7a7fe6343e9f9d1adfc99658434ea</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Use SSL3_CK_VALUE_MASK instead of hardcoded 0xffff and remove some</title>
<updated>2022-06-06T16:12:31+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-06T16:12:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d0df4d7c22ef21d8e07b0f25f1669cdbab030a3a'/>
<id>urn:sha1:d0df4d7c22ef21d8e07b0f25f1669cdbab030a3a</id>
<content type='text'>
SSLv2 remnants.

ok jsing
</content>
</entry>
<entry>
<title>Minor style cleanup in ssl_txt.c</title>
<updated>2022-06-06T15:20:54+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-06T15:20:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=504a017e04a597f02fd31da6c07c33ba285f0951'/>
<id>urn:sha1:504a017e04a597f02fd31da6c07c33ba285f0951</id>
<content type='text'>
Wrap long lines and fix a bug where the wrong struct member was checked
for NULL.

ok jsing
</content>
</entry>
<entry>
<title>Stop using BIO_s_file_inernal() in libssl.</title>
<updated>2021-11-29T18:36:27+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-11-29T18:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=24ca3fb8f9a3357f27cc8f2c0c53e7adfd9225f5'/>
<id>urn:sha1:24ca3fb8f9a3357f27cc8f2c0c53e7adfd9225f5</id>
<content type='text'>
BIO_s_file_internal() should never have leaked out of libcrypto,
but it did. As a first step of getting rid of it, stop using it
internally.

ok jsing
</content>
</entry>
<entry>
<title>Change tlsext_tick_lifetime_hint to uint32_t.</title>
<updated>2021-10-23T08:13:02+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-10-23T08:13:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b3fca015c8bd2a8cca0e8855a02cc7c36dee9f12'/>
<id>urn:sha1:b3fca015c8bd2a8cca0e8855a02cc7c36dee9f12</id>
<content type='text'>
Now that SSL_SESSION is opaque, change tlsext_tick_lifetime_hint from long
to uint32_t (matching RFC4507), rather than continuing to work around an
inappropriate type choice.

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