diff options
author | espie <> | 2019-03-20 14:17:19 +0000 |
---|---|---|
committer | espie <> | 2019-03-20 14:17:19 +0000 |
commit | d1772e98823944be4559213d54890a81a03ad4ef (patch) | |
tree | aeed7b89a8f04734ec6bdf5de4f158cef55fa9ae | |
parent | b726af5765cea4ea410a97cbc5f123b8f3664489 (diff) | |
download | openbsd-d1772e98823944be4559213d54890a81a03ad4ef.tar.gz openbsd-d1772e98823944be4559213d54890a81a03ad4ef.tar.bz2 openbsd-d1772e98823944be4559213d54890a81a03ad4ef.zip |
fix examples (libtls uses its own error reporting mechanism)
okay tb@
-rw-r--r-- | src/lib/libtls/man/tls_read.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libtls/man/tls_read.3 b/src/lib/libtls/man/tls_read.3 index a7faebaea7..e890357a9f 100644 --- a/src/lib/libtls/man/tls_read.3 +++ b/src/lib/libtls/man/tls_read.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: tls_read.3,v 1.4 2017/02/20 13:09:15 schwarze Exp $ | 1 | .\" $OpenBSD: tls_read.3,v 1.5 2019/03/20 14:17:19 espie Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2014, 2015 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014, 2015 Ted Unangst <tedu@openbsd.org> |
4 | .\" Copyright (c) 2015 Doug Hogan <doug@openbsd.org> | 4 | .\" Copyright (c) 2015 Doug Hogan <doug@openbsd.org> |
@@ -18,7 +18,7 @@ | |||
18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
20 | .\" | 20 | .\" |
21 | .Dd $Mdocdate: February 20 2017 $ | 21 | .Dd $Mdocdate: March 20 2019 $ |
22 | .Dt TLS_READ 3 | 22 | .Dt TLS_READ 3 |
23 | .Os | 23 | .Os |
24 | .Sh NAME | 24 | .Sh NAME |
@@ -164,7 +164,7 @@ while (len > 0) { | |||
164 | if (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT) | 164 | if (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT) |
165 | continue; | 165 | continue; |
166 | if (ret < 0) | 166 | if (ret < 0) |
167 | err(1, "tls_write: %s", tls_error(ctx)); | 167 | errx(1, "tls_write: %s", tls_error(ctx)); |
168 | buf += ret; | 168 | buf += ret; |
169 | len -= ret; | 169 | len -= ret; |
170 | } | 170 | } |
@@ -193,7 +193,7 @@ while (len > 0) { | |||
193 | else if (ret == TLS_WANT_POLLOUT) | 193 | else if (ret == TLS_WANT_POLLOUT) |
194 | pfd[0].events = POLLOUT; | 194 | pfd[0].events = POLLOUT; |
195 | else if (ret < 0) | 195 | else if (ret < 0) |
196 | err(1, "tls_write: %s", tls_error(ctx)); | 196 | errx(1, "tls_write: %s", tls_error(ctx)); |
197 | else { | 197 | else { |
198 | buf += ret; | 198 | buf += ret; |
199 | len -= ret; | 199 | len -= ret; |