PrintError();
SECU_PrintError("Error", "PR_Open failed");
ReadBuf(char *inFile, SECItem *item){    int len;    int ret;    PRFileDesc* fd = PR_Open(inFile, PR_RDONLY, 0);    if (NULL == fd) {	PrintError();	return -1;    }    len = GetLen(fd);    if (len < 0) {	PrintError();	return -1;    }    item->data = (unsigned char *)PORT_Alloc(len);    if (item->data == NULL) {	fprintf(stderr,"Failed to allocate %d to read file %s\n",len,inFile);	return -1;    }    ret = PR_Read(fd,item->data,item->len);    if (ret < 0) {	PORT_Free(item->data);	item->data = NULL;	PrintError();	return -1;    }    PR_Close(fd);    item->len = len;    return 0;}