Report the actual TLS version used, not the version the cipher belongs

to.
This commit is contained in:
Thijs Alkemade
2013-09-06 13:52:34 +02:00
parent 063e8a8a5c
commit 1a75704ff0
2 changed files with 7 additions and 3 deletions

View File

@ -645,7 +645,8 @@ static int meth_info(lua_State *L)
lua_pushstring(L, buf);
lua_pushnumber(L, bits);
lua_pushnumber(L, algbits);
return 3;
lua_pushstring(L, SSL_get_version(ssl->ssl));
return 4;
}
static int meth_copyright(lua_State *L)