From 7ea851ddceafb03a6a789451063c0158f2df25a7 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Fri, 18 Oct 2024 20:51:30 +0200 Subject: Forgot I need to provide const char* and not strings --- modules/io-tls/c++/tls.hpp | 2 +- modules/io-tls/c++/tls.tmpl.hpp | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/io-tls/c++/tls.hpp b/modules/io-tls/c++/tls.hpp index 5082ee9..df21c81 100644 --- a/modules/io-tls/c++/tls.hpp +++ b/modules/io-tls/c++/tls.hpp @@ -77,7 +77,7 @@ public: /** * Set up a listener on this address */ - virtual error_or>>> listen(network_address> &bind_addr) = 0; + virtual error_or>>> listen(network_address> &bind_addr, const std::string& key_file) = 0; /** * Connect to a remote address diff --git a/modules/io-tls/c++/tls.tmpl.hpp b/modules/io-tls/c++/tls.tmpl.hpp index d76e482..8c2ba83 100644 --- a/modules/io-tls/c++/tls.tmpl.hpp +++ b/modules/io-tls/c++/tls.tmpl.hpp @@ -202,16 +202,17 @@ error_or>>> tls_network::listen(network_address