Skip to content

Instantly share code, notes, and snippets.

@E-gy
Created October 14, 2021 14:25
Show Gist options
  • Select an option

  • Save E-gy/735cbd447f3af311f60575dca7f3febc to your computer and use it in GitHub Desktop.

Select an option

Save E-gy/735cbd447f3af311f60575dca7f3febc to your computer and use it in GitHub Desktop.
C OpenSSL print last SSL Error
#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