Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_CERT_INTERNAL_PARSE_OCSP_H_ | 5 #ifndef NET_CERT_INTERNAL_PARSE_OCSP_H_ |
| 6 #define NET_CERT_INTERNAL_PARSE_OCSP_H_ | 6 #define NET_CERT_INTERNAL_PARSE_OCSP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 // of caching or performance (RFC 6960, 4.2.2.3), the strictest response is | 270 // of caching or performance (RFC 6960, 4.2.2.3), the strictest response is |
| 271 // returned (REVOKED > UNKNOWN > GOOD). | 271 // returned (REVOKED > UNKNOWN > GOOD). |
| 272 // | 272 // |
| 273 // On failure |out| has an undefined state. Some of its fields may have been | 273 // On failure |out| has an undefined state. Some of its fields may have been |
| 274 // updated during parsing, whereas others may not have been changed. | 274 // updated during parsing, whereas others may not have been changed. |
| 275 NET_EXPORT_PRIVATE bool GetOCSPCertStatus(const OCSPResponseData& response_data, | 275 NET_EXPORT_PRIVATE bool GetOCSPCertStatus(const OCSPResponseData& response_data, |
| 276 const ParsedCertificate& issuer, | 276 const ParsedCertificate& issuer, |
| 277 const ParsedCertificate& cert, | 277 const ParsedCertificate& cert, |
| 278 OCSPCertStatus* out); | 278 OCSPCertStatus* out); |
| 279 | 279 |
| 280 // Verifies that the OCSP Response |response| is signed and has a valid trust | |
| 281 // path to the issuer |issuer_cert|. | |
|
eroman
2016/05/02 22:36:51
Expand the documentation to reference the RFC that
svaldez
2016/05/04 15:31:20
Done.
| |
| 282 NET_EXPORT_PRIVATE bool VerifyOCSPResponse( | |
| 283 const OCSPResponse& response, | |
| 284 const ParsedCertificate& issuer_cert); | |
|
eroman
2016/05/02 22:36:51
Please mark this as WARN_UNUSED_RESULT.
In fact I
svaldez
2016/05/04 15:31:20
Done.
| |
| 285 | |
| 280 } // namespace net | 286 } // namespace net |
| 281 | 287 |
| 282 #endif // NET_CERT_INTERNAL_PARSE_OCSP_H_ | 288 #endif // NET_CERT_INTERNAL_PARSE_OCSP_H_ |
|
eroman
2016/05/02 22:36:51
parse_ocsp.h isn't the best name for this file giv
svaldez
2016/05/04 15:31:20
Done.
| |
| OLD | NEW |