comparison 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
comparison
equal deleted inserted replaced
67:1bf41957418f 68:8ffbb48528ae
20 #include <polarssl/pk.h> 20 #include <polarssl/pk.h>
21 #include <polarssl/base64.h> 21 #include <polarssl/base64.h>
22 #include <polarssl/sha256.h> 22 #include <polarssl/sha256.h>
23 #pragma GCC diagnostic pop 23 #pragma GCC diagnostic pop
24 24
25 #define MAX_FILESIZE 1048576 /* 1024*1024 */ 25 #define MAX_FILESIZE MAX_LINE_LENGTH * MAX_LINES
26 26
27 /** 27 /**
28 * @brief Read a file into memory. 28 * @brief Read a file into memory.
29 * 29 *
30 * The caller needs to free data 30 * The caller needs to free data
87 (*data)[*size] = '\0'; 87 (*data)[*size] = '\0';
88 88
89 return 0; 89 return 0;
90 } 90 }
91 91
92 int verify_list(char *data, size_t size) 92 int verify_list(const char *data, const size_t size)
93 { 93 {
94 int ret = -1; 94 int ret = -1;
95 pk_context pub_key_ctx; 95 pk_context pub_key_ctx;
96 char *p; 96 char *p;
97 /* Fixed key size of 3072 implies the sizes*/ 97 /* Fixed key size of 3072 implies the sizes*/
219 *size = 0; 219 *size = 0;
220 } 220 }
221 return retval; 221 return retval;
222 } 222 }
223 223
224 char **get_certs_to_remove(const char *data, const size_t size) {
225
226 /* TODO */
227 if (!data || !size) {
228 printf ("Invalid call to get_certs_to_remove \n");
229 return NULL;
230 }
231 return NULL;
232 }
233
234 char **get_certs_to_install(const char *data, const size_t size) {
235
236 /* TODO */
237 if (!data || !size) {
238 printf ("Invalid call to get_certs_to_install \n");
239 return NULL;
240 }
241 return NULL;
242 }

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