Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2019-12-14 10:27:13 +0300
committereidheim <eidheim@gmail.com>2019-12-14 10:27:13 +0300
commitd2836f2d4a6837388294917e8b48f253efd5a5bb (patch)
tree5565f45887e159dd5f926833357e9a21da151eb0
parent1834e513dd1055e87d112659429fb988a16d20b2 (diff)
Added static_cast to SSL_CTX_set_session_id_context argument
-rw-r--r--server_wss.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server_wss.hpp b/server_wss.hpp
index d057d1c..bcfe7fe 100644
--- a/server_wss.hpp
+++ b/server_wss.hpp
@@ -49,7 +49,7 @@ namespace SimpleWeb {
auto session_id_context = std::to_string(acceptor->local_endpoint().port()) + ':';
session_id_context.append(config.address.rbegin(), config.address.rend());
SSL_CTX_set_session_id_context(context.native_handle(), reinterpret_cast<const unsigned char *>(session_id_context.data()),
- std::min<std::size_t>(session_id_context.size(), SSL_MAX_SSL_SESSION_ID_LENGTH));
+ static_cast<unsigned int>(std::min<std::size_t>(session_id_context.size(), SSL_MAX_SSL_SESSION_ID_LENGTH)));
}
}