<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/test/unit, 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-21T16:24:43Z</updated>
<entry>
<title>ssl: handle session ID cache lock failure</title>
<updated>2026-10-21T16:24:43Z</updated>
<author>
<name>Mounir IDRASSI</name>
<email>mounir.idrassi@idrix.fr</email>
</author>
<published>2026-08-12T09:53:22Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=ced1ca3a0be6f1c4d512805cba16ad4655004fd5'/>
<id>urn:sha1:ced1ca3a0be6f1c4d512805cba16ad4655004fd5</id>
<content type='text'>
SSL_has_matching_session_id() returns 0 both when no matching session
exists and when the cache lock cannot be acquired. Its use in the
built-in generator's retry loop and the final uniqueness check can
therefore treat a lock failure as proof that no conflict exists.

Add an internal tri-state lookup. The final uniqueness check uses it as
a backstop for IDs produced by both built-in and application callbacks,
recording an internal fatal error when the cache cannot be checked. The
retry loop also uses it to prevent the built-in generator from returning
an ID after its own lookup failed, through the existing callback failure
path. Preserve the public API's boolean contract.

Correct the callback-selection cache lock failure reason from
SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED to ERR_R_INTERNAL_ERROR.

Remove a redundant caller-side SSLfatal() that appended a generic
ERR_R_INTERNAL_ERROR after the specific error already recorded. Add a
deterministic unit test for final cache lookup failure.

Fixes #32358

Assisted-by: Codex:gpt-5.6-sol
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Merge-date: Wed Oct 21 16:25:29 2026
Merged-from: https://github.com/openssl/openssl/pull/32359
</content>
</entry>
<entry>
<title>Bring recent comments into line with the STYLE.md comment rules</title>
<updated>2026-10-02T08:05:59Z</updated>
<author>
<name>Bob Beck</name>
<email>beck@openssl.org</email>
</author>
<published>2026-09-09T23:28:18Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=1234697b33694bea6e7df35704b126108d1391ea'/>
<id>urn:sha1:1234697b33694bea6e7df35704b126108d1391ea</id>
<content type='text'>
Comments added by AI-assisted commits over the last three months
often narrate the change rather than describe the code: the
behaviour being replaced, the alternative not taken, or the bug the
test was written for. STYLE.md now says that a comment states what
the code does and the constraint it satisfies, and that the
reasoning behind a change does not belong in one.

Reword those comments to that standard.

Reviewed-by: Milan Broz &lt;mbroz@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Merge-date: Fri Oct  2 08:06:12 2026
Merged-from: https://github.com/openssl/openssl/pull/32779
</content>
</entry>
<entry>
<title>test: add unit test for the buffering BIO</title>
<updated>2026-09-29T16:36:51Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-09-02T11:14:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=68258f5ebffd908fa48687ea9f06c29c12a2adfe'/>
<id>urn:sha1:68258f5ebffd908fa48687ea9f06c29c12a2adfe</id>
<content type='text'>
Test BIO_f_buffer through a fake next BIO whose callbacks are cmocka
mocks, covering the partial-write and retry handling on flush, the
direct read/write paths for oversized requests, the ctrl operations,
and the datagram peer recording and sendmmsg-based flushing used by
DTLS listener connections.  Wrapping the address allocation functions
additionally covers the peer recording failure branches.

Assisted-by: Claude:claude-fable-5
Reviewed-by: Daniel Kubec &lt;kubec@openssl.foundation&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Merge-date: Tue Sep 29 16:36:57 2026
Merged-from: https://github.com/openssl/openssl/pull/32642
</content>
</entry>
<entry>
<title>test: forward real stdio calls in bss_file unit test mocks</title>
<updated>2026-08-20T07:49:59Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-08-19T11:54:30Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=2924476b5591e691e904c4baf57894c526c4b8de'/>
<id>urn:sha1:2924476b5591e691e904c4baf57894c526c4b8de</id>
<content type='text'>
The --wrap link option rewrites the stdio symbols of everything linked
into the test binary. In --coverage builds libgcov reads and writes the
.gcda files at process exit through fread/fwrite/fseek/ftell/fclose,
which then hit the cmocka mocks with no expectations queued and make
the binary exit with 255 after all tests have passed. Forward calls on
any stream other than the fake test pointers to the real functions.

