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

Unified Diff: crypto/openssl_bio_string.h

Issue 286263006: Add OpenSSL BIO method that writes to a std::string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unittest should check BIO_new_string result 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 side-by-side diff with in-line comments
Download patch
Index: crypto/openssl_bio_string.h
diff --git a/crypto/openssl_bio_string.h b/crypto/openssl_bio_string.h
new file mode 100644
index 0000000000000000000000000000000000000000..a53e1db8ea3f3ed20f1a415cd9156b6a12efd6d0
--- /dev/null
+++ b/crypto/openssl_bio_string.h
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CRYPTO_OPENSSL_BIO_STRING_H_
+#define CRYPTO_OPENSSL_BIO_STRING_H_
+
+#include <string>
+
+#include "crypto/crypto_export.h"
+
+typedef struct bio_st BIO;
Ryan Sleevi 2014/05/19 23:25:44 // From <openssl/bio.h>
mattm 2014/05/20 00:22:24 Done.
+
+namespace crypto {
+
+BIO* CRYPTO_EXPORT BIO_new_string(std::string* out);
Ryan Sleevi 2014/05/19 23:25:44 Document // Creates a new BIO that can be used wi
mattm 2014/05/20 00:22:24 Thanks, done.
+
+} // namespace crypto
+
+#endif // CRYPTO_OPENSSL_BIO_STRING_H_
+
« no previous file with comments | « crypto/crypto.gypi ('k') | crypto/openssl_bio_string.cc » ('j') | crypto/openssl_bio_string.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698