From 2d9d0adc4e7539c45a2a0f387bcf60a1f96ed79c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 21 Mar 2012 16:48:08 +0000 Subject: [crypto] Add previous certificate in chain as a parameter to parse_next() Signed-off-by: Michael Brown --- src/net/tls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/tls.c b/src/net/tls.c index 4b5891e49..6475f78d8 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -1281,10 +1281,13 @@ struct tls_certificate_context { * Parse next certificate in TLS certificate list * * @v cert X.509 certificate to fill in + * @v previous Previous X.509 certificate, or NULL * @v ctx Context * @ret rc Return status code */ -static int tls_parse_next ( struct x509_certificate *cert, void *ctx ) { +static int tls_parse_next ( struct x509_certificate *cert, + const struct x509_certificate *previous __unused, + void *ctx ) { struct tls_certificate_context *context = ctx; struct tls_session *tls = context->tls; const struct { -- cgit v1.2.3-55-g7522