38 lines
813 B
C++
38 lines
813 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: TLS.hpp
|
|
Date: 2022-8-24
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include <Source/RuntimeInternal.hpp>
|
|
#include <Aurora/IO/TLS/TLS.hpp>
|
|
|
|
#include <mbedtls/entropy.h>
|
|
#include <mbedtls/ctr_drbg.h>
|
|
#include <mbedtls/ssl.h>
|
|
#include <mbedtls/x509.h>
|
|
#include <mbedtls/error.h>
|
|
#include <mbedtls/timing.h> // TODO: deprecate me
|
|
|
|
#if defined(MBEDTLS_SSL_CACHE_C)
|
|
#include <mbedtls/ssl_cache.h>
|
|
#endif
|
|
|
|
#if defined(MBEDTLS_SSL_TICKET_C)
|
|
#include <mbedtls/ssl_ticket.h>
|
|
#endif
|
|
|
|
#if defined(MBEDTLS_SSL_COOKIE_C)
|
|
#include <mbedtls/ssl_cookie.h>
|
|
#endif
|
|
|
|
namespace Aurora::IO::TLS
|
|
{
|
|
extern mbedtls_entropy_context gEntropy;
|
|
extern mbedtls_ctr_drbg_context gCtrDrbg;
|
|
|
|
AuString TLSErrorToString(int iError);
|
|
} |