Mercurial > trustbridge
diff common/listutil.h @ 59:3f6378647371
Start work on cinst. Strhelp new helpers to work with C String
arrays and to have a terminating malloc / realloc
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 18 Mar 2014 10:04:30 +0000 |
parents | 37fc66967517 |
children | 8ffbb48528ae |
line wrap: on
line diff
--- a/common/listutil.h Tue Mar 18 10:03:34 2014 +0000 +++ b/common/listutil.h Tue Mar 18 10:04:30 2014 +0000 @@ -41,6 +41,18 @@ * @return status of the operation. */ list_status_t read_and_verify_list(const char *fileName, char **data, size_t *size); + +/** @brief verify the certificate list + * + * The public key to verify against is the static publicKeyPEM data defined + * in the pubkey header. + * + * @param [in] data the list data + * @param [in] size the size of the data + * + * @returns 0 if the list is valid a polarssl error or -1 otherwise + */ +int verify_list(char *data, size_t size); #ifdef __cplusplus } #endif