Assisted-by: Claude:claude-fable-5
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Bob Beck &lt;beck@openssl.org&gt;
Merge-date: Thu Aug 20 07:50:12 2026
Merged-from: https://github.com/openssl/openssl/pull/32431
</content>
</entry>
<entry>
<title>Add BIO bss_file test</title>
<updated>2026-08-08T15:25:20Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-07-17T17:20:38Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=1261c82f1e8a961294f9b119c258b1952bdcfbe3'/>
<id>urn:sha1:1261c82f1e8a961294f9b119c258b1952bdcfbe3</id>
<content type='text'>
Add a cmocka based unit test for the file BIO covering BIO_new_file,
BIO_new_fp and the file method callbacks, with stdio and openssl_fopen.

Additionally add a Windows-only Detours based side test for the
Windows specific branches.

Assisted-by: Claude:claude-fable-5

Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
Reviewed-by: Andrew Dinh &lt;andrewd@openssl.org&gt;
MergeDate: Sat Aug  8 15:26:34 2026
(Merged from https://github.com/openssl/openssl/pull/31991)
</content>
</entry>
<entry>
<title>mkwraps: resolve system (libc) functions via compiler include paths</title>
<updated>2026-07-20T07:00:49Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-07-13T16:49:29Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=d4357db45c936389da75fba3a95ed98e711865bd'/>
<id>urn:sha1:d4357db45c936389da75fba3a95ed98e711865bd</id>
<content type='text'>
WRAP[] lists mix OpenSSL functions with libc/POSIX ones such as read()
or socket(), which mkwraps.pl reported as "declaration not found" since
it only searched the project's INCLUDE[] directories.

Fall back to the C compiler's default include search paths for functions
missing from the project headers.  They are queried lazily, only on such
a miss, so the all-OpenSSL case still does not walk /usr/include.  Parse
the glibc trailing attribute macros (__THROW, __wur, ...) and restrict
qualifier, and add --cc and --no-system.

Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
Reviewed-by: Paul Dale &lt;paul.dale@oracle.com&gt;
MergeDate: Mon Jul 20 07:00:57 2026
(Merged from https://github.com/openssl/openssl/pull/31936)
</content>
</entry>
<entry>
<title>test: add Windows unit tests setup and initial dgram test</title>
<updated>2026-07-15T16:00:29Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-06-11T17:05:43Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=857afd02b282314687bc1290d7d12a313d3b9f85'/>
<id>urn:sha1:857afd02b282314687bc1290d7d12a313d3b9f85</id>
<content type='text'>
This adds an initial setup for unit testing on Windows that allows
mocking of system functions using Detour library. This works only for
library functions and not object function like wrap so it is a bit
limited but it is still useful for BIO mocking.

An initial BIO bss_dgram test is added covering the Windows specific
parts.

Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Igor Ustinov &lt;igus@openssl.foundation&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Wed Jul 15 16:00:35 2026
(Merged from https://github.com/openssl/openssl/pull/31915)
</content>
</entry>
<entry>
<title>Add BIO bio_sock2 test</title>
<updated>2026-07-09T17:38:28Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-06-12T11:45:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=234845aaabbcfef5f58a00835f0383ceabe469b5'/>
<id>urn:sha1:234845aaabbcfef5f58a00835f0383ceabe469b5</id>
<content type='text'>
Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Thu Jul  9 17:39:25 2026
(Merged from https://github.com/openssl/openssl/pull/30788)
</content>
</entry>
<entry>
<title>Add BIO bio_sock test</title>
<updated>2026-07-09T17:38:28Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-06-12T09:53:56Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=207c40c97a1f502a39df260c8daf919de2fd9cb2'/>
<id>urn:sha1:207c40c97a1f502a39df260c8daf919de2fd9cb2</id>
<content type='text'>
Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Thu Jul  9 17:39:24 2026
(Merged from https://github.com/openssl/openssl/pull/30788)
</content>
</entry>
<entry>
<title>Add BIO bss_socket test</title>
<updated>2026-07-09T17:38:28Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-06-10T17:55:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=bd07dda47d150d7ce758c932ab50097ce0c65962'/>
<id>urn:sha1:bd07dda47d150d7ce758c932ab50097ce0c65962</id>
<content type='text'>
Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Thu Jul  9 17:39:22 2026
(Merged from https://github.com/openssl/openssl/pull/30788)
</content>
</entry>
</feed>
