summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-11-14 18:53:20 +0000
committerschwarze <>2016-11-14 18:53:20 +0000
commit2b293369f1e4301c35c7932d36866e98f2362717 (patch)
tree33fe07d785a66cb67d7ca33133cdde17409ddab4
parent4cda5d5cbf155e7ac156a140f7b6feed7c47bda9 (diff)
downloadopenbsd-2b293369f1e4301c35c7932d36866e98f2362717.tar.gz
openbsd-2b293369f1e4301c35c7932d36866e98f2362717.tar.bz2
openbsd-2b293369f1e4301c35c7932d36866e98f2362717.zip
Add Copyright and license.
For references to functions documented elsewhere, use .Xr, not .Fn. Move historic information to the HISTORY section.
-rw-r--r--src/lib/libcrypto/man/BIO_f_md.375
1 files changed, 65 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/BIO_f_md.3 b/src/lib/libcrypto/man/BIO_f_md.3
index 8514883943..f2f0da1c73 100644
--- a/src/lib/libcrypto/man/BIO_f_md.3
+++ b/src/lib/libcrypto/man/BIO_f_md.3
@@ -1,6 +1,55 @@
1.\" $OpenBSD: BIO_f_md.3,v 1.4 2016/11/07 15:52:47 jmc Exp $ 1.\" $OpenBSD: BIO_f_md.3,v 1.5 2016/11/14 18:53:20 schwarze Exp $
2.\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400
2.\" 3.\"
3.Dd $Mdocdate: November 7 2016 $ 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2000, 2006, 2009, 2016 The OpenSSL Project.
6.\" All rights reserved.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\"
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in
17.\" the documentation and/or other materials provided with the
18.\" distribution.
19.\"
20.\" 3. All advertising materials mentioning features or use of this
21.\" software must display the following acknowledgment:
22.\" "This product includes software developed by the OpenSSL Project
23.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
24.\"
25.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26.\" endorse or promote products derived from this software without
27.\" prior written permission. For written permission, please contact
28.\" openssl-core@openssl.org.
29.\"
30.\" 5. Products derived from this software may not be called "OpenSSL"
31.\" nor may "OpenSSL" appear in their names without prior written
32.\" permission of the OpenSSL Project.
33.\"
34.\" 6. Redistributions of any form whatsoever must retain the following
35.\" acknowledgment:
36.\" "This product includes software developed by the OpenSSL Project
37.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
38.\"
39.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\"
52.Dd $Mdocdate: November 14 2016 $
4.Dt BIO_F_MD 3 53.Dt BIO_F_MD 3
5.Os 54.Os
6.Sh NAME 55.Sh NAME
@@ -36,10 +85,10 @@
36returns the message digest BIO method. 85returns the message digest BIO method.
37This is a filter BIO that digests any data passed through it. 86This is a filter BIO that digests any data passed through it.
38It is a BIO wrapper for the digest routines 87It is a BIO wrapper for the digest routines
39.Fn EVP_DigestInit , 88.Xr EVP_DigestInit 3 ,
40.Fn EVP_DigestUpdate , 89.Xr EVP_DigestUpdate 3 ,
41and 90and
42.Fn EVP_DigestFinal . 91.Xr EVP_DigestFinal 3 .
43.Pp 92.Pp
44Any data written or read through a digest BIO using 93Any data written or read through a digest BIO using
45.Xr BIO_read 3 94.Xr BIO_read 3
@@ -110,12 +159,11 @@ or
110through a chain containing digest BIOs, 159through a chain containing digest BIOs,
111then this can be done by prepending a buffering BIO. 160then this can be done by prepending a buffering BIO.
112.Pp 161.Pp
113Before OpenSSL 1.0.0 the call to 162Calling
114.Fn BIO_get_md_ctx 163.Fn BIO_get_md_ctx
115would only work if the BIO had been initialized, for example by calling 164will return the context and initialize the
116.Fn BIO_set_md . 165.Vt BIO
117In OpenSSL 1.0.0 and later the context is always returned 166state.
118and the state of the BIO is set to initialized.
119This allows applications to initialize the context externally 167This allows applications to initialize the context externally
120if the standard calls such as 168if the standard calls such as
121.Fn BIO_set_md 169.Fn BIO_set_md
@@ -195,6 +243,13 @@ do {
195} while(mdtmp); 243} while(mdtmp);
196BIO_free_all(bio); 244BIO_free_all(bio);
197.Ed 245.Ed
246.Sh HISTORY
247Before OpenSSL 1.0.0, the call to
248.Fn BIO_get_md_ctx
249would only work if the
250.Vt BIO
251had been initialized, for example by calling
252.Fn BIO_set_md .
198.Sh BUGS 253.Sh BUGS
199The lack of support for 254The lack of support for
200.Xr BIO_puts 3 255.Xr BIO_puts 3