From b83d2c6a91680848325498d5eee5c9c4f5eff00d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 8 Jun 2014 12:47:58 +0200 Subject: [PATCH] Don't try to encode IP addresses as UTF-8 --- src/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x509.c b/src/x509.c index d34353c..dcaca90 100644 --- a/src/x509.c +++ b/src/x509.c @@ -262,7 +262,7 @@ int meth_extensions(lua_State* L) case GEN_IPADD: lua_pushstring(L, "iPAddress"); push_subtable(L, -2); - push_asn1_string(L, general_name->d.iPAddress, px->encode); + push_asn1_string(L, general_name->d.iPAddress, LSEC_AI5_STRING); lua_rawseti(L, -2, lua_rawlen(L, -2)+1); lua_pop(L, 1); break;