#include #include void print_error() { FILE *fp; //ERR_print_errors_fp(stderr); fp = fopen("/tmp/gnc.log", "a"); fprintf(fp, "ssl was %d ::\n",SSL_get_error()); ERR_print_errors_fp(fp); fclose(fp); }