| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |