<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/apps, branch openssl-4.0</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-4.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-4.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2026-10-24T09:58:44Z</updated>
<entry>
<title>apps/lib/cmp_mock_srv.c: Fix NULL dereference of ASN1_INTEGER in refcert_cmp()</title>
<updated>2026-10-24T09:58:44Z</updated>
<author>
<name>Daniel Kubec</name>
<email>kubec@openssl.foundation</email>
</author>
<published>2026-10-01T17:58:12Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=7076d4f41ea975a0d59f17ce59573090108e8872'/>
<id>urn:sha1:7076d4f41ea975a0d59f17ce59573090108e8872</id>
<content type='text'>
The issuer and the serialNumber are independently OPTIONAL
in a CertTemplate.  A component absent from the request cannot confirm
a match with the reference cert, and ASN1_INTEGER_cmp() does not accept
NULL, so require each component the reference cert has to be present
in the request and to be equal.

Fixes: 66be663b64e0 "cmp_mock_srv.c: Add missing OldCertID check for 'kur' cert update requests"
References: b971d4198def "CMP mock server: add -ref_cert option and corresponding ossl_cmp_mock_srv_set1_refCert()"
Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Reviewed-by: Mounir Idrassi &lt;mounir.idrassi@idrix.fr&gt;
Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Merge-date: Sat Oct 24 09:44:19 2026
Merged-from: https://github.com/openssl/openssl/pull/33071
(cherry picked from commit 0e2a7f23387cf7b7cd22832c1f5bdc1200683d6e)
</content>
</entry>
<entry>
<title>Fix set but unsued variable in lib/opt.c</title>
<updated>2026-10-12T07:37:10Z</updated>
<author>
<name>Neil Horman</name>
<email>nhorman@openssl.org</email>
</author>
<published>2026-09-10T17:49:36Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=f93cef74e0ce60e7578504eb7a6a3c11a53fe7cb'/>
<id>urn:sha1:f93cef74e0ce60e7578504eb7a6a3c11a53fe7cb</id>
<content type='text'>
https://github.com/openssl/openssl/actions/runs/34494520852/job/102982686286

CI is failing because we have a varaible in opt.c that is set but never
used.

Just remove it.

Reviewed-by: Andrew Dinh &lt;andrewd@openssl.org&gt;
Reviewed-by: Frederik Wedel-Heinen &lt;fwh.openssl@gmail.com&gt;
MergeDate: Sat Sep 12 13:18:16 2026
Reviewed-by: Mounir Idrassi &lt;mounir.idrassi@idrix.fr&gt;
Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Merged-from: https://github.com/openssl/openssl/pull/33194
(cherry picked from commit eadfce0e20dafd9a9bc8232caf84c4c9498ea667)
</content>
</entry>
<entry>
<title>apps/s_server.c: fix BIO leak in ech_load_dir() on read failure</title>
<updated>2026-10-09T20:01:48Z</updated>
<author>
<name>Mounir IDRASSI</name>
<email>mounir.idrassi@idrix.fr</email>
</author>
<published>2026-06-30T12:55:05Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=41114603e9e2e2b1d91ac260328aa0518fc07091'/>
<id>urn:sha1:41114603e9e2e2b1d91ac260328aa0518fc07091</id>
<content type='text'>
When loading ECH keys from a directory (-ech_dir or -ech_noretry_dir),
ech_load_dir() allocated a BIO via BIO_new_file(), but only freed it
on the success path.  If a file was readable,
yet OSSL_ECHSTORE_read_pem() failed, the continue skipped
BIO_free_all(), leaking the BIO.

OSSL_ECHSTORE_read_pem() does not take ownership of the caller-supplied
BIO.  It pushes and pops its own internal buffer BIO, so the caller
remains responsible for freeing the file BIO in all cases.

Fix this by making the BIO local to each loop iteration and freeing
it in the failure branch as well as the success branch.
This also avoids carrying a dangling BIO pointer from one loop iteration
to the next.

Verified with Valgrind against a directory containing invalid ECH PEM
files: definitely lost: 0 bytes, previously leaked 128 bytes per failing
file.

