added a filename attribute to the sdata struct

This commit is contained in:
SJ
2012-01-03 00:19:43 +01:00
parent 1b57459f89
commit 0353b27f68
17 changed files with 317 additions and 125 deletions

View File

@@ -44,7 +44,7 @@ int make_digests(struct session_data *sdata, struct __config *cfg){
SHA256_Init(&context2);
fd = open(sdata->ttmpfile, O_RDONLY);
fd = open(sdata->filename, O_RDONLY);
if(fd == -1) return -1;
while((n = read(fd, buf, sizeof(buf))) > 0){