<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openssl-new.git/crypto/stack, branch master</title>
<subtitle>github.com: openssl/openssl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/'/>
<entry>
<title>stack: fix searching when the stack isn't sorted.</title>
<updated>2023-04-28T07:24:06+00:00</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2023-04-20T06:04:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=eb0935fd21220708e4321374380db497e9c5ecdf'/>
<id>eb0935fd21220708e4321374380db497e9c5ecdf</id>
<content type='text'>
More specifically, don't sort the stack when searching when it isn't sorted.
This avoids a race condition.

Fixes #20135

Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/20782)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More specifically, don't sort the stack when searching when it isn't sorted.
This avoids a race condition.

Fixes #20135

Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/20782)
</pre>
</div>
</content>
</entry>
<entry>
<title>Errors raised from OPENSSL_sk_set should have ERR_LIB_CRYPTO</title>
<updated>2022-10-21T16:02:35+00:00</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2022-10-13T11:05:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=3a09dfb4f9aace93d2c20d6d1b4968cc583884d6'/>
<id>3a09dfb4f9aace93d2c20d6d1b4968cc583884d6</id>
<content type='text'>
Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19400)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19400)
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: Do not add error if pop/shift/value accesses outside of the stack</title>
<updated>2022-10-21T16:02:35+00:00</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2022-10-12T08:36:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=a8086e6bfc37355626393751a94bc5c92df7e9d3'/>
<id>a8086e6bfc37355626393751a94bc5c92df7e9d3</id>
<content type='text'>
This partially reverts commit 30eba7f35983a917f1007bce45040c0af3442e42.
This is legitimate use of the stack functions and no error
should be reported apart from the NULL return value.

Fixes #19389

Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19400)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This partially reverts commit 30eba7f35983a917f1007bce45040c0af3442e42.
This is legitimate use of the stack functions and no error
should be reported apart from the NULL return value.

Fixes #19389

Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19400)
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop raising ERR_R_MALLOC_FAILURE in most places</title>
<updated>2022-10-05T12:02:03+00:00</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2022-09-29T11:57:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=e077455e9e57ed4ee4676996b4a9aa11df6327a6'/>
<id>e077455e9e57ed4ee4676996b4a9aa11df6327a6</id>
<content type='text'>
Since OPENSSL_malloc() and friends report ERR_R_MALLOC_FAILURE, and
at least handle the file name and line number they are called from,
there's no need to report ERR_R_MALLOC_FAILURE where they are called
directly, or when SSLfatal() and RLAYERfatal() is used, the reason
`ERR_R_MALLOC_FAILURE` is changed to `ERR_R_CRYPTO_LIB`.

There were a number of places where `ERR_R_MALLOC_FAILURE` was reported
even though it was a function from a different sub-system that was
called.  Those places are changed to report ERR_R_{lib}_LIB, where
{lib} is the name of that sub-system.
Some of them are tricky to get right, as we have a lot of functions
that belong in the ASN1 sub-system, and all the `sk_` calls or from
the CRYPTO sub-system.

Some extra adaptation was necessary where there were custom OPENSSL_malloc()
wrappers, and some bugs are fixed alongside these changes.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19301)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since OPENSSL_malloc() and friends report ERR_R_MALLOC_FAILURE, and
at least handle the file name and line number they are called from,
there's no need to report ERR_R_MALLOC_FAILURE where they are called
directly, or when SSLfatal() and RLAYERfatal() is used, the reason
`ERR_R_MALLOC_FAILURE` is changed to `ERR_R_CRYPTO_LIB`.

There were a number of places where `ERR_R_MALLOC_FAILURE` was reported
even though it was a function from a different sub-system that was
called.  Those places are changed to report ERR_R_{lib}_LIB, where
{lib} is the name of that sub-system.
Some of them are tricky to get right, as we have a lot of functions
that belong in the ASN1 sub-system, and all the `sk_` calls or from
the CRYPTO sub-system.

