OpenVPN
|
Control Channel mbed TLS Backend. More...
#include "syshead.h"
#include <mbedtls/ssl.h>
#include <mbedtls/x509_crt.h>
#include <mbedtls/version.h>
#include "mbedtls_compat.h"
Go to the source code of this file.
Data Structures | |
struct | _buffer_entry |
struct | endless_buffer |
struct | bio_ctx |
struct | external_context |
Context used by external_pkcs1_sign() More... | |
struct | tls_key_cache |
struct | tls_root_ctx |
Structure that wraps the TLS context. More... | |
struct | key_state_ssl |
Typedefs | |
typedef struct _buffer_entry | buffer_entry |
typedef bool(* | external_sign_func) (void *sign_ctx, const void *src, size_t src_size, void *dst, size_t dst_size) |
External signing function prototype. | |
Functions | |
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) |
Control Channel mbed TLS Backend.
Definition in file ssl_mbedtls.h.
typedef struct _buffer_entry buffer_entry |
Definition at line 45 of file ssl_mbedtls.h.
typedef bool(* external_sign_func) (void *sign_ctx, const void *src, size_t src_size, void *dst, size_t dst_size) |
External signing function prototype.
A function pointer to a function implementing this prototype is provided to tls_ctx_use_external_signing_func().
sign_ctx | The context for the signing function. |
src | The data to be signed, |
src_size | The length of src, in bytes. |
dst | The destination buffer for the signature. |
dst_size | The length of the destination buffer. |
Definition at line 77 of file ssl_mbedtls.h.
|
inlinestatic |
Definition at line 151 of file ssl_mbedtls.h.
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.
ctx | TLS context to use. |
sign_func | Signing function to call. |
sign_ctx | Context for the sign function. |