1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-07 12:21:11 +03:00

Adapt wrapper generators from 3.5 to 2.28

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2024-01-04 16:41:30 +01:00
parent 8519dc9c7e
commit 17a14f1711
2 changed files with 15 additions and 3 deletions

View File

@ -79,7 +79,11 @@ extern "C" {{
"""
.format(guard=self.header_guard))
out.write("""
#include <mbedtls/build_info.h>
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
""")
def _write_epilogue(self, out: typing_util.Writable, header: bool) -> None:

View File

@ -31,10 +31,18 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
_SKIP_FUNCTIONS = frozenset([
'mbedtls_psa_external_get_random', # not a library function
'psa_aead_abort', # not implemented yet
'psa_aead_decrypt_setup', # not implemented yet
'psa_aead_encrypt_setup', # not implemented yet
'psa_aead_finish', # not implemented yet
'psa_aead_generate_nonce', # not implemented yet
'psa_aead_set_lengths', # not implemented yet
'psa_aead_set_nonce', # not implemented yet
'psa_aead_update', # not implemented yet
'psa_aead_update_ad', # not implemented yet
'psa_aead_verify', # not implemented yet
'psa_get_key_domain_parameters', # client-side function
'psa_get_key_slot_number', # client-side function
'psa_key_derivation_verify_bytes', # not implemented yet
'psa_key_derivation_verify_key', # not implemented yet
'psa_set_key_domain_parameters', # client-side function
])