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

Side by Side Diff: chrome/common/net/x509_certificate_model_openssl.cc

Issue 370383002: x509_certificate_model_openssl: implement ProcessRawBitsSignatureWrap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | chrome/common/net/x509_certificate_model_unittest.cc » ('j') | no next file with comments »
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 #include "chrome/common/net/x509_certificate_model.h" 5 #include "chrome/common/net/x509_certificate_model.h"
6 6
7 #include <openssl/bio.h> 7 #include <openssl/bio.h>
8 #include <openssl/obj_mac.h> 8 #include <openssl/obj_mac.h>
9 #include <openssl/sha.h> 9 #include <openssl/sha.h>
10 #include <openssl/x509v3.h> 10 #include <openssl/x509v3.h>
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 return rv; 1211 return rv;
1212 } 1212 }
1213 default: 1213 default:
1214 rv = ProcessRawAsn1String(X509_get_X509_PUBKEY(cert_handle)->public_key); 1214 rv = ProcessRawAsn1String(X509_get_X509_PUBKEY(cert_handle)->public_key);
1215 return rv; 1215 return rv;
1216 } 1216 }
1217 } 1217 }
1218 1218
1219 std::string ProcessRawBitsSignatureWrap( 1219 std::string ProcessRawBitsSignatureWrap(
1220 net::X509Certificate::OSCertHandle cert_handle) { 1220 net::X509Certificate::OSCertHandle cert_handle) {
1221 // TODO(bulach): implement me. 1221 return ProcessRawAsn1String(cert_handle->signature);
1222 return "";
1223 } 1222 }
1224 1223
1225 } // namespace x509_certificate_model 1224 } // namespace x509_certificate_model
OLDNEW
« no previous file with comments | « no previous file | chrome/common/net/x509_certificate_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698