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

Unified Diff: net/quic/test_tools/crypto_test_utils_openssl.cc

Issue 17385010: OpenSSL/NSS implementation of ProofVerfifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added known answer test from wtc Created 7 years, 6 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
Index: net/quic/test_tools/crypto_test_utils_openssl.cc
diff --git a/net/quic/test_tools/crypto_test_utils_openssl.cc b/net/quic/test_tools/crypto_test_utils_openssl.cc
index 24d0bc7531746d59d87302e6cb2ed25a6efac947..b2f5808fcb27b4978b14c80d3231254aee71c0a0 100644
--- a/net/quic/test_tools/crypto_test_utils_openssl.cc
+++ b/net/quic/test_tools/crypto_test_utils_openssl.cc
@@ -13,7 +13,9 @@
#include "crypto/openssl_util.h"
#include "crypto/secure_hash.h"
+#include "net/base/test_data_directory.h"
#include "net/quic/crypto/channel_id.h"
+#include "net/quic/crypto/proof_verifier_openssl.h"
using base::StringPiece;
using std::string;
@@ -173,6 +175,12 @@ string CryptoTestUtils::ChannelIDKeyForHostname(const string& hostname) {
return TestChannelIDSigner::KeyForHostname(hostname);
}
+// static
+ProofVerifier* CryptoTestUtils::ProofVerifierForTesting() {
+ base::FilePath certs_dir = GetTestCertsDirectory();
+ return new ProofVerifierOpenSSL(certs_dir.value() + "/proof_verify.crt");
+}
+
} // namespace test
} // namespace net
« net/quic/test_tools/crypto_test_utils.cc ('K') | « net/quic/test_tools/crypto_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698