return;
return -1;
GenerateCert(char *nickname, int keysize, char *token){	CERTCertDBHandle *db;	CERTCertificate *cert;	char *subject;	unsigned long serial;	char stdinbuf[160];	/* Print warning about having the browser open */	PR_fprintf(PR_STDOUT /*always go to console*/,"\nWARNING: Performing this operation while the browser is running could cause""\ncorruption of your security databases. If the browser is currently running,""\nyou should exit the browser before continuing this operation. Enter ""\n\"y\" to continue, or anything else to abort: ");	pr_fgets(stdinbuf, 160, PR_STDIN);	PR_fprintf(PR_STDOUT, "\n");	if(tolower(stdinbuf[0]) != 'y') {		PR_fprintf(errorFD, "Operation aborted at user's request.\n");		errorCount++;		return;	}	db = CERT_GetDefaultCertDB();	if(!db) {		FatalError("Unable to open certificate database");	}	if(PK11_FindCertFromNickname(nickname, NULL)) {		PR_fprintf(errorFD,"ERROR: Certificate with nickname \"%s\" already exists in database. You\n""must choose a different nickname.\n", nickname);		errorCount++;		exit(ERRX);	}	LL_L2UI(serial, PR_Now());	subject = GetSubjectFromUser(serial);	cert = GenerateSelfSignedObjectSigningCert(nickname, db, subject,		serial, keysize, token);	if(cert) {		output_ca_cert(cert, db);	}	PORT_Free(subject);}