// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_ #include #include #include "base/memory/ref_counted.h" #include "net/cert/x509_certificate.h" #include "net/ssl/ssl_private_key.h" namespace chromeos { namespace certificate_provider { // Holds all information of a certificate that must be synchronously available // to implement net::SSLPrivateKey. struct CertificateInfo { CertificateInfo(); ~CertificateInfo(); net::SSLPrivateKey::Type type = net::SSLPrivateKey::Type::RSA; size_t max_signature_length_in_bytes = 0; scoped_refptr certificate; std::vector supported_hashes; }; using CertificateInfoList = std::vector; } // namespace certificate_provider } // namespace chromeos #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_INFO_H_