brokenhttpd/src/ssl-bozo.c
/*
 * bozo_clear_ssl_queue:  print the contents of the SSL error queue
 */
print the contents of the SSL error queue
print the contents of the SSL error queue
static void
bozo_clear_ssl_queue(bozohttpd_t *httpd)
{
	unsigned long sslcode = ERR_get_error();
	do {
		static const char sslfmt[] = "SSL Error: %s:%s:%s";
		if (httpd->logstderr || isatty(STDERR_FILENO)) {
			fprintf(stderr, sslfmt,
			    ERR_lib_error_string(sslcode),
			    ERR_func_error_string(sslcode),
			    ERR_reason_error_string(sslcode));
		} else {
			syslog(LOG_ERR, sslfmt,
			    ERR_lib_error_string(sslcode),
			    ERR_func_error_string(sslcode),
			    ERR_reason_error_string(sslcode));
		}
	} while (0 != (sslcode = ERR_get_error()));
}
static void bozo_clear_ssl_queue ( bozohttpd_t * httpd ) { unsigned long sslcode = ERR_get_error ( ) ; do { static const char sslfmt [ ] = " " ; if ( httpd -> logstderr || isatty ( STDERR_FILENO ) ) { fprintf ( stderr , sslfmt , ERR_lib_error_string ( sslcode ) , ERR_func_error_string ( sslcode ) , ERR_reason_error_string ( sslcode ) ) ; } else { syslog ( LOG_ERR , sslfmt , ERR_lib_error_string ( sslcode ) , ERR_func_error_string ( sslcode ) , ERR_reason_error_string ( sslcode ) ) ; } } while ( 0 != ( sslcode = ERR_get_error ( ) ) ) ; }
bozo_clear_ssl_queue:  print the contents of the SSL error queue
bozo_clear_ssl_queue : print the contents of the SSL error queue