<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/pem/pvkfmt.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-06-07T09:32:35+00:00</updated>
<entry>
<title>do_PVK_body: Unconditionally free enctmp</title>
<updated>2025-06-07T09:32:35+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-06-07T09:32:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=852ff96f12cab66a43fa3f58d19246c7a21c875e'/>
<id>urn:sha1:852ff96f12cab66a43fa3f58d19246c7a21c875e</id>
<content type='text'>
enctmp is only allocated if saltlen &gt; 0, so there is no harm in checking
for that, but it's also pointless. Unconfuses smatch who thinks there
might be a memory leak:

pem/pvkfmt.c:808 do_PVK_body() warn: possible memory leak of 'enctmp'

found by jsg
</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>Use EVP_MD_CTX_legacy_clear() internally</title>
<updated>2024-02-18T15:45:42+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-02-18T15:45:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ff3e386de60f6149938edb124d31bc2fd7ae04f6'/>
<id>urn:sha1:ff3e386de60f6149938edb124d31bc2fd7ae04f6</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Hide symbols in lhash, pem, and rc2</title>
<updated>2023-07-07T13:40:44+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-07T13:40:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1355f5b75c135c6bbe53ddedd21c86e2952b9895'/>
<id>urn:sha1:1355f5b75c135c6bbe53ddedd21c86e2952b9895</id>
<content type='text'>
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>Prepare to make RSA and RSA_METHOD opaque by including rsa_locl.h</title>
<updated>2022-01-07T09:55:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:55:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=443c3d5c755f7f540390fcf1a11c8a443b2553cc'/>
<id>urn:sha1:443c3d5c755f7f540390fcf1a11c8a443b2553cc</id>
<content type='text'>
where it will be needed in the upcoming bump.

discussed with jsing
</content>
</entry>
<entry>
<title>Prepare the move of DSA_SIG, DSA_METHOD and DSA to dsa_locl.h by</title>
<updated>2022-01-07T09:35:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:35:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=72ddf309b6ca09529e5603af312e92fbefe2d810'/>
<id>urn:sha1:72ddf309b6ca09529e5603af312e92fbefe2d810</id>
<content type='text'>
including the local header where it will be needed.

discussed with jsing
</content>
</entry>
<entry>
<title>Include evp_locl.h where it will be needed once most structs from</title>
<updated>2021-12-12T21:30:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-12-12T21:30:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b632ec4f99386efc52214c580c9f233748302224'/>
<id>urn:sha1:b632ec4f99386efc52214c580c9f233748302224</id>
<content type='text'>
evp.h will be moved to evp_locl.h in an upcoming bump.

ok inoguchi
</content>
</entry>
<entry>
<title>Clean up pvkfmt.c</title>
<updated>2019-07-08T11:56:18+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2019-07-08T11:56:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=38918e2b1105203e3a43e4c44a53bf432952771c'/>
<id>urn:sha1:38918e2b1105203e3a43e4c44a53bf432952771c</id>
<content type='text'>
- Replace EVP_CIPHER_CTX_init with EVP_CIPHER_CTX_new and handle return value
- Replace EVP_CIPHER_CTX_cleanup with EVP_CIPHER_CTX_free
- Change two 'return -1;' to 'goto err;' for avoiding leak
- Remove the case if enclevel == 0
- Change enclevel checking to make more consistent
- Change all goto label to 'err' and insert space before goto label

ok and advise from tb@
</content>
</entry>
<entry>
<title>Fix pvk format processing in libcrypto</title>
<updated>2019-07-07T10:52:56+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2019-07-07T10:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b7ed3b2ab5936f64572047d1bcd708bbdeeb5a59'/>
<id>urn:sha1:b7ed3b2ab5936f64572047d1bcd708bbdeeb5a59</id>
<content type='text'>
- Return the valid pointer in i2b_PVK()
- Use EVP_Decrypt* instead of EVP_Encrypt*
- Fix error handling after BIO_write() in i2b_PVK_bio()

ok tb@
</content>
</entry>
</feed>
