Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: crypto/ec_private_key.cc

Issue 2449873005: include boringssl headers from third_party explicitly (Closed)
Patch Set: review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "crypto/ec_private_key.h" 5 #include "crypto/ec_private_key.h"
6 6
7 #include <openssl/bio.h>
8 #include <openssl/bn.h>
9 #include <openssl/bytestring.h>
10 #include <openssl/ec.h>
11 #include <openssl/ec_key.h>
12 #include <openssl/evp.h>
13 #include <openssl/mem.h>
14 #include <openssl/pkcs12.h>
15 #include <openssl/x509.h>
16 #include <stddef.h> 7 #include <stddef.h>
17 #include <stdint.h> 8 #include <stdint.h>
18 9
19 #include <utility> 10 #include <utility>
20 11
21 #include "base/logging.h" 12 #include "base/logging.h"
22 #include "crypto/openssl_util.h" 13 #include "crypto/openssl_util.h"
14 #include "third_party/boringssl/src/include/openssl/bio.h"
15 #include "third_party/boringssl/src/include/openssl/bn.h"
16 #include "third_party/boringssl/src/include/openssl/bytestring.h"
17 #include "third_party/boringssl/src/include/openssl/ec.h"
18 #include "third_party/boringssl/src/include/openssl/ec_key.h"
19 #include "third_party/boringssl/src/include/openssl/evp.h"
20 #include "third_party/boringssl/src/include/openssl/mem.h"
21 #include "third_party/boringssl/src/include/openssl/pkcs12.h"
22 #include "third_party/boringssl/src/include/openssl/x509.h"
23 23
24 namespace crypto { 24 namespace crypto {
25 25
26 namespace { 26 namespace {
27 27
28 // Function pointer definition, for injecting the required key export function 28 // Function pointer definition, for injecting the required key export function
29 // into ExportKeyWithBio, below. |bio| is a temporary memory BIO object, and 29 // into ExportKeyWithBio, below. |bio| is a temporary memory BIO object, and
30 // |key| is a handle to the input key object. Return 1 on success, 0 otherwise. 30 // |key| is a handle to the input key object. Return 1 on success, 0 otherwise.
31 // NOTE: Used with OpenSSL functions, which do not comply with the Chromium 31 // NOTE: Used with OpenSSL functions, which do not comply with the Chromium
32 // style guide, hence the unusual parameter placement / types. 32 // style guide, hence the unusual parameter placement / types.
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 return false; 225 return false;
226 } 226 }
227 227
228 output->assign(reinterpret_cast<const char*>(buf), sizeof(buf)); 228 output->assign(reinterpret_cast<const char*>(buf), sizeof(buf));
229 return true; 229 return true;
230 } 230 }
231 231
232 ECPrivateKey::ECPrivateKey() {} 232 ECPrivateKey::ECPrivateKey() {}
233 233
234 } // namespace crypto 234 } // namespace crypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698