diff options
| author | schwarze <> | 2016-11-14 18:53:20 +0000 |
|---|---|---|
| committer | schwarze <> | 2016-11-14 18:53:20 +0000 |
| commit | 02d4fb1a81eba6a877032036f0dd388a08dab0cb (patch) | |
| tree | 33fe07d785a66cb67d7ca33133cdde17409ddab4 /src | |
| parent | 3988573841e47bf4c605c330ff2bd2c40aaa8909 (diff) | |
| download | openbsd-02d4fb1a81eba6a877032036f0dd388a08dab0cb.tar.gz openbsd-02d4fb1a81eba6a877032036f0dd388a08dab0cb.tar.bz2 openbsd-02d4fb1a81eba6a877032036f0dd388a08dab0cb.zip | |
Add Copyright and license.
For references to functions documented elsewhere, use .Xr, not .Fn.
Move historic information to the HISTORY section.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/BIO_f_md.3 | 75 |
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 @@ | |||
| 36 | returns the message digest BIO method. | 85 | returns the message digest BIO method. |
| 37 | This is a filter BIO that digests any data passed through it. | 86 | This is a filter BIO that digests any data passed through it. |
| 38 | It is a BIO wrapper for the digest routines | 87 | It 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 , |
| 41 | and | 90 | and |
| 42 | .Fn EVP_DigestFinal . | 91 | .Xr EVP_DigestFinal 3 . |
| 43 | .Pp | 92 | .Pp |
| 44 | Any data written or read through a digest BIO using | 93 | Any data written or read through a digest BIO using |
| 45 | .Xr BIO_read 3 | 94 | .Xr BIO_read 3 |
| @@ -110,12 +159,11 @@ or | |||
| 110 | through a chain containing digest BIOs, | 159 | through a chain containing digest BIOs, |
| 111 | then this can be done by prepending a buffering BIO. | 160 | then this can be done by prepending a buffering BIO. |
| 112 | .Pp | 161 | .Pp |
| 113 | Before OpenSSL 1.0.0 the call to | 162 | Calling |
| 114 | .Fn BIO_get_md_ctx | 163 | .Fn BIO_get_md_ctx |
| 115 | would only work if the BIO had been initialized, for example by calling | 164 | will return the context and initialize the |
| 116 | .Fn BIO_set_md . | 165 | .Vt BIO |
| 117 | In OpenSSL 1.0.0 and later the context is always returned | 166 | state. |
| 118 | and the state of the BIO is set to initialized. | ||
| 119 | This allows applications to initialize the context externally | 167 | This allows applications to initialize the context externally |
| 120 | if the standard calls such as | 168 | if 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); |
| 196 | BIO_free_all(bio); | 244 | BIO_free_all(bio); |
| 197 | .Ed | 245 | .Ed |
| 246 | .Sh HISTORY | ||
| 247 | Before OpenSSL 1.0.0, the call to | ||
| 248 | .Fn BIO_get_md_ctx | ||
| 249 | would only work if the | ||
| 250 | .Vt BIO | ||
| 251 | had been initialized, for example by calling | ||
| 252 | .Fn BIO_set_md . | ||
| 198 | .Sh BUGS | 253 | .Sh BUGS |
| 199 | The lack of support for | 254 | The lack of support for |
| 200 | .Xr BIO_puts 3 | 255 | .Xr BIO_puts 3 |
