]> git.ipfire.org Git - thirdparty/openssl.git/commit
property: improve ossl_property_find_property() function
authorPauli <pauli@openssl.org>
Fri, 4 Jun 2021 04:25:14 +0000 (14:25 +1000)
committerPauli <pauli@openssl.org>
Sat, 5 Jun 2021 10:39:39 +0000 (20:39 +1000)
commitfce102304a340ef1a90361a03c86bd2401f0b6c3
treeae898812ec1af52a8ed157056195ee4bca3b8b9a
parentfa95fc1eb5eb7e84523f09248c0ce7f771cfdf58
property: improve ossl_property_find_property() function

This function searches a property list for a specific property and returns
a pointer to the definition if found.  The existing version was O(n) time,
the improved O(log n).

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15614)
crypto/property/property_parse.c
crypto/property/property_query.c