diff common/certhelp.c @ 332:81a205fc651e

Do not exit on error
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 08 Apr 2014 17:47:35 +0000
parents e7a8b70021b6
children 17e1c8f37d72
line wrap: on
line diff
--- a/common/certhelp.c	Tue Apr 08 15:09:13 2014 +0000
+++ b/common/certhelp.c	Tue Apr 08 17:47:35 2014 +0000
@@ -33,8 +33,8 @@
   x509_crt_init(&chain);
   if (x509_crt_parse_der(&chain, derdata, derlen) != 0)
     {
-      DEBUGPRINTF("FATAL: Could not parse certificate!");
-      exit(ERR_INVALID_CERT);
+      ERRORPRINTF("Could not parse certificate!\n");
+      return NULL;
     }
   else
     {

http://wald.intevation.org/projects/trustbridge/