aboutsummaryrefslogtreecommitdiff
path: root/errors.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-05-29 12:20:55 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2020-05-29 12:20:55 -0400
commit7d9d627d6efec748fd6de2a162e2cb5a0b1685e8 (patch)
treef6f301765ad74a55da7481ceb548e2bb79b7a0ae /errors.c
downloadgnc-7d9d627d6efec748fd6de2a162e2cb5a0b1685e8.tar.gz
gnc-7d9d627d6efec748fd6de2a162e2cb5a0b1685e8.zip
Initial code commit, and it actually works
Diffstat (limited to 'errors.c')
-rw-r--r--errors.c16
1 files changed, 16 insertions, 0 deletions
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 <openssl/err.h>
+
+#include <stdio.h>
+
+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);
+}