Add informational string for OCSP response version

This commit is contained in:
Andres Amaya Garcia
2017-08-25 10:56:19 +01:00
committed by Andres Amaya Garcia
parent a7598705bf
commit a86467b6b3

View File

@@ -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 );
}