sha1_file: add a "read_sha1_file_repl" function