<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/asn1/x_long.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>2026-01-02T08:03:02+00:00</updated>
<entry>
<title>Unexport ASN1_LONG_UNDEF</title>
<updated>2026-01-02T08:03:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-01-02T08:03:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4376bb91f1ab33cad1db683b8428434fbc4b67bf'/>
<id>urn:sha1:4376bb91f1ab33cad1db683b8428434fbc4b67bf</id>
<content type='text'>
This is another one of these weird magic values that nothing outside
of libcrypto uses. Fix a confusing comment in long_i2c() while there.
The skipping behavior is used in particular for omitting the optional
length value in the non-standard OpenSSL-specific DHparam() ASN.1
encoding.

ok jsing kenjiro
</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>Hide global _it symbols in asn1t.h</title>
<updated>2024-07-08T16:24:22+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-07-08T16:24:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b6aa0df06e66342ca51ad74557ea2fe3ba5fc2ec'/>
<id>urn:sha1:b6aa0df06e66342ca51ad74557ea2fe3ba5fc2ec</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>The long primitive function table can be const</title>
<updated>2024-05-17T02:49:21+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-17T02:49:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=40aaee12f4cc883cce66ab2c33bbedb78f59748c'/>
<id>urn:sha1:40aaee12f4cc883cce66ab2c33bbedb78f59748c</id>
<content type='text'>
</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>Use ASN1_INTEGER to parse/build (Z)LONG_it</title>
<updated>2022-07-02T18:14:35+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-07-02T18:14:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=98b9869e5aaf976b7e3faf004df7d50a82ad39e2'/>
<id>urn:sha1:98b9869e5aaf976b7e3faf004df7d50a82ad39e2</id>
<content type='text'>
Rather than having yet another (broken) ASN.1 INTEGER content builder and
parser, use {c2i,i2c}_ASN1_INTEGER().

ok beck@
</content>
</entry>
<entry>
<title>Provide and use long_{get,set}()</title>
<updated>2022-06-26T13:10:15+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-06-26T13:10:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1c45f06eaf444cdc05079c52a06296706b42f26d'/>
<id>urn:sha1:1c45f06eaf444cdc05079c52a06296706b42f26d</id>
<content type='text'>
Apparently at some point a LONG_it was misaligned - provide and use
long_{get,set}() so that we always memcpy() rather than doing it some times
but not others. While here provide long_clear() rather than abusing and
reusing long_free().

ok tb@
</content>
</entry>
<entry>
<title>Avoid undefined behaviour that results from negating a signed long with</title>
<updated>2019-04-20T11:13:15+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-04-20T11:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c3ec81b3b52d73654c55239c0018d4f15a76deb2'/>
<id>urn:sha1:c3ec81b3b52d73654c55239c0018d4f15a76deb2</id>
<content type='text'>
minimum value.

Fixes oss-fuzz #14354.

ok beck@ bcook@ tb@
</content>
</entry>
<entry>
<title>Avoid signed integer overflow.</title>
<updated>2019-04-15T17:46:02+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-04-15T17:46:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59ffb61915a18262d2dfa3ff8e3cff60f31fc054'/>
<id>urn:sha1:59ffb61915a18262d2dfa3ff8e3cff60f31fc054</id>
<content type='text'>
Fixes oss-fuzz issue #13843.

ok tb@
</content>
</entry>
<entry>
<title>Correct the return values from long_print.</title>
<updated>2019-04-01T15:48:50+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-04-01T15:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=01a9fea5da51f3194be3ccfae8edee09154ed07a'/>
<id>urn:sha1:01a9fea5da51f3194be3ccfae8edee09154ed07a</id>
<content type='text'>
BIO_print() returns -1 on failure, whereas the ASN print functions need to
return 0.

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