Something like below snippet can be
used to dump the queue.
/Gaurav
void XXX::reportError(void)
{
int flags = 0;
int line = 0;
char *data;
char *file;
unsigned long code = 0;
size_t len = 0;
{
int flags = 0;
int line = 0;
char *data;
char *file;
unsigned long code = 0;
size_t len = 0;
code =
::ERR_get_error_line_data((const char**)&file,
&line,
(const char**)&data, &flags);
while (code)
{
char error_string[256];
len = 254;
(void)::ERR_error_string_n(code, error_string, len);
(const char**)&data, &flags);
while (code)
{
char error_string[256];
len = 254;
(void)::ERR_error_string_n(code, error_string, len);
xxx_DEBUG((LM_ERROR, "(%P|%t) \tError Code:
%lu\n ",
code));
xxx_DEBUG((LM_ERROR, "(%P|%t) \tString: %s\n ", error_string));
if (file)
xxx_DEBUG((LM_ERROR, "(%P|%t) \tFile: %s\n ", file));
xxx_DEBUG((LM_ERROR, "(%P|%t) \tline: %lu\n ", line));
xxx_DEBUG((LM_ERROR, "(%P|%t) \tString: %s\n ", error_string));
if (file)
xxx_DEBUG((LM_ERROR, "(%P|%t) \tFile: %s\n ", file));
xxx_DEBUG((LM_ERROR, "(%P|%t) \tline: %lu\n ", line));
if (data && (flags &
ERR_TXT_STRING))
{
xxx_ERROR((LM_ERROR,
xxx_TEXT("error data: %s\n"),
data));
}
code = ::ERR_get_error_line_data((const char**)&file, &line,
(const char**) &data, &flags);
}
}
{
xxx_ERROR((LM_ERROR,
xxx_TEXT("error data: %s\n"),
data));
}
code = ::ERR_get_error_line_data((const char**)&file, &line,
(const char**) &data, &flags);
}
}
-----Original Message-----
From: Krithiga Thangavelu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 9:49 AM
To: [EMAIL PROTECTED]
Subject: how to get more info on an error from the error Queue?The documentation on SSL_get_error() says that more info abt SSL_ERROR_SSL can be obtained from the OpenSSL error queue. What function call should I use for the same?
- Hi,
Thanks in Advance
Krithiga