search for: md5_file

Displaying 1 result from an estimated 1 matches for "md5_file".

Did you mean: db_file
2017 Jul 01
0
[PATCH] Add new hash.c32 module
...c; + } + buffer[i] = 0; + return buffer; +} + +static const char *unrockridge_iso(const char *name) +{ + const struct syslinux_version *sv; + sv = syslinux_version(); + if (sv->filesystem != SYSLINUX_FS_ISOLINUX) { + return unrockridge(name); + } else { + return name; + } +} + +static uint8_t *md5_file(const char *filename) +{ + int src_fd, count; + uint8_t in_buf[4096]; + static uint8_t hash_value[16*2+1]; + static unsigned char hash[16]; + MD5_CTX context; + + src_fd = open(filename, O_RDONLY); + if (src_fd < 0) { + src_fd = open(unrockridge_iso(filename), O_RDONLY); + } + if (src_fd < 0...