diff options
author | jmc <> | 2016-11-07 15:52:47 +0000 |
---|---|---|
committer | jmc <> | 2016-11-07 15:52:47 +0000 |
commit | 94a8013c0e6b484829cc3c8b697578760ad01405 (patch) | |
tree | 8e0eba7cbf154c12c52f4456e7f1e277c6e71d31 /src/lib/libcrypto/man/BIO_f_md.3 | |
parent | e638403f591087e1ef609e3bc88e3028a97af60e (diff) | |
download | openbsd-94a8013c0e6b484829cc3c8b697578760ad01405.tar.gz openbsd-94a8013c0e6b484829cc3c8b697578760ad01405.tar.bz2 openbsd-94a8013c0e6b484829cc3c8b697578760ad01405.zip |
various cleanup;
Diffstat (limited to 'src/lib/libcrypto/man/BIO_f_md.3')
-rw-r--r-- | src/lib/libcrypto/man/BIO_f_md.3 | 14 |
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 |
81 | returns the digest BIOs context in | 81 | returns the digest BIOs context in |
82 | .Fa mdcp . | 82 | .Fa mdcp . |
83 | .Sh NOTES | 83 | .Pp |
84 | The context returned by | 84 | The context returned by |
85 | .Fn BIO_get_md_ctx | 85 | .Fn BIO_get_md_ctx |
86 | can be used in calls to | 86 | can be used in calls to |
@@ -112,10 +112,10 @@ then this can be done by prepending a buffering BIO. | |||
112 | .Pp | 112 | .Pp |
113 | Before OpenSSL 1.0.0 the call to | 113 | Before OpenSSL 1.0.0 the call to |
114 | .Fn BIO_get_md_ctx | 114 | .Fn BIO_get_md_ctx |
115 | would only work if the BIO had been initialized for example by calling | 115 | would only work if the BIO had been initialized, for example by calling |
116 | .Fn BIO_set_md . | 116 | .Fn BIO_set_md . |
117 | In OpenSSL 1.0.0 and later the context is always returned | 117 | In OpenSSL 1.0.0 and later the context is always returned |
118 | and the BIO is state is set to initialized. | 118 | and the state of the BIO is set to initialized. |
119 | This allows applications to initialize the context externally | 119 | This allows applications to initialize the context externally |
120 | if the standard calls such as | 120 | if 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 |
131 | return 1 for success and 0 for failure. | 131 | return 1 for success and 0 for failure. |
132 | .Sh EXAMPLES | 132 | .Sh EXAMPLES |
133 | The following example creates a BIO chain containing an SHA1 and MD5 | 133 | The following example creates a BIO chain containing an SHA-1 and MD5 |
134 | digest BIO and passes the string "Hello World" through it. | 134 | digest BIO and passes the string "Hello World" through it. |
135 | Error checking has been omitted for clarity. | 135 | Error 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 |
199 | The lack of support for | 199 | The lack of support for |
200 | .Xr BIO_puts 3 | 200 | .Xr BIO_puts 3 |
201 | and the non standard behaviour of | 201 | and the non-standard behaviour of |
202 | .Xr BIO_gets 3 | 202 | .Xr BIO_gets 3 |
203 | could be regarded as anomalous. | 203 | could be regarded as anomalous. |
204 | It could be argued that | 204 | It could be argued that |