fix issues #27 https://github.com/zhaozg/lua-openssl/issues/27