<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/d1_both.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>2025-03-09T15:12:18+00:00</updated>
<entry>
<title>Support OPENSSL_NO_FILENAMES</title>
<updated>2025-03-09T15:12:18+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-03-09T15:12:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b8acfd2983c50474382bf8ed132a5b7e7bdedb34'/>
<id>urn:sha1:b8acfd2983c50474382bf8ed132a5b7e7bdedb34</id>
<content type='text'>
Some people are concerned that leaking a user name is a privacy issue.
Allow disabling the __FILE__ and __LINE__ argument in the error stack
to avoid this. This can be improved a bit in tree.

From Viktor Szakats in https://github.com/libressl/portable/issues/761

ok bcook jsing
</content>
</entry>
<entry>
<title>spelling fixes; from paul tagliamonte</title>
<updated>2022-12-26T07:31:44+00:00</updated>
<author>
<name>jmc</name>
<email></email>
</author>
<published>2022-12-26T07:31:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=66dae57727594a3234d5bf75a11f7e2bf4e6f766'/>
<id>urn:sha1:66dae57727594a3234d5bf75a11f7e2bf4e6f766</id>
<content type='text'>
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>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>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>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>Untangle ssl3_get_message() return values.</title>
<updated>2021-10-23T08:34:36+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-10-23T08:34:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5d3c7c65d6fef075bd9abda039729fb1c149a46d'/>
<id>urn:sha1:5d3c7c65d6fef075bd9abda039729fb1c149a46d</id>
<content type='text'>
This function currently has a long return type that may be &lt;= 0 on
error/retry (which is then cast to an int in order to return it up the
stack), or it returns the length of the handshake message (on success).
This obviously means that 0 can be returned for both success and failure,
which is the reason why a separate 'ok' argument has to exist.

Untangle this mess by changing the return value to an int that indicates
success (1) or error/retry (&lt;= 0). The length never needs to actually be
returned as it is already stored in s-&gt;internal-&gt;init_num (which is where
the return value is read from anyway).

ok tb@
</content>
</entry>
<entry>
<title>Change dtls1_get_message_header() to take a CBS.</title>
<updated>2021-09-04T14:24:28+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-09-04T14:24:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1bdeea20a1ed87176fb6f5a13f41bd2e68568f6c'/>
<id>urn:sha1:1bdeea20a1ed87176fb6f5a13f41bd2e68568f6c</id>
<content type='text'>
The callers know the actual length and can initialise a CBS correctly.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Mop up dtls1_get_ccs_header() and struct ccs_header_st.</title>
<updated>2021-07-19T08:42:24+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-07-19T08:42:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=32b700a8cdd2b60b732903e811f88f307b78b939'/>
<id>urn:sha1:32b700a8cdd2b60b732903e811f88f307b78b939</id>
<content type='text'>
All this code does is read one byte from memory with an unknown length,
potentially being a one byte overread... and then nothing is actually done
with the value.

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>
</feed>
