Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1806)

Unified Diff: net/quic/crypto/proof_source_chromium.h

Issue 1309813003: Implement an openssl version of a QUIC ProofSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More iOS fix Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/crypto/crypto_server_test.cc ('k') | net/quic/crypto/proof_source_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/proof_source_chromium.h
diff --git a/net/quic/crypto/proof_source_chromium.h b/net/quic/crypto/proof_source_chromium.h
index 45deb66c68748e9afcb8320f3244e50c0347237c..ef5e6768c3419891d59126ac6808716e11349654 100644
--- a/net/quic/crypto/proof_source_chromium.h
+++ b/net/quic/crypto/proof_source_chromium.h
@@ -10,7 +10,10 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/files/file_util.h"
+#include "crypto/rsa_private_key.h"
#include "net/base/net_export.h"
+#include "net/cert/x509_certificate.h"
#include "net/quic/crypto/proof_source.h"
namespace net {
@@ -20,7 +23,12 @@ namespace net {
class NET_EXPORT_PRIVATE ProofSourceChromium : public ProofSource {
public:
ProofSourceChromium();
- ~ProofSourceChromium() override {}
+ ~ProofSourceChromium() override;
+
+ // Initializes this object based on the certificate chain in |cert_path|,
+ // and the PKCS#8 RSA private key in |key_path|.
+ bool Initialize(const base::FilePath& cert_path,
+ const base::FilePath& key_path);
// ProofSource interface
bool GetProof(const IPAddressNumber& server_ip,
@@ -31,6 +39,9 @@ class NET_EXPORT_PRIVATE ProofSourceChromium : public ProofSource {
std::string* out_signature) override;
private:
+ scoped_ptr<crypto::RSAPrivateKey> private_key_;
+ std::vector<std::string> certificates_;
+
DISALLOW_COPY_AND_ASSIGN(ProofSourceChromium);
};
« no previous file with comments | « net/quic/crypto/crypto_server_test.cc ('k') | net/quic/crypto/proof_source_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698