<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/ssl_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-24T18:12:00+00:00</updated>
<entry>
<title>Simplify the cleanup of init_buf via a ssl3_release_init_buffer() function.</title>
<updated>2020-09-24T18:12:00+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-24T18:12:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=10841ee643f560678ff5ed0276c4da735ec37bdf'/>
<id>urn:sha1:10841ee643f560678ff5ed0276c4da735ec37bdf</id>
<content type='text'>
ok beck@ inoguchi@ tb@
</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>Replace SSL_PKEY_RSA_ENC/SSL_PKEY_RSA_SIGN with SSL_PKEY_RSA.</title>
<updated>2020-05-19T16:35:21+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-05-19T16:35:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=369bbcd163f15f6e452e14282f0a65dafde2f5ab'/>
<id>urn:sha1:369bbcd163f15f6e452e14282f0a65dafde2f5ab</id>
<content type='text'>
Some time prior to SSLeay 0.8.1b, SSL_PKEY_RSA_SIGN got added with the
intention of handling RSA sign only certificates... this incomplete code
had the following comment:

  /* check to see if this is a signing only certificate */
  /* EAY EAY EAY EAY */

And while the comment was removed in 2005, the incomplete RSA sign-only
handling has remained ever since.

Remove SSL_PKEY_RSA_SIGN and rename SSL_PKEY_RSA_ENC to SSL_PKEY_RSA. While
here also remove the unused SSL_PKEY_DH_RSA.

ok tb@
</content>
</entry>
<entry>
<title>Use calloc() rather than malloc() when allocating buffers.</title>
<updated>2020-03-12T17:15:33+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:15:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1ff32d7d2a793d3705647cf8a01469592503cf75'/>
<id>urn:sha1:1ff32d7d2a793d3705647cf8a01469592503cf75</id>
<content type='text'>
This reduces the chance of accidently leaking stack memory.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>Remove the ssl_get_message function pointer from SSL_METHOD_INTERNAL.</title>
<updated>2020-01-23T10:48:37+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-01-23T10:48:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a0913f8b11765018808c519315bcbc52aa7a4f27'/>
<id>urn:sha1:a0913f8b11765018808c519315bcbc52aa7a4f27</id>
<content type='text'>
ssl_get_message is essentially a switch between ssl3_get_message and
dtls1_get_message, both only used by the legacy stack. Instead, use
SSL_IS_DTLS() in ssl3_get_message to call  the DTLS function when
necessary.

ok beck@ inoguchi@ tb@
</content>
</entry>
<entry>
<title>Rework ssl3_output_cert_chain() to take a CERT_PKEY and consider chains.</title>
<updated>2019-03-25T16:35:48+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-03-25T16:35:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=81bb5fac89e0630dea5eb48cdb42f20582e16a89'/>
<id>urn:sha1:81bb5fac89e0630dea5eb48cdb42f20582e16a89</id>
<content type='text'>
We will now include the certificates in the chain in the certificate list,
or use the existing extra_certs if present. Failing that we fall back to
the automatic chain building if not disabled.

This also simplifies the code significantly.

ok beck@ tb@
</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>Make more of libssl's record layer state internal.</title>
<updated>2018-10-24T18:04:50+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-10-24T18:04:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c35a1141f368eb454f165541c3dfbe6b6e48b91d'/>
<id>urn:sha1:c35a1141f368eb454f165541c3dfbe6b6e48b91d</id>
<content type='text'>
In January 2017, we changed large amounts of libssl's data structures to
be non-visible/internal, however intentionally left things that the
software ecosystem was needing to use. The four or so applications that
reached into libssl for record layer related state now implement
alternative code. As such, make these data structures internal.

ok tb@
</content>
</entry>
<entry>
<title>Clean up handshake message start/finish functions.</title>
<updated>2018-08-24T17:30:32+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-08-24T17:30:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=dd7cee845ba455372d9339ef09b4c365da4166ac'/>
<id>urn:sha1:dd7cee845ba455372d9339ef09b4c365da4166ac</id>
<content type='text'>
Now that all handshake messages are created using CBB, remove the non-CBB
ssl3_handshake_msg_start()/ssl3_handshake_msg_finish() functions. Rename
the CBB variants by dropping the _cbb suffix.

ok bcook@ 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>
</feed>
