<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_asn1.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>2018-08-27T16:42:48+00:00</updated>
<entry>
<title>Simplify new session ticket encoding/generation.</title>
<updated>2018-08-27T16:42:48+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-08-27T16:42:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3214e561f5d16cffff1ac02e8f9fcf7cd78bafc8'/>
<id>urn:sha1:3214e561f5d16cffff1ac02e8f9fcf7cd78bafc8</id>
<content type='text'>
The original code did a crazy encode/malloc/encode/decode/modify/encode
dance, in order to encode a session in the form needed to encrypt then add
to a session ticket. By modifying the encoding functions slightly, we can
do this entire dance as a single encode.

Inspired by similar changes in BoringSSL.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>In i2d_SSL_SESSION(), on error call CBB_cleanup() with the correct CBB.</title>
<updated>2018-03-20T16:10:57+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-03-20T16:10:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=61074e318aa46e48a32d930ca8c714491dbab771'/>
<id>urn:sha1:61074e318aa46e48a32d930ca8c714491dbab771</id>
<content type='text'>
Spotted by Coverity, although reported as a different issue.
</content>
</entry>
<entry>
<title>Add missing $OpenBSD$ tags.</title>
<updated>2017-05-06T16:18:36+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-05-06T16:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0de4d35571b79288296f8df357dedc38c201ad7e'/>
<id>urn:sha1:0de4d35571b79288296f8df357dedc38c201ad7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch back to freezero() and explicitly initialise data_len to zero. The</title>
<updated>2017-04-30T04:21:53+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-30T04:21:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f79e820651388e3e43865d862d25f125435d633d'/>
<id>urn:sha1:f79e820651388e3e43865d862d25f125435d633d</id>
<content type='text'>
previous code was safe since data would always be NULL if data_len was
uninitialised, however compilers cannot know this.
</content>
</entry>
<entry>
<title>backout previous, data_len is not always initialized</title>
<updated>2017-04-16T06:26:55+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2017-04-16T06:26:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cf60f6b359a0d738aa963c901f0f283688efaeb5'/>
<id>urn:sha1:cf60f6b359a0d738aa963c901f0f283688efaeb5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch i2d_SSL_SESSION() back to freezero(3) now that the size constraints</title>
<updated>2017-04-14T15:20:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-14T15:20:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bb3a2224371df56a095bf21607f36458081bda63'/>
<id>urn:sha1:bb3a2224371df56a095bf21607f36458081bda63</id>
<content type='text'>
have been relaxed.
</content>
</entry>
<entry>
<title>Revert ssl_asn1.c r1.50 - CBB and freezero(3) do not play nicely together.</title>
<updated>2017-04-11T13:14:08+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-11T13:14:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cd55c3b0c4a69244140d116d0a9458ea69ab5bd1'/>
<id>urn:sha1:cd55c3b0c4a69244140d116d0a9458ea69ab5bd1</id>
<content type='text'>
Back this out while we investigate and implement a solution.

Found the hard way by sthen@
</content>
</entry>
<entry>
<title>Use freezero() for i2d_SSL_SESSION() - one line of code instead of three.</title>
<updated>2017-04-10T16:47:08+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-10T16:47:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8d4a6ac759c1f9f5fafef26397422f7241dd61e9'/>
<id>urn:sha1:8d4a6ac759c1f9f5fafef26397422f7241dd61e9</id>
<content type='text'>
In this case the memory allocated can also be significant, in which case
freezero() will have less overhead than explicit_bzero() (munmap instead
of touching all of the memory to write zeros).
</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>
<entry>
<title>Send the error function codes to rot in the depths of hell where they belong</title>
<updated>2017-01-26T10:40:21+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-26T10:40:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a4abf558fd44464a5a48bfeb5393b01002f66c5e'/>
<id>urn:sha1:a4abf558fd44464a5a48bfeb5393b01002f66c5e</id>
<content type='text'>
We leave a single funciton code (0xFFF) to say "SSL_internal" so the public
API will not break, and we replace all internal use of the two argument
SSL_err() with the internal only SSL_error() that only takes a reason code.
ok jsing@
</content>
</entry>
</feed>
