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/x509_cert_types.h" | 5 #include "net/cert/x509_cert_types.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/free_deleter.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
13 #include "crypto/capi_util.h" | 14 #include "crypto/capi_util.h" |
14 #include "crypto/wincrypt_shim.h" | 15 #include "crypto/wincrypt_shim.h" |
15 | 16 |
16 #pragma comment(lib, "crypt32.lib") | 17 #pragma comment(lib, "crypt32.lib") |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 | 20 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 131 } |
131 | 132 |
132 SetSingle(common_names, &this->common_name); | 133 SetSingle(common_names, &this->common_name); |
133 SetSingle(locality_names, &this->locality_name); | 134 SetSingle(locality_names, &this->locality_name); |
134 SetSingle(state_names, &this->state_or_province_name); | 135 SetSingle(state_names, &this->state_or_province_name); |
135 SetSingle(country_names, &this->country_name); | 136 SetSingle(country_names, &this->country_name); |
136 return true; | 137 return true; |
137 } | 138 } |
138 | 139 |
139 } // namespace net | 140 } // namespace net |
OLD | NEW |