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

Unified Diff: net/quic/crypto/p256_key_exchange_openssl.cc

Issue 83123006: Conver DLOG(INFO) to DVLOG(1) in QUIC code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new messages Created 7 years, 1 month 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/p256_key_exchange_nss.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/p256_key_exchange_openssl.cc
diff --git a/net/quic/crypto/p256_key_exchange_openssl.cc b/net/quic/crypto/p256_key_exchange_openssl.cc
index 6eaa981a86d285037e5f94f5d7b1f522a79cde86..197df6a1b91b349b62713a22eccdfeee3e8b8f80 100644
--- a/net/quic/crypto/p256_key_exchange_openssl.cc
+++ b/net/quic/crypto/p256_key_exchange_openssl.cc
@@ -25,7 +25,7 @@ P256KeyExchange::~P256KeyExchange() {}
// static
P256KeyExchange* P256KeyExchange::New(StringPiece key) {
if (key.empty()) {
- DLOG(INFO) << "Private key is empty";
+ DVLOG(1) << "Private key is empty";
return NULL;
}
@@ -33,7 +33,7 @@ P256KeyExchange* P256KeyExchange::New(StringPiece key) {
crypto::ScopedOpenSSL<EC_KEY, EC_KEY_free> private_key(
d2i_ECPrivateKey(NULL, &keyp, key.size()));
if (!private_key.get() || !EC_KEY_check_key(private_key.get())) {
- DLOG(INFO) << "Private key is invalid.";
+ DVLOG(1) << "Private key is invalid.";
return NULL;
}
@@ -42,7 +42,7 @@ P256KeyExchange* P256KeyExchange::New(StringPiece key) {
EC_KEY_get0_public_key(private_key.get()),
POINT_CONVERSION_UNCOMPRESSED, public_key,
sizeof(public_key), NULL) != sizeof(public_key)) {
- DLOG(INFO) << "Can't get public key.";
+ DVLOG(1) << "Can't get public key.";
return NULL;
}
@@ -54,19 +54,19 @@ string P256KeyExchange::NewPrivateKey() {
crypto::ScopedOpenSSL<EC_KEY, EC_KEY_free> key(
EC_KEY_new_by_curve_name(NID_X9_62_prime256v1));
if (!key.get() || !EC_KEY_generate_key(key.get())) {
- DLOG(INFO) << "Can't generate a new private key.";
+ DVLOG(1) << "Can't generate a new private key.";
return string();
}
int key_len = i2d_ECPrivateKey(key.get(), NULL);
if (key_len <= 0) {
- DLOG(INFO) << "Can't convert private key to string";
+ DVLOG(1) << "Can't convert private key to string";
return string();
}
scoped_ptr<uint8[]> private_key(new uint8[key_len]);
uint8* keyp = private_key.get();
if (!i2d_ECPrivateKey(key.get(), &keyp)) {
- DLOG(INFO) << "Can't convert private key to string.";
+ DVLOG(1) << "Can't convert private key to string.";
return string();
}
return string(reinterpret_cast<char*>(private_key.get()), key_len);
@@ -81,7 +81,7 @@ KeyExchange* P256KeyExchange::NewKeyPair(QuicRandom* /*rand*/) const {
bool P256KeyExchange::CalculateSharedKey(const StringPiece& peer_public_value,
string* out_result) const {
if (peer_public_value.size() != kUncompressedP256PointBytes) {
- DLOG(INFO) << "Peer public value is invalid";
+ DVLOG(1) << "Peer public value is invalid";
return false;
}
@@ -93,14 +93,14 @@ bool P256KeyExchange::CalculateSharedKey(const StringPiece& peer_public_value,
point.get(),
reinterpret_cast<const uint8*>(peer_public_value.data()),
peer_public_value.size(), NULL)) {
- DLOG(INFO) << "Can't convert peer public value to curve point.";
+ DVLOG(1) << "Can't convert peer public value to curve point.";
return false;
}
uint8 result[kP256FieldBytes];
if (ECDH_compute_key(result, sizeof(result), point.get(), private_key_.get(),
NULL) != sizeof(result)) {
- DLOG(INFO) << "Can't compute ECDH shared key.";
+ DVLOG(1) << "Can't compute ECDH shared key.";
return false;
}
« no previous file with comments | « net/quic/crypto/p256_key_exchange_nss.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698