diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-07 17:17:30 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-07 17:17:30 +0000 |
commit | 0e35e56c4625da13df8979e2f52d098bb4c38d0a (patch) | |
tree | 40098e76450bd1060c401ba4ca00e865381d914b /lib/libcrypto/man | |
parent | 891ba3da7560de89d5dd9db8487fbd1396d857ef (diff) |
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...
Diffstat (limited to 'lib/libcrypto/man')
-rw-r--r-- | lib/libcrypto/man/BIO_f_base64.3 | 8 |
1 files changed, 4 insertions, 4 deletions
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 <steve@openssl.org>. @@ -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); |