diff options
author | big biff <bigbiff@teamw.in> | 2016-11-08 00:54:28 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2016-11-08 00:54:28 +0100 |
commit | bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180 (patch) | |
tree | f4f929e0da5f6ee51f7d4a442b6165394f242edd /twrpDigest.hpp | |
parent | Fix image flashing: attempt 2 (diff) | |
parent | MD5 verification sanity (diff) | |
download | android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.tar android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.tar.gz android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.tar.bz2 android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.tar.lz android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.tar.xz android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.tar.zst android_bootable_recovery-bb0da94f40d8fe7779deea78e3ad2c1eeb1c4180.zip |
Diffstat (limited to 'twrpDigest.hpp')
-rw-r--r-- | twrpDigest.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/twrpDigest.hpp b/twrpDigest.hpp index 7ec25edad..ec4a65f75 100644 --- a/twrpDigest.hpp +++ b/twrpDigest.hpp @@ -20,6 +20,14 @@ extern "C" { #include "digest/md5.h" } +/* verify_md5digest return codes */ +enum { + MD5_MATCH_FAIL = -2, // -2: md5 did not match + MD5_NOT_FOUND, // -1: no md5 file found + MD5_OK, // 0: md5 matches + MD5_FILE_UNREADABLE // 1: md5 file unreadable +}; + using namespace std; class twrpDigest |