Merge pull request #8 from xnyhps/protocol_version

Report the actual TLS version used, not the version the cipher belongs to.
This commit is contained in:
brunoos
2013-09-16 09:25:39 -07:00
2 changed files with 7 additions and 3 deletions

View File

@ -646,7 +646,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)