<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/asn1/a_object.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-05-10T05:54:39+00:00</updated>
<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>Hide global _it variables in asn1.h</title>
<updated>2024-07-08T14:52:31+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-07-08T14:52:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3e4afb686e802ed188471899b25a031f4c4164af'/>
<id>urn:sha1:3e4afb686e802ed188471899b25a031f4c4164af</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Fix i2d_ASN1_OBJECT()</title>
<updated>2024-05-29T16:14:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-29T16:14:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=85f6ff70f87dd81b08a5fb98304f9691cb09a136'/>
<id>urn:sha1:85f6ff70f87dd81b08a5fb98304f9691cb09a136</id>
<content type='text'>
When called with a pointer to NULL as an output buffer, one would expect
an i2d API to allocate the buffer and return it. The implementation here
is special and the allocation dance was forgotten, resulting in a SIGSEGV.
Add said dance.

ok jsing
</content>
</entry>
<entry>
<title>Make i2d_ASN1_OBJECT() return -1 on error</title>
<updated>2024-05-29T16:10:41+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-29T16:10:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6e60fa7a3fdcdc4d76c110acc3f8ff22588375c5'/>
<id>urn:sha1:6e60fa7a3fdcdc4d76c110acc3f8ff22588375c5</id>
<content type='text'>
This is what the (not quite appropriately) referenced ASN1_item_i2d()
page documents for errors, matches what the RETURN VALUE section has
been documenting for ages, matches BoringSSL, it's the usal behavior
for i2d_*. It's also what OpenSSL (of course incorrectly) documents.

discussed with jsing
</content>
</entry>
<entry>
<title>Remove unnecessary parens from i2d_ASN1_OBJECT()</title>
<updated>2024-05-29T16:04:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-29T16:04:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a3d1a2766537320e31fb30ef8f4dbd7a7532ccfc'/>
<id>urn:sha1:a3d1a2766537320e31fb30ef8f4dbd7a7532ccfc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide symbols in asn1 and bio</title>
<updated>2023-07-05T21:23:37+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-05T21:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0da1913b3c721e1a62fd66bc43547b4e910cbc34'/>
<id>urn:sha1:0da1913b3c721e1a62fd66bc43547b4e910cbc34</id>
<content type='text'>
ok jsing@
</content>
</entry>
<entry>
<title>Simplify OBJ_obj2txt()</title>
<updated>2023-05-23T11:51:12+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-05-23T11:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6825aba8c0202893f32509537fbfa606a2459325'/>
<id>urn:sha1:6825aba8c0202893f32509537fbfa606a2459325</id>
<content type='text'>
Instead of adding a NUL termination to OBJ_obj2txt(), move the aobj == NULL
or aobj-&gt;data == NULL checks to i2t_ASN1_OBJECT_internal(). The only other
caller, i2t_ASN1_OBJECT(), fails on aobj == NULL and aobj-&gt;length == 0, and
the latter condition is implied by aobj-&gt;data.

Cleaner solution for obj_dat.c r1.52
suggested by/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 d2i_ASN1_OBJECT()</title>
<updated>2022-05-13T16:32:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-05-13T16:32:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b69ded9c443362dd7c29d46cdd7ac3a80dfaa514'/>
<id>urn:sha1:b69ded9c443362dd7c29d46cdd7ac3a80dfaa514</id>
<content type='text'>
Due to a confusion of two CBS, the API would incorrectly advance the
*der_in pointer, resulting in a DER parse failure.

Issue reported by Aram Sargsyan

ok jsing
</content>
</entry>
<entry>
<title>Convert asn1_ex_c2i() to CBS.</title>
<updated>2022-04-23T18:47:08+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-04-23T18:47:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7948f1a5d29de58c00a70b46e4b6b8a3fb6dede5'/>
<id>urn:sha1:7948f1a5d29de58c00a70b46e4b6b8a3fb6dede5</id>
<content type='text'>
This allows us to make direct use of c2i_ASN1_OBJECT_cbs().

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