OpenDDS  Snapshot(2023/04/28-20:55)
Err.h
Go to the documentation of this file.
1 /*
2  * Distributed under the OpenDDS License.
3  * See: http://www.OpenDDS.org/license.html
4  */
5 
6 #ifndef OPENDDS_DCPS_SECURITY_SSL_ERR_H
7 #define OPENDDS_DCPS_SECURITY_SSL_ERR_H
8 
9 #include <ace/Log_Msg.h>
10 #include <openssl/err.h>
11 
12 #define OPENDDS_SSL_LOG_ERR(MSG) \
13  for (unsigned long e = ERR_get_error(); e != 0; e = ERR_get_error()) { \
14  char buf[256]; \
15  ERR_error_string(e, buf); \
16  ACE_ERROR((LM_WARNING, ACE_TEXT("(%P|%t) WARNING: %C: %C\n"), \
17  (MSG), buf)); \
18  }
19 
20 #endif