summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BIO_f_md.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/BIO_f_md.3')
-rw-r--r--src/lib/libcrypto/man/BIO_f_md.314
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/BIO_f_md.3 b/src/lib/libcrypto/man/BIO_f_md.3
index 3b3f1de329..8514883943 100644
--- a/src/lib/libcrypto/man/BIO_f_md.3
+++ b/src/lib/libcrypto/man/BIO_f_md.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: BIO_f_md.3,v 1.3 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: BIO_f_md.3,v 1.4 2016/11/07 15:52:47 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 7 2016 $
4.Dt BIO_F_MD 3 4.Dt BIO_F_MD 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -80,7 +80,7 @@ macro.
80.Fn BIO_get_md_ctx 80.Fn BIO_get_md_ctx
81returns the digest BIOs context in 81returns the digest BIOs context in
82.Fa mdcp . 82.Fa mdcp .
83.Sh NOTES 83.Pp
84The context returned by 84The context returned by
85.Fn BIO_get_md_ctx 85.Fn BIO_get_md_ctx
86can be used in calls to 86can be used in calls to
@@ -112,10 +112,10 @@ then this can be done by prepending a buffering BIO.
112.Pp 112.Pp
113Before OpenSSL 1.0.0 the call to 113Before OpenSSL 1.0.0 the call to
114.Fn BIO_get_md_ctx 114.Fn BIO_get_md_ctx
115would only work if the BIO had been initialized for example by calling 115would only work if the BIO had been initialized, for example by calling
116.Fn BIO_set_md . 116.Fn BIO_set_md .
117In OpenSSL 1.0.0 and later the context is always returned 117In OpenSSL 1.0.0 and later the context is always returned
118and the BIO is state is set to initialized. 118and the state of the BIO is set to initialized.
119This allows applications to initialize the context externally 119This allows applications to initialize the context externally
120if the standard calls such as 120if the standard calls such as
121.Fn BIO_set_md 121.Fn BIO_set_md
@@ -130,7 +130,7 @@ and
130.Fn BIO_get_md_ctx 130.Fn BIO_get_md_ctx
131return 1 for success and 0 for failure. 131return 1 for success and 0 for failure.
132.Sh EXAMPLES 132.Sh EXAMPLES
133The following example creates a BIO chain containing an SHA1 and MD5 133The following example creates a BIO chain containing an SHA-1 and MD5
134digest BIO and passes the string "Hello World" through it. 134digest BIO and passes the string "Hello World" through it.
135Error checking has been omitted for clarity. 135Error checking has been omitted for clarity.
136.Bd -literal -offset 2n 136.Bd -literal -offset 2n
@@ -198,7 +198,7 @@ BIO_free_all(bio);
198.Sh BUGS 198.Sh BUGS
199The lack of support for 199The lack of support for
200.Xr BIO_puts 3 200.Xr BIO_puts 3
201and the non standard behaviour of 201and the non-standard behaviour of
202.Xr BIO_gets 3 202.Xr BIO_gets 3
203could be regarded as anomalous. 203could be regarded as anomalous.
204It could be argued that 204It could be argued that