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

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

Issue 1082123003: Rename USE_NSS to USE_NSS_CERTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-nss-certs
Patch Set: rebase Created 5 years, 8 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/chacha20_poly1305_decrypter_nss.cc ('k') | net/socket/client_socket_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
diff --git a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
index 770088cb1deb374da0f525c896c66c9cffcf0577..2c51da83507999f89981bbbda6dd12e80bacfc2b 100644
--- a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
+++ b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
@@ -19,7 +19,7 @@ const size_t kNoncePrefixSize = 0;
} // namespace
-#if defined(USE_NSS)
+#if defined(USE_NSS_CERTS)
// System NSS doesn't support ChaCha20+Poly1305 yet.
@@ -43,7 +43,7 @@ void ChaCha20Poly1305Encrypter::FillAeadParams(StringPiece nonce,
NOTIMPLEMENTED();
}
-#else // defined(USE_NSS)
+#else // defined(USE_NSS_CERTS)
ChaCha20Poly1305Encrypter::ChaCha20Poly1305Encrypter()
: AeadBaseEncrypter(CKM_NSS_CHACHA20_POLY1305, PK11_Encrypt, kKeySize,
@@ -75,6 +75,6 @@ void ChaCha20Poly1305Encrypter::FillAeadParams(StringPiece nonce,
nss_aead_params->ulTagLen = auth_tag_size;
}
-#endif // defined(USE_NSS)
+#endif // defined(USE_NSS_CERTS)
} // namespace net
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_decrypter_nss.cc ('k') | net/socket/client_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698