fix bug https://github.com/zhaozg/lua-openssl/issues/29
more flexible xname api