Mercurial > trustbridge
comparison cinst/mozilla.c @ 332:81a205fc651e
Do not exit on error
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 08 Apr 2014 17:47:35 +0000 |
parents | e30c9fee111a |
children | eab288779e07 |
comparison
equal
deleted
inserted
replaced
331:455d6d00e896 | 332:81a205fc651e |
---|---|
368 nss_cert_name(SECItem *secitemp) | 368 nss_cert_name(SECItem *secitemp) |
369 { char *cn_str, *o_str, *name; | 369 { char *cn_str, *o_str, *name; |
370 size_t name_len; | 370 size_t name_len; |
371 cn_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_CN); | 371 cn_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_CN); |
372 o_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_O); | 372 o_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_O); |
373 if (!cn_str || !o_str) | |
374 { | |
375 DEBUGPRINTF("FATAL: Could not parse certificate!"); | |
376 exit(ERR_INVALID_CERT); | |
377 } | |
373 name_len = strlen(cn_str) + strlen(o_str) + 4; | 378 name_len = strlen(cn_str) + strlen(o_str) + 4; |
374 name = (char *)xmalloc(name_len); | 379 name = (char *)xmalloc(name_len); |
375 snprintf(name, name_len, "%s - %s", cn_str, o_str); | 380 snprintf(name, name_len, "%s - %s", cn_str, o_str); |
376 free(cn_str); | 381 free(cn_str); |
377 free(o_str); | 382 free(o_str); |