return 0;
return retval;
verify_global (JAR *jar){  FILE *fp;  JAR_Context *ctx;  char *ext;  JAR_Item *it;  JAR_Digest *globaldig;  unsigned int sha1_length, md5_length;  char buf [BUFSIZ];  unsigned char *md5_digest, *sha1_digest;  ctx = JAR_find (jar, "*", jarTypePhy);  while (JAR_find_next (ctx, &it) >= 0) {    if (!PORT_Strncmp (it->pathname, "META-INF", 8)) {      for (ext = it->pathname; *ext; ext++);      while (ext > it->pathname && *ext != '.') ext--;		if(verbosity >= 0) {			if (!PORT_Strcasecmp (ext, ".rsa")) {				PR_fprintf(outputFD, "found a RSA signature file: %s\n",				  it->pathname);			}			if(!PORT_Strcasecmp (ext, ".dsa")) {				PR_fprintf(outputFD, "found a DSA signature file: %s\n",				  it->pathname);			}			if (!PORT_Strcasecmp (ext, ".mf")) {				PR_fprintf(outputFD,				  "found a MF master manifest file: %s\n", it->pathname);			}		}		if (!PORT_Strcasecmp (ext, ".sf")) {			if(verbosity >= 0) {				PR_fprintf(outputFD,				  "found a SF signature manifest file: %s\n", it->pathname);			}			rm_dash_r(TMP_OUTPUT);			if (JAR_extract (jar, it->pathname, TMP_OUTPUT) < 0) {				PR_fprintf(errorFD, "%s: error extracting %s\n", PROGRAM_NAME,				  it->pathname);				errorCount++;				continue;			}			md5_digest = NULL;			sha1_digest = NULL;			if ((fp = fopen (TMP_OUTPUT, "rb")) != NULL) {				while (fgets (buf, BUFSIZ, fp)) {					char *s;					if (*buf == 0 || *buf == '\n' || *buf == '\r') break;					for (s = buf; *s && *s != '\n' && *s != '\r'; s++);					*s = 0;					if (!PORT_Strncmp (buf, "MD5-Digest: ", 12)) {						md5_digest = ATOB_AsciiToData (buf + 12, &md5_length);					}					if (!PORT_Strncmp (buf, "SHA1-Digest: ", 13)) {						sha1_digest = ATOB_AsciiToData (buf + 13, &sha1_length);					}					if (!PORT_Strncmp (buf, "SHA-Digest: ", 12)) {						sha1_digest = ATOB_AsciiToData (buf + 12, &sha1_length);					}				}				globaldig = jar->globalmeta;				if (globaldig && md5_digest) {					if(verbosity >= 0) {						PR_fprintf(outputFD,						  "  md5 digest on global metainfo: %s\n", 						  PORT_Memcmp (md5_digest, globaldig->md5, MD5_LENGTH) ?						  "no match" : "match");					}				}				if (globaldig && sha1_digest) {					if(verbosity >= 0) {						PR_fprintf(outputFD,						  "  sha digest on global metainfo: %s\n", 						  PORT_Memcmp(sha1_digest, globaldig->sha1,						  SHA1_LENGTH) ? "no match" : "match");					}				}				if (globaldig == NULL) {					if(verbosity >= 0) {						PR_fprintf(outputFD,						  "global metadigest is not available, strange.\n");					}				}				fclose (fp);			}		}	}  }  JAR_find_end (ctx);  return 0;}