diff common/listutil.c @ 68:8ffbb48528ae

Add certificate installation for windows
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 18 Mar 2014 18:28:15 +0000
parents 4f79cf993737
children 6f1a73575c99
line wrap: on
line diff
--- a/common/listutil.c	Tue Mar 18 18:26:14 2014 +0000
+++ b/common/listutil.c	Tue Mar 18 18:28:15 2014 +0000
@@ -22,7 +22,7 @@
 #include <polarssl/sha256.h>
 #pragma GCC diagnostic pop
 
-#define MAX_FILESIZE 1048576 /* 1024*1024 */
+#define MAX_FILESIZE MAX_LINE_LENGTH * MAX_LINES
 
 /**
  *  @brief Read a file into memory.
@@ -89,7 +89,7 @@
     return 0;
 }
 
-int verify_list(char *data, size_t size)
+int verify_list(const char *data, const size_t size)
 {
     int ret = -1;
     pk_context pub_key_ctx;
@@ -221,3 +221,22 @@
     return retval;
 }
 
+char **get_certs_to_remove(const char *data, const size_t size) {
+
+    /* TODO */
+    if (!data || !size) {
+        printf ("Invalid call to get_certs_to_remove \n");
+        return NULL;
+    }
+    return NULL;
+}
+
+char **get_certs_to_install(const char *data, const size_t size) {
+
+    /* TODO */
+    if (!data || !size) {
+        printf ("Invalid call to get_certs_to_install \n");
+        return NULL;
+    }
+    return NULL;
+}

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