diff common/listutil.h @ 31:37fc66967517

Implement signature verification wiht polarssl
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 13 Mar 2014 18:12:16 +0000
parents e783fd99a9eb
children 3f6378647371
line wrap: on
line diff
--- a/common/listutil.h	Thu Mar 13 17:26:33 2014 +0000
+++ b/common/listutil.h	Thu Mar 13 18:12:16 2014 +0000
@@ -16,15 +16,14 @@
  * @brief Status of the List Operations
  */
 typedef enum {
-    UnknownValidity = 0, // Not yet parsed
+    Valid = 100, // Could be read and signature matched
     UnknownError = 1, // The expected unexpected
     TooLarge = 2, // Failed because the file exeeds the limit
     InvalidFormat = 3, // File does not appear to be in list format
     InvalidSignature = 4, // Signature was invalid
-    StatFailed = 5, // Could not stat the file
-    ReadFailed = 6, // Could not read the file
-    IncompatibleVersion = 7, // The Format Version does not match
-    Valid = 8 // List is valid
+    SeekFailed = 5, // Could not seek in the file
+    ReadFailed = 6, // File exists but could not read the file
+    IncompatibleVersion = 7 // The Format Version does not match
 } list_status_t;
 
 /**

http://wald.intevation.org/projects/trustbridge/