Skip to content

Commit 7465c62

Browse files
committed
clang-format
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
1 parent e12a8e7 commit 7465c62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ocpp/common/websocket/websocket_tls.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ static std::vector<std::string> get_subject_alt_names(const X509* x509) {
4545
return list;
4646
}
4747

48-
bool WebsocketTLS::verify_csms_cn(const std::string& hostname, bool preverified, boost::asio::ssl::verify_context& ctx) {
48+
bool WebsocketTLS::verify_csms_cn(const std::string& hostname, bool preverified,
49+
boost::asio::ssl::verify_context& ctx) {
4950

5051
// Error depth gives the depth in the chain (with 0 = leaf certificate) where
5152
// a potential (!) error occurred; error here means current error code and can also be "OK".
@@ -292,7 +293,7 @@ tls_context WebsocketTLS::on_tls_init(std::string hostname, websocketpp::connect
292293

293294
context->set_verify_mode(boost::asio::ssl::verify_peer);
294295
if (this->connection_options.verify_csms_common_name) {
295-
context->set_verify_callback([this, hostname](bool preverified, boost::asio::ssl::verify_context& ctx){
296+
context->set_verify_callback([this, hostname](bool preverified, boost::asio::ssl::verify_context& ctx) {
296297
return this->verify_csms_cn(hostname, preverified, ctx);
297298
});
298299

0 commit comments

Comments
 (0)