Chromium Code Reviews| 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 <Security/Security.h> | 8 #include <Security/Security.h> |
| 9 | 9 |
| 10 #include <cert.h> | 10 #include <cert.h> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 } | 243 } |
| 244 | 244 |
| 245 // static | 245 // static |
| 246 void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, | 246 void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, |
| 247 size_t* size_bits, | 247 size_t* size_bits, |
| 248 PublicKeyType* type) { | 248 PublicKeyType* type) { |
| 249 x509_util_ios::NSSCertificate nss_cert(cert_handle); | 249 x509_util_ios::NSSCertificate nss_cert(cert_handle); |
| 250 x509_util::GetPublicKeyInfo(nss_cert.cert_handle(), size_bits, type); | 250 x509_util::GetPublicKeyInfo(nss_cert.cert_handle(), size_bits, type); |
| 251 } | 251 } |
| 252 | 252 |
| 253 // static | |
| 254 bool X509Certificate::IsSelfSigned(OSCertHandle cert_handle) { | |
| 255 // TODO(palmer): Implement this. | |
|
Ryan Sleevi
2014/10/24 22:56:24
Are you planning on doing this? It's a blocker for
palmer
2014/10/24 23:32:46
Why is it a blocker? The only callers of this API
Ryan Sleevi
2014/10/24 23:46:53
1) You're gonna fail your unittest ;)
2) iOS is a
palmer
2014/10/27 21:20:27
Any hints as to what NSS API? The public docs seem
Ryan Sleevi
2014/10/27 21:22:17
The same one you're using in the _nss file? :)
| |
| 256 return false; | |
| 257 } | |
| 258 | |
| 253 } // namespace net | 259 } // namespace net |
| OLD | NEW |