comparison 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
comparison
equal deleted inserted replaced
331:455d6d00e896 332:81a205fc651e
31 char *str; 31 char *str;
32 32
33 x509_crt_init(&chain); 33 x509_crt_init(&chain);
34 if (x509_crt_parse_der(&chain, derdata, derlen) != 0) 34 if (x509_crt_parse_der(&chain, derdata, derlen) != 0)
35 { 35 {
36 DEBUGPRINTF("FATAL: Could not parse certificate!"); 36 ERRORPRINTF("Could not parse certificate!\n");
37 exit(ERR_INVALID_CERT); 37 return NULL;
38 } 38 }
39 else 39 else
40 { 40 {
41 str = get_oid_valstr(&(chain.subject), oid); 41 str = get_oid_valstr(&(chain.subject), oid);
42 x509_crt_free(&chain); 42 x509_crt_free(&chain);

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