summaryrefslogtreecommitdiff
path: root/modules/io-tls
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-10-16 18:51:50 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-10-16 18:51:50 +0200
commitb048b02732cbfcfbb95bb8e16dec71aca0e977f4 (patch)
tree8f948159473f40ca42c73d75e61d8d03c3b38f24 /modules/io-tls
parentb10d0b0e1a30eb02777f5a02b81bf45e09749edb (diff)
Reworked abstraction for network
Diffstat (limited to 'modules/io-tls')
-rw-r--r--modules/io-tls/tls.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/io-tls/tls.hpp b/modules/io-tls/tls.hpp
index 93ec180..e2202f4 100644
--- a/modules/io-tls/tls.hpp
+++ b/modules/io-tls/tls.hpp
@@ -7,6 +7,11 @@
#include <variant>
namespace saw {
+namespace net {
+template<typename T = net::Os>
+struct Tls {};
+}
+
class tls;
/**
@@ -37,6 +42,11 @@ private:
options options_;
};
-error_or<own<network>> setup_tls_network(network &network);
+template<>
+class network<net::Tls> {
+};
+
+template<typename T = net::Os>
+error_or<own<network<net::Tls<T>>>> setup_tls_network(network<T> &network);
} // namespace saw