提交 fca4f5b1 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

cosmetic: add some 'clang-format off' in DtlsTransport.cpp

上级 5547e44d
...@@ -12,23 +12,25 @@ ...@@ -12,23 +12,25 @@
#include <cstdio> // std::snprintf(), std::fopen() #include <cstdio> // std::snprintf(), std::fopen()
#include <cstring> // std::memcpy(), std::strcmp() #include <cstring> // std::memcpy(), std::strcmp()
#define LOG_OPENSSL_ERROR(desc) \ // clang-format off
do \ #define LOG_OPENSSL_ERROR(desc) \
{ \ do \
if (ERR_peek_error() == 0) \ { \
{ \ if (ERR_peek_error() == 0) \
MS_ERROR("OpenSSL error [desc:'%s']", desc); \ { \
} \ MS_ERROR("OpenSSL error [desc:'%s']", desc); \
else \ } \
{ \ else \
int64_t err; \ { \
while ((err = ERR_get_error()) != 0) \ int64_t err; \
{ \ while ((err = ERR_get_error()) != 0) \
MS_ERROR("OpenSSL error [desc:'%s', error:'%s']", desc, ERR_error_string(err, nullptr)); \ { \
} \ MS_ERROR("OpenSSL error [desc:'%s', error:'%s']", desc, ERR_error_string(err, nullptr)); \
ERR_clear_error(); \ } \
} \ ERR_clear_error(); \
} \
} while (false) } while (false)
// clang-format on
/* Static methods for OpenSSL callbacks. */ /* Static methods for OpenSSL callbacks. */
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论