<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/apps, branch master</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=master</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2026-10-24T09:42:53Z</updated>
<entry>
<title>apps/lib/cmp_mock_srv.c: Fix NULL dereference of ASN1_INTEGER in refcert_cmp()</title>
<updated>2026-10-24T09:42:53Z</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=0e2a7f23387cf7b7cd22832c1f5bdc1200683d6e'/>
<id>urn:sha1:0e2a7f23387cf7b7cd22832c1f5bdc1200683d6e</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
</content>
</entry>
<entry>
<title>apps/ocsp.c: fail on invalid response times</title>
<updated>2026-10-19T13:37:49Z</updated>
<author>
<name>skaiea13-ai</name>
<email>246881935+skaiea13-ai@users.noreply.github.com</email>
</author>
<published>2026-08-30T05:12:36Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=f9796787f5189a23242f95d081c871d8bca479b2'/>
<id>urn:sha1:f9796787f5189a23242f95d081c871d8bca479b2</id>
<content type='text'>
Propagate OCSP_check_validity() failures through print_ocsp_summary(),
so the command returns a nonzero exit status for stale responses.

Add a request-aware regression test using the existing signed fixtures.

Resolves: https://github.com/openssl/openssl/issues/32367
References: 639bb581ce5b "apps/ocsp: Return non zero exit code with invalid certID"
References: https://github.com/openssl/openssl/issues/7151
Co-Authored-by: Mounir Idrassi &lt;mounir.idrassi@idrix.fr&gt;
Assisted-by: OpenAI Codex:GPT-5
Assisted-by: OpenAI Codex:GPT-6
Reviewed-by: Frederik Wedel-Heinen &lt;fwh.openssl@gmail.com&gt;
Reviewed-by: Mounir Idrassi &lt;mounir.idrassi@idrix.fr&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Merge-date: Mon Oct 19 13:41:13 2026
Merged-from: https://github.com/openssl/openssl/pull/32600
</content>
</entry>
<entry>
<title>apps/s_server.c: fix BIO leak in ech_load_dir() on read failure</title>
<updated>2026-10-09T19:55:14Z</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=41a2d15da05c6f9d453ff270ea4571f5001c7e4a'/>
<id>urn:sha1:41a2d15da05c6f9d453ff270ea4571f5001c7e4a</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
</content>
</entry>
<entry>
<title>apps: set cookie callbacks on s_server SNI context</title>
<updated>2026-10-06T14:46:47Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-10-04T13:50:42Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=74653a6df0e54410feb7737b77b833a6b8f71c68'/>
<id>urn:sha1:74653a6df0e54410feb7737b77b833a6b8f71c68</id>
<content type='text'>
s_server only installed the DTLS and stateless cookie callbacks on its
main SSL_CTX. When -servername matched, the connection was switched to
the second context before the cookie was generated, so a DTLS 1.2
client sending that name failed the handshake with a cookie generation
callback failure instead of getting a HelloVerifyRequest.

Install the callbacks on the SNI context as well and cover the case
with a (D)TLSv1.2 server name handshake in the TLSProxy message test.

Assisted-by: Claude:claude-fable-5-1
Reviewed-by: Matt Caswell &lt;matt@openssl.foundation&gt;
Reviewed-by: Mounir Idrassi &lt;mounir.idrassi@idrix.fr&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Merge-date: Tue Oct  6 14:46:55 2026
Merged-from: https://github.com/openssl/openssl/pull/33093
</content>
</entry>
<entry>
<title>apps/x509.c: don't load extensions if no -extfile/-extensions/"extensions" opt</title>
<updated>2026-10-05T10:09:53Z</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=82eef37eb9c1111e24dec960a5c7d10ffb122fb0'/>
<id>urn:sha1:82eef37eb9c1111e24dec960a5c7d10ffb122fb0</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
</content>
</entry>
<entry>
<title>Dealing with symmetric keys in pkcs12 command-line utility</title>
<updated>2026-09-29T18:33:41Z</updated>
<author>
<name>Dmitry Belyavskiy</name>
<email>beldmit@gmail.com</email>
</author>
<published>2026-09-24T13:59:26Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=95f35c26f3482e9f05391232d1645fca73da0be5'/>
<id>urn:sha1:95f35c26f3482e9f05391232d1645fca73da0be5</id>
<content type='text'>
This is a follow-up to #30937
Assisted-by: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;

Reviewed-by: Mounir Idrassi &lt;mounir.idrassi@idrix.fr&gt;
Reviewed-by: Simo Sorce &lt;simo@redhat.com&gt;
MergeDate: Tue Sep 29 18:34:13 2026
(Merged from https://github.com/openssl/openssl/pull/32978)
</content>
</entry>
<entry>
<title>apps/x509: Fix new output detection for -key signing</title>
<updated>2026-09-25T11:07:28Z</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=7aa9f5091ce768d21448e22d6ff00b04dcb39d02'/>
<id>urn:sha1:7aa9f5091ce768d21448e22d6ff00b04dcb39d02</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:07:32 2026
Merged-from: https://github.com/openssl/openssl/pull/32151
</content>
</entry>
<entry>
<title>apps/server.c: Do not declare use_sendfile and use_zc_sendfile without ktls</title>
<updated>2026-09-17T14:04:53Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.foundation</email>
</author>
<published>2026-09-16T10:24:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=fa5c8d1c513308e5e495f88653fc86ebc0b3113e'/>
<id>urn:sha1:fa5c8d1c513308e5e495f88653fc86ebc0b3113e</id>
<content type='text'>
It is unused otherwise.

Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
Merge-date: Thu Sep 17 14:05:04 2026
Merged-from: https://github.com/openssl/openssl/pull/32821
</content>
</entry>
<entry>
<title>apps: fix dsa app exit status on option parsing errors</title>
<updated>2026-09-16T08:48:52Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-08-29T10:31:08Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e713336e3c60c318551fade1ea5f97dc78d2276d'/>
<id>urn:sha1:e713336e3c60c318551fade1ea5f97dc78d2276d</id>
<content type='text'>
The dsa app set ret to 0 before printing the option parsing error,
resulting in a successful exit status for invalid options.  All other
apps keep the initial error status in this case, so drop the errant
assignment to make dsa fail as expected.

Assisted-by: Claude:claude-fable-5
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Daniel Kubec &lt;kubec@openssl.foundation&gt;
Merge-date: Wed Sep 16 08:48:56 2026
Merged-from: https://github.com/openssl/openssl/pull/32590
</content>
</entry>
<entry>
<title>Fix a memory leak in apps/ocsp.c issuer</title>
<updated>2026-09-15T16:28:50Z</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=3bdd4a655bd707f66a7ea620ffae88afc3e15fa7'/>
<id>urn:sha1:3bdd4a655bd707f66a7ea620ffae88afc3e15fa7</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
</content>
</entry>
</feed>
