summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_txt.c')
-rw-r--r--src/lib/libssl/ssl_txt.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/lib/libssl/ssl_txt.c b/src/lib/libssl/ssl_txt.c
index 950620d300..3540bab313 100644
--- a/src/lib/libssl/ssl_txt.c
+++ b/src/lib/libssl/ssl_txt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_txt.c,v 1.23 2014/07/11 09:24:44 beck Exp $ */ 1/* $OpenBSD: ssl_txt.c,v 1.24 2014/07/12 19:45:53 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -112,20 +112,8 @@ SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
112 goto err; 112 goto err;
113 if (BIO_puts(bp, "SSL-Session:\n") <= 0) 113 if (BIO_puts(bp, "SSL-Session:\n") <= 0)
114 goto err; 114 goto err;
115 if (x->ssl_version == SSL3_VERSION) 115
116 s = "SSLv3"; 116 s = ssl_version_string(x->ssl_version);
117 else if (x->ssl_version == TLS1_2_VERSION)
118 s = "TLSv1.2";
119 else if (x->ssl_version == TLS1_1_VERSION)
120 s = "TLSv1.1";
121 else if (x->ssl_version == TLS1_VERSION)
122 s = "TLSv1";
123 else if (x->ssl_version == DTLS1_VERSION)
124 s = "DTLSv1";
125 else if (x->ssl_version == DTLS1_BAD_VER)
126 s = "DTLSv1-bad";
127 else
128 s = "unknown";
129 if (BIO_printf(bp, " Protocol : %s\n", s) <= 0) 117 if (BIO_printf(bp, " Protocol : %s\n", s) <= 0)
130 goto err; 118 goto err;
131 119