| Index: net/base/origin_bound_cert_store.h
|
| diff --git a/net/base/origin_bound_cert_store.h b/net/base/origin_bound_cert_store.h
|
| index 4cb11321779e9c29dad6e9a1fb111b20d7f13681..08e9177d01cd058f9a843b1b94fb0ff46303b5ca 100644
|
| --- a/net/base/origin_bound_cert_store.h
|
| +++ b/net/base/origin_bound_cert_store.h
|
| @@ -10,6 +10,7 @@
|
| #include <vector>
|
|
|
| #include "net/base/net_export.h"
|
| +#include "net/base/ssl_client_cert_type.h"
|
|
|
| namespace net {
|
|
|
| @@ -25,27 +26,31 @@ class NET_EXPORT OriginBoundCertStore {
|
| // Used by GetAllOriginBoundCerts.
|
| struct OriginBoundCertInfo {
|
| std::string origin; // Origin, for instance "https://www.verisign.com:443".
|
| + SSLClientCertType type;
|
| std::string private_key; // DER-encoded PrivateKeyInfo struct.
|
| std::string cert; // DER-encoded certificate.
|
| };
|
|
|
| virtual ~OriginBoundCertStore() {}
|
|
|
| - // TODO(rkn): Specify certificate type (RSA or DSA).
|
| // TODO(rkn): File I/O may be required, so this should have an asynchronous
|
| // interface.
|
| // Returns true on success. |private_key_result| stores a DER-encoded
|
| // PrivateKeyInfo struct and |cert_result| stores a DER-encoded
|
| // certificate. Returns false if no origin bound cert exists for the
|
| // specified origin.
|
| - virtual bool GetOriginBoundCert(const std::string& origin,
|
| - std::string* private_key_result,
|
| - std::string* cert_result) = 0;
|
| + virtual bool GetOriginBoundCert(
|
| + const std::string& origin,
|
| + SSLClientCertType* type,
|
| + std::string* private_key_result,
|
| + std::string* cert_result) = 0;
|
|
|
| // Adds an origin bound cert and the corresponding private key to the store.
|
| - virtual void SetOriginBoundCert(const std::string& origin,
|
| - const std::string& private_key,
|
| - const std::string& cert) = 0;
|
| + virtual void SetOriginBoundCert(
|
| + const std::string& origin,
|
| + SSLClientCertType type,
|
| + const std::string& private_key,
|
| + const std::string& cert) = 0;
|
|
|
| // Removes an origin bound cert and the corresponding private key from the
|
| // store.
|
|
|