comparison cinst/mozilla.c @ 489:a9da8e4eeff7

Fix instruction writing for Windows. Back to native winapi. What happens if you convert a Winapi handle to a c handle and how closing etc. works is to badly documented for me to be comfortable to use it.
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 24 Apr 2014 15:46:35 +0000
parents 17e1c8f37d72
children 48d7b956bd98
comparison
equal deleted inserted replaced
488:b8b0f9685ffa 489:a9da8e4eeff7
379 cn_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_CN); 379 cn_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_CN);
380 o_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_O); 380 o_str = x509_parse_subject(secitemp->data, secitemp->len, CERT_OID_O);
381 if (!cn_str || !o_str) 381 if (!cn_str || !o_str)
382 { 382 {
383 DEBUGPRINTF("FATAL: Could not parse certificate!"); 383 DEBUGPRINTF("FATAL: Could not parse certificate!");
384 DEBUGPRINTF("data len: %u \n", secitemp->len);
385 exit(ERR_INVALID_CERT); 384 exit(ERR_INVALID_CERT);
386 } 385 }
387 name_len = strlen(cn_str) + strlen(o_str) + 4; 386 name_len = strlen(cn_str) + strlen(o_str) + 4;
388 name = (char *)xmalloc(name_len); 387 name = (char *)xmalloc(name_len);
389 snprintf(name, name_len, "%s - %s", cn_str, o_str); 388 snprintf(name, name_len, "%s - %s", cn_str, o_str);

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