<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/engines, branch openssl-3.4.0</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.4.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.4.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2024-10-22T12:25:18Z</updated>
<entry>
<title>Copyright year updates</title>
<updated>2024-10-22T12:25:18Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2024-10-22T12:25:18Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=246a348d04dddf97265c9e94d810341ade8f37c6'/>
<id>urn:sha1:246a348d04dddf97265c9e94d810341ade8f37c6</id>
<content type='text'>
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>Avoid undefined behaviour with the &lt;ctype.h&gt; functions.</title>
<updated>2024-10-10T18:48:12Z</updated>
<author>
<name>Taylor R Campbell</name>
<email>campbell+openssl@mumble.net</email>
</author>
<published>2023-03-29T05:48:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=f2ddcf9aaa032fccdc2be79c7bdc46cbce256e67'/>
<id>urn:sha1:f2ddcf9aaa032fccdc2be79c7bdc46cbce256e67</id>
<content type='text'>
fix https://github.com/openssl/openssl/issues/25112

As defined in the C standard:

   In all cases the argument is an int, the value of which shall
   be representable as an unsigned char or shall equal the value
   of the macro EOF.  If the argument has any other value, the
   behavior is undefined.

This is because they're designed to work with the int values returned
by getc or fgetc; they need extra work to handle a char value.

If EOF is -1 (as it almost always is), with 8-bit bytes, the allowed
inputs to the ctype.h functions are:

   {-1, 0, 1, 2, 3, ..., 255}.

However, on platforms where char is signed, such as x86 with the
usual ABI, code like

   char *p = ...;
   ... isspace(*p) ...

may pass in values in the range:

   {-128, -127, -126, ..., -2, -1, 0, 1, ..., 127}.

This has two problems:

1. Inputs in the set {-128, -127, -126, ..., -2} are forbidden.

2. The non-EOF byte 0xff is conflated with the value EOF = -1, so
   even though the input is not forbidden, it may give the wrong
   answer.

Casting char inputs to unsigned char first works around this, by
mapping the (non-EOF character) range {-128, -127, ..., -1} to {128,
129, ..., 255}, leaving no collisions with EOF.  So the above
fragment needs to be:

   char *p = ...;
   ... isspace((unsigned char)*p) ...

This patch inserts unsigned char casts where necessary.  Most of the
cases I changed, I compile-tested using -Wchar-subscripts -Werror on
NetBSD, which defines the ctype.h functions as macros so that they
trigger the warning when the argument has type char.  The exceptions
are under #ifdef __VMS or #ifdef _WIN32.  I left alone calls where
the input is int where the cast would obviously be wrong; and I left
alone calls where the input is already unsigned char so the cast is
unnecessary.

Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Kurt Roeckx &lt;kurt@roeckx.be&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/25113)

(cherry picked from commit 99548cd16e9dfd850a3958e417b9e02950f208f4)
</content>
</entry>
<entry>
<title>Prefer ARRAY_SIZE(...)</title>
<updated>2024-07-22T10:55:35Z</updated>
<author>
<name>Dimitri Papadopoulos</name>
<email>3234522+DimitriPapadopoulos@users.noreply.github.com</email>
</author>
<published>2023-09-13T20:31:50Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=001b92d68d61250c88b355773142af31675ca0ab'/>
<id>urn:sha1:001b92d68d61250c88b355773142af31675ca0ab</id>
<content type='text'>
In OpenSSL, it's actually OSSL_NELEM() in "internal/nelem.h".

