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

Side by Side Diff: crypto/openssl_bio_string.h

Issue 296223002: Fix component build with gcc 4.6 on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CRYPTO_OPENSSL_BIO_STRING_H_ 5 #ifndef CRYPTO_OPENSSL_BIO_STRING_H_
6 #define CRYPTO_OPENSSL_BIO_STRING_H_ 6 #define CRYPTO_OPENSSL_BIO_STRING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "crypto/crypto_export.h" 10 #include "crypto/crypto_export.h"
11 11
12 // From <openssl/bio.h> 12 // From <openssl/bio.h>
13 typedef struct bio_st BIO; 13 typedef struct bio_st BIO;
14 14
15 namespace crypto { 15 namespace crypto {
16 16
17 // Creates a new BIO that can be used with OpenSSL's various output functions, 17 // Creates a new BIO that can be used with OpenSSL's various output functions,
18 // and which will write all output directly into |out|. This is primarily 18 // and which will write all output directly into |out|. This is primarily
19 // intended as a utility to reduce the amount of copying and separate 19 // intended as a utility to reduce the amount of copying and separate
20 // allocations when performing extensive string modifications or streaming 20 // allocations when performing extensive string modifications or streaming
21 // within OpenSSL. 21 // within OpenSSL.
22 // 22 //
23 // Note: |out| must remain valid for the duration of the BIO. 23 // Note: |out| must remain valid for the duration of the BIO.
24 BIO* CRYPTO_EXPORT BIO_new_string(std::string* out); 24 CRYPTO_EXPORT BIO* BIO_new_string(std::string* out);
25 25
26 } // namespace crypto 26 } // namespace crypto
27 27
28 #endif // CRYPTO_OPENSSL_BIO_STRING_H_ 28 #endif // CRYPTO_OPENSSL_BIO_STRING_H_
29 29
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698