<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/cms/cms_smime.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-11-28T06:07:09+00:00</updated>
<entry>
<title>Clean up confusing logic in CMS_EncryptedData_encrypt()</title>
<updated>2025-11-28T06:07:09+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-11-28T06:07:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=25e047ad935a9d585bc84fe9aae3de40dbad3e72'/>
<id>urn:sha1:25e047ad935a9d585bc84fe9aae3de40dbad3e72</id>
<content type='text'>
This makes it easier to read and more in line with other code in
libcrypto. Also add a missing error check for the CMS_set_detached()
call.

ok jsing kenjiro
</content>
</entry>
<entry>
<title>Plug memeory leak in CMS_EncryptedData_encrypt()</title>
<updated>2025-11-03T14:29:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-11-03T14:29:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d787c292196f9476b2c3d608a900d8b1f334c13a'/>
<id>urn:sha1:d787c292196f9476b2c3d608a900d8b1f334c13a</id>
<content type='text'>
If CMS_EncryptedData_set1_key() fails, cms is leaked.

From Niels Dossche
</content>
</entry>
<entry>
<title>Use err_local.h rather than err.h in most places</title>
<updated>2025-05-10T05:54:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-05-10T05:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=41e8f99dd1625a9f0c80ce9d4383e95b18e85709'/>
<id>urn:sha1:41e8f99dd1625a9f0c80ce9d4383e95b18e85709</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Clean up includes in cms_smime.c</title>
<updated>2023-12-22T10:23:11+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-22T10:23:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=be0bb03b7cb6789b3ea101b1fa9906e3d34afc23'/>
<id>urn:sha1:be0bb03b7cb6789b3ea101b1fa9906e3d34afc23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide symbols in cms, comp, conf, and buffer</title>
<updated>2023-07-08T08:26:26+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T08:26:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cf9b236f0893157746f8b944e4f6cc8d8a6aca26'/>
<id>urn:sha1:cf9b236f0893157746f8b944e4f6cc8d8a6aca26</id>
<content type='text'>
ok jsing@
</content>
</entry>
<entry>
<title>Unifdef ZLIB</title>
<updated>2023-06-11T05:35:43+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-06-11T05:35:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=97a013bc68d60ad211d8cdb339f38ccb4020ade6'/>
<id>urn:sha1:97a013bc68d60ad211d8cdb339f38ccb4020ade6</id>
<content type='text'>
This has long been unused code and compilation with -DZLIB was broken
for a long time after BIO was made opaque.

ok jsing
</content>
</entry>
<entry>
<title>Make internal header file names consistent</title>
<updated>2022-11-26T16:08:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T16:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=81d98bf600a381a625eb11b39a725b08c0ba547f'/>
<id>urn:sha1:81d98bf600a381a625eb11b39a725b08c0ba547f</id>
<content type='text'>
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names
used for internal headers. Move all these headers we inherited from
OpenSSL to *_local.h, reserving the name *_internal.h for our own code.
Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.
constant_time_locl.h is moved to constant_time.h since it's special.

Adjust all .c files in libcrypto, libssl and regress.

The diff is mechanical with the exception of tls13_quic.c, where
#include &lt;ssl_locl.h&gt; was fixed manually.

discussed with jsing,
no objection bcook
</content>
</entry>
<entry>
<title>Fix a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.</title>
<updated>2019-10-04T18:03:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-10-04T18:03:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=03a0a727a85c64d9828255b797ef2d1d59c061df'/>
<id>urn:sha1:03a0a727a85c64d9828255b797ef2d1d59c061df</id>
<content type='text'>
(Note that the CMS code is currently disabled.)

Port of Edlinger's Fix for CVE-2019-1563 from OpenSSL 1.1.1 (old license)

tests from bluhm@
ok jsing

commit e21f8cf78a125cd3c8c0d1a1a6c8bb0b901f893f
Author: Bernd Edlinger &lt;bernd.edlinger@hotmail.de&gt;
Date:   Sun Sep 1 00:16:28 2019 +0200

    Fix a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey

    An attack is simple, if the first CMS_recipientInfo is valid but the
    second CMS_recipientInfo is chosen ciphertext. If the second
    recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
    encryption key will be replaced by garbage, and the message cannot be
    decoded, but if the RSA decryption fails, the correct encryption key is
    used and the recipient will not notice the attack.

    As a work around for this potential attack the length of the decrypted
    key must be equal to the cipher default key length, in case the
    certifiate is not given and all recipientInfo are tried out.

    The old behaviour can be re-enabled in the CMS code by setting the
    CMS_DEBUG_DECRYPT flag.

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

    (cherry picked from commit 5840ed0cd1e6487d247efbc1a04136a41d7b3a37)
</content>
</entry>
<entry>
<title>Use ERR_asprintf_error_data() instead of ERR_add_error_data().</title>
<updated>2019-08-11T14:51:15+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T14:51:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=babb0afaef354531f817f375069c37e12794eaa9'/>
<id>urn:sha1:babb0afaef354531f817f375069c37e12794eaa9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert CMSerr() to CMSerror().</title>
<updated>2019-08-11T10:38:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-08-11T10:38:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f7a527513ace17b70b14f3975dd212ba42e464c8'/>
<id>urn:sha1:f7a527513ace17b70b14f3975dd212ba42e464c8</id>
<content type='text'>
</content>
</entry>
</feed>
