summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BIO_new.3
diff options
context:
space:
mode:
authorjmc <>2016-11-07 15:52:47 +0000
committerjmc <>2016-11-07 15:52:47 +0000
commit94a8013c0e6b484829cc3c8b697578760ad01405 (patch)
tree8e0eba7cbf154c12c52f4456e7f1e277c6e71d31 /src/lib/libcrypto/man/BIO_new.3
parente638403f591087e1ef609e3bc88e3028a97af60e (diff)
downloadopenbsd-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.336
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
43sets the method of an already existing BIO. 43sets the method of an already existing BIO.
44.Pp 44.Pp
45.Fn BIO_free 45.Fn BIO_free
46frees up a single BIO, 46frees up a single BIO;
47.Fn BIO_vfree 47.Fn BIO_vfree
48also frees up a single BIO, but it does not return a value. 48also frees up a single BIO, but it does not return a value.
49Calling 49Calling
@@ -59,22 +59,7 @@ descriptions.
59frees up an entire BIO chain. 59frees up an entire BIO chain.
60It does not halt if an error occurs 60It does not halt if an error occurs
61freeing up an individual BIO in the chain. 61freeing up an individual BIO in the chain.
62.Sh RETURN VALUES
63.Fn BIO_new
64returns a newly created BIO or
65.Dv NULL
66if the call fails.
67.Pp 62.Pp
68.Fn BIO_set
69and
70.Fn BIO_free
71return 1 for success and 0 for failure.
72.Pp
73.Fn BIO_free_all
74and
75.Fn BIO_vfree
76do not return values.
77.Sh NOTES
78Some BIOs (such as memory BIOs) can be used immediately after calling 63Some BIOs (such as memory BIOs) can be used immediately after calling
79.Fn BIO_new . 64.Fn BIO_new .
80Others (such as file BIOs) need some additional initialization, and 65Others (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_*
101and a filter BIO 86and a filter BIO
102.Fn BIO_f_* . 87.Fn BIO_f_* .
88.Sh RETURN VALUES
89.Fn BIO_new
90returns a newly created BIO or
91.Dv NULL
92if the call fails.
93.Pp
94.Fn BIO_set
95and
96.Fn BIO_free
97return 1 for success and 0 for failure.
98.Pp
99.Fn BIO_free_all
100and
101.Fn BIO_vfree
102do not return values.
103.Sh EXAMPLES 103.Sh EXAMPLES
104Create a memory BIO: 104Create a memory BIO:
105.Pp 105.Pp