From 7d9d627d6efec748fd6de2a162e2cb5a0b1685e8 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Fri, 29 May 2020 12:20:55 -0400 Subject: Initial code commit, and it actually works --- errors.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 errors.c (limited to 'errors.c') diff --git a/errors.c b/errors.c new file mode 100644 index 0000000..0ab0c77 --- /dev/null +++ b/errors.c @@ -0,0 +1,16 @@ + +#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); +} -- cgit v1.2.3