warmcat/libwebsockets — pull request #34 by jonty-rightshift (2013-11-22 11:29:11+00:00)
Title: Fixed the logging of OpenSSL errors to report the correct details for the current OpenSSL error

Due to OpenSSL having an error queue for its errors, repeated calls to ERR_get_error() when wanting to display the current error can return incorrect error details.

Example:

![screen shot 2013-11-22 at 1 23 15 pm](https://f.cloud.github.com/assets/5113791/1600162/899abb8e-5368-11e3-9b30-e320a1dba5f7.png)

when the actual error was a "tls invalid ecpointformat list" error