Found by running the checkpatch.pl Linux script to enforce coding style.

Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: David von Oheimb &lt;david.von.oheimb@siemens.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/22097)
</content>
</entry>
<entry>
<title>open brace '{' following struct go on the same line</title>
<updated>2024-07-22T10:55:35Z</updated>
<author>
<name>Dimitri Papadopoulos</name>
<email>3234522+DimitriPapadopoulos@users.noreply.github.com</email>
</author>
<published>2023-09-13T18:41:58Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=f83707dc6df306e2ed07eafe518b19e8e3c427ca'/>
<id>urn:sha1:f83707dc6df306e2ed07eafe518b19e8e3c427ca</id>
<content type='text'>
Found by running the checkpatch.pl Linux script to enforce coding style.

Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: David von Oheimb &lt;david.von.oheimb@siemens.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/22097)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2024-04-09T11:43:26Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2024-03-20T12:07:54Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=b646179229927601bad3ec305fbd12dae98eb9b9'/>
<id>urn:sha1:b646179229927601bad3ec305fbd12dae98eb9b9</id>
<content type='text'>
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Release: yes
(cherry picked from commit 0ce7d1f355c1240653e320a3f6f8109c1f05f8c0)

Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/24034)
</content>
</entry>
<entry>
<title>Fix dasync_rsa_decrypt to call EVP_PKEY_meth_get_decrypt</title>
<updated>2024-03-14T07:49:01Z</updated>
<author>
<name>Vladimirs Ambrosovs</name>
<email>rodriguez.twister@gmail.com</email>
</author>
<published>2024-03-12T16:23:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=c91f0ca95881d03a54aedee197bbf5ffffc02935'/>
<id>urn:sha1:c91f0ca95881d03a54aedee197bbf5ffffc02935</id>
<content type='text'>
Signed-off-by: Vladimirs Ambrosovs &lt;rodriguez.twister@gmail.com&gt;

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/23825)
</content>
</entry>
<entry>
<title>Fix a possible memleak in bind_afalg</title>
<updated>2024-01-31T10:30:33Z</updated>
<author>
<name>Bernd Edlinger</name>
<email>bernd.edlinger@hotmail.de</email>
</author>
<published>2024-01-28T22:50:16Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=729a1496cc4cda669dea6501c991113c78f04560'/>
<id>urn:sha1:729a1496cc4cda669dea6501c991113c78f04560</id>
<content type='text'>
bind_afalg calls afalg_aes_cbc which allocates
cipher_handle-&gt;_hidden global object(s)
but if one of them fails due to out of memory,
the function bind_afalg relies on the engine destroy
method to be called.  But that does not happen
because the dynamic engine object is not destroyed
in the usual way in dynamic_load in this case:

If the bind_engine function fails, there will be no
further calls into the shared object.
See ./crypto/engine/eng_dyn.c near the comment:
/* Copy the original ENGINE structure back */

Reviewed-by: Tom Cosgrove &lt;tom.cosgrove@arm.com&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/23409)
</content>
</entry>
<entry>
<title>Remove uneeded cast to unsigned int</title>
<updated>2023-12-22T13:43:31Z</updated>
<author>
<name>Rose</name>
<email>83477269+AtariDreams@users.noreply.github.com</email>
</author>
<published>2023-12-19T16:29:54Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=6e155858d785297bd8b51f667bc440f4e7c17bfb'/>
<id>urn:sha1:6e155858d785297bd8b51f667bc440f4e7c17bfb</id>
<content type='text'>
CLA: trivial

cipher_ctx-&gt;blocksize is already unsigned.

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/23098)
</content>
</entry>
<entry>
<title>"foo * bar" should be "foo *bar"</title>
<updated>2023-09-11T08:15:30Z</updated>
<author>
<name>Dimitri Papadopoulos</name>
<email>3234522+DimitriPapadopoulos@users.noreply.github.com</email>
</author>
<published>2023-07-16T18:03:40Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=bbaeadb068c3289c7df3b7bea0049f70a648ba00'/>
<id>urn:sha1:bbaeadb068c3289c7df3b7bea0049f70a648ba00</id>
<content type='text'>
Found by running the checkpatch.pl Linux script to enforce coding style.

Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/21468)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2023-09-07T08:59:15Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2023-09-07T08:59:15Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=da1c088f599af3755aaeed1c447a39621ef12e1f'/>
<id>urn:sha1:da1c088f599af3755aaeed1c447a39621ef12e1f</id>
<content type='text'>
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Release: yes
</content>
</entry>
</feed>
