summaryrefslogtreecommitdiffstats
path: root/twrpDigest.hpp
diff options
context:
space:
mode:
authorJames Christopher Adduono <jc@adduono.com>2016-10-25 08:18:32 +0200
committerJames Christopher Adduono <jc@adduono.com>2016-11-05 20:48:43 +0100
commit5c3950716e5c7c6279efd5f3f338d6d22e5215e2 (patch)
treeeac6d63ac558644ba313e73fe5e96134e18361ef /twrpDigest.hpp
parentFix image flashing (diff)
downloadandroid_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.tar
android_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.tar.gz
android_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.tar.bz2
android_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.tar.lz
android_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.tar.xz
android_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.tar.zst
android_bootable_recovery-5c3950716e5c7c6279efd5f3f338d6d22e5215e2.zip
Diffstat (limited to '')
-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