mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Declare deprecated option for no_deprecated configs
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -324,6 +324,9 @@ def crypto_adapter(adapter):
|
|||||||
return adapter(name, active, section)
|
return adapter(name, active, section)
|
||||||
return continuation
|
return continuation
|
||||||
|
|
||||||
|
DEPRECATED = frozenset([
|
||||||
|
'MBEDTLS_PSA_CRYPTO_SE_C',
|
||||||
|
])
|
||||||
def no_deprecated_adapter(adapter):
|
def no_deprecated_adapter(adapter):
|
||||||
"""Modify an adapter to disable deprecated symbols.
|
"""Modify an adapter to disable deprecated symbols.
|
||||||
|
|
||||||
@ -334,6 +337,8 @@ def no_deprecated_adapter(adapter):
|
|||||||
def continuation(name, active, section):
|
def continuation(name, active, section):
|
||||||
if name == 'MBEDTLS_DEPRECATED_REMOVED':
|
if name == 'MBEDTLS_DEPRECATED_REMOVED':
|
||||||
return True
|
return True
|
||||||
|
if name in DEPRECATED:
|
||||||
|
return False
|
||||||
if adapter is None:
|
if adapter is None:
|
||||||
return active
|
return active
|
||||||
return adapter(name, active, section)
|
return adapter(name, active, section)
|
||||||
|
Reference in New Issue
Block a user