#
343bd8e2 |
| 14-Jul-2024 |
jsing <jsing@openbsd.org> |
Remove lhash_local.h.
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 t
Remove lhash_local.h.
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@
show more ...
|
#
1b9cf3a3 |
| 08-May-2024 |
tb <tb@openbsd.org> |
fix line wrapping in function definition
|
#
b9351927 |
| 02-Mar-2024 |
tb <tb@openbsd.org> |
Make LHASH_OF() and STACK_OF() use opaque structs
This removes internals of these two special snowflakes and will allow further simplifications. Unfortunately, there are some pieces of software that
Make LHASH_OF() and STACK_OF() use opaque structs
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
show more ...
|
#
fb2db234 |
| 02-Mar-2024 |
tb <tb@openbsd.org> |
Make OBJ_add_object() static
This is another implementation detail that should never have leaked out of the library. Only OBJ_create() ever used this.
ok jsing
|
#
f329cdbc |
| 02-Mar-2024 |
tb <tb@openbsd.org> |
Remove OBJ_bsearch_()
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
Remove OBJ_bsearch_()
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
show more ...
|
#
2eb0a250 |
| 26-Feb-2024 |
tb <tb@openbsd.org> |
Neuter OBJ_bsearch{_,ex_}()
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 remo
Neuter OBJ_bsearch{_,ex_}()
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
show more ...
|
#
20273a99 |
| 24-Jan-2024 |
jsing <jsing@openbsd.org> |
Stop fiddling with hash table internals from lhash doall callers.
It is now safe to call delete from an lhash doall callback - stop fiddling wit hash table internals from lhash doall callers that pr
Stop fiddling with hash table internals from lhash doall callers.
It is now safe to call delete from an lhash doall callback - stop fiddling wit hash table internals from lhash doall callers that previously has to workaround this themselves.
ok tb@
show more ...
|
#
75591f2f |
| 13-Jan-2024 |
tb <tb@openbsd.org> |
Remove obj_cleanup_defer
With check_defer() gone, this is never set to anything but 0, so the two conditional branches it is still involved in are dead code.
|
#
f5d53f8d |
| 13-Jan-2024 |
tb <tb@openbsd.org> |
Garbage collect check_defer()
This was a mechanism to ensure that OBJ_cleanup() doesn't remove the ASN1_OBJECT associated with a custom cipher or digest (that was added with EVP_add_{cipher,digest}(
Garbage collect check_defer()
This was a mechanism to ensure that OBJ_cleanup() doesn't remove the ASN1_OBJECT associated with a custom cipher or digest (that was added with EVP_add_{cipher,digest}(), while the latter is still referenced in the OBJ_NAME table.
It had the effect that OBJ_cleanup() wasn't actually called ever from OPENSSL_cleanup() (it is only called if you load the OID conf module).
Oh, and of course it was once part of the public API. I fixed that two years ago, almost exactly to the day. Still mentioned in OBJ_create.3.
show more ...
|
#
bd5b787c |
| 15-Dec-2023 |
tb <tb@openbsd.org> |
Hoist OBJ_sn2nid() over OBJ_ln2nid()
In all other places, the short name comes before the long name, so fix the only exception.
|
#
a82d74d5 |
| 15-Dec-2023 |
tb <tb@openbsd.org> |
Coverity rightly points out that an unsigned int is always >= 0
|
#
874d382a |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create: sorry Omar, aobj is a better name than op
Done.
|
#
5a0b87fd |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create: use a nid variable to avoid nested function call
|
#
718766e5 |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create: malloc() -> calloc()
|
#
5caa395d |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create: test and assign as usual
|
#
30b1f96f |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create: initialize buf and turn function into single exit
|
#
386630a6 |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create: rename ok to ret and make it last declaration
|
#
010af94e |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create(): rename i to len
|
#
af5ed569 |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create(): remove pointless parentheses
|
#
3db1954f |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OBJ_create(): remove useless cast
|
#
2157d97e |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
OPENSSL_assert() that the passed nid is within range
discussed with deraadt and jsing
|
#
337c377e |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
Move the txt to obj/nid conversions a bit down.
No code change
|
#
2de383af |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
Dedup OBJ_nid2{obj,sn,ln}()
First get the obj corresponding to nid, then inspect its sn and ln. Shaves off 40 lines of code and will simplify locking.
|
#
fda3605f |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
Simplify OBJ_nid2obj()
This is now yet another identical copy of the same code... Next step will be to dedup.
ok jsing
|
#
cefe4e31 |
| 14-Dec-2023 |
tb <tb@openbsd.org> |
Simplify OBJ_nid2sn()
This is exactly the same as the previous OBJ_nid2ln() change modulo s/ln/sn/g.
ok jsing
|