From aa8336eb9f01b1cb2a936b5fd40389796e22c0d3 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Fri, 25 Aug 2017 15:28:31 +0100 Subject: [PATCH] Document that x509_ocsp_get_crl_reason() belongs in x509_crl --- library/x509_ocsp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/x509_ocsp.c b/library/x509_ocsp.c index 0620b8d888..af50530ab6 100644 --- a/library/x509_ocsp.c +++ b/library/x509_ocsp.c @@ -354,6 +354,10 @@ static int x509_ocsp_get_cert_id( unsigned char **p, return( 0 ); } +/* + * This code is essentially parsing a CRLReason which is a CRL extension. We + * should consider moving it to x509_crl + */ static int x509_ocsp_get_crl_reason( unsigned char **p, const unsigned char *end, uint8_t *reason )