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

Side by Side Diff: net/base/x509_certificate.h

Issue 7865027: net: update public key block for the correct Cyber CA certs. (Closed) Base URL: svn://svn.chromium.org/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/base/x509_certificate.cc » ('j') | net/base/x509_certificate.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_BASE_X509_CERTIFICATE_H_ 5 #ifndef NET_BASE_X509_CERTIFICATE_H_
6 #define NET_BASE_X509_CERTIFICATE_H_ 6 #define NET_BASE_X509_CERTIFICATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Calculates the SHA-1 fingerprint of the certificate. Returns an empty 371 // Calculates the SHA-1 fingerprint of the certificate. Returns an empty
372 // (all zero) fingerprint on failure. 372 // (all zero) fingerprint on failure.
373 static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle); 373 static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle);
374 374
375 private: 375 private:
376 friend class base::RefCountedThreadSafe<X509Certificate>; 376 friend class base::RefCountedThreadSafe<X509Certificate>;
377 friend class TestRootCerts; // For unit tests 377 friend class TestRootCerts; // For unit tests
378 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, Cache); 378 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, Cache);
379 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, IntermediateCertificates); 379 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, IntermediateCertificates);
380 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, SerialNumbers); 380 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, SerialNumbers);
381 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, DigiNotarCerts);
381 FRIEND_TEST_ALL_PREFIXES(X509CertificateNameVerifyTest, VerifyHostname); 382 FRIEND_TEST_ALL_PREFIXES(X509CertificateNameVerifyTest, VerifyHostname);
382 383
383 // Construct an X509Certificate from a handle to the certificate object 384 // Construct an X509Certificate from a handle to the certificate object
384 // in the underlying crypto library. 385 // in the underlying crypto library.
385 X509Certificate(OSCertHandle cert_handle, 386 X509Certificate(OSCertHandle cert_handle,
386 const OSCertHandles& intermediates); 387 const OSCertHandles& intermediates);
387 388
388 ~X509Certificate(); 389 ~X509Certificate();
389 390
390 // Common object initialization code. Called by the constructors only. 391 // Common object initialization code. Called by the constructors only.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // (Marked mutable because it's used in a const method.) 493 // (Marked mutable because it's used in a const method.)
493 mutable base::Lock verification_lock_; 494 mutable base::Lock verification_lock_;
494 #endif 495 #endif
495 496
496 DISALLOW_COPY_AND_ASSIGN(X509Certificate); 497 DISALLOW_COPY_AND_ASSIGN(X509Certificate);
497 }; 498 };
498 499
499 } // namespace net 500 } // namespace net
500 501
501 #endif // NET_BASE_X509_CERTIFICATE_H_ 502 #endif // NET_BASE_X509_CERTIFICATE_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/x509_certificate.cc » ('j') | net/base/x509_certificate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698