Mercurial > trustbridge
comparison common/listutil.c @ 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 | 7055a79abe02 |
children | b8cd573bd3ac |
comparison
equal
deleted
inserted
replaced
58:ad61489ce593 | 59:3f6378647371 |
---|---|
87 (*data)[*size] = '\0'; | 87 (*data)[*size] = '\0'; |
88 | 88 |
89 return 0; | 89 return 0; |
90 } | 90 } |
91 | 91 |
92 /** @brief verify the certificate list | |
93 * | |
94 * The public key to verify against is the static publicKeyPEM data defined | |
95 * in the pubkey header. | |
96 * | |
97 * @param [in] data the list data | |
98 * @param [in] size the size of the data | |
99 * | |
100 * @returns 0 if the list is valid a polarssl error or -1 otherwise | |
101 */ | |
102 int verify_list(char *data, size_t size) | 92 int verify_list(char *data, size_t size) |
103 { | 93 { |
104 int ret = -1; | 94 int ret = -1; |
105 pk_context pub_key_ctx; | 95 pk_context pub_key_ctx; |
106 char *p; | 96 char *p; |