OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/base/x509_certificate.h" | 5 #include "net/base/x509_certificate.h" |
6 | 6 |
7 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | 7 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 |
8 // until NSS 3.12.2 comes out and we update to it. | 8 // until NSS 3.12.2 comes out and we update to it. |
9 #define Lock FOO_NSS_Lock | 9 #define Lock FOO_NSS_Lock |
10 #include <cert.h> | 10 #include <cert.h> |
(...skipping 234 matching lines...) Loading... |
245 DCHECK(0 != cert->derCert.len); | 245 DCHECK(0 != cert->derCert.len); |
246 | 246 |
247 SECStatus rv = HASH_HashBuf(HASH_AlgSHA1, sha1.data, | 247 SECStatus rv = HASH_HashBuf(HASH_AlgSHA1, sha1.data, |
248 cert->derCert.data, cert->derCert.len); | 248 cert->derCert.data, cert->derCert.len); |
249 DCHECK(rv == SECSuccess); | 249 DCHECK(rv == SECSuccess); |
250 | 250 |
251 return sha1; | 251 return sha1; |
252 } | 252 } |
253 | 253 |
254 } // namespace net | 254 } // namespace net |
255 | |
OLD | NEW |