mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-05 20:15:36 +02:00
Add informational string for OCSP producedAt
This commit is contained in:
committed by
Andres Amaya Garcia
parent
fec7119fc8
commit
2a135bb259
@@ -737,6 +737,14 @@ int mbedtls_x509_ocsp_response_info( char *buf, size_t size,
|
||||
return( ret );
|
||||
}
|
||||
|
||||
/* Print producedAt date */
|
||||
ret = mbedtls_snprintf( p, n, "\n%s%-" BC "s: "
|
||||
"%04d-%02d-%02d %02d:%02d:%02d", prefix, "produced at",
|
||||
resp->produced_at.year, resp->produced_at.mon,
|
||||
resp->produced_at.day, resp->produced_at.hour,
|
||||
resp->produced_at.min, resp->produced_at.sec );
|
||||
MBEDTLS_X509_SAFE_SNPRINTF;
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user