comparison 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
comparison
equal deleted inserted replaced
30:381558ff6f26 31:37fc66967517
14 14
15 /** 15 /**
16 * @brief Status of the List Operations 16 * @brief Status of the List Operations
17 */ 17 */
18 typedef enum { 18 typedef enum {
19 UnknownValidity = 0, // Not yet parsed 19 Valid = 100, // Could be read and signature matched
20 UnknownError = 1, // The expected unexpected 20 UnknownError = 1, // The expected unexpected
21 TooLarge = 2, // Failed because the file exeeds the limit 21 TooLarge = 2, // Failed because the file exeeds the limit
22 InvalidFormat = 3, // File does not appear to be in list format 22 InvalidFormat = 3, // File does not appear to be in list format
23 InvalidSignature = 4, // Signature was invalid 23 InvalidSignature = 4, // Signature was invalid
24 StatFailed = 5, // Could not stat the file 24 SeekFailed = 5, // Could not seek in the file
25 ReadFailed = 6, // Could not read the file 25 ReadFailed = 6, // File exists but could not read the file
26 IncompatibleVersion = 7, // The Format Version does not match 26 IncompatibleVersion = 7 // The Format Version does not match
27 Valid = 8 // List is valid
28 } list_status_t; 27 } list_status_t;
29 28
30 /** 29 /**
31 * @brief Obtain the complete and verified Certificate list. 30 * @brief Obtain the complete and verified Certificate list.
32 * 31 *

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