mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
mlamb
22322f2851
Add ssl_cry() function to display error message plus any detailed error messages that OpenSSL might care to provide.
This can help to debug SSL communication issues. Example output with a couple of problematic SSL client sessions (new log messages start with "-->" to indicate that they are providing additional detail to a previous log message): Mongoose "2.9, $Rev: 517 $" started on port(s) "80,443s", serving directory "." [1274991792] [error] [client 10.50.50.50] worker_thread: SSL handshake error [1274991792] [error] [client 10.50.50.50] --> error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number [1274991882] [error] [client 10.50.50.50] worker_thread: SSL handshake error [1274991882] [error] [client 10.50.50.50] --> error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher
Languages
C
90%
C++
4.4%
Makefile
2.8%
JavaScript
1.3%
HTML
0.9%
Other
0.6%