Merge pull request #6076 from paul-elliott-arm/fix_generate_debug_helpers
Fix generation of ssl_debug_helpers
This commit is contained in:
commit
391e33ac93
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue