openssl_error_cb
ERR_print_errors_cb(openssl_error_cb, NULL);
int openssl_error_cb(const char *str, size_t len, void *u);