From: tb Date: Wed, 7 Dec 2022 17:17:29 +0000 (+0000) Subject: Fix example string X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e501d6ba7d65837610e9110deb763cf747fe33b5;p=openbsd 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... --- diff --git a/lib/libcrypto/man/BIO_f_base64.3 b/lib/libcrypto/man/BIO_f_base64.3 index 68265b6c9e0..5e0d4b8aea7 100644 --- a/lib/libcrypto/man/BIO_f_base64.3 +++ b/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);