summaryrefslogtreecommitdiffstats
path: root/src/tests/x509_test.c
diff options
context:
space:
mode:
authorMichael Brown2012-03-21 17:48:08 +0100
committerMichael Brown2012-03-22 02:34:40 +0100
commit2d9d0adc4e7539c45a2a0f387bcf60a1f96ed79c (patch)
tree5d873fb6ac3e510a96b45b58eeaa4ba3ff962492 /src/tests/x509_test.c
parent[crypto] Parse X.509 certificate serial number (diff)
downloadipxe-2d9d0adc4e7539c45a2a0f387bcf60a1f96ed79c.tar.gz
ipxe-2d9d0adc4e7539c45a2a0f387bcf60a1f96ed79c.tar.xz
ipxe-2d9d0adc4e7539c45a2a0f387bcf60a1f96ed79c.zip
[crypto] Add previous certificate in chain as a parameter to parse_next()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/x509_test.c')
-rw-r--r--src/tests/x509_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/x509_test.c b/src/tests/x509_test.c
index 6076d9aa..7803315e 100644
--- a/src/tests/x509_test.c
+++ b/src/tests/x509_test.c
@@ -695,10 +695,14 @@ struct x509_test_chain_context {
* Parse next certificate in chain
*
* @v cert X.509 certificate to parse
+ * @v previous Previous X.509 certificate, or NULL
* @v ctx Chain context
* @ret rc Return status code
*/
-static int x509_test_parse_next ( struct x509_certificate *cert, void *ctx ) {
+static int
+x509_test_parse_next ( struct x509_certificate *cert,
+ const struct x509_certificate *previous __unused,
+ void *ctx ) {
struct x509_test_chain_context *context = ctx;
struct x509_test_certificate *test_cert;