exit(ERRX);
output_ca_cert (CERTCertificate *cert, CERTCertDBHandle *db)  {  FILE *out;   SECItem *encodedCertChain;   SEC_PKCS7ContentInfo *certChain;	char *filename;  /* the raw */	filename = PORT_ZAlloc(strlen(DEFAULT_X509_BASENAME)+8);	if(!filename) out_of_memory();	sprintf(filename, "%s.raw", DEFAULT_X509_BASENAME);  if ((out = fopen (filename, "wb")) == NULL)    {    PR_fprintf(errorFD, "%s: Can't open %s output file\n", PROGRAM_NAME, filename);	errorCount++;    return;    }  certChain = SEC_PKCS7CreateCertsOnly (cert, PR_TRUE, db);  encodedCertChain      = SEC_PKCS7EncodeItem (NULL, NULL, certChain, NULL, NULL, NULL);  if (encodedCertChain)     {    fprintf(out, "Content-type: application/x-x509-ca-cert\n\n");    fwrite (encodedCertChain->data, 1, encodedCertChain->len, out);    }  else {    PR_fprintf(errorFD, "%s: Can't DER encode this certificate\n", PROGRAM_NAME);	errorCount++;  }  fclose (out);  /* and the cooked */	sprintf(filename, "%s.cacert", DEFAULT_X509_BASENAME);  if ((out = fopen (filename, "wb")) == NULL)    {    PR_fprintf(errorFD, "%s: Can't open %s output file\n", PROGRAM_NAME, filename);	errorCount++;    return;    }  fprintf (out, "%s\n%s\n%s\n",       NS_CERT_HEADER,      BTOA_DataToAscii (cert->derCert.data, cert->derCert.len),       NS_CERT_TRAILER);  fclose (out);	if(verbosity >= 0) {		PR_fprintf(outputFD, "Exported certificate to %s.raw and %s.cacert.\n",			DEFAULT_X509_BASENAME, DEFAULT_X509_BASENAME);	}}