Created
October 14, 2021 14:25
-
-
Save E-gy/735cbd447f3af311f60575dca7f3febc to your computer and use it in GitHub Desktop.
C OpenSSL print last SSL Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <openssl/err.h> | |
| static void printSSLError(){ | |
| char buff[512] = {}; | |
| ERR_error_string_n(ERR_get_error(), buff, sizeof(buff)-1); | |
| prinft("%s", buff); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment