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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/cert/x509_util_nss.h ('k') | net/cert_net/cert_net_fetcher_impl.h » ('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) 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_util_openssl.h" 5 #include "net/cert/x509_util_openssl.h"
6 6
7 #include <openssl/asn1.h> 7 #include <openssl/asn1.h>
8 #include <openssl/mem.h> 8 #include <openssl/mem.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h"
14 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
15 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
16 #include "crypto/ec_private_key.h" 17 #include "crypto/ec_private_key.h"
17 #include "crypto/openssl_util.h" 18 #include "crypto/openssl_util.h"
18 #include "crypto/rsa_private_key.h" 19 #include "crypto/rsa_private_key.h"
19 #include "crypto/scoped_openssl_types.h" 20 #include "crypto/scoped_openssl_types.h"
20 #include "net/cert/x509_cert_types.h" 21 #include "net/cert/x509_cert_types.h"
21 #include "net/cert/x509_util.h" 22 #include "net/cert/x509_util.h"
22 #include "net/ssl/scoped_openssl_types.h" 23 #include "net/ssl/scoped_openssl_types.h"
23 24
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 internal_cache = new_cache.get(); 299 internal_cache = new_cache.get();
299 X509_set_ex_data(x509, x509_der_cache_index, new_cache.release()); 300 X509_set_ex_data(x509, x509_der_cache_index, new_cache.release());
300 } 301 }
301 *der_cache = base::StringPiece(internal_cache->data); 302 *der_cache = base::StringPiece(internal_cache->data);
302 return true; 303 return true;
303 } 304 }
304 305
305 } // namespace x509_util 306 } // namespace x509_util
306 307
307 } // namespace net 308 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/x509_util_nss.h ('k') | net/cert_net/cert_net_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698