Resolves: https://github.com/openssl/openssl/issues/31770
Fixes: a2e5848d9d11 "s_client and s_server options for ECH"
Reviewed-by: Daniel Kubec &lt;kubec@openssl.foundation&gt;
Reviewed-by: Andrew Dinh &lt;andrewd@openssl.org&gt;
Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Merge-date: Fri Oct  9 19:55:28 2026
Merged-from: https://github.com/openssl/openssl/pull/31790
(cherry picked from commit 41a2d15da05c6f9d453ff270ea4571f5001c7e4a)
</content>
</entry>
<entry>
<title>Fix typos</title>
<updated>2026-10-09T18:38:14Z</updated>
<author>
<name>Dimitri Papadopoulos</name>
<email>3234522+DimitriPapadopoulos@users.noreply.github.com</email>
</author>
<published>2026-07-04T08:32:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=d4cc873419329e76266a65de863b17cbbb62ce15'/>
<id>urn:sha1:d4cc873419329e76266a65de863b17cbbb62ce15</id>
<content type='text'>
Found by typos[1].

[1] https://github.com/crate-ci/typos

CLA: trivial

Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: Paul Dale &lt;paul.dale@oracle.com&gt;
Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Norbert Pocs &lt;norbertp@openssl.org&gt;
Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
MergeDate: Wed Jul  8 10:46:01 2026
Original-PR: https://github.com/openssl/openssl/pull/31858
Reviewed-by: Daniel Kubec &lt;kubec@openssl.foundation&gt;
Reviewed-by: Kurt Roeckx &lt;kurt@roeckx.be&gt;
Merged-from: https://github.com/openssl/openssl/pull/33143
</content>
</entry>
<entry>
<title>apps/x509.c: don't load extensions if no -extfile/-extensions/"extensions" opt</title>
<updated>2026-10-05T10:10:26Z</updated>
<author>
<name>Eugene Syromiatnikov</name>
<email>esyr@openssl.org</email>
</author>
<published>2026-10-02T16:54:23Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=7c7b9684f868c5c0de74bdd34ce07b0fe739631d'/>
<id>urn:sha1:7c7b9684f868c5c0de74bdd34ce07b0fe739631d</id>
<content type='text'>
The documentation says "If neither of the options are given, an attempt
is made to open the default configuration file [..] If the unnamed
section [..] of the file does not list an B&lt;extensions&gt; variable,
no extensions are added";  however, an attempt was made to load
extensions in that case.  Avoid that by using non-NULL extsect
as a guard for do_EXT_REQ_add_nconf() and do_EXT_REQ_add_nconf() calls
(which also avoids passing NULL as an "%s" format qualifier argument
to BIO_printf() calls in case of load failure).

Fixes: 84419e373ac1 "Improved handling of AKID/SKID extensions in CSRs and certs"
Signed-off-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Jakub Zelenka &lt;jakub.zelenka@openssl.foundation&gt;
Reviewed-by: Bob Beck &lt;beck@openssl.org&gt;
Reviewed-by: Viktor Dukhovni &lt;viktor@openssl.org&gt;
Merge-date: Mon Oct  5 10:09:56 2026
Merged-from: https://github.com/openssl/openssl/pull/33083
(cherry picked from commit 82eef37eb9c1111e24dec960a5c7d10ffb122fb0)
</content>
</entry>
<entry>
<title>apps/x509: Fix new output detection for -key signing</title>
<updated>2026-09-25T11:10:10Z</updated>
<author>
<name>Mounir IDRASSI</name>
<email>mounir.idrassi@idrix.fr</email>
</author>
<published>2026-08-03T11:58:38Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=2883d6d5abda2eee5df507440f74c2e5d50aa22a'/>
<id>urn:sha1:2883d6d5abda2eee5df507440f74c2e5d50aa22a</id>
<content type='text'>
The signing-only option validation runs before load_key(), so
privkey is always NULL when determining newout. Consequently, -key
or -signkey alone does not identify re-signing an input certificate
or signing an -x509toreq output. Signing options are rejected, and
the default extensions section is not loaded.

Check privkeyfile at this stage, which records that the option was
supplied. Keep the later privkey check unchanged because the key has
been loaded by then. Add tests for the validation guard, re-signing
options, and certificate and request extensions.

Fixes #32150

Assisted-by: pi:kimi-k3
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Jakub Zelenka &lt;jakub.zelenka@openssl.foundation&gt;
Merge-date: Fri Sep 25 11:10:17 2026
Merged-from: https://github.com/openssl/openssl/pull/32151
</content>
</entry>
<entry>
<title>Fix a memory leak in apps/ocsp.c issuer</title>
<updated>2026-09-15T16:32:04Z</updated>
<author>
<name>Bernd Edlinger</name>
<email>bernd.edlinger@hotmail.de</email>
</author>
<published>2026-09-12T10:20:18Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=69d6c264e23272079e3e0328ace52723c68308dd'/>
<id>urn:sha1:69d6c264e23272079e3e0328ace52723c68308dd</id>
<content type='text'>
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: Paul Dale &lt;paul.dale@oracle.com&gt;
Reviewed-by: Paul Yang &lt;paulyang.inf@gmail.com&gt;
Merge-date: Tue Sep 15 16:28:52 2026
Merged-from: https://github.com/openssl/openssl/pull/32807
(cherry picked from commit 3bdd4a655bd707f66a7ea620ffae88afc3e15fa7)
</content>
</entry>
<entry>
<title>apps: print an error for a non-positive genrsa bits argument</title>
<updated>2026-09-15T15:19:56Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-08-29T11:52:08Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=c9713ddbd0da8ba15e5f2d3af354e24759998ac9'/>
<id>urn:sha1:c9713ddbd0da8ba15e5f2d3af354e24759998ac9</id>
<content type='text'>
Previously a negative or zero numbits argument made genrsa exit
with a failure status without printing any error message.

Assisted-by: Claude:claude-fable-5
Reviewed-by: Daniel Kubec &lt;kubec@openssl.foundation&gt;
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Merge-date: Tue Sep 15 15:20:10 2026
Merged-from: https://github.com/openssl/openssl/pull/32593
</content>
</entry>
<entry>
<title>apps/x509.c: failing exit status on every failure path reaching err:</title>
<updated>2026-09-07T14:05:06Z</updated>
<author>
<name>Mounir IDRASSI</name>
<email>mounir.idrassi@idrix.fr</email>
</author>
<published>2026-08-04T03:11:39Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=a8e7591d4632e9be738ab4298e098262e3b9491f'/>
<id>urn:sha1:a8e7591d4632e9be738ab4298e098262e3b9491f</id>
<content type='text'>
With -multi, a later certificate failure could return success after an
earlier certificate succeeded because ret retained the earlier result
on reaching err:.

Set ret = 1 at err: so every path reaching it reports failure. Paths
bypassing err: remain unchanged, including the pre-existing
X509_VERIFY_PARAM_new() failure under -checkend, which will be addressed
separately.

Add a regression test using -multi -checkhost with a two-certificate
chain whose second certificate fails.

Fixes #32189

Reviewed-by: Jakub Zelenka &lt;jakub.zelenka@openssl.foundation&gt;
Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Merge-date: Mon Sep  7 14:01:00 2026
Merged-from: https://github.com/openssl/openssl/pull/32190
(cherry picked from commit 8da3880874acaac2e338665f216e430f78f976f1)
</content>
</entry>
<entry>
<title>s_server: Do not override -Verify with -verify_return_error</title>
<updated>2026-08-27T16:15:50Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.foundation</email>
</author>
<published>2026-08-26T12:29:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=66a487fae42d0f675f063749424b4755127d58b2'/>
<id>urn:sha1:66a487fae42d0f675f063749424b4755127d58b2</id>
<content type='text'>
Or the verification flags in instead of overriding
the previous value with -verify_return_error.

Fixes e5f01903ed7

Reviewed-by: Milan Broz &lt;mbroz@openssl.org&gt;
Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Merge-date: Thu Aug 27 16:15:34 2026
Merged-from: https://github.com/openssl/openssl/pull/32512
(cherry picked from commit d2307ad06d5510352ce2fc9ad2c87461fd60966a)
</content>
</entry>
</feed>
