<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_asn1.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>Simplify another CBS_write_bytes() call in d2i_SSL_SESSION()</title>
<updated>2022-06-07T17:53:42+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-07T17:53:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2a2a81d6a4004643e5e61ba25872f74efcd8a570'/>
<id>urn:sha1:2a2a81d6a4004643e5e61ba25872f74efcd8a570</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Simplify various CBS_write_bytes() calls</title>
<updated>2022-06-07T17:45:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-07T17:45:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=262dc8cfa4ab6eacc6adf4fc2784410fafb0ec29'/>
<id>urn:sha1:262dc8cfa4ab6eacc6adf4fc2784410fafb0ec29</id>
<content type='text'>
Now that session_id_length is a size_t, we can pass it directly to
CBS_write_bytes() instead of using a temporary variable.

ok jsing
</content>
</entry>
<entry>
<title>Simplify CBS_write_bytes() invocation</title>
<updated>2022-06-07T17:20:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-06-07T17:20:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e0a68620a89ee656d656102d7ae49466cc41730c'/>
<id>urn:sha1:e0a68620a89ee656d656102d7ae49466cc41730c</id>
<content type='text'>
Now that master_key_length is a size_t, we no longer have to fiddle with
data_len. We can rather pass a pointer to it to CBS_write_bytes().

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>Rename 'peer' to 'peer_cert' in SSL_SESSION.</title>
<updated>2022-01-11T18:39:28+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-01-11T18:39:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=63cfd45b8cd72aee6552ab5469a2864756a42e9a'/>
<id>urn:sha1:63cfd45b8cd72aee6552ab5469a2864756a42e9a</id>
<content type='text'>
The 'peer' member of SSL_SESSION is the leaf/end-entity certificate
provided by our peer. Rename it since 'peer' on its own is unhelpful.

ok inoguchi@ tb@
</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>
