summaryrefslogtreecommitdiffstats
path: root/twrpDigest.hpp
diff options
context:
space:
mode:
authorJames Christopher Adduono <jc@adduono.com>2016-10-25 08:18:32 +0200
committerDees Troy <dees_troy@teamw.in>2016-11-30 16:30:22 +0100
commit79ae093c82ec6f714719ccdc97b03e1c184bdc01 (patch)
treef8f36a520de40efbea049b47c056aa8345c923b8 /twrpDigest.hpp
parentFix image flashing: attempt 2 (diff)
downloadandroid_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.tar
android_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.tar.gz
android_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.tar.bz2
android_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.tar.lz
android_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.tar.xz
android_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.tar.zst
android_bootable_recovery-79ae093c82ec6f714719ccdc97b03e1c184bdc01.zip
Diffstat (limited to 'twrpDigest.hpp')
-rw-r--r--twrpDigest.hpp8
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