mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 10:20:45 +00:00
Fix generation of ssl_debug_helpers
File was being generated with tabs rather than spaces which breaks release builds Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
6e80e09bd1
commit
fe9d43c21d
@ -277,7 +277,7 @@ class SignatureAlgorithmDefinition:
|
|||||||
for m in self._definitions:
|
for m in self._definitions:
|
||||||
name = m.groupdict()['name']
|
name = m.groupdict()['name']
|
||||||
translation_table.append(
|
translation_table.append(
|
||||||
'\tcase {}:\n\t return "{}";'.format(name,
|
' case {}:\n return "{}";'.format(name,
|
||||||
name[len('MBEDTLS_TLS1_3_SIG_'):].lower())
|
name[len('MBEDTLS_TLS1_3_SIG_'):].lower())
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ class NamedGroupDefinition:
|
|||||||
for m in self._definitions:
|
for m in self._definitions:
|
||||||
name = m.groupdict()['name']
|
name = m.groupdict()['name']
|
||||||
iana_name = name[len('MBEDTLS_SSL_IANA_TLS_GROUP_'):].lower()
|
iana_name = name[len('MBEDTLS_SSL_IANA_TLS_GROUP_'):].lower()
|
||||||
translation_table.append('\tcase {}:\n\t return "{}";'.format(name, iana_name))
|
translation_table.append(' case {}:\n return "{}";'.format(name, iana_name))
|
||||||
|
|
||||||
body = textwrap.dedent('''\
|
body = textwrap.dedent('''\
|
||||||
const char *mbedtls_ssl_named_group_to_str( uint16_t in )
|
const char *mbedtls_ssl_named_group_to_str( uint16_t in )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user