summaryrefslogtreecommitdiff
path: root/src/common/packed.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-01 11:16:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-01 11:16:12 (GMT)
commit29eae5126251eb0f10d02700bb87dac9893bb445 (patch)
tree34e8906f0d6f3948b80cf59b86f2d5179fa379ad /src/common/packed.h
parent09f07c9a523dce7b8d7e013857f988f727f1a72b (diff)
Encrypted all communications using TLS.
Diffstat (limited to 'src/common/packed.h')
-rw-r--r--src/common/packed.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/packed.h b/src/common/packed.h
index d25c947..5c724e0 100644
--- a/src/common/packed.h
+++ b/src/common/packed.h
@@ -27,6 +27,7 @@
#include <stdbool.h>
#include <stdint.h>
+#include <openssl/ssl.h>
#include <sys/types.h>
@@ -76,6 +77,12 @@ bool recv_packed_buffer(packed_buffer *, int);
/* Envoie des données au travers un flux réseau. */
bool send_packed_buffer(packed_buffer *, int);
+/* Réceptionne des données depuis un flux réseau chiffré. */
+bool ssl_recv_packed_buffer(packed_buffer *, SSL *);
+
+/* Envoie des données au travers un flux réseau chiffré. */
+bool ssl_send_packed_buffer(packed_buffer *, SSL *);
+
#endif /* _COMMON_PACKED_H */