mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-30 16:20:11 +00:00
Use MbedTLSConfig for config handling to keep campatibility
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
8b54f0e7e8
commit
1a0bd776b2
@ -3,7 +3,7 @@
|
|||||||
"""Mbed TLS and PSA configuration file manipulation library and tool
|
"""Mbed TLS and PSA configuration file manipulation library and tool
|
||||||
|
|
||||||
Basic usage, to read the Mbed TLS configuration:
|
Basic usage, to read the Mbed TLS configuration:
|
||||||
config = CombinedConfigFile()
|
config = MbedTLSConfig()
|
||||||
if 'MBEDTLS_RSA_C' in config: print('RSA is enabled')
|
if 'MBEDTLS_RSA_C' in config: print('RSA is enabled')
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -448,8 +448,7 @@ class MbedTLSConfigTool(config_common.ConfigTool):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(MbedTLSConfigFile.default_path)
|
super().__init__(MbedTLSConfigFile.default_path)
|
||||||
self.config = CombinedConfig(MbedTLSConfigFile(self.args.file),
|
self.config = MbedTLSConfig(self.args.file)
|
||||||
CryptoConfigFile(self.args.cryptofile))
|
|
||||||
|
|
||||||
def custom_parser_options(self):
|
def custom_parser_options(self):
|
||||||
"""Adds MbedTLS specific options for the parser."""
|
"""Adds MbedTLS specific options for the parser."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user