34#include <mbedtls/ssl.h>
35#include <mbedtls/x509_crt.h>
37#if defined(ENABLE_PKCS11)
38#include <pkcs11-helper-1.0/pkcs11h-certificate.h>
92 mbedtls_x509_crl *
crl;
96 pkcs11h_certificate_t pkcs11_cert;
int tls_ctx_use_external_signing_func(struct tls_root_ctx *ctx, external_sign_func sign_func, void *sign_ctx)
Call the supplied signing function to create a TLS signature during the TLS handshake.
static void tls_clear_error(void)
bool(* external_sign_func)(void *sign_ctx, const void *src, size_t src_size, void *dst, size_t dst_size)
External signing function prototype.
struct _buffer_entry buffer_entry
buffer_entry * next_block
One node in a buffer_list linked list.
buffer_entry * first_block
buffer_entry * last_block
mbedtls_ssl_config * ssl_config
mbedTLS global ssl config
mbedtls_ssl_context * ctx
mbedTLS connection context
Structure that wraps the TLS context.
mbedtls_x509_crl * crl
Certificate Revocation List.
off_t crl_last_size
size of last loaded CRL
mbedtls_x509_crt * crt_chain
Local Certificate chain.
uint16_t * groups
List of allowed groups for this connection.
mbedtls_x509_crt * ca_chain
CA chain for remote verification.
int * allowed_ciphers
List of allowed ciphers for this connection.
time_t crl_last_mtime
CRL last modification time.
mbedtls_x509_crt_profile cert_profile
Allowed certificate types.
bool initialised
True if the context has been initialised.
mbedtls_pk_context * priv_key
Local private key.