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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_
11 #include "base/memory/ref_counted.h"
12 #include "net/cert/x509_certificate.h"
13 #include "net/ssl/ssl_private_key.h"
16 namespace certificate_provider
{
18 // Holds all information of a certificate that must be synchronously available
19 // to implement net::SSLPrivateKey.
20 struct CertificateInfo
{
24 net::SSLPrivateKey::Type type
= net::SSLPrivateKey::Type::RSA
;
25 size_t max_signature_length_in_bytes
= 0;
26 scoped_refptr
<net::X509Certificate
> certificate
;
27 std::vector
<net::SSLPrivateKey::Hash
> supported_hashes
;
29 using CertificateInfoList
= std::vector
<CertificateInfo
>;
31 } // namespace certificate_provider
32 } // namespace chromeos
34 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_