<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/d1_both.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-09-26T14:43:17+00:00</updated>
<entry>
<title>Call dtls1_hm_fragment_free() from dtls1_drain_fragments()</title>
<updated>2020-09-26T14:43:17+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-26T14:43:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b147e2d737372e25e4ae27eb3f3cf46c472e9055'/>
<id>urn:sha1:b147e2d737372e25e4ae27eb3f3cf46c472e9055</id>
<content type='text'>
Currently dtls1_drain_fragments() has a incomplete handrolled version of
dtls1_hm_fragment_free(), which has the potential to leak memory. Replace
the handrolled free with a call to dtls1_hm_fragment_free().

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Have dtls1_hm_fragment_new() call dtls1_hm_fragment_free() on failure.</title>
<updated>2020-09-26T08:58:00+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-26T08:58:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f4c0739084aedd02b6fe70b1b3fd77fb833e59c1'/>
<id>urn:sha1:f4c0739084aedd02b6fe70b1b3fd77fb833e59c1</id>
<content type='text'>
Rather than using local variables and having to remember which things need
to be freed upon a failure at a certain point, simply allocate into the
hm_fragment struct and call dtls1_hm_fragment_free() on failure.

Also use calloc() to ensure memory is appropriately zeroed/initialised.

ok tb@
</content>
</entry>
<entry>
<title>Use 0 instead of 0x00 for memset() calls.</title>
<updated>2020-08-11T19:13:35+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-08-11T19:13:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=885110ef90d6077c936a51758ce6aaf4aa445b03'/>
<id>urn:sha1:885110ef90d6077c936a51758ce6aaf4aa445b03</id>
<content type='text'>
ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>"non-existant" is one of those words that don't exist, so use "non-existent"</title>
<updated>2019-02-10T16:42:35+00:00</updated>
<author>
<name>phessler</name>
<email></email>
</author>
<published>2019-02-10T16:42:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=32885e3a04801a2e183dbc1efdc792341d99460c'/>
<id>urn:sha1:32885e3a04801a2e183dbc1efdc792341d99460c</id>
<content type='text'>
instead

From Pamela Mosiejczuk, many thanks!
OK phessler@ deraadt@
</content>
</entry>
<entry>
<title>Clean up and simplify the handshake transcript code.</title>
<updated>2018-11-08T22:28:52+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-11-08T22:28:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1a7f20049bf29c61782397cffb632339b12ba54'/>
<id>urn:sha1:d1a7f20049bf29c61782397cffb632339b12ba54</id>
<content type='text'>
This provides a cleaner, simpler and more readable API, with code that uses
a BUF_MEM instead of a BIO.

ok beck@ ("hurry up") and tb@.
</content>
</entry>
<entry>
<title>Use the newer/more sensible names for EVP_MD_CTX_* functions.</title>
<updated>2018-09-05T16:58:59+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-09-05T16:58:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4e47c515f40e5440374f3cb833834c52edfd8b18'/>
<id>urn:sha1:4e47c515f40e5440374f3cb833834c52edfd8b18</id>
<content type='text'>
 EVP_MD_CTX_create -&gt; EVP_MD_CTX_new
 EVP_MD_CTX_destroy -&gt; EVP_MD_CTX_free

This should make the intent more obvious and reduce head scratching during
code reviews.

Raised by tb@
</content>
</entry>
<entry>
<title>Nuke ssl_pending/ssl_shutdown function pointers.</title>
<updated>2018-08-30T16:56:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-08-30T16:56:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=16b6459b65a2ea71c62cee66fa098dd1e7b7cd8d'/>
<id>urn:sha1:16b6459b65a2ea71c62cee66fa098dd1e7b7cd8d</id>
<content type='text'>
ssl3_pending() is used for all protocols and dtls1_shutdown() just calls
ssl3_shutdown(), so just call the appropriate function directly instead.

ok beck@ inoguchi@ tb@
</content>
</entry>
<entry>
<title>Dedup DTLS header writing code and convert to CBB.</title>
<updated>2018-08-27T16:56:46+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-08-27T16:56:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=255faac6cd54c310c2ae857446c5f81ab173d258'/>
<id>urn:sha1:255faac6cd54c310c2ae857446c5f81ab173d258</id>
<content type='text'>
There are three versions of the DTLS header writing code, which primarily
differ by the fragment offset and fragment length values that differ.
Rework dtls1_write_message_header() such that it can be used in all three
cases and convert it to CBB in the process.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Convert ssl3_send_change_cipher_spec() to use CBB and make it handle DTLS,</title>
<updated>2017-10-08T16:24:02+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-10-08T16:24:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ba9ebd2e46ba795dd4f082910e89df705f1e264b'/>
<id>urn:sha1:ba9ebd2e46ba795dd4f082910e89df705f1e264b</id>
<content type='text'>
which allows us to drop dtls1_send_change_cipher_spec() entirely.

ok inoguchi@
</content>
</entry>
<entry>
<title>Move state from ssl-&gt;internal to the handshake structure.</title>
<updated>2017-05-07T04:22:24+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-05-07T04:22:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2439ee31e965a96d3685f362e5a32d365a9e5eaa'/>
<id>urn:sha1:2439ee31e965a96d3685f362e5a32d365a9e5eaa</id>
<content type='text'>
while we are at it, convert SSLerror to use a function
internally, so that we may later allocate the handshake
structure and check for it
ok jsing@
</content>
</entry>
</feed>
