| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/cert/x509_certificate.h" | 5 #include "net/cert/x509_certificate.h" |
| 6 | 6 |
| 7 #include <CommonCrypto/CommonDigest.h> | 7 #include <CommonCrypto/CommonDigest.h> |
| 8 #include <CoreServices/CoreServices.h> | 8 #include <CoreServices/CoreServices.h> |
| 9 #include <Security/Security.h> | 9 #include <Security/Security.h> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/sha1.h" | 21 #include "base/sha1.h" |
| 22 #include "base/strings/string_piece.h" | 22 #include "base/strings/string_piece.h" |
| 23 #include "base/strings/sys_string_conversions.h" | 23 #include "base/strings/sys_string_conversions.h" |
| 24 #include "base/synchronization/lock.h" | 24 #include "base/synchronization/lock.h" |
| 25 #include "crypto/cssm_init.h" | 25 #include "crypto/cssm_init.h" |
| 26 #include "crypto/mac_security_services_lock.h" | 26 #include "crypto/mac_security_services_lock.h" |
| 27 #include "crypto/nss_util.h" | 27 #include "crypto/nss_util.h" |
| 28 #include "crypto/rsa_private_key.h" | 28 #include "crypto/rsa_private_key.h" |
| 29 #include "net/cert/x509_util_mac.h" | 29 #include "net/cert/x509_util_mac.h" |
| 30 | 30 |
| 31 using base::mac::ScopedCFTypeRef; | 31 using base::ScopedCFTypeRef; |
| 32 using base::Time; | 32 using base::Time; |
| 33 | 33 |
| 34 namespace net { | 34 namespace net { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 void GetCertDistinguishedName( | 38 void GetCertDistinguishedName( |
| 39 const x509_util::CSSMCachedCertificate& cached_cert, | 39 const x509_util::CSSMCachedCertificate& cached_cert, |
| 40 const CSSM_OID* oid, | 40 const CSSM_OID* oid, |
| 41 CertPrincipal* result) { | 41 CertPrincipal* result) { |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 *type = kPublicKeyTypeDH; | 741 *type = kPublicKeyTypeDH; |
| 742 break; | 742 break; |
| 743 default: | 743 default: |
| 744 *type = kPublicKeyTypeUnknown; | 744 *type = kPublicKeyTypeUnknown; |
| 745 *size_bits = 0; | 745 *size_bits = 0; |
| 746 break; | 746 break; |
| 747 } | 747 } |
| 748 } | 748 } |
| 749 | 749 |
| 750 } // namespace net | 750 } // namespace net |
| OLD | NEW |