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:
@ -79,7 +79,11 @@ extern "C" {{
|
|||||||
"""
|
"""
|
||||||
.format(guard=self.header_guard))
|
.format(guard=self.header_guard))
|
||||||
out.write("""
|
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:
|
def _write_epilogue(self, out: typing_util.Writable, header: bool) -> None:
|
||||||
|
@ -31,10 +31,18 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
|
|||||||
|
|
||||||
_SKIP_FUNCTIONS = frozenset([
|
_SKIP_FUNCTIONS = frozenset([
|
||||||
'mbedtls_psa_external_get_random', # not a library function
|
'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_domain_parameters', # client-side function
|
||||||
'psa_get_key_slot_number', # 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
|
'psa_set_key_domain_parameters', # client-side function
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user