<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libtls/tls_config.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2026-04-16T07:33:11+00:00</updated>
<entry>
<title>libtls: use TLS_ERROR_OUT_OF_MEMORY after malloc failure</title>
<updated>2026-04-16T07:33:11+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:33:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8dfa678933bc42faeff1d9406e589c16fac7f60e'/>
<id>urn:sha1:8dfa678933bc42faeff1d9406e589c16fac7f60e</id>
<content type='text'>
tls_config_load_file() hat a spot that used TLS_ERROR_UNKNOWN, so switch
that to the usual error code. Use tls_error_setx() since strerror(ENOMEM)
adds nothing.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>use O_CLOEXEC; ok tb</title>
<updated>2026-03-10T05:26:04+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2026-03-10T05:26:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=71927d7dd981f6e0a9705dd2ddf5bc60abfbaeab'/>
<id>urn:sha1:71927d7dd981f6e0a9705dd2ddf5bc60abfbaeab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libtls: fix legacy protocol parsing</title>
<updated>2024-08-02T15:00:01+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-02T15:00:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b406bf2119594dc725dd7e537eb049151f94db87'/>
<id>urn:sha1:b406bf2119594dc725dd7e537eb049151f94db87</id>
<content type='text'>
Redefining TLS_PROTOCOL_TLSv1_0 and TLS_PROTOCOL_TLSv1_1 to be the same
as TLS_PROTOCOL_TLSv1_2 had undesired side effects, as witnessed in the
accompanying regress tests. The protocol string all:tlsv1.0 would disable
TLSv1.2 (so only enable TLSv1.3) and tlsv1.2:!tlsv1.1 would disable all
protocols.

It makes more sense to ignore any setting of TLSv1.0 and TLSv1.1, so if
you request 'tlsv1.1' you get no protocol, but 'all:!tlsv1.1' will enable
the two supported protocols TLSv1.3 and TLSv1.2.

Restore the defines to their original values and adjust the parsing code
to set/unset them.

Issue reported by Kenjiro Nakayama
Fixes https://github.com/libressl/openbsd/issues/151

with/ok jsing
</content>
</entry>
<entry>
<title>Use TLS_ERROR_INVALID_ARGUMENT for "too large" and "too small" errors</title>
<updated>2024-03-28T06:55:02+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-28T06:55:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d3012ebd0480445b9625c35635eb2e6849c6501a'/>
<id>urn:sha1:d3012ebd0480445b9625c35635eb2e6849c6501a</id>
<content type='text'>
ok beck tb
</content>
</entry>
<entry>
<title>Add TLS_ERROR_INVALID_ARGUMENT error code to libtls</title>
<updated>2024-03-27T07:35:30+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-27T07:35:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2f91b3106eca7de0d2c1cd49842ac4b5e027fc63'/>
<id>urn:sha1:2f91b3106eca7de0d2c1cd49842ac4b5e027fc63</id>
<content type='text'>
This is an initial pass, defining the error code and using it for
"too long"/length-related errors.

ok beck jsing
</content>
</entry>
<entry>
<title>Add error code support to libtls</title>
<updated>2024-03-26T06:24:52+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T06:24:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bd68c6e1694d8d4eb801f32889da4cdde0b3c311'/>
<id>urn:sha1:bd68c6e1694d8d4eb801f32889da4cdde0b3c311</id>
<content type='text'>
This adds tls_config_error_code() and tls_error_code(), which will become
public API at a later date.

Additional error codes will be added in follow-up commits.

ok jsing@ beck@
</content>
</entry>
<entry>
<title>Remove the ability to do tls 1.0 and 1.1 from libtls.</title>
<updated>2023-07-02T06:37:27+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-02T06:37:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=908a2337ae4c28163a92b9fda969dbdd36bc634b'/>
<id>urn:sha1:908a2337ae4c28163a92b9fda969dbdd36bc634b</id>
<content type='text'>
With this change any requests from configurations to request
versions of tls before tls 1.2 will use tls 1.2. This prepares
us to deprecate tls 1.0 and tls 1.1 support from libssl.

ok tb@
</content>
</entry>
<entry>
<title>add missing #include &lt;string.h&gt;; ok tb@</title>
<updated>2023-05-14T07:26:25+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2023-05-14T07:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=751c792967481bc8add0d09d060248a9d59cfadf'/>
<id>urn:sha1:751c792967481bc8add0d09d060248a9d59cfadf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce a signer interface intented to make TLS privsep simpler</title>
<updated>2022-01-25T21:51:24+00:00</updated>
<author>
<name>eric</name>
<email></email>
</author>
<published>2022-01-25T21:51:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bff2f4430c3c0f9cc4584883118372ffbdcbd1e6'/>
<id>urn:sha1:bff2f4430c3c0f9cc4584883118372ffbdcbd1e6</id>
<content type='text'>
to implement.

Add a tls_config_set_sign_cb() function that allows to register
a callback for the signing operation on a tls_config. When used,
the context installs fake pivate keys internally, and the callback
receives the hash of the public key.

Add a tls_signer_*() set of functions to manage tls_signer objects.
A tls_signer is an opaque structure on which keys are added.
It is used to compute signatures with private keys identified by
their associated public key hash.

Discussed with and ok jsing@ tb@
</content>
</entry>
<entry>
<title>Print uid with %u instead of %i.</title>
<updated>2021-10-21T08:33:07+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-10-21T08:33:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f84744447839633dcb3a43f99540a7ca822878dd'/>
<id>urn:sha1:f84744447839633dcb3a43f99540a7ca822878dd</id>
<content type='text'>
Prompted by a diff by Jonas Termansen, discussed with deraadt, millert

ok jsing
</content>
</entry>
</feed>
