From a86467b6b3da684c533dd67f579dbbb96c687800 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Fri, 25 Aug 2017 10:56:19 +0100 Subject: [PATCH] Add informational string for OCSP response version --- library/x509_ocsp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/x509_ocsp.c b/library/x509_ocsp.c index e3c90b048d..e4a783fbb8 100644 --- a/library/x509_ocsp.c +++ b/library/x509_ocsp.c @@ -591,6 +591,11 @@ int mbedtls_x509_ocsp_response_info( char *buf, size_t size, return( ret ); } + /* Print version */ + ret = mbedtls_snprintf( p, n, "\n%s%-" BC "s: %d", prefix, + "response version", resp->version ); + MBEDTLS_X509_SAFE_SNPRINTF; + return( 0 ); }