Merge pull request #6076 from paul-elliott-arm/fix_generate_debug_helpers

Fix generation of ssl_debug_helpers
This commit is contained in:
Dave Rodgman 2022-07-08 17:55:51 +01:00 committed by GitHub
commit 391e33ac93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ class SignatureAlgorithmDefinition:
for m in self._definitions:
name = m.groupdict()['name']
translation_table.append(
'\tcase {}:\n\t return "{}";'.format(name,
' case {}:\n return "{}";'.format(name,
name[len('MBEDTLS_TLS1_3_SIG_'):].lower())
)
@ -337,7 +337,7 @@ class NamedGroupDefinition:
for m in self._definitions:
name = m.groupdict()['name']
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('''\
const char *mbedtls_ssl_named_group_to_str( uint16_t in )