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

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

Issue 2682413003: Add a CRYPTO_BUFFER_POOL to SSLClientSocketImpl. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | net/cert/x509_util_openssl.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 #ifndef NET_CERT_X509_UTIL_OPENSSL_H_ 5 #ifndef NET_CERT_X509_UTIL_OPENSSL_H_
6 #define NET_CERT_X509_UTIL_OPENSSL_H_ 6 #define NET_CERT_X509_UTIL_OPENSSL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // DER-encodes |x509|, caching the encoding in a structure owned by 45 // DER-encodes |x509|, caching the encoding in a structure owned by
46 // the X509. On success, returns true, and sets |*out_der| to point to 46 // the X509. On success, returns true, and sets |*out_der| to point to
47 // the encoding. The StringPiece is valid as long as |x509| is not 47 // the encoding. The StringPiece is valid as long as |x509| is not
48 // freed. 48 // freed.
49 // 49 //
50 // Note: this caches the encoding, so |x509| must not be modified 50 // Note: this caches the encoding, so |x509| must not be modified
51 // after the first call to this function. 51 // after the first call to this function.
52 bool NET_EXPORT GetDER(X509* x509, base::StringPiece* out_der); 52 bool NET_EXPORT GetDER(X509* x509, base::StringPiece* out_der);
53 53
54 // Returns a CRYPTO_BUFFER_POOL for deduplicating certificates.
55 CRYPTO_BUFFER_POOL* GetBufferPool();
56
54 } // namespace x509_util 57 } // namespace x509_util
55 58
56 } // namespace net 59 } // namespace net
57 60
58 #endif // NET_CERT_X509_UTIL_OPENSSL_H_ 61 #endif // NET_CERT_X509_UTIL_OPENSSL_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/x509_util_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698