restore(char *filename,Value *ptr)
restore(const char *filename,Value *ptr)
restore(char *filename,Value *ptr){    int fd,size;    fd = open(filename,O_RDONLY|O_BINARY);    if (fd < 0) {	perror(filename);	return CKR_FUNCTION_FAILED;    }    size = read(fd,ptr->data,ptr->size);    if (systemFlags & FLAG_VerifyFile) {	printDump(ptr->data,ptr->size);    }    if (size < 0) {	perror(filename);	return CKR_FUNCTION_FAILED;    } else if (size != ptr->size) {	fprintf(stderr,"%s: only read %d bytes, needed to read %d bytes\n",			filename,size,ptr->size);	return CKR_FUNCTION_FAILED;    }    close(fd);    return CKR_OK;}