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

Side by Side Diff: net/cert/x509_certificate_ios.cc

Issue 634033002: Check whether or not a certificate is self-signed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 228
229 // static 229 // static
230 void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, 230 void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle,
231 size_t* size_bits, 231 size_t* size_bits,
232 PublicKeyType* type) { 232 PublicKeyType* type) {
233 x509_util_ios::NSSCertificate nss_cert(cert_handle); 233 x509_util_ios::NSSCertificate nss_cert(cert_handle);
234 x509_util::GetPublicKeyInfo(nss_cert.cert_handle(), size_bits, type); 234 x509_util::GetPublicKeyInfo(nss_cert.cert_handle(), size_bits, type);
235 } 235 }
236 236
237 // static
238 bool X509Certificate::IsSelfSigned(OSCertHandle cert_handle) {
239 // TODO(palmer): Implement this.
felt 2014/10/16 18:03:14 nit: can you put the bug ID next to this TODO?
240 return false;
241 }
242
237 } // namespace net 243 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698