<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libtls/tls_util.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libtls/tls_util.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libtls/tls_util.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-04-13T18:47:58Z</updated>
<entry>
<title>Null out pointers on asprintf() failure.</title>
<updated>2019-04-13T18:47:58Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2019-04-13T18:47:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0f235647877a526523961ad0c5962410ae3a942b'/>
<id>urn:sha1:0f235647877a526523961ad0c5962410ae3a942b</id>
<content type='text'>
These pointers will be passed to free. According to asprintf(3), "on
OpenBSD, ret will be set to the null pointer, but this behavior should
not be relied upon."

ok jsing
</content>
</entry>
<entry>
<title>Only assign destlen when src is non-NULL.</title>
<updated>2019-04-04T15:10:10Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2019-04-04T15:10:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a2b2c5372fe238427b48cf679d060e81e6eaa40d'/>
<id>urn:sha1:a2b2c5372fe238427b48cf679d060e81e6eaa40d</id>
<content type='text'>
This avoids ever having a non-zero len with a NULL pointer.
</content>
</entry>
<entry>
<title>Assert tedu's copyright since some of the code moved here is his.</title>
<updated>2018-02-08T07:55:29Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2018-02-08T07:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=15ba8e50b96ecc48a19bca342e70997c029121ee'/>
<id>urn:sha1:15ba8e50b96ecc48a19bca342e70997c029121ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Split keypair handling out into its own file - it had already appeared</title>
<updated>2018-02-08T05:56:49Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2018-02-08T05:56:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=bb4cb1b0441fa059bcc631311ed93636eefbc1b2'/>
<id>urn:sha1:bb4cb1b0441fa059bcc631311ed93636eefbc1b2</id>
<content type='text'>
in multiple locations.

ok beck@
</content>
</entry>
<entry>
<title>Be consistent with the goto label names used in libtls code.</title>
<updated>2018-02-05T00:52:24Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2018-02-05T00:52:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7add217b8eb9ea81a3752d76fa1861ba7106469a'/>
<id>urn:sha1:7add217b8eb9ea81a3752d76fa1861ba7106469a</id>
<content type='text'>
No change to generated assembly.
</content>
</entry>
<entry>
<title>Use the tls_password_cb() callback with all PEM_read_bio_*() calls, so that</title>
<updated>2017-06-22T18:03:57Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-06-22T18:03:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a192468a6a296bf47a6f2939ab2280c765a76555'/>
<id>urn:sha1:a192468a6a296bf47a6f2939ab2280c765a76555</id>
<content type='text'>
we can prevent libcrypto from going behind our back and trying to read
passwords from standard input (which we may not be permitted to do).

Found by jsg@ with httpd and password protected keys.
</content>
</entry>
<entry>
<title>Use freezero() for the tls_load_file() failure case, since we're</title>
<updated>2017-05-06T21:34:13Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-05-06T21:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=54356a5d711c8d80e4edec59da532ab29b95e04d'/>
<id>urn:sha1:54356a5d711c8d80e4edec59da532ab29b95e04d</id>
<content type='text'>
potentially dealing with key material. Also switch a calloc to malloc,
since we immediately copy the same amount of data to the newly allocated
buffer.
</content>
</entry>
<entry>
<title>BIO_free_all() and EVP_PKEY_free() can be called with NULL.</title>
<updated>2017-05-06T21:25:15Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-05-06T21:25:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=55177a383a974273e6d8cd8f2e29101bc2313c87'/>
<id>urn:sha1:55177a383a974273e6d8cd8f2e29101bc2313c87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide a tls_unload_file() function, that frees the memory returned from</title>
<updated>2017-05-06T20:57:45Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-05-06T20:57:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=028ca023e5ccdd92807421708f890771df281e1c'/>
<id>urn:sha1:028ca023e5ccdd92807421708f890771df281e1c</id>
<content type='text'>
a tls_load_file() call, ensuring that it the contents become inaccessible.
This is specifically needed on platforms where the library allocators may
be different from the application allocator.

ok beck@
</content>
</entry>
<entry>
<title>Address some signed vs unsigned warnings and check that an integer value</title>
<updated>2016-11-04T15:59:16Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2016-11-04T15:59:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=dad7bfe2e40ae1373c03c57f426ec8b035bd33df'/>
<id>urn:sha1:dad7bfe2e40ae1373c03c57f426ec8b035bd33df</id>
<content type='text'>
is positive before passing it to several functions as a size_t.
Additionally, in tls_load_file() there is not much point using calloc(),
when we're immediately reading into the buffer (having an extra byte for
NUL termination seems pointless given the API).

ok beck@ miod@
</content>
</entry>
</feed>
