From f7449cef9827444a332531794d7642f52d347d50 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 7 Dec 2022 17:17:29 +0000 Subject: Fix example string If you want to Base64-encode "Hello World\n" using a BIO, you had better pass "Hello World\n" into it, not something slightly different... While we're touching this, we might as well write it the way K&R did... --- src/lib/libcrypto/man/BIO_f_base64.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/man/BIO_f_base64.3 b/src/lib/libcrypto/man/BIO_f_base64.3 index 68265b6c9e..5e0d4b8aea 100644 --- a/src/lib/libcrypto/man/BIO_f_base64.3 +++ b/src/lib/libcrypto/man/BIO_f_base64.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BIO_f_base64.3,v 1.11 2019/06/06 01:06:58 schwarze Exp $ +.\" $OpenBSD: BIO_f_base64.3,v 1.12 2022/12/07 17:17:29 tb Exp $ .\" OpenSSL fc1d88f0 Wed Jul 2 22:42:40 2014 -0400 .\" .\" This file was written by Dr. Stephen Henson . @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 6 2019 $ +.Dd $Mdocdate: December 7 2022 $ .Dt BIO_F_BASE64 3 .Os .Sh NAME @@ -88,11 +88,11 @@ BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); .Fn BIO_f_base64 returns the base64 BIO method. .Sh EXAMPLES -Base64 encode the string "Hello World\en" +Base64 encode the string "hello, world\en" and write the result to standard output: .Bd -literal -offset indent BIO *bio, *b64; -char message[] = "Hello World \en"; +char message[] = "hello, world\en"; b64 = BIO_new(BIO_f_base64()); bio = BIO_new_fp(stdout, BIO_NOCLOSE); -- cgit v1.2.3-55-g6feb