Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
|
emaxx
2017/04/19 19:39:34
nit: This is not used anymore.
davidben
2017/04/19 20:40:49
Done.
| |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
| 13 #include "net/ssl/ssl_private_key.h" | 13 #include "net/ssl/ssl_private_key.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 namespace certificate_provider { | 16 namespace certificate_provider { |
| 17 | 17 |
| 18 // Holds all information of a certificate that must be synchronously available | 18 // Holds all information of a certificate that must be synchronously available |
| 19 // to implement net::SSLPrivateKey. | 19 // to implement net::SSLPrivateKey. |
| 20 struct CertificateInfo { | 20 struct CertificateInfo { |
| 21 CertificateInfo(); | 21 CertificateInfo(); |
| 22 CertificateInfo(const CertificateInfo& other); | 22 CertificateInfo(const CertificateInfo& other); |
| 23 ~CertificateInfo(); | 23 ~CertificateInfo(); |
| 24 | 24 |
| 25 net::SSLPrivateKey::Type type = net::SSLPrivateKey::Type::RSA; | |
| 26 size_t max_signature_length_in_bytes = 0; | |
| 27 scoped_refptr<net::X509Certificate> certificate; | 25 scoped_refptr<net::X509Certificate> certificate; |
| 28 std::vector<net::SSLPrivateKey::Hash> supported_hashes; | 26 std::vector<net::SSLPrivateKey::Hash> supported_hashes; |
| 29 }; | 27 }; |
| 30 using CertificateInfoList = std::vector<CertificateInfo>; | 28 using CertificateInfoList = std::vector<CertificateInfo>; |
| 31 | 29 |
| 32 } // namespace certificate_provider | 30 } // namespace certificate_provider |
| 33 } // namespace chromeos | 31 } // namespace chromeos |
| 34 | 32 |
| 35 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ |
| OLD | NEW |