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

Unified Diff: chrome/common/net/x509_certificate_model_nss.cc

Issue 7972024: Update SHA1_LENGTH -> kSHA1Length to match previous change to SHA256_LENGTH. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/common/net/x509_certificate_model_nss.cc
===================================================================
--- chrome/common/net/x509_certificate_model_nss.cc (revision 102606)
+++ chrome/common/net/x509_certificate_model_nss.cc (working copy)
@@ -14,8 +14,10 @@
#include <sechash.h>
#include "base/logging.h"
+#include "base/sha1.h"
#include "base/string_number_conversions.h"
#include "crypto/nss_util.h"
+#include "crypto/sha2.h"
wtc 2011/09/24 01:39:41 BUG: Please undo all the changes in this file. Th
Peter Kasting 2011/09/25 20:52:01 Right. I meant to be clearer about this in my cha
wtc 2011/09/26 18:06:22 The rule is that a file that uses the NSS hash fun
Peter Kasting 2011/09/26 20:08:18 OK. I reverted the four files you mentioned needi
#include "net/base/x509_certificate.h"
#include "chrome/third_party/mozilla_security_manager/nsNSSCertHelper.h"
#include "chrome/third_party/mozilla_security_manager/nsNSSCertificate.h"
@@ -297,11 +299,11 @@
}
string HashCertSHA256(X509Certificate::OSCertHandle cert_handle) {
- return HashCert(cert_handle, HASH_AlgSHA256, SHA256_LENGTH);
+ return HashCert(cert_handle, HASH_AlgSHA256, kSHA256Length);
}
string HashCertSHA1(X509Certificate::OSCertHandle cert_handle) {
- return HashCert(cert_handle, HASH_AlgSHA1, SHA1_LENGTH);
+ return HashCert(cert_handle, HASH_AlgSHA1, kSHA1Length);
}
void GetCertChainFromCert(X509Certificate::OSCertHandle cert_handle,

Powered by Google App Engine
This is Rietveld 408576698