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_new.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_new.3')
-rw-r--r-- | src/lib/libcrypto/man/BIO_new.3 | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/libcrypto/man/BIO_new.3 b/src/lib/libcrypto/man/BIO_new.3 index b08de9c650..7138598674 100644 --- a/src/lib/libcrypto/man/BIO_new.3 +++ b/src/lib/libcrypto/man/BIO_new.3 | |||
@@ -1,6 +1,6 @@ | |||
1 | .\" $OpenBSD: BIO_new.3,v 1.3 2016/11/06 15:52:50 jmc Exp $ | 1 | .\" $OpenBSD: BIO_new.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_NEW 3 | 4 | .Dt BIO_NEW 3 |
5 | .Os | 5 | .Os |
6 | .Sh NAME | 6 | .Sh NAME |
@@ -43,7 +43,7 @@ function returns a new BIO using method | |||
43 | sets the method of an already existing BIO. | 43 | sets the method of an already existing BIO. |
44 | .Pp | 44 | .Pp |
45 | .Fn BIO_free | 45 | .Fn BIO_free |
46 | frees up a single BIO, | 46 | frees up a single BIO; |
47 | .Fn BIO_vfree | 47 | .Fn BIO_vfree |
48 | also frees up a single BIO, but it does not return a value. | 48 | also frees up a single BIO, but it does not return a value. |
49 | Calling | 49 | Calling |
@@ -59,22 +59,7 @@ descriptions. | |||
59 | frees up an entire BIO chain. | 59 | frees up an entire BIO chain. |
60 | It does not halt if an error occurs | 60 | It does not halt if an error occurs |
61 | freeing up an individual BIO in the chain. | 61 | freeing up an individual BIO in the chain. |
62 | .Sh RETURN VALUES | ||
63 | .Fn BIO_new | ||
64 | returns a newly created BIO or | ||
65 | .Dv NULL | ||
66 | if the call fails. | ||
67 | .Pp | 62 | .Pp |
68 | .Fn BIO_set | ||
69 | and | ||
70 | .Fn BIO_free | ||
71 | return 1 for success and 0 for failure. | ||
72 | .Pp | ||
73 | .Fn BIO_free_all | ||
74 | and | ||
75 | .Fn BIO_vfree | ||
76 | do not return values. | ||
77 | .Sh NOTES | ||
78 | Some BIOs (such as memory BIOs) can be used immediately after calling | 63 | Some BIOs (such as memory BIOs) can be used immediately after calling |
79 | .Fn BIO_new . | 64 | .Fn BIO_new . |
80 | Others (such as file BIOs) need some additional initialization, and | 65 | Others (such as file BIOs) need some additional initialization, and |
@@ -100,6 +85,21 @@ a source/sink BIO is normally called | |||
100 | .Fn BIO_s_* | 85 | .Fn BIO_s_* |
101 | and a filter BIO | 86 | and a filter BIO |
102 | .Fn BIO_f_* . | 87 | .Fn BIO_f_* . |
88 | .Sh RETURN VALUES | ||
89 | .Fn BIO_new | ||
90 | returns a newly created BIO or | ||
91 | .Dv NULL | ||
92 | if the call fails. | ||
93 | .Pp | ||
94 | .Fn BIO_set | ||
95 | and | ||
96 | .Fn BIO_free | ||
97 | return 1 for success and 0 for failure. | ||
98 | .Pp | ||
99 | .Fn BIO_free_all | ||
100 | and | ||
101 | .Fn BIO_vfree | ||
102 | do not return values. | ||
103 | .Sh EXAMPLES | 103 | .Sh EXAMPLES |
104 | Create a memory BIO: | 104 | Create a memory BIO: |
105 | .Pp | 105 | .Pp |