'openssl debug information when using the library

Is there a way to receive the same debug output when using library APIs as when using "s_client -debug"? (I am trying to debug handshake problems and it will not be practical to install the command-line tool on every system)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source