Chromium Code Reviews| Index: net/cert/ct_objects_extractor.h |
| diff --git a/net/cert/ct_objects_extractor.h b/net/cert/ct_objects_extractor.h |
| index de47c8521770f048cd3a9a70450749175947ec19..589f8d0fe06f961442087ec06f78f91940c89d55 100644 |
| --- a/net/cert/ct_objects_extractor.h |
| +++ b/net/cert/ct_objects_extractor.h |
| @@ -45,6 +45,17 @@ NET_EXPORT_PRIVATE bool GetPrecertLogEntry(X509Certificate::OSCertHandle leaf, |
| NET_EXPORT_PRIVATE bool GetX509LogEntry(X509Certificate::OSCertHandle leaf, |
| LogEntry* result); |
| +// Extracts a SignedCertificateTimestampList that has been embedded within |
| +// an OCSP response as an extension with the OID 1.3.6.1.4.1.11129.2.4.5. |
| +// If the extension is present, and the response matches the serial number |
| +// and issuer, returns true, updating |*sct_list| to contain |
|
wtc
2013/12/08 04:52:45
Nit: "issuer and serial number" is the common way
ekasper
2013/12/09 14:17:05
Done.
|
| +// the encoded list, minus the DER encoding necessary for the extension. |
| +// |*sct_list| can then be further decoded with ct::DecodeSCTList. |
| +NET_EXPORT_PRIVATE bool ExtractSCTListFromOCSPResponse( |
| + const std::string& cert_serial_number, |
| + X509Certificate::OSCertHandle issuer, |
| + const std::string& ocsp_response, std::string* sct_list); |
| + |
| } // namespace ct |
| } // namespace net |