#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.
◆ buffer_entry
◆ external_sign_func
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().
- Parameters
-
sign_ctx | The context for the signing function. |
src | The data to be signed, |
src_len | The length of src, in bytes. |
dst | The destination buffer for the signature. |
dst_len | The length of the destination buffer. |
- Returns
- true if signing succeeded, false otherwise.
Definition at line 76 of file ssl_mbedtls.h.
◆ tls_clear_error()
static void tls_clear_error |
( |
void |
| ) |
|
|
inlinestatic |
◆ tls_ctx_use_external_signing_func()
Call the supplied signing function to create a TLS signature during the TLS handshake.
- Parameters
-
ctx | TLS context to use. |
sign_func | Signing function to call. |
sign_ctx | Context for the sign function. |
- Returns
- 0 if successful, 1 if an error occurred.