Chromium Code Reviews| 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, |