diff options
author | David Woodhouse <dwmw2@infradead.org> | 2015-03-03 15:39:26 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-20 12:00:02 +0000 |
commit | 504e643e0996fb842ac183023c3a6b9049af50ea (patch) | |
tree | 701bc72ea7ca80d355200b0bdb0aa7c547f6081b | |
parent | 21ab123770ff42d8c5b8e6b1372ecef4881b786d (diff) |
Add DTLS to SSL_get_version
Reviewed-by: Emilia Käsper <emilia@openssl.org>
-rw-r--r-- | ssl/ssl_lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index a5eb3dba61..1e9b34f78a 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2735,6 +2735,12 @@ const char *SSL_get_version(const SSL *s) return ("TLSv1"); else if (s->version == SSL3_VERSION) return ("SSLv3"); + else if (s->version == DTLS1_BAD_VER) + return ("DTLSv0.9"); + else if (s->version == DTLS1_VERSION) + return ("DTLSv1"); + else if (s->version == DTLS1_2_VERSION) + return ("DTLSv1.2"); else return ("unknown"); } |