Mercurial > trustbridge
diff cinst/mozilla.c @ 399:55cbe0a482ce
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 16 Apr 2014 10:01:02 +0200 |
parents | eab288779e07 |
children | 17e1c8f37d72 |
line wrap: on
line diff
--- a/cinst/mozilla.c Wed Apr 16 10:00:17 2014 +0200 +++ b/cinst/mozilla.c Wed Apr 16 10:01:02 2014 +0200 @@ -366,13 +366,15 @@ */ static char * nss_cert_name(SECItem *secitemp) -{ char *cn_str, *o_str, *name; +{ + char *cn_str, *o_str, *name; size_t name_len; cn_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_CN); o_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_O); if (!cn_str || !o_str) { DEBUGPRINTF("FATAL: Could not parse certificate!"); + DEBUGPRINTF("data len: %u \n", secitemp->len); exit(ERR_INVALID_CERT); } name_len = strlen(cn_str) + strlen(o_str) + 4;