<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/d1_lib.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_new() call dtls1_free() on failure.</title>
<updated>2020-09-26T09:01:05+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-26T09:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=16a00524267404e94d8c26a27dd54a75587920e7'/>
<id>urn:sha1:16a00524267404e94d8c26a27dd54a75587920e7</id>
<content type='text'>
Allocate into the appropriate structures and call dtls1_free() on failure,
rather than allocating into local variables and then remembering to free
various things on failure.

ok tb@
</content>
</entry>
<entry>
<title>Refactor dtls1_clear_queues()</title>
<updated>2020-09-26T07:36:51+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-26T07:36:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4284d3c95b72551c4d0f88087d7ef3e863d48e86'/>
<id>urn:sha1:4284d3c95b72551c4d0f88087d7ef3e863d48e86</id>
<content type='text'>
An upcoming cleanup diff by jsing needs dtls1_clear_queues() to be
able to handle NULL pqueues. While one can easily add a NULL check
to pqueue_pop(), this does not really fit in with the rest of the
code. There are two kinds of while loops in dtls1_clear_queues that
drain pqueues, so add two helper functions with a NULL check each.

ok jsing
</content>
</entry>
<entry>
<title>Release read and write buffers using freezero().</title>
<updated>2020-09-24T17:59:54+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-24T17:59:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1328e78055c6ad087ebbec8484862dea13576ef5'/>
<id>urn:sha1:1328e78055c6ad087ebbec8484862dea13576ef5</id>
<content type='text'>
Provide a ssl3_release_buffer() function that correctly frees a buffer
and call it from the appropriate locations. While here also change
ssl3_release_{read,write}_buffer() to void since they cannot fail and
no callers check the return value currently.

ok beck@ inoguchi@ tb@
</content>
</entry>
<entry>
<title>Remove some unnecessary function pointers from SSL_METHOD_INTERNAL.</title>
<updated>2020-07-07T19:31:11+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-07-07T19:31:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=af06ca6427e355a07e5ee9751f9d0ef96f73e5a7'/>
<id>urn:sha1:af06ca6427e355a07e5ee9751f9d0ef96f73e5a7</id>
<content type='text'>
ssl_version is completely unused and get_timeout is the same everywhere.

ok beck@ inoguchi@ tb@
</content>
</entry>
<entry>
<title>Use internal versions of SSL3_BUFFER, SSL3_RECORD and DTLS1_RECORD_DATA.</title>
<updated>2020-03-12T17:01:53+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:01:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=63b0f131cbf0e20ff888516045c6693e8515333f'/>
<id>urn:sha1:63b0f131cbf0e20ff888516045c6693e8515333f</id>
<content type='text'>
SSL3_BUFFER, SSL3_RECORD and DTLS1_RECORD_DATA are currently still in
public headers, even though their usage is internal. This moves to
using _INTERNAL suffixed versions that are in internal headers, which
then allows us to change them without any potential public API fallout.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Remove the enc function pointers.</title>
<updated>2020-03-10T17:02:21+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-10T17:02:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7895b558af2262d6d71a405d98e524b072c4a3d8'/>
<id>urn:sha1:7895b558af2262d6d71a405d98e524b072c4a3d8</id>
<content type='text'>
The enc function pointers do not serve any purpose these days - remove
a layer of indirection and call dtls1_enc()/tls1_enc() directly.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Convert dtls1_build_sequence_number() to CBB.</title>
<updated>2020-02-21T16:12:18+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-02-21T16:12:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=04331420fb5aece21e40cda3c431aae91437700c'/>
<id>urn:sha1:04331420fb5aece21e40cda3c431aae91437700c</id>
<content type='text'>
ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Use freezero() for the internal opaque structures, instead of the current</title>
<updated>2017-04-10T17:27:33+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-10T17:27:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=19e5fc4a206c3a514871cf1e2660d7211dc69ca8'/>
<id>urn:sha1:19e5fc4a206c3a514871cf1e2660d7211dc69ca8</id>
<content type='text'>
explicit_bzero()/free(). Less code and potentially less overhead.
</content>
</entry>
<entry>
<title>Change SSLerror() back to taking two args, with the first one being an SSL *.</title>
<updated>2017-02-07T02:08:38+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-02-07T02:08:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9a5920738bea15430db1fdd138e67d9bbc3a95d3'/>
<id>urn:sha1:9a5920738bea15430db1fdd138e67d9bbc3a95d3</id>
<content type='text'>
Make a table of "function codes" which maps the internal state of the SSL *
to something like a useful name so in a typical error in the connection you
know in what sort of place in the handshake things happened. (instead of
by arcane function name).
Add SSLerrorx() for when we don't have an SSL *
ok jsing@ after us both being prodded by bluhm@ to make it not terrible
</content>
</entry>
</feed>
