<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/objects/obj_dat.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-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>obj_dat: remove parens from return</title>
<updated>2025-02-26T10:48:25+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-02-26T10:48:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b1a938971212a7a592d7e2ede901063e035e033f'/>
<id>urn:sha1:b1a938971212a7a592d7e2ede901063e035e033f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>obj_dat: don't shift a-&gt;length into the sign bit</title>
<updated>2025-02-26T09:52:55+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-02-26T09:52:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f55cac4fee34533075692ff0c2e1942c5f2f5a6b'/>
<id>urn:sha1:f55cac4fee34533075692ff0c2e1942c5f2f5a6b</id>
<content type='text'>
For an OID of excessive length &gt;= 2^12, a-&gt;length &lt;&lt; 20L is undefined,
so add a cast to the target type of (unsigned long).

From Kenjiro Nakayama
</content>
</entry>
<entry>
<title>obj_dat: don't shift ca-&gt;type into the sign bit</title>
<updated>2025-02-26T09:49:54+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-02-26T09:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8433b909f043d8d8afb48503656082d288e05934'/>
<id>urn:sha1:8433b909f043d8d8afb48503656082d288e05934</id>
<content type='text'>
This is undefined for a ca-&gt;type of ADDED_LNAME (2) and ADDED_NID (3)
when ca-&gt;type &lt;&lt; 30L results in a shift into the sign bit, so add a
cast to the target type of unsigned long.

From Kenjiro Nakayama
</content>
</entry>
<entry>
<title>Remove lhash_local.h.</title>
<updated>2024-07-14T14:32:45+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-07-14T14:32:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1ae23ffb91ba41cf24c39b874e0d6f164063cfe3'/>
<id>urn:sha1:1ae23ffb91ba41cf24c39b874e0d6f164063cfe3</id>
<content type='text'>
lhash_local.h was previously needed since conf/conf_api.c and
objects/obj_dat.c were fiddling with lhash internals when deleting via a
callback. Since we no longer need to do that, inline the structs in
lhash.c and remove the header.

ok tb@
</content>
</entry>
<entry>
<title>fix line wrapping in function definition</title>
<updated>2024-05-08T16:35:05+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-08T16:35:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5f69f6e958d0430cf996beff12703e8c0ea94797'/>
<id>urn:sha1:5f69f6e958d0430cf996beff12703e8c0ea94797</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make LHASH_OF() and STACK_OF() use opaque structs</title>
<updated>2024-03-02T11:11:11+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T11:11:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=26367add3db68a3e89bda58a3c85174507f8e71a'/>
<id>urn:sha1:26367add3db68a3e89bda58a3c85174507f8e71a</id>
<content type='text'>
This removes internals of these two special snowflakes and will allow
further simplifications. Unfortunately, there are some pieces of
software that actually use LHASH_OF() (looking at you, pound, Ruby, and
openssl(1)), so we get to keep exposing this garbage, at least for now.

Expose lh_error() as a symbol to replace a macro reaching into _LHASH.
lh_down_load() is no longer available. _LHASH and _STACK are now opaque,
LHASH_NODE becomes internal-only.

from jsing
</content>
</entry>
<entry>
<title>Make OBJ_add_object() static</title>
<updated>2024-03-02T09:49:45+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T09:49:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c2a8b27418d4c367c3ff2673c6d47caada8c4b1a'/>
<id>urn:sha1:c2a8b27418d4c367c3ff2673c6d47caada8c4b1a</id>
<content type='text'>
This is another implementation detail that should never have leaked out
of the library. Only OBJ_create() ever used this.

ok jsing
</content>
</entry>
<entry>
<title>Remove OBJ_bsearch_()</title>
<updated>2024-03-02T09:47:16+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T09:47:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=348fad0a9df90c576a11c7beeef17fa70cae611f'/>
<id>urn:sha1:348fad0a9df90c576a11c7beeef17fa70cae611f</id>
<content type='text'>
The only reason this has still been part of the public API was that libssl
used it for cipher lookup. This was fixed by replacing the lookup by proper
bsearch() -- why OpenSSL felt the need to reinvent ANSI C API badly will
forever remain a mystery.

The stack code in libcrypto still uses a version of this. This should
be rewritten. It will be a bit easier once sk_find_ex() is removed.

ok jsing
</content>
</entry>
<entry>
<title>Neuter OBJ_bsearch{_,ex_}()</title>
<updated>2024-02-26T15:00:30+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-02-26T15:00:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d205418700609e87c645eee6eb8de486ec6bd3e3'/>
<id>urn:sha1:d205418700609e87c645eee6eb8de486ec6bd3e3</id>
<content type='text'>
Make these functions always fail. A copy of OBJ_bsearch_ex_() is kept
in stack.c, where it is still used by internal_find() for sk_find{,_ex}().
sk_find_ex() will be removed in the upcoming bump, and then we can
simplify or rewrite what's still needed.

ok jsing
</content>
</entry>
</feed>
