diff options
author | David Timber <mieabby@gmail.com> | 2020-01-11 18:03:47 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-11 18:03:47 +1100 |
commit | 10512fc50e6184397206a41c157c09d9b02e9e1a (patch) | |
tree | 5f0779032edf0f0710400ae6c99b9a3f2977735d /src/mbedtls.h | |
parent | 129e12d7685a6ea99fde514ad104a0368a19033d (diff) |
staged resolv_worker
* replaced RNG from `rnd` to `mbedtls_ctr_drbg`
* use of `uint_fastN_t` where appropriate
* heartbeat protocol draft
* improved worker scheduling mech
Diffstat (limited to 'src/mbedtls.h')
-rw-r--r-- | src/mbedtls.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mbedtls.h b/src/mbedtls.h new file mode 100644 index 0000000..02c50c2 --- /dev/null +++ b/src/mbedtls.h @@ -0,0 +1,12 @@ +#pragma once +#include <stdint.h> +#include <stdbool.h> +#include <stddef.h> + +#include <mbedtls/x509_crt.h> + + +// Callback that masks `MBEDTLS_X509_BADCERT_EXPIRED` +int prne_mbedtls_x509_crt_verify_cb (void *param, mbedtls_x509_crt *crt, int crt_depth, uint32_t *flags); +int prne_mbedtls_ssl_send_cb (void *ctx, const unsigned char *buf, size_t len); +int prne_mbedtls_ssl_recv_cb (void *ctx, unsigned char *buf, size_t len); |