summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-12-07 17:17:29 +0000
committertb <>2022-12-07 17:17:29 +0000
commita8bbe803657992fee2dffb62c013ea1e0b886b85 (patch)
treeb187ab289126467d44c863948427c7bb8f5c70d8 /src
parent32fe386349a977647091ee39b6ae9311c9525d2c (diff)
downloadopenbsd-a8bbe803657992fee2dffb62c013ea1e0b886b85.tar.gz
openbsd-a8bbe803657992fee2dffb62c013ea1e0b886b85.tar.bz2
openbsd-a8bbe803657992fee2dffb62c013ea1e0b886b85.zip
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 'src')
-rw-r--r--src/lib/libcrypto/man/BIO_f_base64.38
1 files changed, 4 insertions, 4 deletions
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 @@
1.\" $OpenBSD: BIO_f_base64.3,v 1.11 2019/06/06 01:06:58 schwarze Exp $ 1.\" $OpenBSD: BIO_f_base64.3,v 1.12 2022/12/07 17:17:29 tb Exp $
2.\" OpenSSL fc1d88f0 Wed Jul 2 22:42:40 2014 -0400 2.\" OpenSSL fc1d88f0 Wed Jul 2 22:42:40 2014 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: June 6 2019 $ 52.Dd $Mdocdate: December 7 2022 $
53.Dt BIO_F_BASE64 3 53.Dt BIO_F_BASE64 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -88,11 +88,11 @@ BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
88.Fn BIO_f_base64 88.Fn BIO_f_base64
89returns the base64 BIO method. 89returns the base64 BIO method.
90.Sh EXAMPLES 90.Sh EXAMPLES
91Base64 encode the string "Hello World\en" 91Base64 encode the string "hello, world\en"
92and write the result to standard output: 92and write the result to standard output:
93.Bd -literal -offset indent 93.Bd -literal -offset indent
94BIO *bio, *b64; 94BIO *bio, *b64;
95char message[] = "Hello World \en"; 95char message[] = "hello, world\en";
96 96
97b64 = BIO_new(BIO_f_base64()); 97b64 = BIO_new(BIO_f_base64());
98bio = BIO_new_fp(stdout, BIO_NOCLOSE); 98bio = BIO_new_fp(stdout, BIO_NOCLOSE);