Some extra adaptation was necessary where there were custom OPENSSL_malloc()
wrappers, and some bugs are fixed alongside these changes.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19301)
</pre>
</div>
</content>
</entry>
<entry>
<title>stack.c: add missing direct error reporting and improve coding style</title>
<updated>2022-09-16T08:07:15+00:00</updated>
<author>
<name>Dr. David von Oheimb</name>
<email>David.von.Oheimb@siemens.com</email>
</author>
<published>2022-08-07T05:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=30eba7f35983a917f1007bce45040c0af3442e42'/>
<id>30eba7f35983a917f1007bce45040c0af3442e42</id>
<content type='text'>
Doing so, had to fix sloppiness in using the stack API in crypto/conf/conf_def.c,
ssl/ssl_ciph.c, ssl/statem/statem_srvr.c, and mostly in test/helpers/ssltestlib.c.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: David von Oheimb &lt;david.von.oheimb@siemens.com&gt;
(Merged from https://github.com/openssl/openssl/pull/18918)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Doing so, had to fix sloppiness in using the stack API in crypto/conf/conf_def.c,
ssl/ssl_ciph.c, ssl/statem/statem_srvr.c, and mostly in test/helpers/ssltestlib.c.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: David von Oheimb &lt;david.von.oheimb@siemens.com&gt;
(Merged from https://github.com/openssl/openssl/pull/18918)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Coverity 1493746: constant expression result</title>
<updated>2021-11-16T22:15:35+00:00</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2021-11-14T22:35:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=7cc5738a561933e38ad0e724f4df7b503c3c8e73'/>
<id>7cc5738a561933e38ad0e724f4df7b503c3c8e73</id>
<content type='text'>
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/17034)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/17034)
</pre>
</div>
</content>
</entry>
<entry>
<title>stack: increase the reallocation ratio</title>
<updated>2021-11-12T09:49:46+00:00</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2021-11-10T05:40:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=8347bfa04fc62dcf684b8a43905709fa18f6a3b1'/>
<id>8347bfa04fc62dcf684b8a43905709fa18f6a3b1</id>
<content type='text'>
This change increases the reallocation ratio from 1.5 to 1.6.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/16930)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change increases the reallocation ratio from 1.5 to 1.6.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/16930)
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve the implementation of X509_STORE_CTX_get1_issuer()</title>
<updated>2021-04-28T09:19:34+00:00</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2021-03-29T10:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=5fd7eb5c8a45e8aba7a2610dfcfbcfb2eb6c1aec'/>
<id>5fd7eb5c8a45e8aba7a2610dfcfbcfb2eb6c1aec</id>
<content type='text'>
It is possible for the stack of X509_OBJECTs held in an X509_STORE_CTX to
have a custom compare function associated with it. Normally (by default)
this uses X509_NAME_cmp(). The X509_STORE_CTX_get1_issuer() function
assumed that it would always be X509_NAME_cmp().

By implementing OPENSSL_sk_find_all() function we can avoid explicitly
using X509_NAME_cmp() in X509_STORE_CTX_get1_issuer().

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14728)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is possible for the stack of X509_OBJECTs held in an X509_STORE_CTX to
have a custom compare function associated with it. Normally (by default)
this uses X509_NAME_cmp(). The X509_STORE_CTX_get1_issuer() function
assumed that it would always be X509_NAME_cmp().

By implementing OPENSSL_sk_find_all() function we can avoid explicitly
using X509_NAME_cmp() in X509_STORE_CTX_get1_issuer().

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14728)
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2021-02-18T15:05:17+00:00</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2021-02-18T14:57:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=a28d06f3e9cbc5594c7985c99a0c6bac5261ae67'/>
<id>a28d06f3e9cbc5594c7985c99a0c6bac5261ae67</id>
<content type='text'>
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14235)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14235)
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow NULL arg to OPENSSL_sk_{dup,deep_copy} returning empty stack</title>
<updated>2021-02-04T06:28:11+00:00</updated>
<author>
<name>Dr. David von Oheimb</name>
<email>David.von.Oheimb@siemens.com</email>
</author>
<published>2020-12-23T18:33:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=d53b437f9992f974c1623e9b9b9bdf053aefbcc3'/>
<id>d53b437f9992f974c1623e9b9b9bdf053aefbcc3</id>
<content type='text'>
This simplifies many usages

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14040)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This simplifies many usages

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/14040)
</pre>
</div>
</content>
</entry>
</feed>
