| 284 | } |
| 285 | |
| 286 | acl_int64 md5::md5_file(const char* path, const void *key, size_t klen, |
| 287 | char* out, size_t size) |
| 288 | { |
| 289 | ifstream in; |
| 290 | |
| 291 | if (!in.open_read(path)) { |
| 292 | logger_error("open file: %s error: %s", path, last_serror()); |
| 293 | return -1; |
| 294 | } |
| 295 | return md5_file(in, key, klen, out, size); |
| 296 | } |
| 297 | |
| 298 | acl_int64 md5::md5_file(istream& in, const void *key, size_t klen, |
| 299 | char* out, size_t size) |
nothing calls this directly
no test coverage detected