Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_CERT_VERIFY_PROC_WIN_H_ | 5 #ifndef NET_BASE_CERT_VERIFY_PROC_ANDROID_H_ |
| 6 #define NET_BASE_CERT_VERIFY_PROC_WIN_H_ | 6 #define NET_BASE_CERT_VERIFY_PROC_ANDROID_H_ |
| 7 | 7 |
| 8 #include "net/base/cert_verify_proc.h" | 8 #include "net/base/cert_verify_proc.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 // Performs certificate path construction and validation using Windows' | 12 // Performs platform-based certificate verification on Android. |
|
Ryan Sleevi
2012/12/13 02:16:36
This comment is not as clear as what we've tried f
ppi
2012/12/13 04:49:09
Absolutely, addressed in patch set 2.
| |
| 13 // CryptoAPI. | 13 class CertVerifyProcAndroid : public CertVerifyProc { |
| 14 class CertVerifyProcWin : public CertVerifyProc { | |
| 15 public: | 14 public: |
| 16 CertVerifyProcWin(); | 15 CertVerifyProcAndroid(); |
| 17 | 16 |
| 18 protected: | 17 protected: |
| 19 virtual ~CertVerifyProcWin(); | 18 virtual ~CertVerifyProcAndroid(); |
| 20 | 19 |
| 21 private: | 20 private: |
| 22 virtual int VerifyInternal(X509Certificate* cert, | 21 virtual int VerifyInternal(X509Certificate* cert, |
| 23 const std::string& hostname, | 22 const std::string& hostname, |
| 24 int flags, | 23 int flags, |
| 25 CRLSet* crl_set, | 24 CRLSet* crl_set, |
| 26 CertVerifyResult* verify_result) OVERRIDE; | 25 CertVerifyResult* verify_result) OVERRIDE; |
| 27 }; | 26 }; |
| 28 | 27 |
| 29 } // namespace net | 28 } // namespace net |
| 30 | 29 |
| 31 #endif // NET_BASE_CERT_VERIFY_PROC_WIN_H_ | 30 #endif // NET_BASE_CERT_VERIFY_PROC_ANDROID_H_ |
| OLD | NEW |