Assert that a property definition cache entry is the first
authorMatt Caswell <matt@openssl.org>
Mon, 6 Jun 2022 09:06:57 +0000 (10:06 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 9 Jun 2022 10:37:31 +0000 (11:37 +0100)
commit5f4b3db624a83b812f23412e698ffd9c4284f87a
treee20dad195f434d3dc740a88b9d30b86cbc73b747
parentfed8dbea27b7e01ee934951b25c6ffd40ad1d5c3
Assert that a property definition cache entry is the first

When adding a property definition cache entry for a given property query
string we add an assert that we are not replacing an existing entry. If we
are then that indicates a bug in the caller.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18458)
crypto/property/defn_cache.c