<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/crypto/encode_decode, branch openssl-3.2</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.2</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.2'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2025-07-01T12:04:53Z</updated>
<entry>
<title>Copyright year updates</title>
<updated>2025-07-01T12:04:53Z</updated>
<author>
<name>openssl-machine</name>
<email>openssl-machine@openssl.org</email>
</author>
<published>2025-07-01T12:04:53Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e9d98629ed9aba550dfa88f11a3d84fed1c2f3f6'/>
<id>urn:sha1:e9d98629ed9aba550dfa88f11a3d84fed1c2f3f6</id>
<content type='text'>
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>Encoder : Fix floating pointer when OSSL_ENCODER_to_data() is called</title>
<updated>2025-02-28T12:57:39Z</updated>
<author>
<name>slontis</name>
<email>shane.lontis@oracle.com</email>
</author>
<published>2025-02-25T06:03:38Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=9537245a5b70d6c3835a61c9f4db53f9b233aae9'/>
<id>urn:sha1:9537245a5b70d6c3835a61c9f4db53f9b233aae9</id>
<content type='text'>
twice.

Fixes #26862

This only happens when using the FIPS provider, since it needs to export
the key.

Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Viktor Dukhovni &lt;viktor@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/26891)

(cherry picked from commit c2f4d7aae1c7c726eb1f8226d3d454dfd9754758)
</content>
</entry>
<entry>
<title>Fix EVP_PKEY_print_private() so that it works with non default providers.</title>
<updated>2024-11-29T16:12:11Z</updated>
<author>
<name>slontis</name>
<email>shane.lontis@oracle.com</email>
</author>
<published>2024-11-20T01:39:35Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=55131b6fcc2948818ee764d30ca65d08fc58accf'/>
<id>urn:sha1:55131b6fcc2948818ee764d30ca65d08fc58accf</id>
<content type='text'>
At some point in time it was decided that the EC keymanagers ec_export()
function would only allow the selection to be both the public + private
parts. If just the private element is selected it returns an error.
Many openssl commandline apps use EVP_PKEY_print_private() which passes
EVP_PKEY_PRIVATE_KEY to the encoder. This selection propagates to
encoder_construct_pkey(). For external providers (such as the fips
provider this will call the keymanagers export() with the selection set
to just the private part.

So we either need to
1) change the selection in EVP_PKEY_print_private() or
2) modify the selection used in the export used in
   encoder_construct_pkey
3) Change the ec_export to allow this.

I have chosen 2) but I am not sure if this is the correct thing to do
or whether it should conditionally do this when the output_type ==
'text'.

Issue was reported by Ilia Okomin (Oracle).

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/26004)

(cherry picked from commit 79c98fc6ccab49f02528e06cc046ac61f841a753)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2024-06-04T12:58:30Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2024-06-04T12:58:30Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=91bcb1668d8aa80aaf68fa1130139f63375da0fd'/>
<id>urn:sha1:91bcb1668d8aa80aaf68fa1130139f63375da0fd</id>
<content type='text'>
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>Check for NULL cleanup function before using it in encoder_process</title>
<updated>2024-02-16T14:11:41Z</updated>
<author>
<name>Neil Horman</name>
<email>nhorman@openssl.org</email>
</author>
<published>2023-12-16T20:32:48Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e6086dd639e62aa6baa6223f38b31b515e4956d5'/>
<id>urn:sha1:e6086dd639e62aa6baa6223f38b31b515e4956d5</id>
<content type='text'>
encoder_process assumes a cleanup function has been set in the currently
in-use encoder during processing, which can lead to segfaults if said
function hasn't been set

Add a NULL check for this condition, returning -1 if it is not set

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/23069)

(cherry picked from commit cf57c3ecfa416afbc47d36633981034809ee6792)
</content>
</entry>
<entry>
<title>ossl_decoder_cache_flush(): Do not raise an error if there is no cache</title>
<updated>2023-12-06T12:59:40Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2023-12-04T17:01:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=604eecffb6703af675d8d9d21948fc3b963a765a'/>
<id>urn:sha1:604eecffb6703af675d8d9d21948fc3b963a765a</id>
<content type='text'>
This function can be called during OPENSSL_cleanup() when
the cache was already flushed and deallocated.

Fixes #22939

Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/22941)

(cherry picked from commit 0541fa7802cf0c3a9b28d126066c909736fc5ec8)
</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>
<entry>
<title>Fix a leak in ossl_encode_ctx_setup_for_pkey</title>
<updated>2023-08-23T15:01:30Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2023-08-21T11:19:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=8ef63b6ff8301a0139c00df6c40173a63fd2db01'/>
<id>urn:sha1:8ef63b6ff8301a0139c00df6c40173a63fd2db01</id>
<content type='text'>
Make sure we free the stack of names we allocated in an error path.

Found by the reproducible error patch in #21668

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
(Merged from https://github.com/openssl/openssl/pull/21796)
</content>
</entry>
<entry>
<title>Fix a leak in an error path when duplicating an OSSL_DECODER_CTX.</title>
<updated>2023-08-17T07:06:43Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2023-08-15T14:05:38Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e16c0103083af676af8c5564bb21585d4574f992'/>
<id>urn:sha1:e16c0103083af676af8c5564bb21585d4574f992</id>
<content type='text'>
Make sure we free process_data_dest if it is not actually used.

Found by the reproducible error patch in #21668

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Tom Cosgrove &lt;tom.cosgrove@arm.com&gt;
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/21741)
</content>
</entry>
<entry>
<title>Fix decoders so that they use the passed in propq.</title>
<updated>2023-08-16T16:02:51Z</updated>
<author>
<name>slontis</name>
<email>shane.lontis@oracle.com</email>
</author>
<published>2023-06-16T06:40:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=39ed7636e0d8a90512e7ccb811cd0bfcb7a79650'/>
<id>urn:sha1:39ed7636e0d8a90512e7ccb811cd0bfcb7a79650</id>
<content type='text'>
Fixes #21198

decoder objects were setting propq as NULL.
Added a set_ctx/settable_ctx to all decoders that should supply
a property query parameter to internal functions.

Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/21219)
</content>
</entry>
</feed>
