<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libtls/tls_ocsp.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2026-04-16T07:35:25+00:00</updated>
<entry>
<title>libtls: consistently handle allocation failures</title>
<updated>2026-04-16T07:35:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:35:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8662e35dbd36d8450a6d4c7188a65c580e4b339f'/>
<id>urn:sha1:8662e35dbd36d8450a6d4c7188a65c580e4b339f</id>
<content type='text'>
Use tls_set_errorx() or tls_error_setx() rather than the versions without
x for TLS_ERROR_OUT_OF_MEMORY. ENOMEM adds no further info.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>libtls: prefer x version of error setting</title>
<updated>2026-04-16T07:28:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-04-16T07:28:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4ab01251a636fac40d8a39e8cc3ba506580aa79b'/>
<id>urn:sha1:4ab01251a636fac40d8a39e8cc3ba506580aa79b</id>
<content type='text'>
If a check fails and errno is not necessarily set by the previous API call
use tls_set_errorx() or tls_error_setx() since turning an unrelated errno
into an error string is unhelpful.

From Michael Forney

ok bcook
</content>
</entry>
<entry>
<title>libtls: const workarounds for X509_NAME in OCSP for OpenSSL 4</title>
<updated>2026-03-28T11:49:31+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-03-28T11:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f3cceccc18dfd4f96044df85f30c117f39b9cc9f'/>
<id>urn:sha1:f3cceccc18dfd4f96044df85f30c117f39b9cc9f</id>
<content type='text'>
The API to look up a cert by subject or issuer name clearly only needs to
do name comparisons in a collection of certs so should by all means take a
const X509_NAME * as an argument. However, this isn't all that easy to do
and hence it's only in OpenSSL 4 that this obvious step was reached.

This means that there is no way around casting for older code. One could
cast the return value of X509_get_issuer_name() or the argument passed to
the two lookups by subject. jsing slightly prefers the second approach,
so this is what we do here.

ok djm jsing kenjiro
</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>Convert libressl to use the BoringSSL style time conversions</title>
<updated>2024-03-24T11:30:12+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-03-24T11:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca'/>
<id>urn:sha1:0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca</id>
<content type='text'>
This gets rid of our last uses of timegm and gmtime in the
library and things that ship with it. It includes a bit
of refactoring in ocsp_cl.c to remove some obvious ugly.

ok tb@
</content>
</entry>
<entry>
<title>Remove last caller of ASN1_time_parse(3) in libtls</title>
<updated>2023-11-13T10:56:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-13T10:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=687a261274bb4bb40ddf2906c38160413ceed08b'/>
<id>urn:sha1:687a261274bb4bb40ddf2906c38160413ceed08b</id>
<content type='text'>
This one is slightly annoying since ASN1_TIME_to_tm(3) doesn't provide a
direct check for a GeneralizedTime, so call ASN1_GENERALIZEDTIME_check()
as well. This means LibreSSL parses the time twice. Shrug.

ok beck
</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>Simplify some code by using X509_STORE_CTX_get_obj_by_subject()</title>
<updated>2021-10-31T16:39:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-10-31T16:39:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4b2d7af4c8adb53efa75fa9d33c763e5d15ef715'/>
<id>urn:sha1:4b2d7af4c8adb53efa75fa9d33c763e5d15ef715</id>
<content type='text'>
ok beck jsing
</content>
</entry>
<entry>
<title>libtls: Don't reach into X509_STORE_CTX.</title>
<updated>2021-10-21T14:57:55+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-10-21T14:57:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=30a3fb2adcfed7598558c1a5958cd4666c0e1866'/>
<id>urn:sha1:30a3fb2adcfed7598558c1a5958cd4666c0e1866</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>OCSP_basic_verify() doesn't set errno, so use tls_set_errorx()</title>
<updated>2021-03-23T20:04:29+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-03-23T20:04:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9ed88205d42eaac13cb994ec2bfb335ddee622c8'/>
<id>urn:sha1:9ed88205d42eaac13cb994ec2bfb335ddee622c8</id>
<content type='text'>
ok inoguchi
</content>
</entry>
</feed>
