16#include <mbedtls/ctr_drbg.h>
17#include <mbedtls/version.h>
18#include <mbedtls/pem.h>
20#if not defined(MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION)
21#define MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION
24#if not defined(MBEDTLS_OID_X509_EXT_EXTENDED_KEY_USAGE)
25#define MBEDTLS_OID_X509_EXT_EXTENDED_KEY_USAGE MBEDTLS_X509_EXT_KEY_USAGE
28#if MBEDTLS_VERSION_NUMBER < 0x03000000
29static inline const mbedtls_md_info_t *
42 return crt->ext_types & ext_type;
45static inline const unsigned char *
48 *buf_size = ctx->buflen;
static int mbedtls_x509_crt_has_ext_type(const mbedtls_x509_crt *crt, int ext_type)
static const mbedtls_md_info_t * mbedtls_md_info_from_ctx(const mbedtls_md_context_t *ctx)
static const unsigned char * mbedtls_pem_get_buffer(const mbedtls_pem_context *ctx, size_t *buf_size)