1 /*********************************************************************************************************************************** 2 Verify File 3 ***********************************************************************************************************************************/ 4 #ifndef COMMAND_VERIFY_FILE_H 5 #define COMMAND_VERIFY_FILE_H 6 7 #include "common/compress/helper.h" 8 #include "common/crypto/common.h" 9 10 /*********************************************************************************************************************************** 11 File result 12 ***********************************************************************************************************************************/ 13 typedef enum 14 { 15 verifyOk, // Default result - file OK 16 verifyFileMissing, 17 verifyChecksumMismatch, 18 verifySizeInvalid, 19 verifyOtherError, 20 } VerifyResult; 21 22 /*********************************************************************************************************************************** 23 Functions 24 ***********************************************************************************************************************************/ 25 // Verify a file in the pgBackRest repository 26 VerifyResult verifyFile( 27 const String *filePathName, const String *fileChecksum, uint64_t fileSize, const String *cipherPass); 28 29 #endif 30