core/asn1/base64_mbedtls_static.h (12 lines of code) (raw):

// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #ifndef BASE64_MBEDTLS_STATIC_H_ #define BASE64_MBEDTLS_STATIC_H_ #include "asn1/base64_mbedtls.h" /* Internal functions declared to allow for static initialization. */ int base64_mbedtls_encode (const struct base64_engine *engine, const uint8_t *data, size_t length, uint8_t *encoded, size_t enc_length); /** * Constant initializer for the Base64 API. */ #define BASE64_MBEDTLS_API_INIT { \ .encode = base64_mbedtls_encode \ } /** * Initialize a static instance for base64 encoding using mbedTLS. */ #define base64_mbedtls_static_init { \ .base = BASE64_MBEDTLS_API_INIT, \ } #endif /* BASE64_MBEDTLS_STATIC_H_ */