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 #include "net/cert/cert_verify_proc_win.h" | 5 #include "net/cert/cert_verify_proc_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/memory/free_deleter.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/sha1.h" | 12 #include "base/sha1.h" |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
15 #include "crypto/capi_util.h" | 16 #include "crypto/capi_util.h" |
16 #include "crypto/scoped_capi_types.h" | 17 #include "crypto/scoped_capi_types.h" |
17 #include "crypto/sha2.h" | 18 #include "crypto/sha2.h" |
18 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
19 #include "net/cert/asn1_util.h" | 20 #include "net/cert/asn1_util.h" |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 return MapCertStatusToNetError(verify_result->cert_status); | 1145 return MapCertStatusToNetError(verify_result->cert_status); |
1145 | 1146 |
1146 if (ev_policy_oid && | 1147 if (ev_policy_oid && |
1147 CheckEV(chain_context, rev_checking_enabled, ev_policy_oid)) { | 1148 CheckEV(chain_context, rev_checking_enabled, ev_policy_oid)) { |
1148 verify_result->cert_status |= CERT_STATUS_IS_EV; | 1149 verify_result->cert_status |= CERT_STATUS_IS_EV; |
1149 } | 1150 } |
1150 return OK; | 1151 return OK; |
1151 } | 1152 } |
1152 | 1153 |
1153 } // namespace net | 1154 } // namespace net |
OLD | NEW |