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_util.h" | 5 #include "net/cert/x509_util.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "crypto/ec_private_key.h" | 9 #include "crypto/ec_private_key.h" |
10 #include "crypto/rsa_private_key.h" | 10 #include "crypto/rsa_private_key.h" |
| 11 #include "net/base/hash_value.h" |
| 12 #include "net/cert/internal/parse_certificate.h" |
| 13 #include "net/cert/internal/signature_algorithm.h" |
11 #include "net/cert/x509_certificate.h" | 14 #include "net/cert/x509_certificate.h" |
12 | 15 |
13 namespace net { | 16 namespace net { |
14 | 17 |
15 namespace x509_util { | 18 namespace x509_util { |
16 | 19 |
17 // RSA keys created by CreateKeyAndSelfSignedCert will be of this length. | 20 // RSA keys created by CreateKeyAndSelfSignedCert will be of this length. |
18 static const uint16_t kRSAKeyLength = 1024; | 21 static const uint16_t kRSAKeyLength = 1024; |
19 | 22 |
20 // Certificates made by CreateKeyAndSelfSignedCert and | 23 // Certificates made by CreateKeyAndSelfSignedCert and |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 der_cert); | 77 der_cert); |
75 if (success) | 78 if (success) |
76 key->reset(new_key.release()); | 79 key->reset(new_key.release()); |
77 | 80 |
78 return success; | 81 return success; |
79 } | 82 } |
80 | 83 |
81 } // namespace x509_util | 84 } // namespace x509_util |
82 | 85 |
83 } // namespace net | 86 } // namespace net |
OLD | NEW |