OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/base/keygen_handler.h" | 5 #include "net/base/keygen_handler.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <rpc.h> | 8 #include <rpc.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/base64.h" | 14 #include "base/base64.h" |
15 #include "base/basictypes.h" | |
16 #include "base/logging.h" | 15 #include "base/logging.h" |
17 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
18 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
19 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
20 #include "crypto/capi_util.h" | 19 #include "crypto/capi_util.h" |
21 #include "crypto/scoped_capi_types.h" | 20 #include "crypto/scoped_capi_types.h" |
22 #include "crypto/wincrypt_shim.h" | 21 #include "crypto/wincrypt_shim.h" |
23 | 22 |
24 #pragma comment(lib, "crypt32.lib") | 23 #pragma comment(lib, "crypt32.lib") |
25 #pragma comment(lib, "rpcrt4.lib") | 24 #pragma comment(lib, "rpcrt4.lib") |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 212 |
214 std::string result; | 213 std::string result; |
215 base::Base64Encode(spkac, &result); | 214 base::Base64Encode(spkac, &result); |
216 | 215 |
217 VLOG(1) << "Keygen succeeded"; | 216 VLOG(1) << "Keygen succeeded"; |
218 return result; | 217 return result; |
219 } | 218 } |
220 } | 219 } |
221 | 220 |
222 } // namespace net | 221 } // namespace net |
OLD | NEW |