mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 11:11:08 +01:00
Read current data rather than data about 4.0
It doesn't matter how a macro was used in a previous minor version of the library. What matters is current information about options and internal symbols, and information about past versions from which a macro may have been removed. The output is mostly the same, but: * Macros that were options in 3.6, became internal in 4.0 and have now been completely removed are now shown as removed, not internal. * Macros that were options in 3.6, were completely removed in 4.0, and are now back but internal, are now shown as internal, not removed. * Macros that were options in 3.6, were removed in 4.0 and are back to being options are no longer rejected. * Macros that were options in 3.6, were removed in 4.0 and are back to being internal derived macros in TF-PSA-Crypto are no longer rejected. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -24,10 +24,10 @@ ALWAYS_ENABLED_SINCE_4_0 = frozenset([
|
||||
def checkers_for_removed_options() -> Iterator[Checker]:
|
||||
"""Discover removed options. Yield corresponding checkers."""
|
||||
previous_major = config_macros.History('mbedtls', '3.6')
|
||||
this_major = config_macros.History('mbedtls', '4.0')
|
||||
current = config_macros.Current()
|
||||
crypto = config_macros.Current('tf-psa-crypto')
|
||||
old_public = previous_major.options()
|
||||
new_public = this_major.options()
|
||||
crypto = config_macros.History('tfpsacrypto', '1.0')
|
||||
new_public = current.options()
|
||||
for option in sorted(old_public - new_public):
|
||||
if option in ALWAYS_ENABLED_SINCE_4_0:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user