diff options
| author | jsing <> | 2015-04-02 13:19:15 +0000 |
|---|---|---|
| committer | jsing <> | 2015-04-02 13:19:15 +0000 |
| commit | f2f92a2f5098f67338df0882b17ec3f65d4364d0 (patch) | |
| tree | d0086594500ece17ecc850e62e7bf342bb51b3e1 /src/lib/libtls/tls_init.3 | |
| parent | eb612cbe415759f36d06b1f632d581cf43bc4473 (diff) | |
| download | openbsd-f2f92a2f5098f67338df0882b17ec3f65d4364d0.tar.gz openbsd-f2f92a2f5098f67338df0882b17ec3f65d4364d0.tar.bz2 openbsd-f2f92a2f5098f67338df0882b17ec3f65d4364d0.zip | |
Handle the case where multiple calls to SSL_shutdown() are required to
close the connection. Also correctly handle the error on failure.
Diff from cookieandscream via github.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libtls/tls_init.3 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_init.3 b/src/lib/libtls/tls_init.3 index 8df1d204ff..1ec8865075 100644 --- a/src/lib/libtls/tls_init.3 +++ b/src/lib/libtls/tls_init.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: tls_init.3,v 1.21 2015/04/02 05:54:22 jsing Exp $ | 1 | .\" $OpenBSD: tls_init.3,v 1.22 2015/04/02 13:19:15 jsing Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
| 4 | .\" | 4 | .\" |
| @@ -407,6 +407,7 @@ will return 0 on success and -1 on error. | |||
| 407 | Functions that return a pointer will return NULL on error. | 407 | Functions that return a pointer will return NULL on error. |
| 408 | .Pp | 408 | .Pp |
| 409 | The | 409 | The |
| 410 | .Fn tls_close , | ||
| 410 | .Fn tls_read | 411 | .Fn tls_read |
| 411 | and | 412 | and |
| 412 | .Fn tls_write | 413 | .Fn tls_write |
| @@ -424,8 +425,10 @@ A write operation is necessary to continue. | |||
| 424 | .El | 425 | .El |
| 425 | .Pp | 426 | .Pp |
| 426 | The caller should call the appropriate function, or in the case of the | 427 | The caller should call the appropriate function, or in the case of the |
| 428 | .Fn tls_close | ||
| 429 | and the | ||
| 427 | .Fn tls_accept | 430 | .Fn tls_accept |
| 428 | or | 431 | and |
| 429 | .Fn tls_connect | 432 | .Fn tls_connect |
| 430 | function families, repeat the call. | 433 | function families, repeat the call. |
| 431 | .Sh ERRORS | 434 | .Sh ERRORS |
