Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_CERT_CT_VERIFIER_H_ | |
| 6 #define NET_CERT_CT_VERIFIER_H_ | |
| 7 | |
| 8 #include "net/base/net_export.h" | |
| 9 | |
| 10 namespace net { | |
| 11 | |
| 12 namespace ct { | |
| 13 struct CTVerifyResult; | |
| 14 } // namespace ct | |
| 15 | |
| 16 class X509Certificate; | |
| 17 | |
| 18 // High-level interface for verifying Signed Certificate Timestamps | |
|
wtc
2013/11/21 02:05:02
Nit: remove "High-level"? unless there is also a l
Eran M. (Google)
2013/11/21 20:06:02
Done.
| |
| 19 // over a certificate. | |
| 20 class NET_EXPORT CTVerifier { | |
| 21 public: | |
| 22 virtual ~CTVerifier() {} | |
| 23 | |
| 24 // Verifies either embedded SCTs or SCTs obtained via TLS handshake/ | |
| 25 // OCSP stapling on the given |verified_cert| | |
|
wtc
2013/11/21 02:05:02
Nit: TLS handshake/OCSP stapling => the signed_cer
Eran M. (Google)
2013/11/21 20:06:02
Changed the comment. Would you like me to change t
wtc
2013/11/21 23:26:34
Yes, please. The enum should match the parameter n
Eran M. (Google)
2013/11/23 21:02:06
Done.
| |
| 26 // |result| will be filled with these SCTs, divided into categories based on | |
| 27 // the verification result. | |
| 28 virtual int Verify(X509Certificate* verified_cert, | |
|
wtc
2013/11/21 02:05:02
Nit: the first parameter should be simply named |c
Eran M. (Google)
2013/11/21 20:06:02
Done, in all classes.
| |
| 29 const std::string& sct_list_from_ocsp, | |
| 30 const std::string& sct_list_from_tls_handshake, | |
|
wtc
2013/11/21 02:05:02
1. Nit: I suggest changing "from_tls_handshake" to
Eran M. (Google)
2013/11/21 20:06:02
1. Changed the name (in all classes), could also c
| |
| 31 ct::CTVerifyResult* result) = 0; | |
| 32 | |
| 33 }; | |
| 34 | |
| 35 } // namespace net | |
| 36 | |
| 37 #endif // NET_CERT_CT_VERIFIER_H_ | |
| OLD | NEW |