From cdaebd960825c6daf2bda2d2428933228e7264b5 Mon Sep 17 00:00:00 2001
From: jsing <>
Date: Sat, 2 Nov 2019 13:43:14 +0000
Subject: Document tls_conn_cipher_strength().

ok schwarze@
---
 src/lib/libtls/man/tls_conn_version.3 | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/lib/libtls/man/tls_conn_version.3 b/src/lib/libtls/man/tls_conn_version.3
index b93f1c34ab..9ab6932f54 100644
--- a/src/lib/libtls/man/tls_conn_version.3
+++ b/src/lib/libtls/man/tls_conn_version.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tls_conn_version.3,v 1.9 2018/12/14 20:18:27 schwarze Exp $
+.\" $OpenBSD: tls_conn_version.3,v 1.10 2019/11/02 13:43:14 jsing Exp $
 .\"
 .\" Copyright (c) 2015 Bob Beck <beck@openbsd.org>
 .\" Copyright (c) 2016, 2018 Joel Sing <jsing@openbsd.org>
@@ -15,12 +15,13 @@
 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd $Mdocdate: December 14 2018 $
+.Dd $Mdocdate: November 2 2019 $
 .Dt TLS_CONN_VERSION 3
 .Os
 .Sh NAME
 .Nm tls_conn_version ,
 .Nm tls_conn_cipher ,
+.Nm tls_conn_cipher_strength ,
 .Nm tls_conn_alpn_selected ,
 .Nm tls_conn_servername ,
 .Nm tls_conn_session_resumed ,
@@ -39,6 +40,8 @@
 .Fn tls_conn_version "struct tls *ctx"
 .Ft const char *
 .Fn tls_conn_cipher "struct tls *ctx"
+.Ft int
+.Fn tls_conn_cipher_strength "struct tls *ctx"
 .Ft const char *
 .Fn tls_conn_alpn_selected "struct tls *ctx"
 .Ft const char *
@@ -82,6 +85,11 @@ returns a string corresponding to the cipher suite negotiated with the peer
 connected to
 .Ar ctx .
 .Pp
+.Fn tls_conn_cipher_strength
+returns the strength in bits for the symmetric cipher that is being
+used with the peer connected to
+.Ar ctx .
+.Pp
 .Fn tls_conn_alpn_selected
 returns a string that specifies the ALPN protocol selected for use with the peer
 connected to
@@ -197,6 +205,10 @@ appeared in
 .Fn tls_conn_session_resumed
 appeared in
 .Ox 6.3 .
+.Pp
+.Fn tls_conn_cipher_strength
+appeared in
+.Ox 6.7 .
 .Sh AUTHORS
 .An Bob Beck Aq Mt beck@openbsd.org
 .An Joel Sing Aq Mt jsing@openbsd.org
-- 
cgit v1.2.3-55-g6feb